From 01c68ad2807d9ff0a1e606c8ade78f7bf2cac201b859c094947ab7d6f7ebbcda Mon Sep 17 00:00:00 2001 From: Marcus Meissner Date: Wed, 12 Jun 2013 08:22:41 +0000 Subject: [PATCH] Accepting request 178594 from home:elvigia:branches:devel:libraries:c_c++ - remove debug statement in the spec file, leftover from previous change. - Build with large file support in 32 bit archs, autoconf stuff is fine, but C files included config.h after C library headers, therefore no prototypes for *64 functions found. OBS-URL: https://build.opensuse.org/request/show/178594 OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/adns?expand=0&rev=19 --- adns-ocloexec.patch | 139 +++++++++++++++++++++++++++++++++++++++++++- adns.changes | 13 +++++ 2 files changed, 150 insertions(+), 2 deletions(-) diff --git a/adns-ocloexec.patch b/adns-ocloexec.patch index 5ad5334..7c0159f 100644 --- a/adns-ocloexec.patch +++ b/adns-ocloexec.patch @@ -1,6 +1,23 @@ --- src/setup.c.orig +++ src/setup.c -@@ -464,7 +464,7 @@ static const char *instrum_getenv(adns_s +@@ -25,6 +25,7 @@ + * Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + */ + ++#include "internal.h" + #include + #include + #include +@@ -37,8 +38,6 @@ + #include + #include + +-#include "internal.h" +- + static void readconfig(adns_state ads, const char *filename, int warnmissing); + + static void addserver(adns_state ads, struct in_addr addr) { +@@ -464,7 +463,7 @@ static const char *instrum_getenv(adns_s static void readconfig(adns_state ads, const char *filename, int warnmissing) { getline_ctx gl_ctx; @@ -9,7 +26,7 @@ if (!gl_ctx.file) { if (errno == ENOENT) { if (warnmissing) -@@ -572,7 +572,7 @@ static int init_finish(adns_state ads) { +@@ -572,7 +571,7 @@ static int init_finish(adns_state ads) { } proto= getprotobyname("udp"); if (!proto) { r= ENOPROTOOPT; goto x_free; } @@ -20,6 +37,22 @@ r= adns__setnonblock(ads,ads->udpsocket); --- src/event.c.orig +++ src/event.c +@@ -26,6 +26,7 @@ + * Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + */ + ++#include "internal.h" + #include + #include + #include +@@ -37,7 +38,6 @@ + #include + #include + +-#include "internal.h" + #include "tvarith.h" + + /* TCP connection management. */ @@ -123,7 +123,7 @@ void adns__tcp_tryconnect(adns_state ads adns__diag(ads,-1,0,"unable to find protocol no. for TCP !"); return; @@ -29,3 +62,105 @@ if (fd<0) { adns__diag(ads,-1,0,"cannot create TCP socket: %s",strerror(errno)); return; +--- src/check.c.orig ++++ src/check.c +@@ -24,9 +24,8 @@ + * Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + */ + +-#include +- + #include "internal.h" ++#include + + void adns_checkconsistency(adns_state ads, adns_query qu) { + adns__consistency(ads,qu,cc_user); +--- src/general.c.orig ++++ src/general.c +@@ -25,6 +25,7 @@ + * Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + */ + ++#include "internal.h" + #include + #include + +@@ -33,7 +34,6 @@ + #include + #include + +-#include "internal.h" + + /* Core diagnostic functions */ + +--- src/poll.c.orig ++++ src/poll.c +@@ -24,10 +24,10 @@ + * Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + */ + ++#include "internal.h" + #include + #include + +-#include "internal.h" + + #ifdef HAVE_POLL + +--- src/query.c.orig ++++ src/query.c +@@ -34,7 +34,6 @@ + + #include + +-#include "internal.h" + + #if DMALLOC + # include +--- src/reply.c.orig ++++ src/reply.c +@@ -24,9 +24,9 @@ + * Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + */ + ++#include "internal.h" + #include + +-#include "internal.h" + + void adns__procdgram(adns_state ads, const byte *dgram, int dglen, + int serv, int viatcp, struct timeval now) { +--- src/transmit.c.orig ++++ src/transmit.c +@@ -25,12 +25,12 @@ + * Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + */ + ++#include "internal.h" + #include + + #include + #include + +-#include "internal.h" + #include "tvarith.h" + + #define MKQUERY_START(vb) (rqp= (vb)->buf+(vb)->used) +--- src/types.c.orig ++++ src/types.c +@@ -24,6 +24,7 @@ + * Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + */ + ++#include "internal.h" + #include + + #include +@@ -31,7 +32,6 @@ + #include + #include + +-#include "internal.h" + + #define R_NOMEM return adns_s_nomemory + #define CSP_ADDSTR(s) do { \ diff --git a/adns.changes b/adns.changes index 0313b82..ad9adc5 100644 --- a/adns.changes +++ b/adns.changes @@ -1,3 +1,16 @@ +------------------------------------------------------------------- +Tue Jun 11 22:44:58 UTC 2013 - crrodriguez@opensuse.org + +- remove debug statement in the spec file, leftover from + previous change. + +------------------------------------------------------------------- +Mon Jun 10 19:35:24 UTC 2013 - crrodriguez@opensuse.org + +- Build with large file support in 32 bit archs, autoconf + stuff is fine, but C files included config.h after C library + headers, therefore no prototypes for *64 functions found. + ------------------------------------------------------------------- Wed Mar 20 12:08:57 UTC 2013 - mmeister@suse.com