summaryrefslogtreecommitdiffstats
path: root/pkgs/development/libraries/acl
diff options
context:
space:
mode:
authorYury G. Kudryashov <urkud.urkud@gmail.com>2010-05-03 15:47:58 +0000
committerYury G. Kudryashov <urkud.urkud@gmail.com>2010-05-03 15:47:58 +0000
commitc2c499005728846f123eb9c4263c946633984a34 (patch)
treecba588c6b291e029e38a853aba5f37acc0e8ccfb /pkgs/development/libraries/acl
parent646d7a2eb05f38d81c36aa62146116b9da81b0d9 (diff)
Remove C++-style comment from sys/acl.h
svn path=/nixpkgs/branches/stdenv-updates/; revision=21581
Diffstat (limited to 'pkgs/development/libraries/acl')
-rw-r--r--pkgs/development/libraries/acl/default.nix7
1 files changed, 7 insertions, 0 deletions
diff --git a/pkgs/development/libraries/acl/default.nix b/pkgs/development/libraries/acl/default.nix
index f5d418b37790..d3a3bbd38c53 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";