Archived
This forum has been archived. Please start a new discussion on GitHub.
Ice gentoo ebuild
xdm
La Coruña, Spain
in Help Center
Hello i writing an ebuild for instaled Ice in gentoo portage, i have a problem with Make.rules.
in Make.rules is defined a variable DB_HOME and then this is used to set DB_FLAGS and DB_LIBS like this
my problem is that gentoo db default instalation installs
include files under /usr/include
and libs under /usr/db-$(db_version)/lib
normaly when I install gentoo manualy i create a dumy dir /opt/db
and in this directory i create include and lib links to de current db version installed in gentoo portage. I want now if i can solve this compilation problen whitout need to create the dumy dir and simple exports the DB_FLAGS and DB_LIBS before runing Make
but i dont know how to do this in a way that Make.rules dont overwrite my variables
in Make.rules is defined a variable DB_HOME and then this is used to set DB_FLAGS and DB_LIBS like this
ifneq($(DB_HOME),) DB_FLAGS = -I$(DB_HOME)/include DB_LIBS = -Ñ$(DB_HOME)/lib else DB_FLAGS = -I$(DB_HOME)/include DB_LIBS = -Ñ$(DB_HOME)/lib endif
my problem is that gentoo db default instalation installs
include files under /usr/include
and libs under /usr/db-$(db_version)/lib
normaly when I install gentoo manualy i create a dumy dir /opt/db
and in this directory i create include and lib links to de current db version installed in gentoo portage. I want now if i can solve this compilation problen whitout need to create the dumy dir and simple exports the DB_FLAGS and DB_LIBS before runing Make
but i dont know how to do this in a way that Make.rules dont overwrite my variables
0
Comments
-
Did you try to define the environment variables DB_FLAGS and DB_LIBS and build with gmake -e (-e means environment variables override)?
Bernard0 -
problem solved
thanks bernad the -e option resolve my problem
when i finish the ebuild i submit it to this thread and to gentoo servers0 -
Hello i send a ebuild for Ice c++ to gentoo bugzilla if any one is interesting in it the url is
http://bugs.gentoo.org/show_bug.cgi?id=84646
for more info of how-to install third party ebuilds in gentoo portage read
http://gentoo-wiki.com/HOWTO_Installing_3rd_Party_Ebuilds
I hope this be helpfully0