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
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Robin Johnson
: 428028 (view as bug list)
Depends on:
Blocks: cflags
  Show dependency tree
Reported: 2010-03-20 21:16 UTC by Steven Newbury
Modified: 2021-03-20 08:52 UTC (History)
2 users (show)

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

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 "" 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/, this isn't the only, and is insufficiemt.  It would be better to replace "src/" with "$(find -name", 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]

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]

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. ***