Bug 2183905

Summary: replace gettext hostname helper with /usr/bin/hostname
Product: [Fedora] Fedora Reporter: Jens Petersen <petersen>
Component: gettextAssignee: Manish Tiwari <matiwari>
Status: CLOSED NEXTRELEASE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 39CC: dueno, i18n-bugs, nphilipp, petersen, praiskup, suanand
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2024-07-08 04:14:48 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Jens Petersen 2023-04-03 03:58:41 UTC
Description of problem:
gettext includes its own hostname helper program
(presumably for systems that do not provide the hostname tool)
which uses deprecated gethostbyname() function...

If /usr/bin/hostname is a drop in replacement then it seems
better just to use that in place of it - this would avoid
the rpminspect warnings/errors about gethostbyname() usage.

Comment 1 Fedora Admin user for bugzilla script actions 2023-04-19 12:03:41 UTC
This package has changed maintainer in Fedora. Reassigning to the new maintainer of this component.

Comment 2 Fedora Release Engineering 2023-08-16 07:12:57 UTC
This bug appears to have been reported against 'rawhide' during the Fedora Linux 39 development cycle.
Changing version to 39.

Comment 3 Manish Tiwari 2024-03-12 06:32:25 UTC
This is no longer used in current version of gettext, getaddrinfo() is the preferred function for hostname resolution.

Comment 4 Manish Tiwari 2024-03-14 09:03:30 UTC
Similar issue fixed in upstream gettext: https://savannah.gnu.org/bugs/?63983
Commit details of changes done at upstream gettext to replace deprecated gethostbyname with getaddrinfo : https://git.savannah.gnu.org/gitweb/?p=gettext.git;a=commitdiff;h=c5cdf41d436261b279c172753ac727335d44b9fd

Comment 5 Jens Petersen 2024-03-21 12:15:23 UTC
I still think it would be useful to change that centos-stream rpminspect doesn't complain any more about the network functions, just to be sure.

Comment 6 Jens Petersen 2024-03-21 12:15:58 UTC
Sorry, s/change/check/

Comment 7 Parag Nemade 2024-07-08 04:14:48 UTC
I don't see anything remained here to be fixed. The centos-stream MR already reported and waiting for its maintainers to merge it.