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

Bug 335405

Summary: Get LDFLAGS from environment in apxs
Product: Gentoo Linux Reporter: Krzysztof Pawlik (RETIRED) <nelchael>
Component: New packagesAssignee: Apache Team - Bugzilla Reports <apache-bugs>
Status: RESOLVED FIXED    
Severity: normal CC: esigra, flameeyes
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 331805, 331885, 332239    
Attachments: httpd-2.2.16-apxs-ldflags.patch

Description Krzysztof Pawlik (RETIRED) gentoo-dev 2010-08-31 13:32:27 UTC
A lot of Apache modules will ignore LDFLAGS during src_compile - this can be solved in two ways: patch the apache-module.eclass or patch apxs itself.

So far there are three bugs about such modules, more are known to fail (mod_caucho for example) but no bugs exist for them yet.

I'm attaching a small patch against apxs that makes it aware of LDFLAGS environment variable which solves the above issue for all modules at once. It also has the added benefit of working properly for ebuilds not using apache-module.eclass or direct builds by users.

The point of this bug is to get a short discussion going on and get the patch in next patches tarball release (2.2.16-r1?).
Benedikt: what's your opinion on this?
Comment 1 Krzysztof Pawlik (RETIRED) gentoo-dev 2010-08-31 13:32:56 UTC
Created attachment 245480 [details, diff]
httpd-2.2.16-apxs-ldflags.patch
Comment 2 Krzysztof Pawlik (RETIRED) gentoo-dev 2010-09-01 08:10:51 UTC
After discussing this with Benedikt I've committed this patch as 10_all_apxs_ldflags.patch to Apache patches repository. This will be released when new patches tarball will be created and Apache bumped to use it.
Comment 3 Krzysztof Pawlik (RETIRED) gentoo-dev 2011-02-25 20:15:04 UTC
This patch is in 2.2.17.