void-packages/srcpkgs/kea/patches/fix-musl-ethaddr.patch
Đoàn Trần Công Danh dd9d4a1979 srcpkgs/k*: 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

12 lines
367 B
Diff

--- a/src/lib/dhcp/pkt_filter_lpf.cc 2016-09-27 12:32:02.000000000 +0200
+++ b/src/lib/dhcp/pkt_filter_lpf.cc 2016-12-07 12:14:25.850716385 +0100
@@ -13,7 +13,9 @@
#include <exceptions/exceptions.h>
#include <fcntl.h>
#include <linux/filter.h>
+#if defined(__GLIBC__)
#include <linux/if_ether.h>
+#endif
#include <linux/if_packet.h>
#include <net/ethernet.h>