void-packages/srcpkgs/gupnp-tools/patches/fix-ftbfs.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

30 lines
924 B
Diff

From ecebb21e9d64081ca436aebcdb32ba0960ac8a60 Mon Sep 17 00:00:00 2001
From: Jens Georg <mail@jensge.org>
Date: Thu, 4 Apr 2019 20:28:07 +0200
Subject: [PATCH] build: Properly export common resources
Fixes #3
---
src/common/meson.build | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/src/common/meson.build b/src/common/meson.build
index 68b1ca5..75b82db 100644
--- a/src/common/meson.build
+++ b/src/common/meson.build
@@ -1,7 +1,9 @@
util_resource = gnome.compile_resources('common-resource',
join_paths(resource_data, 'org.gupnp.Tools.Common.gresource.xml'),
+ c_name : 'gupnp_tools_common',
+ export : true,
source_dir : resource_data,
- extra_args : ['--manual-register', '--c-name', 'gupnp_tools_common']
+ extra_args : ['--manual-register']
)
libutil = static_library('util', ['icons.c', 'icons.h', 'pretty-print.c', 'pretty-print.h'] + util_resource,
--
2.18.1