From 6c0c6d42aaef3f7144fffb1612e5bc056aac5aa9 Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Thu, 13 Aug 2015 23:37:14 -0400 Subject: [PATCH] sys-auth/passwdqc: add a compile test for shadow.h #554504 --- sys-auth/passwdqc/passwdqc-1.3.0.ebuild | 5 +++++ 1 file changed, 5 insertions(+) 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() { -- 2.26.2