[Nix-dev] RE: [Nix-commits] SVN commit: nix - 17853 - sandervanderburg - nixpkgs/trunk/pkgs/applications/office/openoffice

Sander van der Burg - EWI S.vanderBurg at tudelft.nl
Fri Oct 16 20:52:57 CEST 2009


The write permissions are indeed cleared afterwards, but during the build/installation phase the desktop files are already read-only and I have to modify them. Without this line I'll get a "permission denied" error during the build phase.

-----Oorspronkelijk bericht-----
Van: Michael Raskin [mailto:7c6f434c at mail.ru]
Verzonden: vr 16-10-2009 20:58
Aan: nix-dev at cs.uu.nl; Sander van der Burg - EWI
CC: nix-commits at cs.uu.nl
Onderwerp: Re: [Nix-commits] SVN commit: nix - 17853 - sandervanderburg -	nixpkgs/trunk/pkgs/applications/office/openoffice
 
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Sander van der Burg wrote:
> It appears that the OpenOffice.org desktop files are read only. Changing this so that they can be adapted

>      for appl in $out/share/applications/*.desktop
>      do
> +        chmod 644 $appl # What's wrong with the file permissions?
>          sed -i '/Icon/d' $appl
>          echo "Icon=`echo $appl | sed 's/.desktop//'`" >> $appl    
>      done

You are trying to install writable files in /nix/store? Is it a good
idea? Doesn't Nix chmod everything to "a-w a+rX" anyway?
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.12 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iQEcBAEBAgAGBQJK2MJDAAoJEE6tnN0aWvw3PNgH/37uM7JtUnyWfsWXTqLr2Ez9
0ChdfyTnwBz3J8ximEbj6NmpqWJ4vAkGi0VK5WhkMRiEp7W0vARjLahvw2rxSzV2
JCVcMkFyybeM4ARGqtPoJa+d9whdXALNqzg/d6eBKDL/I3It24QOHn12mC2LuJe2
6PyXyj221lIQB1TILFdS9dA/kVkb2siScbTQsD1a5E/NE3nJ1jmwgcfVeQL3ZPLM
H8zob8nE1+yt5zu/T68+vQN+NanyEuNnVbNUyH8M26Li11/K014+ax1RCUfVBapE
8ZZdg/NalbV0W0GHx+ZnEizVhivbByRik6dwNaAhbEr+TO0TuEJUHXRVc0/2OCc=
=CwWX
-----END PGP SIGNATURE-----

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.science.uu.nl/pipermail/nix-dev/attachments/20091016/a16d3835/attachment.html 


More information about the nix-dev mailing list