Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 660800 - app-doc/gnucash-docs-3.2 : /.../environment:line <snip>: cd: /.../ja: No such file or directory
Summary: app-doc/gnucash-docs-3.2 : /.../environment:line <snip>: cd: /.../ja: No such...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Aaron W. Swenson
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-07-09 15:32 UTC by Toralf Förster
Modified: 2018-10-08 22:23 UTC (History)
2 users (show)

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


Attachments
emerge-info.txt (emerge-info.txt,15.30 KB, text/plain)
2018-07-09 15:32 UTC, Toralf Förster
Details
app-doc:gnucash-docs-3.2:20180709-152844.log (app-doc:gnucash-docs-3.2:20180709-152844.log,9.76 KB, text/plain)
2018-07-09 15:32 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,101.22 KB, text/plain)
2018-07-09 15:32 UTC, Toralf Förster
Details
environment (environment,115.53 KB, text/plain)
2018-07-09 15:32 UTC, Toralf Förster
Details
etc.portage.tbz2 (etc.portage.tbz2,13.16 KB, application/x-bzip)
2018-07-09 15:32 UTC, Toralf Förster
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster gentoo-dev 2018-07-09 15:32:12 UTC
make[2]: Leaving directory '/var/tmp/portage/app-doc/gnucash-docs-3.2/work/gnucash-docs-3.2/help/it'
make[1]: Leaving directory '/var/tmp/portage/app-doc/gnucash-docs-3.2/work/gnucash-docs-3.2/help/it'
/var/tmp/portage/app-doc/gnucash-docs-3.2/temp/environment: line 3024: cd: /var/tmp/portage/app-doc/gnucash-docs-3.2/work/gnucash-docs-3.2/help/ja: No such file or directory
 * ERROR: app-doc/gnucash-docs-3.2::gentoo failed (install phase):
 *   (no error message)
 * 

  -------------------------------------------------------------------

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.0-no-multilib_20180707-104832

  -------------------------------------------------------------------

gcc-config -l:
 [1] x86_64-pc-linux-gnu-7.3.0 *

Available Python interpreters, in order of preference:
  [1]   python3.5
  [2]   python3.7 (fallback)
  [3]   python2.7 (fallback)
Available Ruby profiles:
  [1]   ruby23 (with Rubygems) *



emerge -qpv app-doc/gnucash-docs
[ebuild  N    ] app-doc/gnucash-docs-3.2  L10N="-C -de -it -ja -pt -ru"
Comment 1 Toralf Förster gentoo-dev 2018-07-09 15:32:14 UTC
Created attachment 538974 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2018-07-09 15:32:17 UTC
Created attachment 538976 [details]
app-doc:gnucash-docs-3.2:20180709-152844.log
Comment 3 Toralf Förster gentoo-dev 2018-07-09 15:32:20 UTC
Created attachment 538978 [details]
emerge-history.txt
Comment 4 Toralf Förster gentoo-dev 2018-07-09 15:32:23 UTC
Created attachment 538980 [details]
environment
Comment 5 Toralf Förster gentoo-dev 2018-07-09 15:32:26 UTC
Created attachment 538982 [details]
etc.portage.tbz2
Comment 6 Aaron W. Swenson gentoo-dev 2018-07-09 22:05:32 UTC
Turns out, l10n.eclass is a bit misleading.

And, because I have this in my make.conf:
    L10N="en en_US en-US"
    LINGUAS="${L10N}"

I didn't run into this issue. The key bit is that I have LINGUAS defined. The eclass assumes that if ${LINGUAS} is null or zero-length, that all localizations should be enabled.

Still, there's no Japanese translation for the help, but there is for the guide. I'll need to figure out what to do here.
Comment 7 Adrian Bassett 2018-07-10 12:55:15 UTC
(In reply to Aaron W. Swenson from comment #6)
> Turns out, l10n.eclass is a bit misleading.
> 
> And, because I have this in my make.conf:
>     L10N="en en_US en-US"
>     LINGUAS="${L10N}"
> 
> I didn't run into this issue. The key bit is that I have LINGUAS defined.
> The eclass assumes that if ${LINGUAS} is null or zero-length, that all
> localizations should be enabled.
> 
> Still, there's no Japanese translation for the help, but there is for the
> guide. I'll need to figure out what to do here.

Well, I'm not sure what the implications of there being a Japanes translation for the guide but not the help might be but presumably the simplest thing for now is just to remove the 'ja' from the PLOCALES line in the 3.2 gnucash-docs ebuild so that it installs for people who do not need this value in their language options?

#PLOCALES="C de it ja pt ru"
PLOCALES="C de it pt ru"
Comment 8 Adrian Bassett 2018-07-10 13:08:54 UTC
(In reply to Adrian.Bassett from comment #7)

> Well, I'm not sure what the implications of there being a Japanes
> translation for the guide but not the help might be but presumably the
> simplest thing for now is just to remove the 'ja' from the PLOCALES line in
> the 3.2 gnucash-docs ebuild so that it installs for people who do not need
> this value in their language options?
> 
> #PLOCALES="C de it ja pt ru"
> PLOCALES="C de it pt ru"

Having now done this it appears that the same thing is necessary for the 'ru' localisation as well.  Removing both allowed gnucash-docs-3.2 to install for me.
Comment 9 Adrian Bassett 2018-07-10 13:56:53 UTC
(In reply to Adrian.Bassett from comment #7)

> Well, I'm not sure what the implications of there being a Japanes
> translation for the guide but not the help might be but presumably the
> simplest thing for now is just to remove the 'ja' from the PLOCALES line in
> the 3.2 gnucash-docs ebuild so that it installs for people who do not need
> this value in their language options?
> 
> #PLOCALES="C de it ja pt ru"
> PLOCALES="C de it pt ru"

So, having just tried this, it appears that the same is also true for the russian localisation with the result that 'ru' currently needs to be removed as well:

LOCALES="C de it pt"
Comment 10 alexandrl 2018-07-10 19:40:28 UTC
45,46c45,48
<                       cd "${S}/${doc_type}/${lang}" || die
<                       emake DESTDIR="${D}" install
---
>                       if [ -z "${S}/${doc_type}/${lang}" ]; then
>                               cd "${S}/${doc_type}/${lang}" || die
>                               emake DESTDIR="${D}" install
>                       fi

This patch work for me.
Comment 11 Larry the Git Cow gentoo-dev 2018-08-11 11:23:41 UTC
The bug has been referenced in the following commit(s):

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

commit a116b8d85aef2e081bb0b29a01309576e45eb419
Author:     Aaron W. Swenson <titanofold@gentoo.org>
AuthorDate: 2018-08-11 11:23:29 +0000
Commit:     Aaron W. Swenson <titanofold@gentoo.org>
CommitDate: 2018-08-11 11:23:29 +0000

    app-doc/gnucash-docs: Default to English
    
    The help docs haven’t been translated to every language the guide has
    been, so default to English.
    
    Bug: https://bugs.gentoo.org/660800
    Package-Manager: Portage-2.3.40, Repoman-2.3.9

 app-doc/gnucash-docs/gnucash-docs-3.2-r1.ebuild | 85 +++++++++++++++++++++++++
 1 file changed, 85 insertions(+)