Git-Url: 
http://git.frugalware.org/gitweb/gitweb.cgi?p=frugalware-current.git;a=commitdiff;h=64ab0ef85ddcbb76645a3e94d98e66004dd3a2b7

commit 64ab0ef85ddcbb76645a3e94d98e66004dd3a2b7
Author: Miklos Vajna <vmik...@frugalware.org>
Date:   Sat Dec 19 01:54:18 2009 +0100

glibc-2.11-2-i686

- add patch to make wget work in chroot again
- closes #4056

diff --git a/source/base/glibc/FrugalBuild b/source/base/glibc/FrugalBuild
index d3ac04e..2861b64 100644
--- a/source/base/glibc/FrugalBuild
+++ b/source/base/glibc/FrugalBuild
@@ -4,7 +4,7 @@

pkgname=glibc
pkgver=2.11
-pkgrel=1
+pkgrel=2
pkgdesc="GNU C Library"
url="http://www.gnu.org/software/libc/libc.html";
depends=()
@@ -15,8 +15,10 @@ rodepends=('tzdata')
groups=('base' 'chroot-core')
archs=('i686' 'x86_64' 'ppc')
Fup2gnubz2
-source=(http://ftp.gnu.org/pub/gnu/glibc/glibc-$pkgver.tar.bz2)
-sha1sums=('f89c0651ca25423523c872a27b0ccf70f5670b6e')
+source=(http://ftp.gnu.org/pub/gnu/glibc/glibc-$pkgver.tar.bz2 \
+       fix-missing-etc-hosts.patch)
+sha1sums=('f89c0651ca25423523c872a27b0ccf70f5670b6e' \
+          'be4a7bea8af743331e2c6704faa24b6cb4e155d5')

build()
{
diff --git a/source/base/glibc/fix-missing-etc-hosts.patch 
b/source/base/glibc/fix-missing-etc-hosts.patch
new file mode 100644
index 0000000..e3ab9e3
--- /dev/null
+++ b/source/base/glibc/fix-missing-etc-hosts.patch
@@ -0,0 +1,14 @@
+This makes wget work again in case /etc/hosts is missing.
+
+diff -Naur glibc-2.11/nss/nss_files/files-hosts.c 
glibc-2.11/nss/nss_files/files-hosts.c
+--- glibc-2.11/nss/nss_files/files-hosts.c     2009-10-30 18:17:08.000000000 
+0100
++++ glibc-2.11/nss/nss_files/files-hosts.c     2009-12-18 22:37:06.642163627 
+0100
+@@ -426,7 +426,7 @@
+   else
+     {
+       *errnop = errno;
+-      *herrnop = NO_DATA;
++      *herrnop = HOST_NOT_FOUND;
+     }
+
+   __libc_lock_unlock (lock);
_______________________________________________
Frugalware-git mailing list
Frugalware-git@frugalware.org
http://frugalware.org/mailman/listinfo/frugalware-git

Reply via email to