void-packages/srcpkgs/hexchat/patches/perl-link.patch
Đoàn Trần Công Danh 200bed5c06 srcpkgs/h*: 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

20 lines
628 B
Diff

--- a/plugins/perl/meson.build 2018-08-15 13:30:17.108881970 +0200
+++ b/plugins/perl/meson.build 2018-08-15 13:30:36.682882751 +0200
@@ -39,7 +39,7 @@
perl_ldflags = []
perl_rpath = ''
foreach flag : ret.stdout().strip().split(' ')
- if flag.startswith('-L') or flag.startswith('-l')
+ if flag.startswith('-l')
perl_ldflags += flag
endif
if flag.startswith('-Wl,-rpath,')
@@ -52,6 +52,8 @@
endif
endforeach
+perl_ldflags += '-L${XBPS_CROSS_BASE}/usr/lib/perl5/core_perl/CORE'
+
perl_cflags += [
# Perl has its own 'config.h' that we must override
# TODO: Just rename ours to something more unique.