summary refs log tree commit diff
path: root/pkgs/applications/graphics/xfig/builder.sh
diff options
context:
space:
mode:
authorTuomas Tynkkynen <tuomas.tynkkynen@iki.fi>2015-06-27 18:44:06 +0300
committerTuomas Tynkkynen <tuomas.tynkkynen@iki.fi>2015-06-27 18:44:06 +0300
commit3dafe7a46645ecf5e6a09e7cda0e00b112c26533 (patch)
tree5e82721cc56fcf038cb6d8aa2f46cddb2054fb9c /pkgs/applications/graphics/xfig/builder.sh
parente6ca18e9bfd50cc4340b716cae752742b4f9461d (diff)
downloadnixpkgs-3dafe7a46645ecf5e6a09e7cda0e00b112c26533.tar
nixpkgs-3dafe7a46645ecf5e6a09e7cda0e00b112c26533.tar.gz
nixpkgs-3dafe7a46645ecf5e6a09e7cda0e00b112c26533.tar.bz2
nixpkgs-3dafe7a46645ecf5e6a09e7cda0e00b112c26533.tar.lz
nixpkgs-3dafe7a46645ecf5e6a09e7cda0e00b112c26533.tar.xz
nixpkgs-3dafe7a46645ecf5e6a09e7cda0e00b112c26533.tar.zst
nixpkgs-3dafe7a46645ecf5e6a09e7cda0e00b112c26533.zip
xfig: Fix build failure now visible due to #7524
The first 'find' command in postUnpack that attempts to add +x
permissions fails, because the +x permission is needed by the find
itself, and with the xargs method it's added too late.
Diffstat (limited to 'pkgs/applications/graphics/xfig/builder.sh')
-rw-r--r--pkgs/applications/graphics/xfig/builder.sh3
1 files changed, 1 insertions, 2 deletions
diff --git a/pkgs/applications/graphics/xfig/builder.sh b/pkgs/applications/graphics/xfig/builder.sh
index bb1cd7f49c4..9d95eca0122 100644
--- a/pkgs/applications/graphics/xfig/builder.sh
+++ b/pkgs/applications/graphics/xfig/builder.sh
@@ -5,8 +5,7 @@ makeFlags="XAWLIB=-lXaw3d BINDIR=$out/bin XAPPLOADDIR=$out/etc/X11/app-defaults
 # We need chmod +wx on dirs, not just chmod +w
 dontMakeSourcesWritable=1
 postUnpack() {
-	find . -type d | xargs -n1 chmod +x
-	find . -type d | xargs -n1 chmod +x
+    find . -type d -exec chmod +x '{}' \;
 }
 
 preBuild() {