cramfsswap: fix parallel build failure (#142478)

Co-authored-by: Artturi <Artturin@artturin.com>
conduit-nginx
Sergei Trofimovich 2021-10-21 17:19:09 +00:00 committed by GitHub
parent 361d86ea26
commit 92b0e34180
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 16 additions and 0 deletions

View File

@ -8,6 +8,8 @@ stdenv.mkDerivation rec {
url = "mirror://debian/pool/main/c/cramfsswap/${pname}_${version}.tar.xz";
sha256 = "10mj45zx71inaa3l1d81g64f7yn1xcprvq4v4yzpdwbxqmqaikw1";
};
# https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=996964
patches = [ ./parallel-make.patch ];
# Needed for cross-compilation
postPatch = ''

View File

@ -0,0 +1,14 @@
Fix parallel build failure bya dding the dependency.
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=996964
--- a/Makefile
+++ b/Makefile
@@ -6,7 +6,7 @@ debian: cramfsswap
cramfsswap: cramfsswap.c
$(CC) -Wall -g -O $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) -o cramfsswap cramfsswap.c -lz
-strip:
+strip: cramfsswap
strip cramfsswap
install: cramfsswap