void-packages/srcpkgs/rtorrent/patches/no_xmlrpc_c_compile.patch
Đoàn Trần Công Danh 103ab731ab srcpkgs/r*: convert patches to -Np1
* runit 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

23 lines
721 B
Diff

--- a/scripts/checks.m4 2015-07-02 00:32:45.000000000 +0200
+++ b/scripts/checks.m4 2015-07-14 15:39:07.334398349 +0200
@@ -463,19 +463,9 @@
fi
if eval $xmlrpc_cc_prg --version 2>/dev/null >/dev/null; then
+ AC_MSG_RESULT(ok)
CXXFLAGS="$CXXFLAGS `$xmlrpc_cc_prg --cflags server-util`"
LIBS="$LIBS `$xmlrpc_cc_prg server-util --libs`"
-
- AC_TRY_LINK(
- [ #include <xmlrpc-c/server.h>
- ],[ xmlrpc_registry_new(NULL); ],
- [
- AC_MSG_RESULT(ok)
- ], [
- AC_MSG_RESULT(failed)
- AC_MSG_ERROR(Could not compile XMLRPC-C test.)
- ])
-
AC_DEFINE(HAVE_XMLRPC_C, 1, Support for XMLRPC-C.)
else