Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 496508 - app-emulation/q4wine-1.1_p2-r1 LINGUAS=sv - lrelease error: Cannot open q4wine_OFF.ts: No such file or directory
Summary: app-emulation/q4wine-1.1_p2-r1 LINGUAS=sv - lrelease error: Cannot open q4win...
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Markos Chandras (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on: 547790
Blocks:
  Show dependency tree
 
Reported: 2013-12-30 16:46 UTC by Kjell Claesson
Modified: 2016-10-28 12:18 UTC (History)
2 users (show)

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


Attachments
emerge --info (emerge_info.txt,6.40 KB, text/plain)
2013-12-30 16:46 UTC, Kjell Claesson
Details
Build log of q4wine (build.log,8.63 KB, text/plain)
2013-12-30 19:02 UTC, Kjell Claesson
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Kjell Claesson 2013-12-30 16:46:32 UTC
Created attachment 366562 [details]
emerge --info

I use sv as localisation. When compiling q4wine it seartch for the file q4wine_OFF.qm.

As sv is not included as localisation of the q4wine it defaults to off.
And that file do not exist. Better to default to en.

during config:

-- Process LINGUAS variable --

-- Add translation for OFF: OFF.ts

Error:

Scanning dependencies of target translations_build
make[2]: Leaving directory '/var/tmp/portage/app-emulation/q4wine-1.1_p2-r1/work/q4wine-1.1_p2_build'
make -f src/i18n/CMakeFiles/translations_build.dir/build.make src/i18n/CMakeFiles/translations_build.dir/build
make[2]: Entering directory '/var/tmp/portage/app-emulation/q4wine-1.1_p2-r1/work/q4wine-1.1_p2_build'
cd /var/tmp/portage/app-emulation/q4wine-1.1_p2-r1/work/q4wine-1.1-r2/src/i18n && /usr/bin/lrelease q4wine_OFF.ts -qm /var/tmp/portage/app-emulation/q4wine-1.1_p2-r1/work/q4wine-1.1_p2_build/src/i18n/q4wine_OFF.qm
lrelease error: Cannot open q4wine_OFF.ts: No such file or directory
src/i18n/CMakeFiles/translations_build.dir/build.make:55: recipe for target 'translations_build' failed
make[2]: *** [translations_build] Error 1
Comment 1 Jeroen Roovers (RETIRED) gentoo-dev 2013-12-30 18:57:10 UTC
Please attach the entire build log to this bug report.
Comment 2 Kjell Claesson 2013-12-30 19:02:58 UTC
Created attachment 366588 [details]
Build log of q4wine
Comment 3 Markos Chandras (RETIRED) gentoo-dev 2014-01-01 14:56:57 UTC
Did 1.1_p2 used to work? I wonder if this is a regression in -r1 due to the ebuild clean up.
Comment 4 Kjell Claesson 2014-01-01 15:26:03 UTC
(In reply to Markos Chandras from comment #3)
> Did 1.1_p2 used to work? I wonder if this is a regression in -r1 due to the
> ebuild clean up.

Yes 1.1_p2 emerge OK. Snippet from my build log:

1387328110:  >>> emerge (2 of 2) app-emulation/q4wine-1.1_p2 to /
1387328110:  === (2 of 2) Cleaning (app-emulation/q4wine-1.1_p2::/usr/portage/app-emulation/q4wine/q4wine-1.1_p2.ebuild)
1387328110:  === (2 of 2) Compiling/Merging (app-emulation/q4wine-1.1_p2::/usr/portage/app-emulation/q4wine/q4wine-1.1_p2.ebuild)
1387328327:  === (2 of 2) Merging (app-emulation/q4wine-1.1_p2::/usr/portage/app-emulation/q4wine/q4wine-1.1_p2.ebuild)
1387328333:  >>> AUTOCLEAN: app-emulation/q4wine:0
1387328333:  === Unmerging... (app-emulation/q4wine-1.1_p1)
1387328340:  >>> unmerge success: app-emulation/q4wine-1.1_p1
1387328347:  === (2 of 2) Post-Build Cleaning (app-emulation/q4wine-1.1_p2::/usr/portage/app-emulation/q4wine/q4wine-1.1_p2.ebuild)
1387328347:  ::: completed emerge (2 of 2) app-emulation/q4wine-1.1_p2 to /
1387328347:  *** Finished. Cleaning up...
1387328353:  *** exiting successfully.
1387328369:  *** terminating.
Comment 5 Kjell Claesson 2014-01-01 15:27:57 UTC
Sorry from emerge.log.
Comment 6 Davide Pesavento (RETIRED) gentoo-dev 2014-01-01 15:35:26 UTC
from src/CMakeLists.txt:
    SET ( LINGUAS en_us ru_ru uk_ua pt_br es_es it_it cs_cz he_il pl_pl de_de fa_ir af_za)

There isn't any "sv" lingua, therefore it should be removed from the ebuild too.

We should also add PLOCALE_BACKUP="en"
Comment 7 Markos Chandras (RETIRED) gentoo-dev 2014-01-01 15:47:38 UTC
(In reply to Davide Pesavento from comment #6)
> from src/CMakeLists.txt:
>     SET ( LINGUAS en_us ru_ru uk_ua pt_br es_es it_it cs_cz he_il pl_pl
> de_de fa_ir af_za)
> 
> There isn't any "sv" lingua, therefore it should be removed from the ebuild
> too.
> 
> We should also add PLOCALE_BACKUP="en"

I am confused. I can't see the "sv" locale in PLOCALES or any other reference of  "sv" in the ebuild.
Comment 8 Davide Pesavento (RETIRED) gentoo-dev 2014-01-01 15:52:03 UTC
Just add PLOCALE_BACKUP then.
Comment 9 Markos Chandras (RETIRED) gentoo-dev 2014-01-02 20:12:42 UTC
(In reply to Davide Pesavento from comment #8)
> Just add PLOCALE_BACKUP then.

PLOCALE_BACKUP=en or PLOCALE_BACKUP=en_us does not fix the problem
Comment 10 Markos Chandras (RETIRED) gentoo-dev 2014-01-02 20:14:15 UTC
Also this line in the build looks weird

-- Process LINGUAS variable --

-- Add translation for OFF: OFF.ts
Comment 11 Davide Pesavento (RETIRED) gentoo-dev 2014-01-03 00:38:48 UTC
(In reply to Markos Chandras from comment #10)
> Also this line in the build looks weird
> 
> -- Process LINGUAS variable --
> 
> -- Add translation for OFF: OFF.ts

Yes, this is why the build fails later on.
Comment 12 Davide Pesavento (RETIRED) gentoo-dev 2014-01-03 00:47:22 UTC
I think there's a bug in l10n.eclass (CC'ing maintainer).

Let's assume that PLOCALES="en it", PLOCALE_BACKUP="en", and no LINGUAS are enabled. The following happens:
    `l10n_get_locales` returns 'en'
    `l10n_get_locales disabled` returns 'en it'
i.e., the en locale is both enabled and disabled.
Comment 13 Markos Chandras (RETIRED) gentoo-dev 2014-01-20 20:43:43 UTC
(In reply to Davide Pesavento from comment #12)
> I think there's a bug in l10n.eclass (CC'ing maintainer).
> 
> Let's assume that PLOCALES="en it", PLOCALE_BACKUP="en", and no LINGUAS are
> enabled. The following happens:
>     `l10n_get_locales` returns 'en'
>     `l10n_get_locales disabled` returns 'en it'
> i.e., the en locale is both enabled and disabled.

Ben, did you have the time to look at this?
Comment 14 Davide Pesavento (RETIRED) gentoo-dev 2014-03-02 15:51:40 UTC
@yngwin, second ping.
Comment 15 Markos Chandras (RETIRED) gentoo-dev 2014-04-26 10:27:58 UTC
(In reply to Davide Pesavento from comment #14)
> @yngwin, second ping.

Can we workaround this somehow until a proper fix is committed?
Comment 16 Michael Palimaka (kensington) gentoo-dev 2014-04-26 15:16:37 UTC
A workaround could be to just drop l10n eclass usage, it this case it looks like it's just controlling small text files anyway.
Comment 17 Markos Chandras (RETIRED) gentoo-dev 2014-04-26 16:11:42 UTC
(In reply to Michael Palimaka (kensington) from comment #16)
> A workaround could be to just drop l10n eclass usage, it this case it looks
> like it's just controlling small text files anyway.

Perhaps it's easier to bring back the -r0 ebuild as -r2
Comment 18 Sergey Popov gentoo-dev 2014-06-23 10:03:16 UTC
+  23 Jun 2014; Sergey Popov <pinkbyte@gentoo.org> q4wine-1.1_p2-r1.ebuild:
+  Fix locale handling by using full locale names, wrt bug #496508. Minor QA
+  fixes. Thanks to Kjell Claesson <kjell.claesson AT epost.tidanet.se> for
+  discovering this issue

Sorry for taking so long to fix this.
Comment 19 Davide Pesavento (RETIRED) gentoo-dev 2014-06-23 17:11:50 UTC
(In reply to Sergey Popov from comment #18)
> +  23 Jun 2014; Sergey Popov <pinkbyte@gentoo.org> q4wine-1.1_p2-r1.ebuild:
> +  Fix locale handling by using full locale names, wrt bug #496508. Minor QA
> +  fixes. Thanks to Kjell Claesson <kjell.claesson AT epost.tidanet.se> for
> +  discovering this issue
> 
> Sorry for taking so long to fix this.

err.. what did you fix exactly? The real bug here is in the eclass (see my comment #12), did you fix that? if not, please open another bug so that we don't forget about it.

P.S.: your commit introduced some unnecessary quoting.
Comment 20 Markos Chandras (RETIRED) gentoo-dev 2014-12-21 09:58:03 UTC
ping?
Comment 21 Markos Chandras (RETIRED) gentoo-dev 2015-04-23 21:12:54 UTC
Ben ping?
Comment 22 Ben de Groot (RETIRED) gentoo-dev 2015-04-25 14:57:06 UTC
Please, either open a new bug for the eclass, or edit the summary. 

I'll have a look when I have a little more time, or when someone proposes a patch.
Comment 23 Markos Chandras (RETIRED) gentoo-dev 2015-04-26 10:38:43 UTC
(In reply to Ben de Groot from comment #22)
> Please, either open a new bug for the eclass, or edit the summary. 
> 
> I'll have a look when I have a little more time, or when someone proposes a
> patch.

Ok I opened #547790 for you.
Comment 24 Michael Palimaka (kensington) gentoo-dev 2016-10-28 12:18:31 UTC
Custom linguas handling disappeared since 1.3.