[Gambas-user] [Gambas Bug Tracker] Bug #898: gambas3 does things wrong when prefix= (nothing)

bugtracker at ...3416... bugtracker at ...3416...
Tue Mar 1 22:24:58 CET 2016


http://gambaswiki.org/bugtracker/edit?object=BUG.898&from=L21haW4-

sab OTAGE reported a new bug.

Summary
-------

gambas3 does things wrong when prefix= (nothing)

Type             : Bug
Priority         : Medium
Gambas version   : Unknown
Product          : Unknown


Description
-----------

if prefix= (nothing), that means stuff goes into /bin /lib /share etc.
i.e. no /usr.
however when looking for its components, gbi3, rather than searching for gbx executable via bindir from comilation, or in $PATH, starts its search with /usr/bin.
since /usr exists as a symlink to / it finds it and then uses readlink on the gbx3 executable which results in ../opt/gambas3/bin/gbx3, since gambas3 was installed into /opt/gambas3 via DESTDIR and then symlinked into /.
however /usr/bin/../opt does not exist so it fails.
having fixed that with a hexeditor (changing all /usr/bin into /bin), it then wants to create a bunch of files in ../opt/gambas3/share/gambas3/info and fails, because it was not ran as root.

(i'm trying to run these executables because /opt/gambas3/bin/gambas3 is a dead symlink to gambas3.gambas (which does not exist)) and the README does not say which binaries to run.








More information about the User mailing list