From: Mike Frysinger Date: Fri, 14 Aug 2015 03:37:14 +0000 (-0400) Subject: sys-auth/passwdqc: add a compile test for shadow.h #554504 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=6c0c6d42aaef3f7144fffb1612e5bc056aac5aa9;p=gentoo.git sys-auth/passwdqc: add a compile test for shadow.h #554504 --- diff --git a/sys-auth/passwdqc/passwdqc-1.3.0.ebuild b/sys-auth/passwdqc/passwdqc-1.3.0.ebuild index c7c1daee1bca..6dc27030a781 100644 --- a/sys-auth/passwdqc/passwdqc-1.3.0.ebuild +++ b/sys-auth/passwdqc/passwdqc-1.3.0.ebuild @@ -27,6 +27,11 @@ src_prepare() { sed -i \ -e 's:`uname -s`:Linux:' \ Makefile || die + # See if the system has a shadow.h. #554504 + echo '#include ' > "${T}"/test.c + if ! $(tc-getCPP) ${CPPFLAGS} "${T}"/test.c >& /dev/null ; then + sed -i -e 's:-DHAVE_SHADOW::' Makefile || die + fi } _emake() {