about summary refs log tree commit diff
path: root/pkgs/tools
diff options
context:
space:
mode:
authorAustin Seipp <aseipp@pobox.com>2014-04-08 06:22:44 -0500
committerAustin Seipp <aseipp@pobox.com>2014-04-08 06:23:36 -0500
commitccd104940c8b03dc48b665985d633b30ccb85cca (patch)
tree2122de13168ed708fa355226101e491df5726ba3 /pkgs/tools
parentd9c8db4a20a86d66ab35f5a7f1a11db54973173b (diff)
spiped: add patch to fix linux build
The build fails with permission denied on /dev/stderr, which I imagine
is due to the fact it's in a chroot build. So disable all that for now.

Signed-off-by: Austin Seipp <aseipp@pobox.com>
Diffstat (limited to 'pkgs/tools')
-rw-r--r--pkgs/tools/networking/spiped/default.nix2
-rw-r--r--pkgs/tools/networking/spiped/no-dev-stderr.patch26
2 files changed, 28 insertions, 0 deletions
diff --git a/pkgs/tools/networking/spiped/default.nix b/pkgs/tools/networking/spiped/default.nix
index 1dd8804fb3d89..7f17c981b93c0 100644
--- a/pkgs/tools/networking/spiped/default.nix
+++ b/pkgs/tools/networking/spiped/default.nix
@@ -10,6 +10,8 @@ stdenv.mkDerivation rec {
   };
 
   buildInputs = [ openssl ];
+  patches = [ ./no-dev-stderr.patch ];
+
   installPhase = ''
     mkdir -p $out/bin $out/share/man/man1
     make install BINDIR=$out/bin MAN1DIR=$out/share/man/man1
diff --git a/pkgs/tools/networking/spiped/no-dev-stderr.patch b/pkgs/tools/networking/spiped/no-dev-stderr.patch
new file mode 100644
index 0000000000000..742a2e483d4c2
--- /dev/null
+++ b/pkgs/tools/networking/spiped/no-dev-stderr.patch
@@ -0,0 +1,26 @@
+From 7a2bbb0d0098d7a33ad3794d0199879ad50e755a Mon Sep 17 00:00:00 2001
+From: Austin Seipp <aseipp@pobox.com>
+Date: Tue, 8 Apr 2014 06:21:41 -0500
+Subject: [PATCH] Remove use of /dev/stderr
+
+Signed-off-by: Austin Seipp <aseipp@pobox.com>
+---
+ POSIX/posix-l.sh | 2 --
+ 1 file changed, 2 deletions(-)
+
+diff --git a/POSIX/posix-l.sh b/POSIX/posix-l.sh
+index b3f0e31..71d6fe8 100755
+--- a/POSIX/posix-l.sh
++++ b/POSIX/posix-l.sh
+@@ -7,8 +7,6 @@ for LIB in rt xnet; do
+ 		fi
+ 		printf "%s" "-l${LIB}";
+ 		FIRST=NO;
+-	else
+-		echo "WARNING: POSIX violation: make's CC doesn't understand -l${LIB}" >/dev/stderr
+ 	fi
+ 	rm -f a.out
+ done
+-- 
+1.8.3.2
+