void-packages/srcpkgs/ORBit2/patches/patch-linc2_src_Makefile.in.diff
Đoàn Trần Công Danh ec4c2d75fa srcpkgs/[A-Z]*: 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

15 lines
545 B
Diff

$NetBSD: patch-linc2_src_Makefile.in,v 1.1 2013/04/19 14:28:54 prlw1 Exp $
Avoid compilation error caused by use of deprecated g_thread API
--- a/linc2/src/Makefile.in 2010-09-28 09:39:39.000000000 +0000
+++ b/linc2/src/Makefile.in
@@ -244,7 +244,7 @@ noinst_LTLIBRARIES = liblinc.la
# -I$(top_srcdir)/include
INCLUDES = -I$(top_builddir)/linc2/include \
-I$(top_srcdir)/linc2/include $(LINC_CFLAGS) $(WARN_CFLAGS) \
- -DG_DISABLE_DEPRECATED $(am__append_1)
+ $(am__append_1)
liblinc_la_SOURCES = \
linc.c \
linc-connection.c \