void-packages/srcpkgs/liba52/patches/disable-globals-test.patch
Đoàn Trần Công Danh 861ac185a6 srcpkgs/l*: convert patches to -Np1
```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

17 lines
598 B
Diff

Description: Disable globals test
The tests makes sense during development to check for erroneously added global
symbols, but on a packing level we will catch the using symbols file. So we
disable the test. Especially since the test is not able to handle -fPIE as
default.
Author: Sebastian Ramacher <sramacher@debian.org>
Forwarded: not-needed
Last-Update: 2017-02-04
--- a/test/Makefile.am
+++ b/test/Makefile.am
@@ -3,4 +3,4 @@ compare_SOURCES = compare.c
compare_LDADD = -lm
EXTRA_DIST = regression tests compile globals
-TESTS = regression compile globals
+TESTS = regression compile