[Nix-dev] "Platform indepent installer" hardcodes /bin/chmod

Bryce L Nordgren bnordgren at gmail.com
Mon Jun 11 22:34:42 CEST 2012


Hi. I'm trying to package "geonetwork-opensource" (
http://geonetwork-opensource.org/) for nix. They distribute the
application's war-file separately, but there's an administrative tool
called "gast" which is only available using their platform-independent
installer. I was able to save an "install.xml" file after clicky-pointy-ing
my way thru the install screens the first time; and I was able to get the
installer to run in command-line mode using this "xml" file modified to
point at $out.

But it seems that the java-based installer hardcodes /bin/chmod instead of
using $PATH. (error follows).  Therefore most of the scripts are not
executable.

Is there a recommended workaround? I could just chmod them in the
builder.sh, but I'd like to make the installer not error out, as I'm not
100% positive that it's not supposed to do more installing work after it
crashes.

Bryce

building path(s)
`/nix/store/74gqjvjd8wgg2s732rcbx0ns8yw9warb-geonetwork-2.6.4'
[ Starting automated installation ]
[ Starting to unpack ]
[ Processing package: Core (1/1) ]
[ ERROR: Error executing
/bin/chmod a+x
/nix/store/74gqjvjd8wgg2s732rcbx0ns8yw9warb-geonetwork-2.6.4/bin/start-geonetwork.sh
]
[ ERROR: The installation was not completed ]
[ Unpacking finished. ]
[ Writing the uninstaller data ... ]
[ Automated installation done ]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.science.uu.nl/pipermail/nix-dev/attachments/20120611/e180557b/attachment-0001.html 


More information about the nix-dev mailing list