mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-17 14:49:30 -07:00
net-libs/udns: drop 0.4-r2
Bug: https://bugs.gentoo.org/874759 Signed-off-by: Andreas K. Hüttel <dilfridge@gentoo.org>
This commit is contained in:
@@ -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 <<EOF
|
||||
#include <stdio.h>
|
||||
+#include <unistd.h>
|
||||
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" <<EOF
|
||||
-int main() { socket(); connect(); return 0; }
|
||||
+#include <sys/socket.h>
|
||||
+int main() { socket(0, 0, 0); connect(0, 0, 0); return 0; }
|
||||
EOF
|
||||
then :
|
||||
else
|
||||
@@ -1,22 +0,0 @@
|
||||
Bug: https://bugs.gentoo.org/883285
|
||||
|
||||
From e39b749619191226ccbf8730084c0d2dcadc9065 Mon Sep 17 00:00:00 2001
|
||||
From: Violet Purcell <vimproved@inventati.org>
|
||||
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
|
||||
|
||||
@@ -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
|
||||
}
|
||||
Reference in New Issue
Block a user