From nobody Fri Feb 24 12:16:47 2023 X-Original-To: dev-commits-ports-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4PNTQw07ddz3tB5n; Fri, 24 Feb 2023 12:16:56 +0000 (UTC) (envelope-from mm@FreeBSD.org) Received: from www541.your-server.de (www541.your-server.de [213.133.107.7]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4PNTQv5BD6z3wjb; Fri, 24 Feb 2023 12:16:55 +0000 (UTC) (envelope-from mm@FreeBSD.org) Authentication-Results: mx1.freebsd.org; none Received: from sslproxy01.your-server.de ([78.46.139.224]) by www541.your-server.de with esmtpsa (TLS1.3) tls TLS_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1pVX0K-0002ir-Ed; Fri, 24 Feb 2023 13:16:48 +0100 Received: from [188.167.171.2] (helo=[10.0.9.124]) by sslproxy01.your-server.de with esmtpsa (TLSv1.3:TLS_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1pVX0K-000E58-52; Fri, 24 Feb 2023 13:16:48 +0100 Message-ID: <991cd859-05ab-2348-8943-4b0521bc487f@FreeBSD.org> Date: Fri, 24 Feb 2023 13:16:47 +0100 List-Id: Commits to the main branch of the FreeBSD ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-main@freebsd.org X-BeenThere: dev-commits-ports-main@freebsd.org MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.7.1 Subject: Re: git: 956aa4e270bf - main - dns/udns: unbreak build on 14-CURRENT Content-Language: en-US To: Mathieu Arnold Cc: ports-committers@freebsd.org, dev-commits-ports-all@freebsd.org, dev-commits-ports-main@freebsd.org References: <202302241022.31OAMhrK091276@gitrepo.freebsd.org> <20230224103608.xpbofeby6sb6zhlm@aching.in.mat.cc> From: Martin Matuska In-Reply-To: <20230224103608.xpbofeby6sb6zhlm@aching.in.mat.cc> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Authenticated-Sender: martin@matuska.de X-Virus-Scanned: Clear (ClamAV 0.103.8/26822/Fri Feb 24 09:34:08 2023) X-Rspamd-Queue-Id: 4PNTQv5BD6z3wjb X-Spamd-Bar: ---- X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:24940, ipnet:213.133.96.0/19, country:DE] X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-ThisMailContainsUnwantedMimeParts: N Sorry, I tend to do that automatically if something changes. On 24. 2. 2023 11:36, Mathieu Arnold wrote: > On Fri, Feb 24, 2023 at 10:22:43AM +0000, Martin Matuska wrote: >> The branch main has been updated by mm: >> >> URL: https://cgit.FreeBSD.org/ports/commit/?id=956aa4e270bf746d69ee77c8497dae2d28376cb4 >> >> commit 956aa4e270bf746d69ee77c8497dae2d28376cb4 >> Author: Martin Matuska >> AuthorDate: 2023-02-24 10:09:28 +0000 >> Commit: Martin Matuska >> CommitDate: 2023-02-24 10:22:36 +0000 >> >> dns/udns: unbreak build on 14-CURRENT >> >> Fix detection of inet_pton() and inet_ntop() >> --- >> dns/udns/Makefile | 2 +- >> dns/udns/files/patch-configure | 27 +++++++++++++++++++++++++++ >> 2 files changed, 28 insertions(+), 1 deletion(-) >> >> diff --git a/dns/udns/Makefile b/dns/udns/Makefile >> index c391036d15bd..ec3bcd299dcc 100644 >> --- a/dns/udns/Makefile >> +++ b/dns/udns/Makefile >> @@ -1,6 +1,6 @@ >> PORTNAME= udns >> PORTVERSION= 0.4 >> -PORTREVISION= 1 >> +PORTREVISION= 2 > Why bump PORTREVISION? > >> CATEGORIES= dns >> MASTER_SITES= http://www.corpit.ru/mjt/udns/ >> >> diff --git a/dns/udns/files/patch-configure b/dns/udns/files/patch-configure >> new file mode 100644 >> index 000000000000..ca6971268eae >> --- /dev/null >> +++ b/dns/udns/files/patch-configure >> @@ -0,0 +1,27 @@ >> +--- configure.orig 2023-02-24 09:54:25 UTC >> ++++ configure >> +@@ -83,17 +83,20 @@ else >> + fi >> + >> + ac_ign \ >> +- ac_yesno "for inet_pton() && inet_ntop()" \ >> ++ ac_yesno "for working inet_pton() && inet_ntop()" \ >> + ac_have INET_PTON_NTOP \ >> + ac_link <> + #include >> + #include >> + #include >> ++#include >> + int main() { >> ++ char addr[sizeof(struct in_addr)]; >> + char buf[64]; >> +- long x = 0; >> +- inet_pton(AF_INET, &x, buf); >> +- return inet_ntop(AF_INET, &x, buf, sizeof(buf)); >> ++ char *localhost = "127.0.0.1"; >> ++ inet_pton(AF_INET, localhost, addr); >> ++ inet_ntop(AF_INET, addr, buf, sizeof(buf)); >> ++ return strncmp(localhost, buf, sizeof(localhost)); >> + } >> + EOF >> + >>