Remove C++-style comment from sys/acl.h

svn path=/nixpkgs/branches/stdenv-updates/; revision=21581
This commit is contained in:
Yury G. Kudryashov 2010-05-03 15:47:58 +00:00
parent 646d7a2eb0
commit c2c4990057

View File

@ -11,6 +11,13 @@ stdenv.mkDerivation rec {
buildNativeInputs = [gettext];
buildInputs = [attr libtool];
# Upstream use C++-style comments in C code. Remove them.
# This comment breaks compilation if too strict gcc flags are used.
patchPhase = ''
echo "Removing C++-style comments from include/acl.h"
sed -e '/^\/\//d' -i include/acl.h
'';
configureFlags = "MAKE=make LIBTOOL=libtool MSGFMT=msgfmt MSGMERGE=msgmerge XGETTEXT=xgettext ZIP=gzip ECHO=echo SED=sed AWK=gawk";
installTargets = "install install-lib install-dev";