void-packages/srcpkgs/afterstep/patches/39-Fix-parallel-builds.patch
Đoàn Trần Công Danh ae69000001 srcpkgs/a*: convert patches to -Np1
* arduino and antiword is kept at -Np0

```sh

git grep -l '^patch_args=-Np0' "srcpkgs/$1*/template" |
while read template; do
	for p in ${template%/template}/patches/*; do
		sed -i '
			\,^[+-][+-][+-] /dev/null,b
			/^[*-]\+ [0-9]\+\(,[0-9]\+\)\? [*-]\+$/b
			s,^[*][*][*] ,&a/,
			/^--- /{
				s,\(^--- \)\(./\)*,\1a/,
				s,[.][Oo][Rr][Ii][Gg]\([	/]\),\1,
				s/[.][Oo][Rr][Ii][Gg]$//
				s/[.]patched[.]\([^.]\)/.\1/
				h
			}
			/^+++ -/{
				g
				s/^--- a/+++ b/
				b
			}
			s,\(^+++ \)\(./\)*,\1b/,
		' "$p"
	done
	sed -i '/^patch_args=/d' $template
done
```
2021-06-20 13:17:29 +07:00

29 lines
1.1 KiB
Diff

From: Robert Luberda <robert@debian.org>
Date: Wed, 18 Sep 2013 22:34:26 +0200
Subject: 39 Fix parallel builds
Add dependency on libAfterConf to PrintDesktopEntries in order to fix
parallel builds failures occurring on our build hosts:
gcc: error: ../libAfterConf/libAfterConf.a: No such file or directory
make[3]: *** [PrintDesktopEntries] Error 1
https://buildd.debian.org/status/fetch.php?pkg=afterstep&arch=amd64&ver=2.2.12-1&stamp=1379355085
---
libAfterConf/Makefile.in | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libAfterConf/Makefile.in b/libAfterConf/Makefile.in
index fa049a3..686a958 100644
--- a/libAfterConf/Makefile.in
+++ b/libAfterConf/Makefile.in
@@ -52,7 +52,7 @@ make_standard_categories: make_standard_categories.o
PrintDesktopEntries.o: DesktopEntry.c
$(CC) $(CCFLAGS) $(EXTRA_DEFINES) -DPRINT_DESKTOP_ENTRIES $(INCLUDES) $(EXTRA_INCLUDES) -c DesktopEntry.c -o PrintDesktopEntries.o
-PrintDesktopEntries: PrintDesktopEntries.o
+PrintDesktopEntries: PrintDesktopEntries.o $(LIB_STATIC) @LIBPROG@
$(CC) PrintDesktopEntries.o $(USER_LD_FLAGS) $(LIBS_ALL) $(LIBS_AFTERIMAGE) -o PrintDesktopEntries
install.inc: