SHA256
1
0
forked from pool/whois

Accepting request 1128610 from home:dspinella:branches:network:utilities

- Fix build on SLE
  * whois-remove-malloc-attribute.patch

OBS-URL: https://build.opensuse.org/request/show/1128610
OBS-URL: https://build.opensuse.org/package/show/network:utilities/whois?expand=0&rev=142
This commit is contained in:
Danilo Spinella 2023-11-24 15:03:48 +00:00 committed by Git OBS Bridge
parent 180fcc3c03
commit ddabcad0a2
4 changed files with 24 additions and 0 deletions

View File

@ -0,0 +1,13 @@
Index: whois/utils.h
===================================================================
--- whois.orig/utils.h
+++ whois/utils.h
@@ -24,7 +24,7 @@
# define NONNULL
# define UNUSED
#endif
-#if defined __GNUC__ && !defined __clang__
+#if defined __GNUC__ && __GNUC__ >= 13 && !defined __clang__
# define MALLOC_FREE __attribute__((malloc(free)))
#else
# define MALLOC_FREE

3
whois-rpmlintrc Normal file
View File

@ -0,0 +1,3 @@
# WHOIS is the name of the RFC
addFilter("name-repeated-in-summary")

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Fri Nov 24 14:53:29 UTC 2023 - Danilo Spinella <oss@danyspin97.org>
- Fix build on SLE
* whois-remove-malloc-attribute.patch
------------------------------------------------------------------- -------------------------------------------------------------------
Mon Nov 20 15:46:28 UTC 2023 - Danilo Spinella <oss@danyspin97.org> Mon Nov 20 15:46:28 UTC 2023 - Danilo Spinella <oss@danyspin97.org>

View File

@ -26,7 +26,9 @@ URL: https://github.com/rfc1036/whois
Source: https://ftp.debian.org/debian/pool/main/w/whois/%{name}_%{version}.tar.xz Source: https://ftp.debian.org/debian/pool/main/w/whois/%{name}_%{version}.tar.xz
Source2: https://ftp.debian.org/debian/pool/main/w/whois/%{name}_%{version}.dsc#/%{name}.asc Source2: https://ftp.debian.org/debian/pool/main/w/whois/%{name}_%{version}.dsc#/%{name}.asc
Source3: https://db.debian.org/fetchkey.cgi?fingerprint=6791403B68AE2690517C42EAE6FFF1E38DC968B0#/%{name}.keyring Source3: https://db.debian.org/fetchkey.cgi?fingerprint=6791403B68AE2690517C42EAE6FFF1E38DC968B0#/%{name}.keyring
Source4: %{name}-rpmlintrc
Patch0: whois-nobsdsource.patch Patch0: whois-nobsdsource.patch
Patch1: whois-remove-malloc-attribute.patch
BuildRequires: pkgconfig BuildRequires: pkgconfig
BuildRequires: xz BuildRequires: xz
BuildRequires: pkgconfig(libidn2) BuildRequires: pkgconfig(libidn2)