* daemontools and dmraid 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
```
18 lines
553 B
Diff
18 lines
553 B
Diff
Description: fix lintian autotools-pkg-config-macro-not-cross-compilation-safe
|
|
Author: Roberto Lumbreras <rover@debian.org>
|
|
|
|
Index: dmtx-utils-0.7.6/configure.ac
|
|
===================================================================
|
|
--- a/configure.ac 2018-08-08 19:49:08.880725473 +0200
|
|
+++ b/configure.ac 2018-08-08 19:49:08.872725433 +0200
|
|
@@ -6,7 +6,7 @@
|
|
AC_CONFIG_HEADERS([config.h])
|
|
AC_CONFIG_FILES([Makefile])
|
|
|
|
-AC_PATH_PROG([PKG_CONFIG], [pkg-config], [no])
|
|
+PKG_PROG_PKG_CONFIG([PKG_CONFIG], [pkg-config], [no])
|
|
|
|
AC_PROG_CC
|
|
AC_PROG_LIBTOOL
|
|
|