Bug 1405433

Summary: msghack makes gettext depend on python3
Product: [Fedora] Fedora Reporter: Petr Šabata <psabata>
Component: gettextAssignee: Pavel Raiskup <praiskup>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: dueno, i18n-bugs, petersen, praiskup
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: 2016-12-21 07:47:19 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:
Attachments:
Description Flags
Subpackage msghack none

Description Petr Šabata 2016-12-16 13:54:20 UTC
msghack, a Fedora-specific tool not included in the upstream tarball, makes the gettext package depend on python3, pulling the full python stack into an otherwise system-python-only minimal compose, such as Base Runtime.

Please, consider one of the following actions:

1. Sub-package msghack.
2. Make msghack use system-python.
3. Since gettext is written in C, rewrite msghack in C as well.
4. Drop msghack entirely.

Thanks!

Comment 1 Petr Šabata 2016-12-16 13:57:11 UTC
Created attachment 1232551 [details]
Subpackage msghack

A patch for Rawhide implementing the first variant

Comment 2 Pavel Raiskup 2016-12-16 15:02:47 UTC
Is msghack self-standing (no explicit requires is fine)?  I would possibly
use the '%package -n msghack' so we could separate it out from gettext
later.  Otherwise it looks fine to me.

TBH, I'm still not fully oriented in gettext, so I'm rather asking previous
maintainer what is the motivation to keep msghack etc.

Comment 3 Petr Šabata 2016-12-16 15:11:46 UTC
(In reply to Pavel Raiskup from comment #2)
> Is msghack self-standing (no explicit requires is fine)?  I would possibly
> use the '%package -n msghack' so we could separate it out from gettext
> later.  Otherwise it looks fine to me.

It seems to be.
 
> TBH, I'm still not fully oriented in gettext, so I'm rather asking previous
> maintainer what is the motivation to keep msghack etc.

Looking at comments like https://bugzilla.redhat.com/show_bug.cgi?id=1192086#c2, it could be it's there because no one's been brave enough to drop it yet ;)

Comment 4 Pavel Raiskup 2016-12-21 07:11:49 UTC
Ok, python guys were able to build gettext finally (a matter of luck
probably, because of bug 1406031).  Is it OK to wait for f26-python3 merge
into f26?

Comment 5 Pavel Raiskup 2016-12-21 07:47:19 UTC
I was told f26-python3 tag will be merged ASAP, thus closing.

Comment 6 Pavel Raiskup 2017-01-26 12:19:31 UTC
Rawhide fix:
http://pkgs.fedoraproject.org/cgit/rpms/gettext.git/commit/?id=83c226dd020a8f15c593fb75a7
Any review is welcome!

Comment 7 Pavel Raiskup 2017-01-26 12:20:51 UTC
Uhm, wrong bug.  Please disregard the comment #6.