[oe-commits] org.oe.dev glibc 2.5|2.6.1 actually apply the local-dynamic-resolvconf.patch instead of

mickeyl commit openembedded-commits at lists.openembedded.org
Sat Mar 1 00:49:51 UTC 2008


glibc 2.5|2.6.1 actually apply the local-dynamic-resolvconf.patch instead of
just unpacking it into debian/patches... ~lart debian...

Author: mickeyl at openembedded.org
Branch: org.openembedded.dev
Revision: 7ebcf65940382b7ebea258189704cb0e4a77dc70
ViewMTN: http://monotone.openembedded.org/revision/info/7ebcf65940382b7ebea258189704cb0e4a77dc70
Files:
1
packages/glibc/files/glibc-2.5-local-dynamic-resolvconf.patch
packages/glibc/glibc_2.5.bb
packages/glibc/glibc_2.6.1.bb
Diffs:

#
# mt diff -rb52c7469e4fbb93f35ed1de1f3e5225ee9d27d9c -r7ebcf65940382b7ebea258189704cb0e4a77dc70
#
# 
# 
# patch "packages/glibc/files/glibc-2.5-local-dynamic-resolvconf.patch"
#  from [63296cccc2b32cab961fcf4965eb86bd960f0213]
#    to [9bdb7df2ad99ce5d483801d3b1869c601b18fc60]
# 
# patch "packages/glibc/glibc_2.5.bb"
#  from [53e27da951911e905482cc1827cbd661372ca6bd]
#    to [4448b5d00d178de9e03d1a43d7c5803abbb93d2c]
# 
# patch "packages/glibc/glibc_2.6.1.bb"
#  from [a3edca56fd29b409cf9c2080cd7c5d19362a434c]
#    to [5ed9c93ca660afcc61380030ee1d8c4340997ae3]
# 
============================================================
--- packages/glibc/files/glibc-2.5-local-dynamic-resolvconf.patch	63296cccc2b32cab961fcf4965eb86bd960f0213
+++ packages/glibc/files/glibc-2.5-local-dynamic-resolvconf.patch	9bdb7df2ad99ce5d483801d3b1869c601b18fc60
@@ -1,44 +1,41 @@
---- glibc-2.5.orig/debian/patches/any/local-dynamic-resolvconf.diff
-+++ glibc-2.5/debian/patches/any/local-dynamic-resolvconf.diff
-@@ -0,0 +1,41 @@
-+# All lines beginning with `# DP:' are a description of the patch.
-+# DP: Description: allow dynamic long-running processes to
-+# DP: re-read a dynamically updated resolv.conf on the fly
-+# DP: Dpatch author: Adam Conrad <adconrad at ubuntu.com>
-+# DP: Patch author: Thorsten Kukuk <kukuk at suse.de>
-+# DP: Upstream status: Ubuntu-Specific
-+# DP: Date: 2006-01-13 08:14:21 UTC
+# All lines beginning with `# DP:' are a description of the patch.
+# DP: Description: allow dynamic long-running processes to
+# DP: re-read a dynamically updated resolv.conf on the fly
+# DP: Dpatch author: Adam Conrad <adconrad at ubuntu.com>
+# DP: Patch author: Thorsten Kukuk <kukuk at suse.de>
+# DP: Upstream status: Ubuntu-Specific
+# DP: Date: 2006-01-13 08:14:21 UTC
+
+Index: resolv/res_libc.c
+===================================================================
+--- resolv/res_libc.c.orig
++++ resolv/res_libc.c
+@@ -22,7 +22,7 @@
+ #include <arpa/nameser.h>
+ #include <resolv.h>
+ #include <bits/libc-lock.h>
+-
++#include <sys/stat.h>
+ 
+ /* The following bit is copied from res_data.c (where it is #ifdef'ed
+    out) since res_init() should go into libc.so but the rest of that
+@@ -94,8 +94,17 @@
+ int
+ __res_maybe_init (res_state resp, int preinit)
+ {
+-	if (resp->options & RES_INIT) {
+-		if (__res_initstamp != resp->_u._ext.initstamp) {
++  static time_t last_mtime;
++  struct stat statbuf;
++  int ret;
 +
++		
++  if (resp->options & RES_INIT) {
++	ret = stat (_PATH_RESCONF, &statbuf);
++		if (__res_initstamp != resp->_u._ext.initstamp
++		  || (ret == 0) && (last_mtime != statbuf.st_mtime))
++		  {
++		        last_mtime = statbuf.st_mtime;
+ 			if (resp->nscount > 0) {
+ 				__res_iclose (resp, true);
+ 				return __res_vinit (resp, 1);
-+Index: resolv/res_libc.c
-+===================================================================
-+--- resolv/res_libc.c.orig
-++++ resolv/res_libc.c
-+@@ -22,7 +22,7 @@
-+ #include <arpa/nameser.h>
-+ #include <resolv.h>
-+ #include <bits/libc-lock.h>
-+-
-++#include <sys/stat.h>
-+ 
-+ /* The following bit is copied from res_data.c (where it is #ifdef'ed
-+    out) since res_init() should go into libc.so but the rest of that
-+@@ -94,8 +94,17 @@
-+ int
-+ __res_maybe_init (res_state resp, int preinit)
-+ {
-+-	if (resp->options & RES_INIT) {
-+-		if (__res_initstamp != resp->_u._ext.initstamp) {
-++  static time_t last_mtime;
-++  struct stat statbuf;
-++  int ret;
-++
-++		
-++  if (resp->options & RES_INIT) {
-++	ret = stat (_PATH_RESCONF, &statbuf);
-++		if (__res_initstamp != resp->_u._ext.initstamp
-++		  || (ret == 0) && (last_mtime != statbuf.st_mtime))
-++		  {
-++		        last_mtime = statbuf.st_mtime;
-+ 			if (resp->nscount > 0) {
-+ 				__res_iclose (resp, true);
-+ 				return __res_vinit (resp, 1);
============================================================
--- packages/glibc/glibc_2.5.bb	53e27da951911e905482cc1827cbd661372ca6bd
+++ packages/glibc/glibc_2.5.bb	4448b5d00d178de9e03d1a43d7c5803abbb93d2c
@@ -1,5 +1,5 @@ require glibc.inc
 require glibc.inc
-PR = "r9"
+PR = "r10"
 
 ARM_INSTRUCTION_SET = "arm"
 
@@ -44,7 +44,7 @@ SRC_URI = "\
   file://dl-cache-libcmp.patch;patch=1 \
   file://ldsocache-varrun.patch;patch=1 \
   file://nptl-crosscompile.patch;patch=1 \
-  file://glibc-2.5-local-dynamic-resolvconf.patch;patch=1 \
+  file://glibc-2.5-local-dynamic-resolvconf.patch;patch=1;pnum=0 \
   file://glibc-check_pf.patch;patch=1;pnum=0 \
   file://zecke-sane-readelf.patch;patch=1 \
   file://ldd-unbash.patch;patch=1 \
============================================================
--- packages/glibc/glibc_2.6.1.bb	a3edca56fd29b409cf9c2080cd7c5d19362a434c
+++ packages/glibc/glibc_2.6.1.bb	5ed9c93ca660afcc61380030ee1d8c4340997ae3
@@ -1,5 +1,5 @@ require glibc.inc
 require glibc.inc
-PR = "r2"
+PR = "r3"
 
 ARM_INSTRUCTION_SET = "arm"
 
@@ -45,7 +45,7 @@ SRC_URI = "\
   file://dl-cache-libcmp.patch;patch=1 \
   file://ldsocache-varrun.patch;patch=1 \
   file://nptl-crosscompile.patch;patch=1 \
-  file://glibc-2.5-local-dynamic-resolvconf.patch;patch=1 \
+  file://glibc-2.5-local-dynamic-resolvconf.patch;patch=1;pnum=0 \
   file://glibc-check_pf.patch;patch=1;pnum=0 \
   file://zecke-sane-readelf.patch;patch=1 \
   file://ldd-unbash.patch;patch=1 \






More information about the Openembedded-commits mailing list