void-packages/srcpkgs/mame/patches/pagesize-name-clash.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

10 lines
351 B
Diff

--- a/src/lib/netlist/plib/palloc.h 2020-06-26 07:55:07.000000000 +0200
+++ b/src/lib/netlist/plib/palloc.h 2020-06-27 17:37:11.920172697 +0200
@@ -16,6 +16,7 @@
#include <algorithm>
#include <cstddef> // for std::max_align_t (usually long long)
+#undef PAGESIZE // for PAGESIZE
#include <memory>
#include <type_traits>
#include <utility>