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
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
|
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
Wednesday, 19 October 2011, 10:03 GMT
Reason for closing: Fixed
Additional comments about closing: on trunk