Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 689474 - app-doc/gnucash-docs: invalid L10N=C flag
Summary: app-doc/gnucash-docs: invalid L10N=C flag
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal major
Assignee: Aaron W. Swenson
URL:
Whiteboard:
Keywords: PullRequest
Depends on:
Blocks:
 
Reported: 2019-07-08 12:46 UTC by Michał Górny
Modified: 2019-07-18 12:58 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2019-07-08 12:46:38 UTC
The package introduces local extension to L10N which is forbidden by PMS.  Please fix that.
Comment 1 Aaron W. Swenson gentoo-dev 2019-07-09 10:50:39 UTC
(In reply to Michał Górny from comment #0)
> The package introduces local extension to L10N which is forbidden by PMS. 
> Please fix that.

Please provide a citation.

I haven't been able to find the relevant part with what you've given, so I can't further familiarize myself on this particular topic.
Comment 2 Ulrich Müller gentoo-dev 2019-07-09 11:37:32 UTC
Policy reference:
https://devmanual.gentoo.org/general-concepts/use-flags/index.html#use-flag-descriptions

"All USE flags must be described in either use.desc in the profiles/ directory or metadata.xml in the package's directory. [...]

The exceptions to this are USE_EXPAND flags, which must be documented in the profiles/desc/ directory. [...]"
Comment 3 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2019-07-09 12:19:38 UTC
Also note, on top of l10n.desc:

# Keep it sorted. Entries must be valid IETF language tags (BCP 47):
# https://www.iana.org/assignments/language-subtag-registry

which 'C' isn't.  Normally support for 'C' locale should be installed unconditionally.  However, if this is kind of special case, 'en' is more correct.
Comment 4 Aaron W. Swenson gentoo-dev 2019-07-09 14:06:20 UTC
(In reply to Ulrich Müller from comment #2)
> Policy reference:
> https://devmanual.gentoo.org/general-concepts/use-flags/index.html#use-flag-
> descriptions
> 
> "All USE flags must be described in either use.desc in the profiles/
> directory or metadata.xml in the package's directory. [...]
> 
> The exceptions to this are USE_EXPAND flags, which must be documented in the
> profiles/desc/ directory. [...]"

That's much clearer. Thank you.
Comment 5 Aaron W. Swenson gentoo-dev 2019-07-09 14:19:57 UTC
(In reply to Michał Górny from comment #3)
> Also note, on top of l10n.desc:
> 
> # Keep it sorted. Entries must be valid IETF language tags (BCP 47):
> # https://www.iana.org/assignments/language-subtag-registry
> 
> which 'C' isn't.

This is good to know, but this doesn't really forbid an entry in metadata.xml.

> Normally support for 'C' locale should be installed
> unconditionally.  However, if this is kind of special case, 'en' is more
> correct.

Hm. C is English, but for this package there are two languages that don't have a translations. Therefore we unconditionally install C-locale for those languages. So, I'm not certain now that it should be given a special case.

I think I'll go ahead and always install it. It'll be cleaner, and it will still take less space than it did before I introduced using l10n.
Comment 6 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2019-07-16 12:21:12 UTC
Ping.  Is there anything blocking making it unconditional?  Would it help if I made a patch?
Comment 7 Larry the Git Cow gentoo-dev 2019-07-18 12:56:23 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=893017730e5189c09ad38083286b7ee1ed2613b2

commit 893017730e5189c09ad38083286b7ee1ed2613b2
Author:     Michał Górny <mgorny@gentoo.org>
AuthorDate: 2019-07-18 06:58:40 +0000
Commit:     Aaron W. Swenson <titanofold@gentoo.org>
CommitDate: 2019-07-18 12:55:59 +0000

    app-doc/gnucash-docs: Sanitize L10N handling
    
    - remove L10N=C, C locale is now installed unconditionally
    - remove unused l10n.eclass
    - simplify the code
    
    Bug: https://bugs.gentoo.org/689474
    Signed-off-by: Michał Górny <mgorny@gentoo.org>
    Closes: https://github.com/gentoo/gentoo/pull/12465
    Closes: https://bugs.gentoo.org/689474
    Signed-off-by: Aaron W. Swenson <titanofold@gentoo.org>

 ...-docs-3.6.ebuild => gnucash-docs-3.6-r1.ebuild} | 31 +++++-----------------
 1 file changed, 6 insertions(+), 25 deletions(-)

Additionally, it has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=893017730e5189c09ad38083286b7ee1ed2613b2

commit 893017730e5189c09ad38083286b7ee1ed2613b2
Author:     Michał Górny <mgorny@gentoo.org>
AuthorDate: 2019-07-18 06:58:40 +0000
Commit:     Aaron W. Swenson <titanofold@gentoo.org>
CommitDate: 2019-07-18 12:55:59 +0000

    app-doc/gnucash-docs: Sanitize L10N handling
    
    - remove L10N=C, C locale is now installed unconditionally
    - remove unused l10n.eclass
    - simplify the code
    
    Bug: https://bugs.gentoo.org/689474
    Signed-off-by: Michał Górny <mgorny@gentoo.org>
    Closes: https://github.com/gentoo/gentoo/pull/12465
    Closes: https://bugs.gentoo.org/689474
    Signed-off-by: Aaron W. Swenson <titanofold@gentoo.org>

 ...-docs-3.6.ebuild => gnucash-docs-3.6-r1.ebuild} | 31 +++++-----------------
 1 file changed, 6 insertions(+), 25 deletions(-)
Comment 8 Aaron W. Swenson gentoo-dev 2019-07-18 12:58:15 UTC
I just hadn't dug into it yet, and I wasn't happy with how it was looking when I started on it.

Your PR is what I was going to arrive at (close enough anyway). Thanks!