cramfsswap: fix parallel build failure (#142478)

Co-authored-by: Artturi <Artturin@artturin.com>
This commit is contained in:
Sergei Trofimovich
2021-10-21 20:19:09 +03:00
committed by GitHub
co-authored by Artturi
parent 361d86ea26
commit 92b0e34180
2 changed files with 16 additions and 0 deletions
@@ -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 = ''
@@ -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