diff options
Diffstat (limited to 'meta/recipes-extended/iputils/files')
4 files changed, 110 insertions, 0 deletions
diff --git a/meta/recipes-extended/iputils/files/debian/targets.diff b/meta/recipes-extended/iputils/files/debian/targets.diff new file mode 100644 index 0000000000..2cb5576c62 --- /dev/null +++ b/meta/recipes-extended/iputils/files/debian/targets.diff | |||
@@ -0,0 +1,15 @@ | |||
1 | Upstream-Status: Inappropriate [disable feature] | ||
2 | |||
3 | Index: iputils-s20121221/Makefile | ||
4 | =================================================================== | ||
5 | --- iputils-s20121221.orig/Makefile | ||
6 | +++ iputils-s20121221/Makefile | ||
7 | @@ -106,7 +106,7 @@ endif | ||
8 | endif | ||
9 | |||
10 | # ------------------------------------- | ||
11 | -IPV4_TARGETS=tracepath ping clockdiff rdisc arping tftpd rarpd | ||
12 | +IPV4_TARGETS=tracepath ping clockdiff arping | ||
13 | IPV6_TARGETS=tracepath6 traceroute6 ping6 | ||
14 | TARGETS=$(IPV4_TARGETS) $(IPV6_TARGETS) | ||
15 | |||
diff --git a/meta/recipes-extended/iputils/files/debian/use_gethostbyname2.diff b/meta/recipes-extended/iputils/files/debian/use_gethostbyname2.diff new file mode 100644 index 0000000000..d3b18868c0 --- /dev/null +++ b/meta/recipes-extended/iputils/files/debian/use_gethostbyname2.diff | |||
@@ -0,0 +1,31 @@ | |||
1 | Upstream-Status: Pending [from other distro Debian] | ||
2 | |||
3 | Index: iputils-s20121221/tracepath.c | ||
4 | =================================================================== | ||
5 | --- iputils-s20121221.orig/tracepath.c | ||
6 | +++ iputils-s20121221/tracepath.c | ||
7 | @@ -370,9 +370,9 @@ main(int argc, char **argv) | ||
8 | } | ||
9 | #endif | ||
10 | |||
11 | - he = gethostbyname(p); | ||
12 | + he = gethostbyname2(argv[0], AF_INET); | ||
13 | if (he == NULL) { | ||
14 | - herror("gethostbyname"); | ||
15 | + herror("gethostbyname2"); | ||
16 | exit(1); | ||
17 | } | ||
18 | |||
19 | Index: iputils-s20121221/ping.c | ||
20 | =================================================================== | ||
21 | --- iputils-s20121221.orig/ping.c | ||
22 | +++ iputils-s20121221/ping.c | ||
23 | @@ -279,7 +279,7 @@ main(int argc, char **argv) | ||
24 | #else | ||
25 | idn = target; | ||
26 | #endif | ||
27 | - hp = gethostbyname(idn); | ||
28 | + hp = gethostbyname2(idn, AF_INET); | ||
29 | if (!hp) { | ||
30 | fprintf(stderr, "ping: unknown host %s\n", target); | ||
31 | exit(2); | ||
diff --git a/meta/recipes-extended/iputils/files/fix-build-command-line-argument-with-gnutls.patch b/meta/recipes-extended/iputils/files/fix-build-command-line-argument-with-gnutls.patch new file mode 100644 index 0000000000..b9cd82ee88 --- /dev/null +++ b/meta/recipes-extended/iputils/files/fix-build-command-line-argument-with-gnutls.patch | |||
@@ -0,0 +1,37 @@ | |||
1 | Upstream-Status: Backport | ||
2 | |||
3 | From 568e990d30fc7e9416e0a6f8c74ea5013921eaec Mon Sep 17 00:00:00 2001 | ||
4 | From: Arjan van de Ven <arjanvandeven@gmail.com> | ||
5 | Date: Wed, 16 Jan 2013 03:12:15 +0900 | ||
6 | Subject: [PATCH] ping6: Fix build command line argument with gnutls. | ||
7 | |||
8 | The ping6 command can use either openssl or gnutls... | ||
9 | and the Makefile has a bunch of setup for defining which of the two to use. | ||
10 | |||
11 | Unfortunately, the final -D define on the commandline to enable gnutls | ||
12 | inside the ping6.c file didn't actually make it onto the gcc | ||
13 | commandline. | ||
14 | This patch adds the $(DEF_CRYPTO) Makefile variable to fix this gap. | ||
15 | |||
16 | Signed-off-by: Arjan van de Ven <arjanvandeven@gmail.com> | ||
17 | Signed-off-by: YOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org> | ||
18 | --- | ||
19 | Makefile | 2 +- | ||
20 | 1 files changed, 1 insertions(+), 1 deletions(-) | ||
21 | |||
22 | diff --git a/Makefile b/Makefile | ||
23 | index c62d9df..89249f5 100644 | ||
24 | --- a/Makefile | ||
25 | +++ b/Makefile | ||
26 | @@ -149,7 +149,7 @@ LIB_clockdiff = $(LIB_CAP) | ||
27 | DEF_ping_common = $(DEF_CAP) $(DEF_IDN) | ||
28 | DEF_ping = $(DEF_CAP) $(DEF_IDN) $(DEF_WITHOUT_IFADDRS) | ||
29 | LIB_ping = $(LIB_CAP) $(LIB_IDN) | ||
30 | -DEF_ping6 = $(DEF_CAP) $(DEF_IDN) $(DEF_WITHOUT_IFADDRS) $(DEF_ENABLE_PING6_RTHDR) | ||
31 | +DEF_ping6 = $(DEF_CAP) $(DEF_IDN) $(DEF_WITHOUT_IFADDRS) $(DEF_ENABLE_PING6_RTHDR) $(DEF_CRYPTO) | ||
32 | LIB_ping6 = $(LIB_CAP) $(LIB_IDN) $(LIB_RESOLV) $(LIB_CRYPTO) | ||
33 | |||
34 | ping: ping_common.o | ||
35 | -- | ||
36 | 1.7.2.5 | ||
37 | |||
diff --git a/meta/recipes-extended/iputils/files/nsgmls-path-fix.patch b/meta/recipes-extended/iputils/files/nsgmls-path-fix.patch new file mode 100644 index 0000000000..92bf946f2a --- /dev/null +++ b/meta/recipes-extended/iputils/files/nsgmls-path-fix.patch | |||
@@ -0,0 +1,27 @@ | |||
1 | Fix nsgmls path issue | ||
2 | |||
3 | Upstream-Status: Pending | ||
4 | |||
5 | Signed-off-by: Zhai Edwin <edwin.zhai@intel.com> | ||
6 | |||
7 | Index: iputils-s20101006/doc/Makefile | ||
8 | =================================================================== | ||
9 | --- iputils-s20101006.orig/doc/Makefile 2011-09-13 20:42:27.000000000 +0800 | ||
10 | +++ iputils-s20101006/doc/Makefile 2011-09-13 21:01:52.000000000 +0800 | ||
11 | @@ -27,10 +27,15 @@ | ||
12 | # docbook2man produces utterly ugly output and I did not find | ||
13 | # any way to customize this but hacking backend perl script a little. | ||
14 | # Well, hence... | ||
15 | +# nsgmls seems append path to search directory according to the sysid path. | ||
16 | +# e.g. if input ../index.db, it would search $search_directory/../ rather than | ||
17 | +# $search_directory, which leads searching failure. Fixing nsgmls probably | ||
18 | +# introduce some side effects, so use this ugly hack: running nsgmls in current | ||
19 | +# directory, and running docbook2man in tmp directory. | ||
20 | |||
21 | $(MANFILES): index.db | ||
22 | @-mkdir tmp.db2man | ||
23 | - @set -e; cd tmp.db2man; nsgmls ../$< | sgmlspl ../docbook2man-spec.pl ; mv $@ .. | ||
24 | + @set -e; nsgmls $< >tmp.db2man/output; cd tmp.db2man; cat output | sgmlspl ../docbook2man-spec.pl ; mv $@ .. | ||
25 | @-rm -rf tmp.db2man | ||
26 | |||
27 | clean: | ||