void-packages/srcpkgs/gamin/patches/gamin-manape.patch
Đoàn Trần Công Danh 7fc9190f0e srcpkgs/g*: convert patches to -Np1
* gcc is kept at -Np0, because of void-cross

```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

16 lines
543 B
Diff

Don't try to build with -DG_DISABLE_DEPRECATED - glib has moved on
source: https://src.fedoraproject.org/cgit/rpms/gamin.git/plain/gamin-manape.patch
--- a/server/Makefile.am.manape 2008-11-12 15:45:28.000000000 -0500
+++ b/server/Makefile.am 2011-07-20 21:06:37.465307638 -0400
@@ -6,8 +6,7 @@ INCLUDES = \
-I$(top_srcdir)/lib \
-I$(top_srcdir)/libgamin \
$(DAEMON_CFLAGS) \
- -DBINDIR=\""$(libexecdir)"\" \
- -DG_DISABLE_DEPRECATED
+ -DBINDIR=\""$(libexecdir)"\"
if GAMIN_DEBUG
INCLUDES += -DGAM_DEBUG_ENABLED