[oe-commits] Koen Kooi : iputils 20071127: touch up debian patches

git version control git at git.openembedded.org
Tue Jun 16 14:16:29 UTC 2009


Module: openembedded.git
Branch: org.openembedded.dev
Commit: e33293bf4db621de992d73406d24b9c86b542b1b
URL:    http://gitweb.openembedded.net/?p=openembedded.git&a=commit;h=e33293bf4db621de992d73406d24b9c86b542b1b

Author: Koen Kooi <koen at openembedded.org>
Date:   Tue Jun 16 16:08:55 2009 +0200

iputils 20071127: touch up debian patches

---

 .../files/debian/fix-cmsghdr-offset-bug.diff       |   18 ++++++++++++++++++
 recipes/iputils/iputils_20071127.bb                |    5 ++++-
 2 files changed, 22 insertions(+), 1 deletions(-)

diff --git a/recipes/iputils/files/debian/fix-cmsghdr-offset-bug.diff b/recipes/iputils/files/debian/fix-cmsghdr-offset-bug.diff
index 7ae92df..0c9bbd8 100644
--- a/recipes/iputils/files/debian/fix-cmsghdr-offset-bug.diff
+++ b/recipes/iputils/files/debian/fix-cmsghdr-offset-bug.diff
@@ -17,3 +17,21 @@
  	ICMP6_FILTER_SETBLOCKALL(&filter);
  
  	if (!working_recverr) {
+--- /tmp/ping6.c	2009-06-15 19:13:57.000000000 +0200
++++ iputils_20071127.orig/ping6.c	2009-06-15 19:14:40.000000000 +0200
+@@ -415,14 +415,9 @@
+ 			exit(2);
+ 		}
+ 		cmsg = (struct cmsghdr*)(cmsgbuf+cmsglen);
+-		cmsglen += CMSG_SPACE(sizeof(*ipi));
+-		cmsg->cmsg_len = CMSG_LEN(sizeof(*ipi));
++		cmsglen += CMSG_SPACE(sizeof(ipi));
+ 		cmsg->cmsg_level = SOL_IPV6;
+ 		cmsg->cmsg_type = IPV6_PKTINFO;
+-
+-		ipi = (struct in6_pktinfo*)CMSG_DATA(cmsg);
+-		memset(ipi, 0, sizeof(*ipi));
+-		ipi->ipi6_ifindex = ifr.ifr_ifindex;
+ 	}
+ 
+ 	if ((whereto.sin6_addr.s6_addr16[0]&htons(0xff00)) == htons (0xff00)) {
diff --git a/recipes/iputils/iputils_20071127.bb b/recipes/iputils/iputils_20071127.bb
index 9235a65..821d6c9 100644
--- a/recipes/iputils/iputils_20071127.bb
+++ b/recipes/iputils/iputils_20071127.bb
@@ -4,8 +4,11 @@ tracepath, tracepath6, ping, ping6 and arping."
 SECTION = "console/network"
 LICENSE ="BSD"
 
+PR = "r1"
+
 #Need more testing
 DEFAULT_PREFERENCE = "-1"
+DEFAULT_PREFERENCE_angstrom = "2"
 
 SRC_URI = "http://ftp.de.debian.org/debian/pool/main/i/iputils/iputils_${PV}.orig.tar.gz \
            file://debian/fix-dead-host-ping-stats.diff;patch=1 \
@@ -52,7 +55,7 @@ do_install () {
 	done
 	# Manual pages for things we build packages for
 	for i in tracepath.8 traceroute6.8 ping.8 arping.8; do
-	  install -m 0644 doc/$i ${D}${mandir}/man8/
+	  install -m 0644 doc/$i ${D}${mandir}/man8/ || true
 	done
 }
 





More information about the Openembedded-commits mailing list