]> git.pld-linux.org Git - packages/c-ares.git/commitdiff
- treat not readable resolv.conf (and other /etc files) as if it was empty, not give... auto/th/c-ares-1_6_0-2
authorElan Ruusamäe <glen@pld-linux.org>
Sun, 7 Feb 2010 13:06:50 +0000 (13:06 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
- so curl-libs -> python-pycurl -> python-urlgrabber could be built on our builders
  see http://lists.pld-linux.org/mailman/pipermail/pld-cvs-commit/Week-of-Mon-20100201/265667.html
- rel 2

Changed files:
    c-ares-resolv.conf-reading-is-not-fatal.patch -> 1.1
    c-ares.spec -> 1.10

c-ares-resolv.conf-reading-is-not-fatal.patch [new file with mode: 0644]
c-ares.spec

diff --git a/c-ares-resolv.conf-reading-is-not-fatal.patch b/c-ares-resolv.conf-reading-is-not-fatal.patch
new file mode 100644 (file)
index 0000000..392ae45
--- /dev/null
@@ -0,0 +1,34 @@
+--- c-ares-1.6.0/ares_init.c~  2010-02-07 14:22:41.480067790 +0200
++++ c-ares-1.6.0/ares_init.c   2010-02-07 14:22:42.962764879 +0200
+@@ -839,6 +839,7 @@
+       switch(error) {
+       case ENOENT:
+       case ESRCH:
++      case EACCES:
+         status = ARES_EOF;
+         break;
+       default:
+@@ -865,6 +866,7 @@
+         switch(error) {
+         case ENOENT:
+         case ESRCH:
++        case EACCES:
+           status = ARES_EOF;
+           break;
+         default:
+@@ -892,6 +894,7 @@
+         switch(error) {
+         case ENOENT:
+         case ESRCH:
++        case EACCES:
+           status = ARES_EOF;
+           break;
+         default:
+@@ -919,6 +922,7 @@
+         switch(error) {
+         case ENOENT:
+         case ESRCH:
++        case EACCES:
+           status = ARES_EOF;
+           break;
+         default:
index 8d9bd22f174088b15300c07e766a341ec6ce0e53..1b7a19ac932f9a5e2d142bca90e8d098bdcb9702 100644 (file)
@@ -2,11 +2,12 @@ Summary:      A library that performs asynchronous DNS operations
 Summary(pl.UTF-8):     Biblioteka do wykonywania asynchronicznych zapytań DNS
 Name:          c-ares
 Version:       1.6.0
-Release:       1
+Release:       2
 License:       MIT
 Group:         Libraries
 Source0:       http://daniel.haxx.se/projects/c-ares/%{name}-%{version}.tar.gz
 # Source0-md5: 4503b0db3dd79d3c1f58d87722dbab46
+Patch0:                %{name}-resolv.conf-reading-is-not-fatal.patch
 URL:           http://daniel.haxx.se/projects/c-ares/
 BuildRequires: autoconf
 BuildRequires: automake
@@ -50,6 +51,7 @@ Statyczna biblioteka c-ares.
 
 %prep
 %setup -q
+%patch0 -p1
 
 # we want our own debug flags, if any
 sed -i -e 's/flags_dbg_off=".*"/flags_dbg_off="%{rpmcflags}"/' m4/cares-compilers.m4
This page took 0.060027 seconds and 4 git commands to generate.