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

bugtracker at ...3416... bugtracker at ...3416...
Thu Mar 3 11:54:59 CET 2016


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

Comment #4 by sab OTAGE:

let me explain what i think gambas does wrong:
it doesn't have to search stuff, all the location information is already given at configure time.
for example if i pass --prefix=/usr/local --bindir=/bin all necessary information is already there:
all binaries will go to /bin.
all shared data will go to /usr/local/share.
so if gambas wants to access shared data, it just have to open /usr/local/share/gambas/foo rather than trying to determine the information from searching an executable, readlink()ing its path, and then append something to that path.
if it needs to generate or touch some files during installation, it needs to do so in $(DESTDIR)/$(prefix)






More information about the User mailing list