void-packages/srcpkgs/dante/patches/ppc.patch
Đoàn Trần Công Danh b6bcd8cd34 srcpkgs/d*: convert patches to -Np1
* daemontools and dmraid is kept at -Np0

```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

19 lines
657 B
Diff

Source: Debian
Description: Use a flag, not an ioctl value, for HAVE_SENDBUF_IOCTL
The preprocessor throws a hissy fit if we try to check for
the truthiness of an ioctl definition itself, at least on PowerPC.
Author: Peter Pentchev <roam@ringlet.net>
Forwarded: not-yet
Last-Update: 2016-04-11
--- a/libscompat.m4
+++ b/libscompat.m4
@@ -377,7 +377,7 @@
return 0;
}], [AC_MSG_RESULT(yes)
- AC_DEFINE(HAVE_SENDBUF_IOCTL, TIOCOUTQ, [send buffer data])
+ AC_DEFINE(HAVE_SENDBUF_IOCTL, 1, [send buffer data])
AC_DEFINE(SENDBUF_IOCTLVAL, TIOCOUTQ, [send buffer ioctl])],
[AC_MSG_RESULT(no)])],
[dnl assume no when cross-compiling