Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 310437 - dev-db/libdbi and dev-db/libdbi-drivers fail to respect env CFLAGS
Summary: dev-db/libdbi and dev-db/libdbi-drivers fail to respect env CFLAGS
Status: CONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Robin Johnson
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-03-20 21:16 UTC by Steven Newbury
Modified: 2011-08-12 16:40 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
libdbi-0.8.3.ebuild-multilib.patch (libdbi-0.8.3.ebuild-multilib.patch,445 bytes, patch)
2011-08-12 16:38 UTC, Mario Fetka (geos_one)
Details | Diff
libdbi-drivers-0.8.3-r2.ebuild-multilib.patch (libdbi-drivers-0.8.3-r2.ebuild-multilib.patch,474 bytes, patch)
2011-08-12 16:40 UTC, Mario Fetka (geos_one)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Steven Newbury 2010-03-20 21:16:17 UTC
While performing a portage-multilib emerge of these packages linking fails during the x86 stage due to the object files being compiled without the -m32 flag.  This stems from the fact the "Makefile.in" files set CFLAGS with configure derived values instead of appending to those already set in the environment.


Reproducible: Always

Steps to Reproduce:
emerge dev-db/libdbi

Actual Results:  
Environment CFLAGS are ignored.

Expected Results:  
Environment CFLAGS should be respected.


The existing dev-db/libdbi ebuilds attempt to fix this, but only by modifying src/Makefile.in, this isn't the only Makefile.in, and is insufficiemt.  It would be better to replace "src/Makefile.in" with "$(find -name Makefile.in)", with this change the issue is resolved.

dev-db/libdbi-drivers doesn't have this code in the ebuild, but it is also required.
Comment 1 Maciej Mrozowski gentoo-dev 2010-03-23 22:48:57 UTC
Please update description with package versions that are affected by this bug.
Also, as usual, please add output of emerge --info.
Comment 2 Mario Fetka (geos_one) 2011-08-12 16:38:14 UTC
Created attachment 283057 [details, diff]
libdbi-0.8.3.ebuild-multilib.patch

the patch that also correct the compile with portage multilib
Comment 3 Mario Fetka (geos_one) 2011-08-12 16:40:43 UTC
Created attachment 283059 [details, diff]
libdbi-drivers-0.8.3-r2.ebuild-multilib.patch

the patch that makes the drivers compile with portage multilib