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

Bug 309335

Summary: dev-libs/apr-util ignores user-set CFLAGS, LDFLAGS, etc.
Product: Gentoo Linux Reporter: Nathan Phillip Brink (binki) (RETIRED) <binki>
Component: [OLD] LibraryAssignee: Apache Team - Bugzilla Reports <apache-bugs>
Status: RESOLVED FIXED    
Severity: normal CC: notordoktor
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 306835    
Attachments: apr-util-1.3.9.ebuild-flags.patch

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
+