Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 309335 - dev-libs/apr-util ignores user-set CFLAGS, LDFLAGS, etc.
Summary: dev-libs/apr-util ignores user-set CFLAGS, LDFLAGS, etc.
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Apache Team - Bugzilla Reports
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: portage-multilib
  Show dependency tree
 
Reported: 2010-03-14 03:29 UTC by Nathan Phillip Brink (binki) (RETIRED)
Modified: 2010-08-06 15:20 UTC (History)
1 user (show)

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


Attachments
apr-util-1.3.9.ebuild-flags.patch (apr-util-1.3.9.ebuild-flags.patch,646 bytes, text/plain)
2010-03-14 03:32 UTC, Nathan Phillip Brink (binki) (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Nathan Phillip Brink (binki) (RETIRED) gentoo-dev 2010-03-14 03:29:55 UTC
apr-util's ./configure script copies /usr/share/build-1/apr_rules.mk (from dev-libs/apr) to build/rules.mk and its Makefiles include the local copy of rules.mk. This rules.mk file sets the Makfile variables CFLAGS, LDFLAGS, and CPPFLAGS. This means that the environment variables will not be considered by make, so these variables need to be passed to emake.

See to-be-attached patch for the fix.

Fixing this QA violation (I'm pretty sure this is the case) benefits portage-multilib users. :-)
Comment 1 Nathan Phillip Brink (binki) (RETIRED) gentoo-dev 2010-03-14 03:32:24 UTC
Created attachment 223481 [details]
apr-util-1.3.9.ebuild-flags.patch

Forces compilation process to respect the CFLAGS, LDFLAGS, and CPPFLAGS variable which build/rules.mk otherwise overrides. (build/rules.mk uses values the user had set at the installation time of dev-libs/apr).
Comment 2 Markos Chandras (RETIRED) gentoo-dev 2010-08-06 13:28:26 UTC
+*apr-util-1.3.9-r1 (06 Aug 2010)
+
+  06 Aug 2010; Markos Chandras <hwoarang@gentoo.org>
+  +apr-util-1.3.9-r1.ebuild:
+  Respect {C,CXX,LD}FLAGS. Bug #309335. Thanks to Nathan Phillip Brink
+  <ohnobinki@ohnopublishing.net> for the patch
+