Arch Linux

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#22285 - [procps] PKGBUILD doesn't honour CFLAGS and LDFLAGS

Attached to Project: Arch Linux
Opened by Emil Renner Berthing (Esmil) - Monday, 03 January 2011, 14:04 GMT
Last edited by Eric Belanger (Snowman) - Tuesday, 04 January 2011, 19:40 GMT
Task Type Bug Report
Category Packages: Core
Status Closed
Assigned To Eric Belanger (Snowman)
Architecture All
Severity Very Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:
The Makefile of the procps 3.2.8 package doesn't honour the CFLAGS and LDFLAGS environment variables.
The following small change forces it to do so:

diff --git a/PKGBUILD b/PKGBUILD
index 35e0c48..1498026 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -63,7 +63,7 @@ build() {
patch -p1 < ../procps-3.2.8-threads.patch
patch -p0 < ../procps-3.2.8-linux-ver-init.patch
sed -i "s:\$(lib64):lib:" Makefile
- make
+ make CFLAGS="$CFLAGS" LDFLAGS="$LDFLAGS"
}

package() {


Additional info:
I looked at the 3.2.8-3 version of the PKGBUILD.

Steps to reproduce:
Compile procps with custom CFLAGS or LDFLAGS set in your /etc/makepkg.conf
This task depends upon

Closed by  Eric Belanger (Snowman)
Tuesday, 04 January 2011, 19:40 GMT
Reason for closing:  Fixed
Additional comments about closing:  Fixed in trunk.

Loading...