guix-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: File permissions on git fetched packages.


From: Ludovic Courtès
Subject: Re: File permissions on git fetched packages.
Date: Sun, 17 Sep 2017 22:08:45 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.2 (gnu/linux)

Hello,

Mathieu Othacehe <address@hidden> skribis:

> I'm trying to package a specific version of libgit2, fetched from a git
> repo. I noticed that when cloned in /gnu/store/xxx-git-checkout, all
> files have 444 permissions, because /gnu/store is mounted read-only I guess.
>
> The problem is when /gnu/store/xxx-git-checkout/tests/resources/ are
> copied to /tmp and tests are run, they fail when trying to write on read
> only files.
>
> Any idea on how to overcome this issue and preserve file permissions on
> git fetched packages ?

I think you just have to “chmod -R +w” those files.

I was looking for examples of packages that use ‘git-fetch’ and that do
that, but I couldn’t easily find one.  I suppose that’s what they do
when they have to, though.

HTH!

Ludo’.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]