summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--dev-libs/uclibc/ChangeLog7
-rw-r--r--dev-libs/uclibc/Manifest43
-rw-r--r--dev-libs/uclibc/files/0.9.26/uclibc-0.9.26-resolve-segfault.patch47
-rw-r--r--dev-libs/uclibc/uclibc-0.9.26-r5.ebuild5
4 files changed, 84 insertions, 18 deletions
diff --git a/dev-libs/uclibc/ChangeLog b/dev-libs/uclibc/ChangeLog
index 87c5614f15d2..f934263949bd 100644
--- a/dev-libs/uclibc/ChangeLog
+++ b/dev-libs/uclibc/ChangeLog
@@ -1,6 +1,11 @@
# ChangeLog for dev-libs/uclibc
# Copyright 2002-2004 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-libs/uclibc/ChangeLog,v 1.31 2004/08/09 04:41:17 solar Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-libs/uclibc/ChangeLog,v 1.32 2004/08/09 14:42:19 vapier Exp $
+
+ 09 Aug 2004; Mike Frysinger <vapier@gentoo.org>
+ +files/0.9.26/uclibc-0.9.26-resolve-segfault.patch, uclibc-0.9.26-r5.ebuild:
+ Add a homebrewed patch to fix the bug with gethostname() which didnt setup the
+ h_aliases data.
*uclibc-0.9.26-r5 (09 Aug 2004)
diff --git a/dev-libs/uclibc/Manifest b/dev-libs/uclibc/Manifest
index 0a48591cda0f..ba173c30ca1f 100644
--- a/dev-libs/uclibc/Manifest
+++ b/dev-libs/uclibc/Manifest
@@ -1,28 +1,39 @@
-MD5 ebf20118b3d6ced339721338685d97b0 uclibc-0.9.26-r2.ebuild 6191
-MD5 5db33bb13590ce0b1ac242639e60154e uclibc-0.9.26-r4.ebuild 7212
+-----BEGIN PGP SIGNED MESSAGE-----
+Hash: SHA1
+
+MD5 0795f8b490d7e16ac63e0340c0f59632 ChangeLog 6292
+MD5 f694d40cf09e6c5511ae52f755a5ffe5 metadata.xml 998
+MD5 7fde305dfd21aeac12e0eb721e0f6a17 uclibc-0.9.21.ebuild 1096
MD5 648448f5b143b6002812f0fb0a78c683 uclibc-0.9.26-r1.ebuild 2555
+MD5 ebf20118b3d6ced339721338685d97b0 uclibc-0.9.26-r2.ebuild 6191
MD5 03b8de2ae5acc3aa78d72abe3f8edd7b uclibc-0.9.26-r3.ebuild 6337
-MD5 61dda2b667c8363f229a34a845d010b5 uclibc-0.9.26-r5.ebuild 7229
-MD5 62a09c6cb43d2e747ab450a197efc6d2 ChangeLog 6062
-MD5 7fde305dfd21aeac12e0eb721e0f6a17 uclibc-0.9.21.ebuild 1096
-MD5 f694d40cf09e6c5511ae52f755a5ffe5 metadata.xml 998
+MD5 5db33bb13590ce0b1ac242639e60154e uclibc-0.9.26-r4.ebuild 7212
+MD5 849cfd0d9820221f53b007e8448b24d4 uclibc-0.9.26-r5.ebuild 7348
MD5 d16f404e56abc9f0ab5c372b88a6905d files/Makefile-cp-order-fix.patch 897
-MD5 0b733285f186f31c1be9ffcc42f1064e files/getent 973
-MD5 cf4a11cd99eb78be459f253cf9c53030 files/digest-uclibc-0.9.26-r1 67
+MD5 799adc7fb6ec9ffd653831cea1d32dd5 files/digest-uclibc-0.9.21 67
MD5 02ffb023d5b3be46c7e0c9aadf48d304 files/digest-uclibc-0.9.26-r2 231
+MD5 cf4a11cd99eb78be459f253cf9c53030 files/digest-uclibc-0.9.26-r1 67
+MD5 0b733285f186f31c1be9ffcc42f1064e files/getent 973
MD5 469ea7f6803a9d27eadc0c9437171df6 files/digest-uclibc-0.9.26-r3 231
MD5 44c3eaa7974b57f415b3acb6a30cc1e8 files/digest-uclibc-0.9.26-r4 231
MD5 6d2b5c523d34c86df9bc37747d9261dc files/digest-uclibc-0.9.26-r5 231
-MD5 799adc7fb6ec9ffd653831cea1d32dd5 files/digest-uclibc-0.9.21 67
-MD5 4216cdf86d54f45fa04cb44a5425b3ff files/0.9.23/uClibc-0.9.23-pax.patch 3607
MD5 17ecd222df47b5253f35787097440a5a files/0.9.23/uClibc-0.9.23-etdyn.patch 5832
MD5 298b7b42f80e1f8ae395df81c47eb213 files/0.9.23/uClibc-0.9.23-flipturn.patch 1821
-MD5 f7c264d37687f1a32f1c6e31239f2276 files/0.9.26/uclibc-0.9.26-noexecstack.patch 15273
-MD5 6835449424e7a8a38e9c85ecf1b73577 files/0.9.26/arm-ucontext.patch 303
-MD5 ef7fa60d23c46f41d0e9748372cfc7dd files/0.9.26/ssp.c 3937
+MD5 4216cdf86d54f45fa04cb44a5425b3ff files/0.9.23/uClibc-0.9.23-pax.patch 3607
+MD5 2416f5e954ccb8b39b1c0d6a3cf5e827 files/0.9.26/uClibc-0.9.26-Makefile.patch 1478
+MD5 bdd1e91ee48fb8be0d28cabdfcfdf3ff files/0.9.26/uClibc-0.9.26-pie-option.patch 863
MD5 49671ccbdf2c8055efc6cde0003cb6c5 files/0.9.26/arm-fix-missing-syscalls.patch 2264
+MD5 ef7fa60d23c46f41d0e9748372cfc7dd files/0.9.26/ssp.c 3937
MD5 874260fc77637deccf7588cfc1c76674 files/0.9.26/uClibc-20040613-do_rem.patch 391
-MD5 d35beaf332590fed8c619483d4598dc6 files/0.9.26/uclibc-0.9.26-ssp-gcc34-after-frandom.patch 542
-MD5 bdd1e91ee48fb8be0d28cabdfcfdf3ff files/0.9.26/uClibc-0.9.26-pie-option.patch 863
-MD5 2416f5e954ccb8b39b1c0d6a3cf5e827 files/0.9.26/uClibc-0.9.26-Makefile.patch 1478
MD5 b9df87c681aa3a1ef3033cb195e516df files/0.9.26/uclibc-0.9.26-arm-dl-sysdep.patch 795
+MD5 d35beaf332590fed8c619483d4598dc6 files/0.9.26/uclibc-0.9.26-ssp-gcc34-after-frandom.patch 542
+MD5 f7c264d37687f1a32f1c6e31239f2276 files/0.9.26/uclibc-0.9.26-noexecstack.patch 15273
+MD5 6835449424e7a8a38e9c85ecf1b73577 files/0.9.26/arm-ucontext.patch 303
+MD5 efd96414f3be520f07eabd1c02be1ecb files/0.9.26/uclibc-0.9.26-resolve-segfault.patch 1227
+-----BEGIN PGP SIGNATURE-----
+Version: GnuPG v1.9.8 (GNU/Linux)
+
+iD8DBQFBF45kHTu7gpaalycRAnqbAKC01jFFhfqeGhmhmxzzcY0AxVhMfgCfTAKD
+iZi84tMG9cViN8eHuHGWBx4=
+=/NX9
+-----END PGP SIGNATURE-----
diff --git a/dev-libs/uclibc/files/0.9.26/uclibc-0.9.26-resolve-segfault.patch b/dev-libs/uclibc/files/0.9.26/uclibc-0.9.26-resolve-segfault.patch
new file mode 100644
index 000000000000..2b9b1ab1dc66
--- /dev/null
+++ b/dev-libs/uclibc/files/0.9.26/uclibc-0.9.26-resolve-segfault.patch
@@ -0,0 +1,47 @@
+--- libc/inet/resolv.c.orig 2004-08-09 14:04:58 +0000
++++ libc/inet/resolv.c 2004-08-09 14:07:09 +0000
+@@ -1846,6 +1846,7 @@
+ {
+ struct in_addr *in;
+ struct in_addr **addr_list;
++ char **alias;
+ unsigned char *packet;
+ struct resolv_answer a;
+ int i;
+@@ -1899,17 +1900,27 @@
+
+ addr_list[0] = in;
+ addr_list[1] = 0;
+-
++
++ if (buflen < sizeof(char *)*(ALIAS_DIM))
++ return ERANGE;
++ alias=(char **)buf;
++ buf+=sizeof(char **)*(ALIAS_DIM);
++ buflen-=sizeof(char **)*(ALIAS_DIM);
++
+ if (buflen<256)
+ return ERANGE;
+ strncpy(buf, name, buflen);
+
++ alias[0] = buf;
++ alias[1] = NULL;
++
+ /* First check if this is already an address */
+ if (inet_aton(name, in)) {
+ result_buf->h_name = buf;
+ result_buf->h_addrtype = AF_INET;
+ result_buf->h_length = sizeof(*in);
+ result_buf->h_addr_list = (char **) addr_list;
++ result_buf->h_aliases = alias;
+ *result=result_buf;
+ *h_errnop = NETDB_SUCCESS;
+ return NETDB_SUCCESS;
+@@ -1954,6 +1965,7 @@
+ result_buf->h_addrtype = AF_INET;
+ result_buf->h_length = sizeof(*in);
+ result_buf->h_addr_list = (char **) addr_list;
++ result_buf->h_aliases = alias; /* TODO: generate the full list */
+ free(packet);
+ break;
+ } else {
diff --git a/dev-libs/uclibc/uclibc-0.9.26-r5.ebuild b/dev-libs/uclibc/uclibc-0.9.26-r5.ebuild
index 9bb0b5798992..79c86023206b 100644
--- a/dev-libs/uclibc/uclibc-0.9.26-r5.ebuild
+++ b/dev-libs/uclibc/uclibc-0.9.26-r5.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-libs/uclibc/uclibc-0.9.26-r5.ebuild,v 1.1 2004/08/09 04:41:17 solar Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-libs/uclibc/uclibc-0.9.26-r5.ebuild,v 1.2 2004/08/09 14:42:19 vapier Exp $
inherit eutils flag-o-matic gcc
@@ -84,6 +84,9 @@ src_unpack() {
epatch ${FILESDIR}/${PV}/${PN}-${PV}-noexecstack.patch
fi
+ # fix segfaults when running things like `emerge sync`
+ epatch ${FILESDIR}/${PV}/${PN}-${PV}-resolve-segfault.patch
+
# fixup for install perms
sed -i -e "s:-fa:-dRf:g" Makefile