diff options
author | Ned Ludd <solar@gentoo.org> | 2004-06-15 06:47:46 +0000 |
---|---|---|
committer | Ned Ludd <solar@gentoo.org> | 2004-06-15 06:47:46 +0000 |
commit | e9e13421fcee0dab150ab0371cf5491e165e2141 (patch) | |
tree | 4fd1893ad76ec6b962e565fa37309f41b5ee77a5 /net-misc/iputils | |
parent | Added sys-libs/gdbm dependency to fix bug #53842. (Manifest recommit) (diff) | |
download | gentoo-2-e9e13421fcee0dab150ab0371cf5491e165e2141.tar.gz gentoo-2-e9e13421fcee0dab150ab0371cf5491e165e2141.tar.bz2 gentoo-2-e9e13421fcee0dab150ab0371cf5491e165e2141.zip |
added patch to allow iputils to compile with uclibc
Diffstat (limited to 'net-misc/iputils')
-rw-r--r-- | net-misc/iputils/ChangeLog | 6 | ||||
-rw-r--r-- | net-misc/iputils/files/iputils-20020927-no-ether_ntohost.patch | 24 | ||||
-rw-r--r-- | net-misc/iputils/iputils-021109-r3.ebuild | 7 |
3 files changed, 34 insertions, 3 deletions
diff --git a/net-misc/iputils/ChangeLog b/net-misc/iputils/ChangeLog index 49795fc56509..abfb5c0b1251 100644 --- a/net-misc/iputils/ChangeLog +++ b/net-misc/iputils/ChangeLog @@ -1,6 +1,10 @@ # ChangeLog for net-misc/iputils # Copyright 2002-2004 Gentoo Technologies, Inc.; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/net-misc/iputils/ChangeLog,v 1.27 2004/06/15 02:16:45 agriffis Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-misc/iputils/ChangeLog,v 1.28 2004/06/15 06:47:46 solar Exp $ + + 15 Jun 2004; <solar@gentoo.org> iputils-021109-r3.ebuild, + files/iputils-20020927-no-ether_ntohost.patch: + added patch to allow iputils to compile with uclibc 14 Jun 2004; Aron Griffis <agriffis@gentoo.org> iputils-020927.ebuild: Fix use invocation diff --git a/net-misc/iputils/files/iputils-20020927-no-ether_ntohost.patch b/net-misc/iputils/files/iputils-20020927-no-ether_ntohost.patch new file mode 100644 index 000000000000..e790d2b51038 --- /dev/null +++ b/net-misc/iputils/files/iputils-20020927-no-ether_ntohost.patch @@ -0,0 +1,24 @@ +--- iputils/rarpd.c.mps 2004-06-10 15:27:01.000000000 +0200 ++++ iputils/rarpd.c 2004-06-10 15:26:29.000000000 +0200 +@@ -42,7 +42,9 @@ int listen_arp; + char *ifname; + char *tftp_dir = "/etc/tftpboot"; + ++#ifndef __UCLIBC__ + extern int ether_ntohost(char *name, unsigned char *ea); ++#endif + void usage(void) __attribute__((noreturn)); + + struct iflink +@@ -305,7 +307,11 @@ struct rarp_map *rarp_lookup(int ifindex + 6, + }; + ++#ifndef __UCLIBC__ + if (ether_ntohost(ename, lladdr) != 0 || ++#else ++ if ( ++#endif + (hp = gethostbyname(ename)) == NULL) { + if (verbose) + syslog(LOG_INFO, "not found in /etc/ethers"); diff --git a/net-misc/iputils/iputils-021109-r3.ebuild b/net-misc/iputils/iputils-021109-r3.ebuild index 0fa9baefb5ce..faac7d4be33f 100644 --- a/net-misc/iputils/iputils-021109-r3.ebuild +++ b/net-misc/iputils/iputils-021109-r3.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2004 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/net-misc/iputils/iputils-021109-r3.ebuild,v 1.2 2004/05/26 01:00:48 vapier Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-misc/iputils/iputils-021109-r3.ebuild,v 1.3 2004/06/15 06:47:46 solar Exp $ inherit flag-o-matic gcc gnuconfig eutils @@ -12,7 +12,7 @@ SRC_URI="ftp://ftp.inr.ac.ru/ip-routing/${PN}-ss${PV}-try.tar.bz2 LICENSE="BSD" SLOT="0" KEYWORDS="~x86 ppc ~sparc ~mips ~alpha arm hppa amd64 ~ia64 ppc64 s390" -IUSE="static ipv6" #doc +IUSE="static ipv6 uclibc" #doc DEPEND="virtual/glibc virtual/os-headers @@ -50,6 +50,9 @@ src_unpack() { use ipv6 || sed -i -e 's:IPV6_TARGETS=:#IPV6_TARGETS=:' Makefile sed -i "s:-ll:-lfl ${LDFLAGS}:" setkey/Makefile || die "sed setkey failed" + + use uclibc && sed -e 's/sys_errlist\[errno\]/strerror(errno)/' -i ${S}/rdisc.c + use uclibc && epatch ${FILESDIR}/${PN}-20020927-no-ether_ntohost.patch } src_compile() { |