currently CONF_LIBDIR support works without problem if prefix is /usr and only if prefix is /usr, and expects anything else to be handled in the ebuild. this patch attempts to fix this, allowing econf and einstall to handle prefixes more intelligently.
Created attachment 37810 [details, diff] adds CONF_LIBDIR_PREFIX support to ebuild.sh
Created attachment 37829 [details, diff] Patch to change the default libsuffix in econf() via --enable-libsuffix This is a new solution to solve the /lib64 issue without hacking --prefix and --libdir.
i have yet to get --enable-libsuffix to work. ayanami gtk+-1.2.10 # fgrep libsuffix * ayanami gtk+-1.2.10 # ayanami gtk+-2.4.7 # fgrep libsuffix * ayanami gtk+-2.4.7 # ayanami readline-5.0 # fgrep libsuffix * ayanami readline-5.0 # ayanami ncurses-5.4 # fgrep libsuffix * ayanami ncurses-5.4 #
./configure --prefix=/usr --host=x86_64-pc-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --enable-libsuffix 64 --with-curses configure: WARNING: you should use --build, --host, --target checking build system type... Invalid configuration `64': machine `64' not recognized configure: error: /bin/sh ./support/config.sub 64 failed. fixing the patch so that it does --enable-libdir=64 gives me a configure line of: ./configure --prefix=/usr --host=x86_64-pc-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --enable-libsuffix=64 --with-curses and it seems to -almost- work: ayanami readline # ls /var/tmp/portage/readline-4.3-r4/image/ lib usr ayanami readline # ls /var/tmp/portage/readline-4.3-r4/image/usr/ include lib lib64 share ayanami readline # ls /var/tmp/portage/readline-4.3-r4/image/usr/lib64/ libhistory.so libreadline.so ayanami readline # ls /var/tmp/portage/readline-4.3-r4/image/usr/lib/ libhistory.a libreadline.a :|
ferringb re-did my patch to make it less sinfully ugly and the result is in CVS. yay
Forget my patch. It's crap :-/ Most of the configure's don't listen to -enable-libsuffix.
Down the line I'd actually like to use the suffix syntax; I just don't think most packages support it currently :/
this bug is really fixed, and the code has been in a released portage for a bit.