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!
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!
FS#22437 - [mdadm] PKGBUILD doesn't honour CFLAGS
Attached to Project:
Arch Linux
Opened by Emil Renner Berthing (Esmil) - Saturday, 15 January 2011, 00:33 GMT
Last edited by Tobias Powalowski (tpowa) - Saturday, 26 March 2011, 16:08 GMT
Opened by Emil Renner Berthing (Esmil) - Saturday, 15 January 2011, 00:33 GMT
Last edited by Tobias Powalowski (tpowa) - Saturday, 26 March 2011, 16:08 GMT
|
DetailsDescription:
The Makefile of mdadm 3.1.4 doesn't seem to honour the CFLAGS environment variable. The following small change in the PKGBUILD forces it to do so. This also removes the -ggdb argument the program would otherwise be built with which just adds debugging information. (And as far as I know arch binaries shouldn't normally contain debugging information.) diff --git a/PKGBUILD b/PKGBUILD index 2d05ef9..9e06ae1 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -27,7 +27,7 @@ md5sums=('0e7dcb5cc4192ae3abd9956bac475576' build() { cd $srcdir/$pkgname-$pkgver - make || return 1 + make CXFLAGS="$CFLAGS" || return 1 make INSTALL=/bin/install DESTDIR=$pkgdir install install -D -m644 ../mdadm.conf $pkgdir/etc/mdadm.conf install -D -m755 ../mdadm $pkgdir/etc/rc.d/mdadm Additional info: I looked at version 3.1.4-1 of the PKGBUILD. Steps to reproduce: Build the mdadm package with custom CFLAGS in your /etc/makepkg.conf |
This task depends upon
Closed by Tobias Powalowski (tpowa)
Saturday, 26 March 2011, 16:08 GMT
Reason for closing: Fixed
Additional comments about closing: 3.1.5-1
Saturday, 26 March 2011, 16:08 GMT
Reason for closing: Fixed
Additional comments about closing: 3.1.5-1
Comment by Thomas Dziedzic (tomd123) -
Sunday, 16 January 2011, 04:51 GMT
maybe getting a proper fix to the Makefile upstream would be the proper way to go with this one?