diff --git a/whois-remove-malloc-attribute.patch b/whois-remove-malloc-attribute.patch new file mode 100644 index 0000000..31e9dd6 --- /dev/null +++ b/whois-remove-malloc-attribute.patch @@ -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 diff --git a/whois-rpmlintrc b/whois-rpmlintrc new file mode 100644 index 0000000..1a916b9 --- /dev/null +++ b/whois-rpmlintrc @@ -0,0 +1,3 @@ +# WHOIS is the name of the RFC +addFilter("name-repeated-in-summary") + diff --git a/whois.changes b/whois.changes index 7995250..144d86e 100644 --- a/whois.changes +++ b/whois.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Fri Nov 24 14:53:29 UTC 2023 - Danilo Spinella + +- Fix build on SLE + * whois-remove-malloc-attribute.patch + ------------------------------------------------------------------- Mon Nov 20 15:46:28 UTC 2023 - Danilo Spinella diff --git a/whois.spec b/whois.spec index bb9cdac..db47acd 100644 --- a/whois.spec +++ b/whois.spec @@ -26,7 +26,9 @@ URL: https://github.com/rfc1036/whois 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 Source3: https://db.debian.org/fetchkey.cgi?fingerprint=6791403B68AE2690517C42EAE6FFF1E38DC968B0#/%{name}.keyring +Source4: %{name}-rpmlintrc Patch0: whois-nobsdsource.patch +Patch1: whois-remove-malloc-attribute.patch BuildRequires: pkgconfig BuildRequires: xz BuildRequires: pkgconfig(libidn2)