From c2c499005728846f123eb9c4263c946633984a34 Mon Sep 17 00:00:00 2001 From: "Yury G. Kudryashov" Date: Mon, 3 May 2010 15:47:58 +0000 Subject: [PATCH] Remove C++-style comment from sys/acl.h svn path=/nixpkgs/branches/stdenv-updates/; revision=21581 --- pkgs/development/libraries/acl/default.nix | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/pkgs/development/libraries/acl/default.nix b/pkgs/development/libraries/acl/default.nix index f5d418b3779..d3a3bbd38c5 100644 --- a/pkgs/development/libraries/acl/default.nix +++ b/pkgs/development/libraries/acl/default.nix @@ -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";