void-packages/srcpkgs/mozc/patches/cxx-stdlib.patch
Đoàn Trần Công Danh 765e304c4b srcpkgs/m*: 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

29 lines
850 B
Diff

Index: mozc/src/gyp/common.gypi
===================================================================
--- a/mozc/src/gyp/common.gypi
+++ b/mozc/src/gyp/common.gypi
@@ -105,7 +105,7 @@
],
# Libraries for GNU/Linux environment.
'linux_ldflags': [
- '-lc++',
+ '-lstdc++',
'-pthread',
],
@@ -205,7 +205,6 @@
'-Wtype-limits',
],
'cflags_cc': [
- '-stdlib=libc++',
'-Wno-covered-switch-default',
'-Wno-unnamed-type-template-args',
'-Wno-c++11-narrowing',
@@ -225,7 +224,6 @@
'-Wtype-limits',
],
'cflags_cc': [
- '-stdlib=libc++',
'-Wno-covered-switch-default',
'-Wno-unnamed-type-template-args',
'-Wno-c++11-narrowing',