Bug 2183905 - replace gettext hostname helper with /usr/bin/hostname
Summary: replace gettext hostname helper with /usr/bin/hostname
Keywords:
Status: MODIFIED
Alias: None
Product: Fedora
Classification: Fedora
Component: gettext
Version: 39
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Manish Tiwari
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2023-04-03 03:58 UTC by Jens Petersen
Modified: 2024-03-21 12:15 UTC (History)
6 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed:
Type: Bug
Embargoed:


Attachments (Terms of Use)

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/


Note You need to log in before you can comment on or make changes to this bug.