From 8eccda982236f2cfe9188bdcaffd9168134f39a9 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Fri, 27 Jan 2023 13:58:28 +0000 Subject: gentoo auto-resync : 27:01:2023 - 13:58:28 --- net-libs/ldns/Manifest | 4 +- .../ldns/files/ldns-1.8.3-configure-strict.patch | 139 +++++++++++++++++++++ net-libs/ldns/files/ldns-1.8.3-docs.patch | 95 ++++++++++++++ net-libs/ldns/ldns-1.8.3.ebuild | 29 +++-- 4 files changed, 253 insertions(+), 14 deletions(-) create mode 100644 net-libs/ldns/files/ldns-1.8.3-configure-strict.patch create mode 100644 net-libs/ldns/files/ldns-1.8.3-docs.patch (limited to 'net-libs/ldns') diff --git a/net-libs/ldns/Manifest b/net-libs/ldns/Manifest index 94fddd0185b5..34976ee45afb 100644 --- a/net-libs/ldns/Manifest +++ b/net-libs/ldns/Manifest @@ -1,8 +1,10 @@ AUX ldns-1.8.1-pkgconfig.patch 273 BLAKE2B 8605665fa76e2493efa4d773742e84a7b1df81cec4b8695a00c3eb4e10b915b4fd4d483f40fa61d14f7303d7f344e3602daecad42491c4de81a9bb0a03e4f896 SHA512 017e0ba07ab348a809852f567ad6c9fc5c0dd3ede9fcc24c53da96d2bfaa2e8e5662eb566818813c19ee19799c4ad6b11e8f5007d1f1fac8b5eb3b05424ec5a0 +AUX ldns-1.8.3-configure-strict.patch 3873 BLAKE2B bf4ae24f786a34e43833d1ce1b7650db32f49ce272340c26887d920b20a5a951a5e4ee1a1d8e8efea96e60ae1e009f7261402fc59a6283dba893182782c0fd14 SHA512 a6bd3fc5a38ad7d0cd95cea36f61ff3e40978c953aa723f769442e43aa829ca8787f33ad086254af391b1b68a99402a61dcbcb3f9e86c8c17357a88ce0f082f5 +AUX ldns-1.8.3-docs.patch 3940 BLAKE2B bf0823b32dcf5935fdccee131aa52f597a229c8df9575e3018cc733eba050c56ebc79049d064775fc599ca28e92ee5da67d784209faf8a9d30ebd72586cc1b7e SHA512 88ea628be7bd188e7ed95a5d41f8ca39d1e8d576bfd5ea59cdb3f1f4319fbb435889e50aa150a50ef8ee4a4e572d2352432aab50832769b6729ad588e7b67c86 DIST ldns-1.8.0.tar.gz 1283220 BLAKE2B f916a8c76d788ac7c52aea8bfe675ad4c614a0c6fb011b61f5a27d4a5dc1a2adb33b5c6992b4813b3758c9b7cceab1c77f8c1d66baaa4de993f23888bce69df1 SHA512 54b306160bb7fd76d181f4be0a13134017f6f98ae96e0c954409f31f262e9dbe611c4b76fb6dff47bb6155c652ed8d026b52a50dfcf611e54d9c204b314c4fd6 DIST ldns-1.8.1.tar.gz 1284971 BLAKE2B ae01ef32571fe3996ddd41f911815239abb704ea1dee479fa612bfd701ca369222ab709923f014662248988cb4452a75bc5debad47d2b0386dc59169b353e6a3 SHA512 600f8e221716742caf439a425008827aef1814fc1d9e751f8f492d0235ff45ca48df90abba17979bac9f4485947bb9fe8102924d9cebe6cb56d5b788e1c4bd14 DIST ldns-1.8.3.tar.gz 1299856 BLAKE2B 2250445da3beec76c96fbb5cbc00f8d6a5bb6ed5867da7f23511d46ac73d6101303eb6ad85def426b7f9287f6a629a95117bcfa6eb46b775d07ed84048162c7f SHA512 c318747bd975ade389d048680b80495fb083b46507d8dcea7d4d42c75823f56a35b438dcc5320803d39583e5a1e515a51686f7f9010c061a6e8199e1a5505ae9 EBUILD ldns-1.8.0-r4.ebuild 2970 BLAKE2B daf7f3e9d06f4d45861278b75951e5eb1792f8d721229dbb343d2c6e41fe7ba28a21bea5f46a456fb94edab312a7b35a620dd115e02ecdfd59c8755a8cf23885 SHA512 05c6fdfad9784b3bd38d52bb6ac2f09617a109ddd3c24ce99ac57f5c52270da6ce229b9c1d2bb886b9109dc112a7596bb24355ced8b3f9cfb2983bd24b672f8e EBUILD ldns-1.8.1.ebuild 1842 BLAKE2B 8ec37b4adba589508ad5ebaa4fee0c6326c6d6ee7659e46a4d41f25a69549b3ee460e78ffe24dd9e4b5c763b773100d3d871e169c0c64b08c3f2359d5e7df1d0 SHA512 c551fafcf95fbced99f02d5ae81ac5596038f51fa2dbaafedc6001369ec2d50a197e2b345ec500488b3a11f3058d3586d759b32f122cc9f8b4638fa55a23c926 -EBUILD ldns-1.8.3.ebuild 1842 BLAKE2B 8ec37b4adba589508ad5ebaa4fee0c6326c6d6ee7659e46a4d41f25a69549b3ee460e78ffe24dd9e4b5c763b773100d3d871e169c0c64b08c3f2359d5e7df1d0 SHA512 c551fafcf95fbced99f02d5ae81ac5596038f51fa2dbaafedc6001369ec2d50a197e2b345ec500488b3a11f3058d3586d759b32f122cc9f8b4638fa55a23c926 +EBUILD ldns-1.8.3.ebuild 1949 BLAKE2B e250146286fab7c4b498288c769cbdbb7391d56aad00a1854bd73a2e35827dbd6935de52584fbf22292c878327e5eb0df7bbeef3e611ff1482b1d9d1ccd33c62 SHA512 4c6b2b302918f9ab4ed8ab6a8f5eb31feb73f153e95543fced9669836e73bc93575dc650602069594f02a45e2c50b46d098b0a7ccfd386ba486a5d4de35e6e2a MISC metadata.xml 933 BLAKE2B 4382e8d75f379211e781a0309b483105cbdba740cbd473b29d6b892351d3a5d270487c759ba7a1f5bcad448222cb1c24ef8257cd089c54ce9df0523ff708888a SHA512 395c02c568874e3d22434431f5e72dd98a647455ec0587723cb447c4d5a2fb468256bb35aff2c74b8255203d21f4d844f5a4ad426037eeb907d67ffedeb6d74e diff --git a/net-libs/ldns/files/ldns-1.8.3-configure-strict.patch b/net-libs/ldns/files/ldns-1.8.3-configure-strict.patch new file mode 100644 index 000000000000..37b809585a9b --- /dev/null +++ b/net-libs/ldns/files/ldns-1.8.3-configure-strict.patch @@ -0,0 +1,139 @@ +https://github.com/NLnetLabs/ldns/commit/59af7359ed744327aaf0deb2e6ac90fe9e191ba6 + +From 59af7359ed744327aaf0deb2e6ac90fe9e191ba6 Mon Sep 17 00:00:00 2001 +From: Sam James +Date: Sat, 19 Nov 2022 01:31:57 +0000 +Subject: [PATCH] acx_nlnetlabs.m4: fix -Wstrict-prototypes + +Fix -Wstrict-prototypes as it's easy to do and avoids future warnings. Noticed +when doing Clang 16 / GCC 14 / C23 work. + +For more information, see LWN.net [0] or LLVM's Discourse [1], the Gentoo wiki [2], +or the (new) c-std-porting mailing list [3]. + +[0] https://lwn.net/Articles/913505/ +[1] https://discourse.llvm.org/t/configure-script-breakage-with-the-new-werror-implicit-function-declaration/65213 +[2] https://wiki.gentoo.org/wiki/Modern_C_porting +[3] hosted at lists.linux.dev. + +Signed-off-by: Sam James +--- a/acx_nlnetlabs.m4 ++++ b/acx_nlnetlabs.m4 +@@ -183,7 +183,7 @@ dnl cache=`echo $1 | sed 'y%.=/+- %___p__%'` + AC_CACHE_VAL(cv_prog_cc_flag_needed_$cache, + [ + echo '$2' > conftest.c +-echo 'void f(){}' >>conftest.c ++echo 'void f(void){}' >>conftest.c + if test -z "`$CC $CPPFLAGS $CFLAGS $ERRFLAG -c conftest.c 2>&1`"; then + eval "cv_prog_cc_flag_needed_$cache=no" + else +@@ -229,7 +229,7 @@ dnl DEPFLAG: set to flag that generates dependencies. + AC_DEFUN([ACX_DEPFLAG], + [ + AC_MSG_CHECKING([$CC dependency flag]) +-echo 'void f(){}' >conftest.c ++echo 'void f(void){}' >conftest.c + if test "`$CC -MM conftest.c 2>&1`" = "conftest.o: conftest.c"; then + DEPFLAG="-MM" + else +@@ -268,7 +268,7 @@ ACX_CHECK_COMPILER_FLAG_NEEDED($C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_DEFAUL + #include + #endif + +-int test() { ++int test(void) { + int a; + char **opts = NULL; + struct timeval tv; +@@ -305,7 +305,7 @@ ACX_CHECK_COMPILER_FLAG_NEEDED($C99FLAG -D__EXTENSIONS__ -D_BSD_SOURCE -D_DEFAUL + #include + #endif + +-int test() { ++int test(void) { + int a; + char **opts = NULL; + struct timeval tv; +@@ -331,7 +331,7 @@ ACX_CHECK_COMPILER_FLAG_NEEDED($C99FLAG, + [ + #include + #include +-int test() { ++int test(void) { + int a = 0; + return a; + } +@@ -341,7 +341,7 @@ ACX_CHECK_COMPILER_FLAG_NEEDED(-D_BSD_SOURCE -D_DEFAULT_SOURCE, + [ + #include + +-int test() { ++int test(void) { + int a; + a = isascii(32); + return a; +@@ -352,7 +352,7 @@ ACX_CHECK_COMPILER_FLAG_NEEDED(-D_GNU_SOURCE, + [ + #include + +-int test() { ++int test(void) { + struct in6_pktinfo inf; + int a = (int)sizeof(inf); + return a; +@@ -366,7 +366,7 @@ ACX_CHECK_COMPILER_FLAG_NEEDED(-D_GNU_SOURCE -D_FRSRESGID, + [ + #include + +-int test() { ++int test(void) { + int a = setresgid(0,0,0); + a = setresuid(0,0,0); + return a; +@@ -381,7 +381,7 @@ ACX_CHECK_COMPILER_FLAG_NEEDED(-D_POSIX_C_SOURCE=200112, + #endif + #include + +-int test() { ++int test(void) { + int a = 0; + char *t; + time_t time = 0; +@@ -409,7 +409,7 @@ ACX_CHECK_COMPILER_FLAG_NEEDED(-D__EXTENSIONS__, + #include + #endif + +-int test() { ++int test(void) { + int a; + char **opts = NULL; + struct timeval tv; +@@ -809,7 +809,7 @@ dnl try to see if an additional _LARGEFILE_SOURCE 1 is needed to get fseeko + ACX_CHECK_COMPILER_FLAG_NEEDED(-D_LARGEFILE_SOURCE=1, + [ + #include +-int test() { ++int test(void) { + int a = fseeko(stdin, 0, 0); + return a; + } +@@ -834,7 +834,7 @@ char* (*f) () = getaddrinfo; + #ifdef __cplusplus + } + #endif +-int main() { ++int main(void) { + ; + return 0; + } +@@ -898,7 +898,7 @@ cache=`echo $1 | sed 'y%.=/+-%___p_%'` + AC_CACHE_VAL(cv_cc_deprecated_$cache, + [ + echo '$3' >conftest.c +-echo 'void f(){ $2 }' >>conftest.c ++echo 'void f(void){ $2 }' >>conftest.c + if test -z "`$CC $CPPFLAGS $CFLAGS -c conftest.c 2>&1 | grep -e deprecated -e unavailable`"; then + eval "cv_cc_deprecated_$cache=no" + else + diff --git a/net-libs/ldns/files/ldns-1.8.3-docs.patch b/net-libs/ldns/files/ldns-1.8.3-docs.patch new file mode 100644 index 000000000000..6b4e7582a441 --- /dev/null +++ b/net-libs/ldns/files/ldns-1.8.3-docs.patch @@ -0,0 +1,95 @@ +https://bugs.gentoo.org/892065 +https://github.com/NLnetLabs/ldns/commit/5d5c95a947d98dd292ba81e95ca90ba6aeccb1d0 + +From 5d5c95a947d98dd292ba81e95ca90ba6aeccb1d0 Mon Sep 17 00:00:00 2001 +From: Willem Toorop +Date: Mon, 5 Sep 2022 10:01:18 +0200 +Subject: [PATCH] Fix building documentation in build directory. + +Thanks Michael Tokarev +--- a/Makefile.in ++++ b/Makefile.in +@@ -270,7 +270,7 @@ doxygen: + @if test ! -e doc/header.html ; then \ + $(INSTALL) -c -m 644 $(srcdir)/doc/header.html doc/ ; \ + fi ; +- $(doxygen) $(srcdir)/libdns.doxygen ++ $(doxygen) libdns.doxygen + + doc: manpages $(doxygen) + @$(INSTALL) -d doc +--- a/ldns/net.h.in ++++ b/ldns/net.h.in +@@ -91,13 +91,12 @@ int ldns_tcp_bgsend(ldns_buffer *qbin, const struct sockaddr_storage *to, sockle + + /** + * Sends a buffer to an ip using tcp and return the response as a ldns_pkt +- * \param[in] qbin the ldns_buffer to be send ++ * \param[out] result packet with the answer + * \param[in] qbin the ldns_buffer to be send + * \param[in] to the ip addr to send to + * \param[in] tolen length of the ip addr + * \param[in] timeout the timeout value for the network + * \param[out] answersize size of the packet +- * \param[out] result packet with the answer + * \return status + */ + ldns_status ldns_tcp_send(uint8_t **result, ldns_buffer *qbin, const struct sockaddr_storage *to, socklen_t tolen, struct timeval timeout, size_t *answersize); +--- a/libdns.doxygen.in ++++ b/libdns.doxygen.in +@@ -51,7 +51,7 @@ PROJECT_BRIEF = + # pixels and the maximum width should not exceed 200 pixels. Doxygen will copy + # the logo to the output directory. + +-PROJECT_LOGO = doc/images/LogoInGradientBar2-y100.png ++PROJECT_LOGO = @srcdir@/doc/images/LogoInGradientBar2-y100.png + + # The OUTPUT_DIRECTORY tag is used to specify the (relative or absolute) path + # into which the generated documentation will be written. If a relative path is +@@ -854,12 +854,12 @@ WARN_LOGFILE = + # spaces. See also FILE_PATTERNS and EXTENSION_MAPPING + # Note: If this tag is empty the current directory is searched. + +-INPUT = . \ +- ldns/ \ +- doc/ \ +- examples/ldns-mx.c \ +- examples/ldns-read-zone.c \ +- examples/ldns-signzone.c ++INPUT = ldns/ \ ++ @srcdir@/doc/ \ ++ @srcdir@/examples/ldns-mx.c \ ++ @srcdir@/examples/ldns-read-zone.c \ ++ @srcdir@/examples/ldns-signzone.c \ ++ @srcdir@ + + # This tag can be used to specify the character encoding of the source files + # that doxygen parses. Internally doxygen uses the UTF-8 encoding. Doxygen uses +@@ -936,7 +936,7 @@ EXCLUDE_SYMBOLS = + # that contain example code fragments that are included (see the \include + # command). + +-EXAMPLE_PATH = examples ++EXAMPLE_PATH = @srcdir@/examples + + # If the value of the EXAMPLE_PATH tag contains directories, you can use the + # EXAMPLE_PATTERNS tag to specify one or more wildcard pattern (like *.cpp and +@@ -956,7 +956,7 @@ EXAMPLE_RECURSIVE = NO + # that contain images that are to be included in the documentation (see the + # \image command). + +-IMAGE_PATH = doc/images ++IMAGE_PATH = @srcdir@/doc/images + + # The INPUT_FILTER tag can be used to specify a program that doxygen should + # invoke to filter for each input file. Doxygen will invoke the filter program +@@ -1798,7 +1798,7 @@ COMPACT_LATEX = NO + # The default value is: a4. + # This tag requires that the tag GENERATE_LATEX is set to YES. + +-PAPER_TYPE = a4wide ++PAPER_TYPE = a4 + + # The EXTRA_PACKAGES tag can be used to specify one or more LaTeX package names + # that should be included in the LaTeX output. The package can be specified just + diff --git a/net-libs/ldns/ldns-1.8.3.ebuild b/net-libs/ldns/ldns-1.8.3.ebuild index 310606f4c952..04665c7bc53b 100644 --- a/net-libs/ldns/ldns-1.8.3.ebuild +++ b/net-libs/ldns/ldns-1.8.3.ebuild @@ -2,8 +2,9 @@ # Distributed under the terms of the GNU General Public License v2 EAPI=8 + PYTHON_COMPAT=( python3_{9,10} ) -inherit python-single-r1 multilib-minimal +inherit autotools python-single-r1 multilib-minimal DESCRIPTION="A library with the aim to simplify DNS programming in C" HOMEPAGE="https://www.nlnetlabs.nl/projects/ldns/" @@ -13,10 +14,8 @@ LICENSE="BSD" SLOT="0/3" KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~ppc-macos ~x64-macos ~x64-solaris" IUSE="doc examples python static-libs" - -REQUIRED_USE=" - python? ( ${PYTHON_REQUIRED_USE} ) -" +REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )" +RESTRICT="test" # missing test directory BDEPEND=" python? ( dev-lang/swig ) @@ -27,30 +26,34 @@ DEPEND=" >=dev-libs/openssl-1.1.1l-r1:0=[${MULTILIB_USEDEP},static-libs?] examples? ( net-libs/libpcap ) " -RDEPEND="${DEPEND} +RDEPEND=" + ${DEPEND} !