This has been lying in my "to reply" view long enough now.... 2008/8/24 Martin Svensson <[EMAIL PROTECTED]>: > 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. > The problem is that paths are stacked in .pc files, so bindir is ${prefix}/bin, which isn't available or valid on a rootless install. A solution would be to edit all paths to the corresponding path in $goboLinks.
> 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 ? > That would be possible, but would litter the goboPrefix (usually $HOME) with /usr/bin etc links, as gobohide wont work on rootless. > > What do you think would be a good solution to this problem ? > Somewhere in the future $goboSystem/Links/{Executables,Libraries,...} will be dropped and we will use $goboSystem/Index/{bin,lib,...} instead. There is some code to switch to that layout already in the tools, but I don't know how that would work on a rootless install, but if it does FixDirReferences can use $goboIndex instead of '/usr' as replacement. Lucas can probably answer more on how goboIndex is enabled in the current tools. > 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. > Yes, it would be great if someone could magically just solve all problems ;) If you like you can try the goboIndex approach. I'll try and answer any question that may come up (hopefully quicker than this). -- /Jonas _______________________________________________ gobolinux-devel mailing list gobolinux-devel@lists.gobolinux.org http://lists.gobolinux.org/mailman/listinfo/gobolinux-devel