summaryrefslogtreecommitdiffstats
path: root/meta
diff options
context:
space:
mode:
authorRadu Moisan <radu.moisan@intel.com>2013-07-10 12:24:11 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2013-07-13 18:23:32 +0100
commit5f863410d79aad9e9e368294ff37288bf36f4403 (patch)
treeb3ada5765e55de9a8bec66a5acf74322fdf786fa /meta
parentdb9775f57a6634bfc0da5fedfde1b2df1768c8fa (diff)
downloadpoky-5f863410d79aad9e9e368294ff37288bf36f4403.tar.gz
iputils: Upgrade to v20121221
Removed obsolete patches Header for arping changed. New author added. Capability support enabled by default(upstream) -> added libcap to DEPENDS Gnutls enabled by default(upstream) -> switched from openssl to gnutls (From OE-Core rev: 52ca4ac9f3af16fe99b28eaeaff8bb52f86eb24c) Signed-off-by: Radu Moisan <radu.moisan@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-rw-r--r--meta/recipes-extended/iputils/files/debian/add-icmp-return-codes.diff43
-rw-r--r--meta/recipes-extended/iputils/files/debian/fix-arping-timeouts.diff26
-rw-r--r--meta/recipes-extended/iputils/files/debian/fix-dead-host-ping-stats.diff16
-rw-r--r--meta/recipes-extended/iputils/files/debian/targets.diff14
-rw-r--r--meta/recipes-extended/iputils/files/debian/use_gethostbyname2.diff36
-rw-r--r--meta/recipes-extended/iputils/files/fix-build-command-line-argument-with-gnutls.patch37
-rw-r--r--meta/recipes-extended/iputils/iputils_s20121221.bb (renamed from meta/recipes-extended/iputils/iputils_s20101006.bb)15
7 files changed, 68 insertions, 119 deletions
diff --git a/meta/recipes-extended/iputils/files/debian/add-icmp-return-codes.diff b/meta/recipes-extended/iputils/files/debian/add-icmp-return-codes.diff
deleted file mode 100644
index 40070c346d..0000000000
--- a/meta/recipes-extended/iputils/files/debian/add-icmp-return-codes.diff
+++ /dev/null
@@ -1,43 +0,0 @@
1Upstream-Status: Pending [from other distro Debian]
2
3Index: trunk/ping.c
4===================================================================
5--- trunk.orig/ping.c 2010-05-07 23:13:54.000000000 -0700
6+++ trunk/ping.c 2010-05-07 23:23:22.000000000 -0700
7@@ -883,9 +883,36 @@
8 case ICMP_SR_FAILED:
9 printf("Source Route Failed\n");
10 break;
11+ case ICMP_NET_UNKNOWN:
12+ printf("Destination Net Unknown\n");
13+ break;
14+ case ICMP_HOST_UNKNOWN:
15+ printf("Destination Host Unknown\n");
16+ break;
17+ case ICMP_HOST_ISOLATED:
18+ printf("Source Host Isolated\n");
19+ break;
20+ case ICMP_NET_ANO:
21+ printf("Destination Net Prohibited\n");
22+ break;
23+ case ICMP_HOST_ANO:
24+ printf("Destination Host Prohibited\n");
25+ break;
26+ case ICMP_NET_UNR_TOS:
27+ printf("Destination Net Unreachable for Type of Service\n");
28+ break;
29+ case ICMP_HOST_UNR_TOS:
30+ printf("Destination Host Unreachable for Type of Service\n");
31+ break;
32 case ICMP_PKT_FILTERED:
33 printf("Packet filtered\n");
34 break;
35+ case ICMP_PREC_VIOLATION:
36+ printf("Precedence Violation\n");
37+ break;
38+ case ICMP_PREC_CUTOFF:
39+ printf("Precedence Cutoff\n");
40+ break;
41 default:
42 printf("Dest Unreachable, Bad Code: %d\n", code);
43 break;
diff --git a/meta/recipes-extended/iputils/files/debian/fix-arping-timeouts.diff b/meta/recipes-extended/iputils/files/debian/fix-arping-timeouts.diff
deleted file mode 100644
index 3e34788a5a..0000000000
--- a/meta/recipes-extended/iputils/files/debian/fix-arping-timeouts.diff
+++ /dev/null
@@ -1,26 +0,0 @@
1Upstream-Status: Pending [from other distro Debian]
2
3Index: trunk/arping.c
4===================================================================
5--- trunk.orig/arping.c 2010-05-07 23:13:52.000000000 -0700
6+++ trunk/arping.c 2010-05-07 23:41:16.000000000 -0700
7@@ -182,12 +182,17 @@
8 if (start.tv_sec==0)
9 start = tv;
10
11- if (count-- == 0 || (timeout && MS_TDIFF(tv,start) > timeout*1000 + 500))
12+ if (timeout && MS_TDIFF(tv,start) > timeout*1000 + 500)
13 finish();
14
15- if (last.tv_sec==0 || MS_TDIFF(tv,last) > 500) {
16+ if ((!timeout) && (count == 0))
17+ finish();
18+
19+ if ( count!=0 && (last.tv_sec==0 || MS_TDIFF(tv,last) > 500 ) ) {
20 send_pack(s, src, dst,
21 (struct sockaddr_ll *)&me, (struct sockaddr_ll *)&he);
22+ if (count >= 0)
23+ count--;
24 if (count == 0 && unsolicited)
25 finish();
26 }
diff --git a/meta/recipes-extended/iputils/files/debian/fix-dead-host-ping-stats.diff b/meta/recipes-extended/iputils/files/debian/fix-dead-host-ping-stats.diff
deleted file mode 100644
index fda42bf028..0000000000
--- a/meta/recipes-extended/iputils/files/debian/fix-dead-host-ping-stats.diff
+++ /dev/null
@@ -1,16 +0,0 @@
1Upstream-Status: Pending [from other distro Debian]
2
3Index: trunk/ping_common.c
4===================================================================
5--- trunk.orig/ping_common.c 2010-05-07 23:13:51.000000000 -0700
6+++ trunk/ping_common.c 2010-05-07 23:22:33.000000000 -0700
7@@ -872,7 +872,8 @@
8 printf("%spipe %d", comma, pipesize);
9 comma = ", ";
10 }
11- if (ntransmitted > 1 && (!interval || (options&(F_FLOOD|F_ADAPTIVE)))) {
12+ if (ntransmitted > 1 && nreceived &&
13+ (!interval || (options&(F_FLOOD|F_ADAPTIVE)))) {
14 int ipg = (1000000*(long long)tv.tv_sec+tv.tv_usec)/(ntransmitted-1);
15 printf("%sipg/ewma %d.%03d/%d.%03d ms",
16 comma, ipg/1000, ipg%1000, rtt/8000, (rtt/8)%1000);
diff --git a/meta/recipes-extended/iputils/files/debian/targets.diff b/meta/recipes-extended/iputils/files/debian/targets.diff
index 6b899cb39e..2cb5576c62 100644
--- a/meta/recipes-extended/iputils/files/debian/targets.diff
+++ b/meta/recipes-extended/iputils/files/debian/targets.diff
@@ -1,15 +1,15 @@
1Upstream-Status: Inappropriate [disable feature] 1Upstream-Status: Inappropriate [disable feature]
2 2
3Index: trunk/Makefile 3Index: iputils-s20121221/Makefile
4=================================================================== 4===================================================================
5--- trunk.orig/Makefile 2010-05-07 23:43:00.000000000 -0700 5--- iputils-s20121221.orig/Makefile
6+++ trunk/Makefile 2010-05-07 23:47:10.000000000 -0700 6+++ iputils-s20121221/Makefile
7@@ -16,7 +16,7 @@ 7@@ -106,7 +106,7 @@ endif
8 CCOPT=-D_GNU_SOURCE -O2 -Wstrict-prototypes -Wall -g 8 endif
9 CFLAGS=$(CCOPT) $(GLIBCFIX) $(DEFINES)
10 9
10 # -------------------------------------
11-IPV4_TARGETS=tracepath ping clockdiff rdisc arping tftpd rarpd 11-IPV4_TARGETS=tracepath ping clockdiff rdisc arping tftpd rarpd
12+IPV4_TARGETS=tracepath ping arping clockdiff 12+IPV4_TARGETS=tracepath ping clockdiff arping
13 IPV6_TARGETS=tracepath6 traceroute6 ping6 13 IPV6_TARGETS=tracepath6 traceroute6 ping6
14 TARGETS=$(IPV4_TARGETS) $(IPV6_TARGETS) 14 TARGETS=$(IPV4_TARGETS) $(IPV6_TARGETS)
15 15
diff --git a/meta/recipes-extended/iputils/files/debian/use_gethostbyname2.diff b/meta/recipes-extended/iputils/files/debian/use_gethostbyname2.diff
index 1d01e151eb..d3b18868c0 100644
--- a/meta/recipes-extended/iputils/files/debian/use_gethostbyname2.diff
+++ b/meta/recipes-extended/iputils/files/debian/use_gethostbyname2.diff
@@ -1,31 +1,31 @@
1Upstream-Status: Pending [from other distro Debian] 1Upstream-Status: Pending [from other distro Debian]
2 2
3Index: trunk/tracepath.c 3Index: iputils-s20121221/tracepath.c
4=================================================================== 4===================================================================
5--- trunk.orig/tracepath.c 2010-05-07 23:13:52.000000000 -0700 5--- iputils-s20121221.orig/tracepath.c
6+++ trunk/tracepath.c 2010-05-07 23:24:09.000000000 -0700 6+++ iputils-s20121221/tracepath.c
7@@ -338,9 +338,9 @@ 7@@ -370,9 +370,9 @@ main(int argc, char **argv)
8 base_port = atoi(p+1); 8 }
9 } else 9 #endif
10 base_port = 44444; 10
11- he = gethostbyname(argv[0]); 11- he = gethostbyname(p);
12+ he = gethostbyname2(argv[0], AF_INET); 12+ he = gethostbyname2(argv[0], AF_INET);
13 if (he == NULL) { 13 if (he == NULL) {
14- herror("gethostbyname"); 14- herror("gethostbyname");
15+ herror("gethostbyname2"); 15+ herror("gethostbyname2");
16 exit(1); 16 exit(1);
17 } 17 }
18 memcpy(&target.sin_addr, he->h_addr, 4); 18
19Index: trunk/ping.c 19Index: iputils-s20121221/ping.c
20=================================================================== 20===================================================================
21--- trunk.orig/ping.c 2010-05-07 23:23:22.000000000 -0700 21--- iputils-s20121221.orig/ping.c
22+++ trunk/ping.c 2010-05-07 23:24:09.000000000 -0700 22+++ iputils-s20121221/ping.c
23@@ -250,7 +250,7 @@ 23@@ -279,7 +279,7 @@ main(int argc, char **argv)
24 if (argc == 1) 24 #else
25 options |= F_NUMERIC; 25 idn = target;
26 } else { 26 #endif
27- hp = gethostbyname(target); 27- hp = gethostbyname(idn);
28+ hp = gethostbyname2(target, AF_INET); 28+ hp = gethostbyname2(idn, AF_INET);
29 if (!hp) { 29 if (!hp) {
30 fprintf(stderr, "ping: unknown host %s\n", target); 30 fprintf(stderr, "ping: unknown host %s\n", target);
31 exit(2); 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 @@
1Upstream-Status: Backport
2
3From 568e990d30fc7e9416e0a6f8c74ea5013921eaec Mon Sep 17 00:00:00 2001
4From: Arjan van de Ven <arjanvandeven@gmail.com>
5Date: Wed, 16 Jan 2013 03:12:15 +0900
6Subject: [PATCH] ping6: Fix build command line argument with gnutls.
7
8The ping6 command can use either openssl or gnutls...
9and the Makefile has a bunch of setup for defining which of the two to use.
10
11Unfortunately, the final -D define on the commandline to enable gnutls
12inside the ping6.c file didn't actually make it onto the gcc
13commandline.
14This patch adds the $(DEF_CRYPTO) Makefile variable to fix this gap.
15
16Signed-off-by: Arjan van de Ven <arjanvandeven@gmail.com>
17Signed-off-by: YOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org>
18---
19 Makefile | 2 +-
20 1 files changed, 1 insertions(+), 1 deletions(-)
21
22diff --git a/Makefile b/Makefile
23index 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--
361.7.2.5
37
diff --git a/meta/recipes-extended/iputils/iputils_s20101006.bb b/meta/recipes-extended/iputils/iputils_s20121221.bb
index 2c2766c77a..45108a4e48 100644
--- a/meta/recipes-extended/iputils/iputils_s20101006.bb
+++ b/meta/recipes-extended/iputils/iputils_s20121221.bb
@@ -8,25 +8,22 @@ LICENSE = "BSD & GPLv2+"
8 8
9LIC_FILES_CHKSUM = "file://ping.c;beginline=1;endline=35;md5=f9ceb201733e9a6cf8f00766dd278d82 \ 9LIC_FILES_CHKSUM = "file://ping.c;beginline=1;endline=35;md5=f9ceb201733e9a6cf8f00766dd278d82 \
10 file://tracepath.c;beginline=1;endline=10;md5=0ecea2bf60bff2f3d840096d87647f3d \ 10 file://tracepath.c;beginline=1;endline=10;md5=0ecea2bf60bff2f3d840096d87647f3d \
11 file://arping.c;beginline=1;endline=10;md5=ada2a6d06acc90f943bddf40d15e0541 \ 11 file://arping.c;beginline=1;endline=11;md5=fe84301b5c2655c950f8b92a057fafa6 \
12 file://tftpd.c;beginline=1;endline=32;md5=28834bf8a91a5b8a92755dbee709ef96 " 12 file://tftpd.c;beginline=1;endline=32;md5=28834bf8a91a5b8a92755dbee709ef96 "
13 13
14DEPENDS = "openssl docbook-utils-native sgmlspl-native" 14DEPENDS = "gnutls docbook-utils-native sgmlspl-native libcap"
15 15
16PR = "r6" 16PR = "r0"
17 17
18SRC_URI = "http://www.skbuff.net/iputils/${BPN}-${PV}.tar.bz2 \ 18SRC_URI = "http://www.skbuff.net/iputils/${BPN}-${PV}.tar.bz2 \
19 file://debian/fix-dead-host-ping-stats.diff \
20 file://debian/add-icmp-return-codes.diff \
21 file://debian/use_gethostbyname2.diff \ 19 file://debian/use_gethostbyname2.diff \
22 file://debian/targets.diff \ 20 file://debian/targets.diff \
23 file://debian/fix-arping-timeouts.diff \
24 file://nsgmls-path-fix.patch \ 21 file://nsgmls-path-fix.patch \
25 file://arping-break-libsysfs-dependency.patch \ 22 file://fix-build-command-line-argument-with-gnutls.patch \
26 " 23 "
27 24
28SRC_URI[md5sum] = "a36c25e9ec17e48be514dc0485e7376c" 25SRC_URI[md5sum] = "6072aef64205720dd1893b375e184171"
29SRC_URI[sha256sum] = "fd3af46c80ebb99607c2ca1f2a3608b6fe828e25bbec6e54f2afd25f6ddb6ee7" 26SRC_URI[sha256sum] = "450f549fc5b620c23c5929aa6d54b7ddfc7ee1cb1e8efdc5e8bb21d8d0c5319f"
30 27
31do_compile () { 28do_compile () {
32 oe_runmake 'CC=${CC} -D_GNU_SOURCE' VPATH="${STAGING_LIBDIR}:${STAGING_DIR_HOST}/${base_libdir}" all man 29 oe_runmake 'CC=${CC} -D_GNU_SOURCE' VPATH="${STAGING_LIBDIR}:${STAGING_DIR_HOST}/${base_libdir}" all man