From ccd104940c8b03dc48b665985d633b30ccb85cca Mon Sep 17 00:00:00 2001 From: Austin Seipp Date: Tue, 8 Apr 2014 06:22:44 -0500 Subject: [PATCH] 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 --- pkgs/tools/networking/spiped/default.nix | 2 ++ .../networking/spiped/no-dev-stderr.patch | 26 +++++++++++++++++++ 2 files changed, 28 insertions(+) create mode 100644 pkgs/tools/networking/spiped/no-dev-stderr.patch diff --git a/pkgs/tools/networking/spiped/default.nix b/pkgs/tools/networking/spiped/default.nix index 1dd8804fb3d8..7f17c981b93c 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 000000000000..742a2e483d4c --- /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 +Date: Tue, 8 Apr 2014 06:21:41 -0500 +Subject: [PATCH] Remove use of /dev/stderr + +Signed-off-by: Austin Seipp +--- + 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 +