diff options
author | V3n3RiX <venerix@koprulu.sector> | 2023-12-16 14:53:46 +0000 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2023-12-16 14:53:46 +0000 |
commit | f5588424e3182e3006f725536eebd7dc7b5bbfd4 (patch) | |
tree | 2c2ccb3df6c5e1039da984d110f02d0c2ec12cf1 /net-libs/udns | |
parent | d969fd257186a9d8083279276697f827331f0e46 (diff) |
gentoo auto-resync : 16:12:2023 - 14:53:46
Diffstat (limited to 'net-libs/udns')
-rw-r--r-- | net-libs/udns/Manifest | 2 | ||||
-rw-r--r-- | net-libs/udns/files/udns-0.4-configure-c99.patch | 33 | ||||
-rw-r--r-- | net-libs/udns/udns-0.4-r3.ebuild | 46 |
3 files changed, 81 insertions, 0 deletions
diff --git a/net-libs/udns/Manifest b/net-libs/udns/Manifest index 9f8f288147c4..4db534f0becc 100644 --- a/net-libs/udns/Manifest +++ b/net-libs/udns/Manifest @@ -1,5 +1,7 @@ +AUX udns-0.4-configure-c99.patch 974 BLAKE2B 1e0fd8fac1613d193f953e4f6566a9fd7cf907695d51bbac1a192aa1f86aaba5925b3fcf5c008ae405624dedd2fd96f786534515218b758ca7e72e865260254d SHA512 d73205488bca9d2d8dcf895f528edc712b2e28badc5a4cfc530098002dba18b4fc1a8b93500de8920d2a787ccc84e6a3e2934889b3ac2f895e159d1e4c9cf05d AUX udns-0.4-configure-clang16.patch 662 BLAKE2B 1f5fd83da10302849a3cb519ca49d07d88c4c08635baa1d15712fb4606430150c3e21d1da187b0bb1b28ed0fe50ece3d0b4f0a788214a843e0783ccb0e2140b6 SHA512 8265fe9385598973f6decb68c6d2650704d800007476e5a8ad761a1938a04b6e43b0405cd674add1e9d5f5f68691bc36d5a99a370049d258f194805009f4235d AUX udns-0.4-configure-pton-ntop-clang16.patch 523 BLAKE2B f7050249692662d465beb39e6c5be9abb35985832f88ec45c803757a3514f850b2ab9442b1a68d2708b37607e96fbde94fa2b95f83ee3898ef77ce4905d41511 SHA512 b9138f923b309521e7349ba4448f3064682284eeffa1061d2e5c01a13c5ab42d14415121e0e6814c6074aae8c294c61e0c64e4656e87f9bdbe0720317b548365 DIST udns-0.4.tar.gz 84716 BLAKE2B df41b325ae2ffaaaf09e1bb6f52d9e9a7c468c70d8bec849cb90ebcb1fac773ee2dc7e37125a75750b61a1a78d0416e6c9aeb72e43780b474d36e370a1b9cd8d SHA512 2990d57b3b6bf176a12ee07fd4391921e13634fc8409e8ce4df8dbe7b3556a116ae59ab328a1b6a95ebc94298f6b56ec7197a06a649d8d642b371b8ecef3e40b EBUILD udns-0.4-r2.ebuild 998 BLAKE2B c46346e2c40791a96775a01d1c27780d089feb0944d4bdeefcddd81deff44a1465933f13f016f4b37c1bb2483a63f0327036bcae0d5c2616a6d7ed6d59485cf1 SHA512 142aab4b1c69f024448bc42429e476457a4a153e329bb9004b2bfb88c77176833bf8be438a4b4e7000085bdd2019c48000b42cb64ccc428ddd924ff0bcdde8a0 +EBUILD udns-0.4-r3.ebuild 939 BLAKE2B 2f842d5dcd42a09335446949c8e929ea0925bfb46227a5b32cf330530f45e3191aa469d69d0db15ca7eec7c56ff794578ad339e80f84185fa28532edbd931a42 SHA512 f75ca53d0e9699b1a4214ca4d746cc2c12a0520f7f938b2e43bf5e2f2b1b3c09bdd5180a1ca059174b40fd4c0b59d87bb9505e43fcd8ce9126d9d178b7f9e5b9 MISC metadata.xml 410 BLAKE2B 1e21502a7b8c033b1a659a3cd235069d51a50531ed37c2873f610df9131723764971b3886f59ba4c212685db3fef6a8df17681942f011bd905ff4d07c83a7c49 SHA512 073730684153f02c08348567177e5e048ab93441ea3429ff40f15e32ee555e7a30476c19566b55cf86da835fcd479cc7f408bc95ef371d66cb4e7e8408b5cc04 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 000000000000..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" <<EOF ++char socket(void); char connect(void); + int main() { socket(); connect(); return 0; } + EOF + then : +@@ -92,8 +93,8 @@ ac_ign \ + int main() { + char buf[64]; + long x = 0; +- inet_pton(AF_INET, &x, buf); +- return inet_ntop(AF_INET, &x, buf, sizeof(buf)); ++ inet_pton(AF_INET, (void *) &x, buf); ++ return inet_ntop(AF_INET, (void *) &x, buf, sizeof(buf)) != 0; + } + EOF + diff --git a/net-libs/udns/udns-0.4-r3.ebuild b/net-libs/udns/udns-0.4-r3.ebuild new file mode 100644 index 000000000000..76ee1d6bd4c5 --- /dev/null +++ b/net-libs/udns/udns-0.4-r3.ebuild @@ -0,0 +1,46 @@ +# 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-c99.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 +} |