From 49e21577d2d36a746fb40d089d2a4795a1ec300fc047805ccf0a1a04731a6ba3 Mon Sep 17 00:00:00 2001 From: Marcus Meissner Date: Mon, 8 Dec 2014 08:15:47 +0000 Subject: [PATCH] Accepting request 264260 from home:elvigia:branches:network:utilities - whois-nobsdsource.patch: get rid of warnings about BSD_SOURCE deprecatation , just define GNU_SOURCE globally instead of any other C library feature macro. OBS-URL: https://build.opensuse.org/request/show/264260 OBS-URL: https://build.opensuse.org/package/show/network:utilities/whois?expand=0&rev=49 --- whois-nobsdsource.patch | 35 +++++++++++++++++++++++++++++++++++ whois.changes | 7 +++++++ whois.spec | 2 ++ 3 files changed, 44 insertions(+) create mode 100644 whois-nobsdsource.patch diff --git a/whois-nobsdsource.patch b/whois-nobsdsource.patch new file mode 100644 index 0000000..152d39b --- /dev/null +++ b/whois-nobsdsource.patch @@ -0,0 +1,35 @@ +--- whois-5.2.2.orig/mkpasswd.c ++++ whois-5.2.2/mkpasswd.c +@@ -17,9 +17,6 @@ + */ + + /* for crypt, snprintf and strcasecmp */ +-#define _XOPEN_SOURCE 500 +-#define _BSD_SOURCE 1 +-#define __EXTENSIONS__ 1 + + /* System library */ + #include +--- whois-5.2.2.orig/whois.c ++++ whois-5.2.2/whois.c +@@ -7,9 +7,6 @@ + * (at your option) any later version. + */ + +-/* for AI_IDN */ +-#define _GNU_SOURCE +- + /* System library */ + #include + #include +--- whois-5.2.2.orig/Makefile ++++ whois-5.2.2/Makefile +@@ -53,7 +53,7 @@ endif + mkpasswd_LDADD += -lcrypt + endif + +-CPPFLAGS += $(DEFS) $(INCLUDES) ++CPPFLAGS += -D_GNU_SOURCE $(DEFS) $(INCLUDES) + + ############################################################################## + all: Makefile.depend whois mkpasswd pos diff --git a/whois.changes b/whois.changes index 876c9bc..e5c6951 100644 --- a/whois.changes +++ b/whois.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Sat Dec 6 18:25:49 UTC 2014 - crrodriguez@opensuse.org + +- whois-nobsdsource.patch: get rid of warnings about + BSD_SOURCE deprecatation , just define GNU_SOURCE + globally instead of any other C library feature macro. + ------------------------------------------------------------------- Thu Nov 13 21:20:56 UTC 2014 - andreas.stieger@gmx.de diff --git a/whois.spec b/whois.spec index 44fc7ea..d80d72f 100644 --- a/whois.spec +++ b/whois.spec @@ -44,6 +44,7 @@ Requires: perl = %{perl_version} %if 0%{?suse_version} <= 1140 BuildRequires: libxcrypt-devel %endif +Patch: whois-nobsdsource.patch %description This package provides a commandline client for the WHOIS (RFC 3912) @@ -61,6 +62,7 @@ echo "`grep -A1 "Checksums-Sha1" %{SOURCE3} | grep %{name}_%{version}.tar.xz | c echo "`grep -A1 "Checksums-Sha256" %{SOURCE3} | grep %{name}_%{version}.tar.xz | cut -d\ -f2` %{SOURCE0}" | sha256sum -c %setup -q +%patch -p1 %build make all mkpasswd HAVE_LIBIDN=1 HAVE_ICONV=1 %{?_smp_mflags} \