Bug 1399270

Summary: autopoint does not work if xz is missing (missing depedency?)
Product: [Fedora] Fedora Reporter: Petr Spacek <pspacek>
Component: gettextAssignee: Pavel Raiskup <praiskup>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 25CC: dueno, i18n-bugs, petersen, praiskup
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: gettext-0.19.8.1-3.fc25 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-12-04 02:25:36 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:

Description Petr Spacek 2016-11-28 16:40:12 UTC
Description of problem:
autopoint fails in packages using AM_GNU_GETTEXT_VERSION macro if xz is not installed.

Version-Release number of selected component (if applicable):
gettext-devel-0.19.8.1-2.fc25.x86_64

How reproducible:
100 %

Steps to Reproduce:
0. Grab a package using AM_GNU_GETTEXT_VERSION macro, e.g.:
AM_GNU_GETTEXT_VERSION([0.19.8])

1. Run autopoint on it:
# autoreconf -i

Actual results:
/usr/bin/autopoint: line 485: xz: command not found
tar: This does not look like a tar archive
tar: gettext-0.19.8: Not found in archive
tar: Exiting with failure status due to previous errors
autopoint: *** infrastructure files for version 0.19.8 not found; this is autopoint from GNU gettext-tools 0.19.8.1
autopoint: *** Stop.
autoreconf: autopoint failed with exit status: 1


Expected results:
autopoint works.

Additional information:
It would help if xz was installed as depedency of gettext-devel package (which contains autopoint).

Comment 1 Pavel Raiskup 2016-11-29 07:45:04 UTC
Thanks for the report, your analysis seems to be right.

I don't see adding 'xz' as runtime dependency for 'gettext-devel' as an
issue -- the 'dirxz' is ./configure time thing (baked-in decision so the
'xz' dependency is unconditional).

But due to nature of 'xz' package -- it is in minimal buildroot and
(unless something dramatic changes) it will be (mock would have to install
'xz' on demand when Source tarballs are really xz compressed).  So I'm
curious what environment are you running autopoint in :).

I'm not yet oriented in gettext too much, but never-mind, this looks like
safe thing.

Comment 2 Petr Spacek 2016-11-29 07:52:13 UTC
This issue happened inside Docker container fedora:latest (Fedora 25 at the time).

Comment 3 Fedora Update System 2016-11-29 12:30:18 UTC
gettext-0.19.8.1-3.fc25 has been submitted as an update to Fedora 25. https://bodhi.fedoraproject.org/updates/FEDORA-2016-9359679d9e

Comment 4 Fedora Update System 2016-12-02 18:55:54 UTC
gettext-0.19.8.1-3.fc25 has been pushed to the Fedora 25 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2016-9359679d9e

Comment 5 Fedora Update System 2016-12-04 02:25:36 UTC
gettext-0.19.8.1-3.fc25 has been pushed to the Fedora 25 stable repository. If problems still persist, please make note of it in this bug report.