From 36070ced4c5ae90f37ed76f1f969b2309d724479 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20K=2E=20H=C3=BCttel?= Date: Sun, 27 Oct 2024 22:03:13 +0100 Subject: [PATCH] net-libs/udns: drop 0.4-r2 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Bug: https://bugs.gentoo.org/874759 Signed-off-by: Andreas K. Hüttel --- .../files/udns-0.4-configure-clang16.patch | 24 ---------- ...udns-0.4-configure-pton-ntop-clang16.patch | 22 --------- net-libs/udns/udns-0.4-r2.ebuild | 47 ------------------- 3 files changed, 93 deletions(-) delete mode 100644 net-libs/udns/files/udns-0.4-configure-clang16.patch delete mode 100644 net-libs/udns/files/udns-0.4-configure-pton-ntop-clang16.patch delete mode 100644 net-libs/udns/udns-0.4-r2.ebuild diff --git a/net-libs/udns/files/udns-0.4-configure-clang16.patch b/net-libs/udns/files/udns-0.4-configure-clang16.patch deleted file mode 100644 index 6b2dcda26ca0c..0000000000000 --- a/net-libs/udns/files/udns-0.4-configure-clang16.patch +++ /dev/null @@ -1,24 +0,0 @@ -https://bugs.gentoo.org/874759 ---- a/configure -+++ b/configure -@@ -65,9 +65,9 @@ ac_prog_ranlib_v - - ac_ign ac_yesno "for getopt()" ac_have GETOPT ac_link < -+#include - extern int optind; - extern char *optarg; --extern int getopt(int, char **, char *); - int main(int argc, char **argv) { - getopt(argc, argv, "abc"); - return optarg ? optind : 0; -@@ -75,7 +75,8 @@ int main(int argc, char **argv) { - EOF - - if ac_library_find_v 'socket and connect' "" "-lsocket -lnsl" < -+int main() { socket(0, 0, 0); connect(0, 0, 0); return 0; } - EOF - then : - else diff --git a/net-libs/udns/files/udns-0.4-configure-pton-ntop-clang16.patch b/net-libs/udns/files/udns-0.4-configure-pton-ntop-clang16.patch deleted file mode 100644 index 5eb0010092a8a..0000000000000 --- a/net-libs/udns/files/udns-0.4-configure-pton-ntop-clang16.patch +++ /dev/null @@ -1,22 +0,0 @@ -Bug: https://bugs.gentoo.org/883285 - -From e39b749619191226ccbf8730084c0d2dcadc9065 Mon Sep 17 00:00:00 2001 -From: Violet Purcell -Date: Sat, 8 Jul 2023 18:34:11 +0000 -Subject: [PATCH] Fix detection of dns_pton and dns_ntop with clang 16 - ---- a/configure -+++ b/configure -@@ -94,7 +94,8 @@ int main() { - char buf[64]; - long x = 0; - inet_pton(AF_INET, &x, buf); -- return inet_ntop(AF_INET, &x, buf, sizeof(buf)); -+ inet_ntop(AF_INET, &x, buf, sizeof(buf)); -+ return 0; - } - EOF - --- -2.41.0 - diff --git a/net-libs/udns/udns-0.4-r2.ebuild b/net-libs/udns/udns-0.4-r2.ebuild deleted file mode 100644 index a963d2ac18b40..0000000000000 --- a/net-libs/udns/udns-0.4-r2.ebuild +++ /dev/null @@ -1,47 +0,0 @@ -# Copyright 1999-2023 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -inherit edo toolchain-funcs - -DESCRIPTION="Async-capable DNS stub resolver library" -HOMEPAGE="http://www.corpit.ru/mjt/udns.html" -SRC_URI="http://www.corpit.ru/mjt/udns/${P}.tar.gz" - -LICENSE="LGPL-2.1" -SLOT="0" -KEYWORDS="amd64 ~hppa ppc ~ppc64 sparc x86" -IUSE="ipv6 static +tools" - -PATCHES=( - "${FILESDIR}"/${PN}-0.4-configure-clang16.patch - "${FILESDIR}"/${PN}-0.4-configure-pton-ntop-clang16.patch -) - -src_configure() { - # Uses non-standard configure script, econf doesn't work - CC="$(tc-getCC)" edo ./configure $(use_enable ipv6) -} - -src_compile() { - emake $(usex tools shared sharedlib) -} - -src_install() { - dolib.so libudns.so.0 - dosym libudns.so.0 /usr/$(get_libdir)/libudns.so - - if use tools; then - newbin dnsget_s dnsget - newbin ex-rdns_s ex-rdns - newbin rblcheck_s rblcheck - fi - - doheader udns.h - - doman udns.3 - use tools && doman dnsget.1 rblcheck.1 - - dodoc NEWS NOTES TODO -}