FS#22439 - [psutils] PKGBUILD doesn't honour CFLAGS and LDFLAGS

Attached to Project: Arch Linux
Opened by Emil Renner Berthing (Esmil) - Saturday, 15 January 2011, 00:47 GMT
Last edited by Andrea Scarpino (BaSh) - Wednesday, 19 October 2011, 10:03 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Ronald van Haren (pressh)
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.unix of psutils-1.17 doesn't seem to use the CFLAGS and LDFLAGS environment variables.
The following change forces it to do so:

diff --git a/PKGBUILD b/PKGBUILD
index bdf7fd4..ab29412 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -23,6 +23,8 @@ build() {
install -d -m755 "${pkgdir}/usr/include"
install -d -m755 "${pkgdir}/usr/share/man"
make -j1 -f Makefile.unix BINDIR="${pkgdir}/usr/bin" \
+ CFLAGS="$CFLAGS -DPAPER=\\\"letter\\\" -DUNIX -Wall" \
+ CCFLAGS="$LDFLAGS" \
INCLUDEDIR="${pkgdir}/usr/include/psutils" PERL=/usr/bin/perl \
MANDIR="${pkgdir}/usr/share/man/man1" || return 1
make -j1 -f Makefile.unix BINDIR="${pkgdir}/usr/bin" \


Additional info:
I looked at version 1.17-2 of the PKGBUILD.

Steps to reproduce:
Build the psutils package with custom CFLAGS or LDFLAGS set in your /etc/makepkg.conf
This task depends upon

Closed by  Andrea Scarpino (BaSh)
Wednesday, 19 October 2011, 10:03 GMT
Reason for closing:  Fixed
Additional comments about closing:  on trunk

Loading...