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

Shea Levy shea at shealevy.com
Tue Jun 12 16:23:14 CEST 2012



On Jun 12, 2012, at 10:09 AM, Bryce L Nordgren <bnordgren at gmail.com> wrote:

> 
> 
> On Tue, Jun 12, 2012 at 10:09 AM, Lluís Batlle i Rossell <viric at viric.name> wrote:
> On Tue, Jun 12, 2012 at 11:28:48AM +0200, Ludovic Courtès wrote:
> > Hi,
> >
> > Bryce L Nordgren <bnordgren at gmail.com> skribis:
> >
> > > 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?
> >
> > Yes, run ‘sed’ over the source files to replace “/bin/chmod” by “chmod”.
> 
> The installer is a compiled java jarfile.

Couldn't you decompile it to the JVM "assembly" or whatever it's called? If you're lucky "/bin/chmod" will be easily replacable at that stage, then you can recompile.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.science.uu.nl/pipermail/nix-dev/attachments/20120612/a4357909/attachment.html 


More information about the nix-dev mailing list