gnunet-developers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Fedora Packaging: gethostbyname


From: Christian Grothoff
Subject: Re: Fedora Packaging: gethostbyname
Date: Thu, 16 May 2024 08:23:30 +0200
User-agent: Mozilla Thunderbird

Dear Benson,

If you look closely, getaddrinfo is used by the code by default, with fallbacks (!) to gethostbyname if getaddrinfo doesn't work. I don't think we want to accept a patch that removes the fallbacks, as that wouldn't do anything on modern platforms and only hurt portability.

Happy hacking!

Christian

On 5/16/24 06:46, Benson Muite wrote:
Hi,

Would like to make GNUnet available in Fedora based on the spec file
available at:
https://git.gnunet.org/gnunet-rpm.git/tree/rpmbuild/SPECS/gnunet.spec

One of the warnings I get from the automated review helper tool is that
gethostbyname is used:
https://download.copr.fedorainfracloud.org/results/fed500/gnunet/fedora-rawhide-x86_64/07448019-gnunet/fedora-review/review.txt

See
src/lib/util/resolver_api.c:    host = gethostbyname2 (hostname,
src/lib/util/resolver_api.c:      host = gethostbyname2 (hostname,
src/lib/util/resolver_api.c:    host = gethostbyname (hostname);
src/service/util/test_resolver_api.c:  rootserver = gethostbyname
(rootserver_name);

src/service/arm/test_gnunet_service_arm.c:    host = gethostbyname2
(hostname, AF_INET);
src/service/arm/test_gnunet_service_arm.c:      host = gethostbyname2
(hostname, AF_INET6);
src/service/arm/test_gnunet_service_arm.c:    host = gethostbyname
(hostname);

As gethostbyname has been deprecated, would a patch to use getaddrinfo
instead be considered?

Benson




reply via email to

[Prev in Thread] Current Thread [Next in Thread]