[gobolinux-devel] Problem with FixDirReferences on rootless
Martin Svensson
martin.p.svensson at gmail.com
Sun Aug 24 23:55:02 NZST 2008
FixDirReferences may modify files incorrectly on a rootless installation
During SymlinkProgram phase the FixDirReferences script may modify
paths inside some types of files.
Some paths may be modified to /usr (if no better path can be found).
This may cause problems on a rootless gobolinux installation.
If the problem only occurs in a specific case one might of course
"solve" the by editing the offending file.
However it would also be nice if a more general solution could be done.
My first quick and dirty solution to the problem was to modify
FixDirReferences to never use /usr modification on rootless
installations (patch as attachment).
However I am not certain this is the best solution to the problem.
Other solutions might be to make other modifications to FixDirReferences:
Perhaps try to use more advanced logic to replace paths using some
type of more advanced trickery?
(My knowledge about how pkg-config etc is used is close to
noneexistant but I surmise it would be possible )
Or perhaps modify FixdirReferences to use some type of
goboPrefix/usr instead of /usr ?
What do you think would be a good solution to this problem ?
I would of course prefer if anyone else could wave a magic wand and
solve the problem :)
But I would be willing to take a look at this problem assuming an
modification would be of interest.
/Regards Martin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: FixDirReferences.patch
Type: text/x-diff
Size: 1816 bytes
Desc: not available
Url : http://lists.gobolinux.org/pipermail/gobolinux-devel/attachments/20080824/bfc9ab7f/attachment.patch
More information about the gobolinux-devel
mailing list