[gentoo-commits] repo/gentoo:master commit in: net-libs/udns/files/, net-libs/udns/

2023-12-16 Thread Sam James
commit: fdc52315cd216a96a9956991d21f06348ef9de6e
Author: Sam James  gentoo  org>
AuthorDate: Sat Dec 16 08:11:10 2023 +
Commit: Sam James  gentoo  org>
CommitDate: Sat Dec 16 08:23:54 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=fdc52315

net-libs/udns: fix (another) modern C issue

Bug: https://bugs.gentoo.org/874759
Bug: https://bugs.gentoo.org/883285
Closes: https://bugs.gentoo.org/919260
Signed-off-by: Sam James  gentoo.org>

 net-libs/udns/files/udns-0.4-configure-c99.patch | 33 +
 net-libs/udns/udns-0.4-r3.ebuild | 46 
 2 files changed, 79 insertions(+)

diff --git a/net-libs/udns/files/udns-0.4-configure-c99.patch 
b/net-libs/udns/files/udns-0.4-configure-c99.patch
new file mode 100644
index ..cedf073fe0ff
--- /dev/null
+++ b/net-libs/udns/files/udns-0.4-configure-c99.patch
@@ -0,0 +1,33 @@
+https://bugs.gentoo.org/874759
+https://bugs.gentoo.org/883285
+https://bugs.gentoo.org/919260
+https://src.fedoraproject.org/rpms/udns/c/27e7b66faa416c13b113e895c204373596282c37?branch=rawhide
+
+Provide autoconf-style fake prototype for socket to avoid implicit
+function declarations.  Otherwise the check will always fail with soem
+C99 compilers.
+
+Avoid incorrect pointer types and a pointer-to-int conversion with
+inet_pton and inet_ntop.
+
+--- a/configure
 b/configure
+@@ -75,6 +75,7 @@ int main(int argc, char **argv) {
+ EOF
+ 
+ if ac_library_find_v 'socket and connect' "" "-lsocket -lnsl" 

[gentoo-commits] repo/gentoo:master commit in: net-libs/udns/files/, net-libs/udns/

2023-07-08 Thread Sam James
commit: 484780bbcbc5bbace9eebb4ed538760df7dd2343
Author: Violet Purcell  inventati  org>
AuthorDate: Sat Jul  8 18:39:56 2023 +
Commit: Sam James  gentoo  org>
CommitDate: Sun Jul  9 02:10:18 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=484780bb

net-libs/udns: Fix detection of inet_pton and inet_ntop with clang 16

Closes: https://bugs.gentoo.org/883285
Signed-off-by: Violet Purcell  inventati.org>
Closes: https://github.com/gentoo/gentoo/pull/31806
Signed-off-by: Sam James  gentoo.org>

 .../udns-0.4-configure-pton-ntop-clang16.patch | 22 ++
 .../{udns-0.4-r1.ebuild => udns-0.4-r2.ebuild} |  3 ++-
 2 files changed, 24 insertions(+), 1 deletion(-)

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
new file mode 100644
index ..5eb0010092a8
--- /dev/null
+++ b/net-libs/udns/files/udns-0.4-configure-pton-ntop-clang16.patch
@@ -0,0 +1,22 @@
+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 +
+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, , buf);
+-  return inet_ntop(AF_INET, , buf, sizeof(buf));
++  inet_ntop(AF_INET, , buf, sizeof(buf));
++  return 0;
+ } 
+ EOF
+ 
+-- 
+2.41.0
+

diff --git a/net-libs/udns/udns-0.4-r1.ebuild b/net-libs/udns/udns-0.4-r2.ebuild
similarity index 90%
rename from net-libs/udns/udns-0.4-r1.ebuild
rename to net-libs/udns/udns-0.4-r2.ebuild
index f8f8c3675854..a963d2ac18b4 100644
--- a/net-libs/udns/udns-0.4-r1.ebuild
+++ b/net-libs/udns/udns-0.4-r2.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2022 Gentoo Authors
+# Copyright 1999-2023 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=8
@@ -16,6 +16,7 @@ IUSE="ipv6 static +tools"
 
 PATCHES=(
"${FILESDIR}"/${PN}-0.4-configure-clang16.patch
+   "${FILESDIR}"/${PN}-0.4-configure-pton-ntop-clang16.patch
 )
 
 src_configure() {



[gentoo-commits] repo/gentoo:master commit in: net-libs/udns/, net-libs/udns/files/

2022-12-29 Thread Sam James
commit: 358a7757b4c68cd58ed9b51de11e3bdbcf0e5780
Author: Sam James  gentoo  org>
AuthorDate: Fri Dec 30 04:46:15 2022 +
Commit: Sam James  gentoo  org>
CommitDate: Fri Dec 30 04:50:46 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=358a7757

net-libs/udns: fix build w/ clang 16

Closes: https://bugs.gentoo.org/874759
Signed-off-by: Sam James  gentoo.org>

 .../udns/files/udns-0.4-configure-clang16.patch| 24 ++
 .../udns/{udns-0.4.ebuild => udns-0.4-r1.ebuild}   | 10 ++---
 2 files changed, 31 insertions(+), 3 deletions(-)

diff --git a/net-libs/udns/files/udns-0.4-configure-clang16.patch 
b/net-libs/udns/files/udns-0.4-configure-clang16.patch
new file mode 100644
index ..6b2dcda26ca0
--- /dev/null
+++ b/net-libs/udns/files/udns-0.4-configure-clang16.patch
@@ -0,0 +1,24 @@
+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/udns-0.4.ebuild b/net-libs/udns/udns-0.4-r1.ebuild
similarity index 84%
rename from net-libs/udns/udns-0.4.ebuild
rename to net-libs/udns/udns-0.4-r1.ebuild
index da981b2165e9..f8f8c3675854 100644
--- a/net-libs/udns/udns-0.4.ebuild
+++ b/net-libs/udns/udns-0.4-r1.ebuild
@@ -1,9 +1,9 @@
 # Copyright 1999-2022 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
-EAPI=7
+EAPI=8
 
-inherit toolchain-funcs
+inherit edo toolchain-funcs
 
 DESCRIPTION="Async-capable DNS stub resolver library"
 HOMEPAGE="http://www.corpit.ru/mjt/udns.html;
@@ -14,9 +14,13 @@ SLOT="0"
 KEYWORDS="amd64 ~hppa ppc ~ppc64 sparc x86"
 IUSE="ipv6 static +tools"
 
+PATCHES=(
+   "${FILESDIR}"/${PN}-0.4-configure-clang16.patch
+)
+
 src_configure() {
# Uses non-standard configure script, econf doesn't work
-   CC="$(tc-getCC)" ./configure $(use_enable ipv6) || die "Configure 
failed"
+   CC="$(tc-getCC)" edo ./configure $(use_enable ipv6)
 }
 
 src_compile() {



[gentoo-commits] repo/gentoo:master commit in: net-libs/udns/

2022-03-19 Thread Sam James
commit: 4b3e924c1183ec10084b61c1a582662d3152a9e8
Author: Sam James  gentoo  org>
AuthorDate: Sat Mar 19 23:47:35 2022 +
Commit: Sam James  gentoo  org>
CommitDate: Sat Mar 19 23:47:35 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4b3e924c

net-libs/udns: [QA] fix tc-get* quoting

This can cause build problems for e.g. 32-bit (gcc -m32 ...)

Signed-off-by: Sam James  gentoo.org>

 net-libs/udns/udns-0.4.ebuild | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/net-libs/udns/udns-0.4.ebuild b/net-libs/udns/udns-0.4.ebuild
index 0953628925ed..da981b2165e9 100644
--- a/net-libs/udns/udns-0.4.ebuild
+++ b/net-libs/udns/udns-0.4.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2020 Gentoo Authors
+# Copyright 1999-2022 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=7
@@ -16,7 +16,7 @@ IUSE="ipv6 static +tools"
 
 src_configure() {
# Uses non-standard configure script, econf doesn't work
-   CC=$(tc-getCC) ./configure $(use_enable ipv6) || die "Configure failed"
+   CC="$(tc-getCC)" ./configure $(use_enable ipv6) || die "Configure 
failed"
 }
 
 src_compile() {



[gentoo-commits] repo/gentoo:master commit in: net-libs/udns/

2020-02-09 Thread David Seifert
commit: 481e4782929aef758ba3de9d28cc598d88a1fe9c
Author: David Seifert  gentoo  org>
AuthorDate: Sun Feb  9 18:49:24 2020 +
Commit: David Seifert  gentoo  org>
CommitDate: Sun Feb  9 18:49:24 2020 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=481e4782

net-libs/udns: Port to EAPI 7

Package-Manager: Portage-2.3.88, Repoman-2.3.20
Signed-off-by: David Seifert  gentoo.org>

 net-libs/udns/metadata.xml| 14 +++---
 net-libs/udns/udns-0.4.ebuild | 26 --
 2 files changed, 15 insertions(+), 25 deletions(-)

diff --git a/net-libs/udns/metadata.xml b/net-libs/udns/metadata.xml
index f0db182dbd4..63f96226167 100644
--- a/net-libs/udns/metadata.xml
+++ b/net-libs/udns/metadata.xml
@@ -1,11 +1,11 @@
 
 http://www.gentoo.org/dtd/metadata.dtd;>
 
-
-
-   Build and install dnsget, ex-rdns and rblcheck 
tools
-
-
-UDNS is a stub DNS resolver library with ability to perform both syncronous 
and asyncronous DNS queries.
-
+   
+   
+   Build and install dnsget, ex-rdns and 
rblcheck tools
+   
+   
+   UDNS is a stub DNS resolver library with ability to perform 
both syncronous and asyncronous DNS queries.
+   
 

diff --git a/net-libs/udns/udns-0.4.ebuild b/net-libs/udns/udns-0.4.ebuild
index f19b2595dc0..0953628925e 100644
--- a/net-libs/udns/udns-0.4.ebuild
+++ b/net-libs/udns/udns-0.4.ebuild
@@ -1,9 +1,9 @@
-# Copyright 1999-2015 Gentoo Foundation
+# Copyright 1999-2020 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
-EAPI="4"
+EAPI=7
 
-inherit eutils multilib toolchain-funcs
+inherit toolchain-funcs
 
 DESCRIPTION="Async-capable DNS stub resolver library"
 HOMEPAGE="http://www.corpit.ru/mjt/udns.html;
@@ -14,26 +14,18 @@ SLOT="0"
 KEYWORDS="amd64 ~hppa ppc ~ppc64 sparc x86"
 IUSE="ipv6 static +tools"
 
-# Yes, this doesn't depend on any other library beside "system" set
-DEPEND=""
-RDEPEND=""
-
 src_configure() {
# Uses non-standard configure script, econf doesn't work
CC=$(tc-getCC) ./configure $(use_enable ipv6) || die "Configure failed"
 }
 
 src_compile() {
-   if use tools; then
-   emake shared
-   else
-   emake sharedlib
-   fi
+   emake $(usex tools shared sharedlib)
 }
 
 src_install() {
dolib.so libudns.so.0
-   dosym libudns.so.0 "/usr/$(get_libdir)/libudns.so"
+   dosym libudns.so.0 /usr/$(get_libdir)/libudns.so
 
if use tools; then
newbin dnsget_s dnsget
@@ -41,12 +33,10 @@ src_install() {
newbin rblcheck_s rblcheck
fi
 
-   insinto /usr/include
-   doins udns.h
+   doheader udns.h
 
doman udns.3
-   if use tools; then
-   doman dnsget.1 rblcheck.1
-   fi
+   use tools && doman dnsget.1 rblcheck.1
+
dodoc NEWS NOTES TODO
 }