Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 310437

Summary: dev-db/libdbi and dev-db/libdbi-drivers fail to respect env CFLAGS
Product: Gentoo Linux Reporter: Steven Newbury <steve>
Component: Current packagesAssignee: Robin Johnson <robbat2>
Status: CONFIRMED ---    
Severity: normal CC: flameeyes, jstein
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 59506    
Attachments: libdbi-0.8.3.ebuild-multilib.patch
libdbi-drivers-0.8.3-r2.ebuild-multilib.patch

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
Comment 4 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2021-03-20 08:52:38 UTC
*** Bug 428028 has been marked as a duplicate of this bug. ***