Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 265143 - kde-base/kde-l10n-4.4.0 - doesn't compile with LINGUAS="en"
Summary: kde-base/kde-l10n-4.4.0 - doesn't compile with LINGUAS="en"
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] KDE (show other bugs)
Hardware: All Linux
: High normal
Assignee: Gentoo KDE team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-04-06 19:20 UTC by Rafal Lalik
Modified: 2010-04-02 11:24 UTC (History)
0 users

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


Attachments
emerge info for l10n-4.4.0 (emerge.inf,4.16 KB, text/plain)
2010-02-26 06:27 UTC, Geoff Madden
Details
this is the resulting build.log (build.log,2.52 KB, text/plain)
2010-02-26 06:30 UTC, Geoff Madden
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Rafal Lalik 2009-04-06 19:20:47 UTC
My LINGUAS="en pl". When compile then get error:

-- Found KDE 4.3 include dir: /usr/kde/4.3/include
-- Found KDE 4.3 library dir: /usr/kde/4.3/lib64
-- Found the KDE4 kconfig_compiler preprocessor: /usr/kde/4.3/bin/kconfig_compiler
-- Found automoc4: /usr/bin/automoc4
-- Looking for dgettext
-- Looking for dgettext - found
-- Found Gettext: built in libc
CMake Error at CMakeLists.txt:9 (add_subdirectory):
  add_subdirectory given source "kde-l10n-en-4.2.68" which is not an existing
  directory.

I've investigated it and found, the problem is variable enabled_linguas is set on the basis of LINGUAS, not of USE="linguas_xx".

My proposition is:

--- kde-l10n-4.2.68.ebuild     2009-04-06 21:16:58.000000000 +0200
+++ kde-l10n-4.2.68.ebuild     2009-04-06 20:49:46.000000000 +0200
@@ -33,8 +33,8 @@

 pkg_setup() {
        local lng
-       for lng in ${LINGUAS}; do
-               enabled_linguas+=" ${lng}"
+       for lng in ${LANGS}; do
+               use linguas_${lng} && enabled_linguas+=" ${lng}"
        done
        if [[ -z ${enabled_linguas} ]]; then
                elog

This one works fine!

Regards,
Rafał
Comment 1 Alexey Shvetsov archtester gentoo-dev 2009-04-06 20:07:24 UTC
Fixed! 
Thanks! =)
Comment 2 Rafal Lalik 2009-04-07 21:41:44 UTC
Sorry, not yet :-P

You still left this line (line 36 in ebuild):

-       for lng in ${LINGUAS}; do

Please change it to:

+       for lng in ${LANGS}; do

These things are related to kde-base/kde-l10n-4.2.69 now.

Rafał
Comment 3 Rafal Lalik 2009-05-04 07:26:40 UTC
Bug is still open in kde-base/kde-l10n-4.2.71
Comment 4 Alexey Shvetsov archtester gentoo-dev 2009-05-23 12:32:22 UTC
now there are 4.2.85 and 4.2.87. feel free to reopen it
Comment 5 Rafal Lalik 2009-05-25 13:50:50 UTC
Bug happens with paludis - because of unclear interpretation of linguas flags. Portage's version works fine.
Comment 6 Rafal Lalik 2009-09-29 05:25:41 UTC
I have reopen bugs again.

Guys, why does kde-l10n ebuild for stable kde (4.3.1) runs fine in paludis, but unstable doesn't?

Stable ebuilds have correct code which is result of previous bug reports, but ebuilds for unstable have never been fixed and still fail while paludis work.

Could it be fixed at last?

Cheers,
Rafal
Comment 7 Geoff Madden 2010-02-26 06:27:51 UTC
Created attachment 221249 [details]
emerge info for l10n-4.4.0

I'm having the same problem, in that its not able to find the CMake.lst file.Not too sure if I did the right thing regarding linguas,I put an export statement in /etc/profile. But in any case on my mirror there is not a kde-l10n-4.4.0 file,but heaps of individual country files.
Comment 8 Geoff Madden 2010-02-26 06:30:55 UTC
Created attachment 221251 [details]
this is the resulting build.log
Comment 9 Rafal Lalik 2010-02-26 06:59:41 UTC
Your error is because of you don't use LINGUAS variable.

The KDE is by default localized for >en< so if you do not use any other language then you don't need kde-l10n package.

I think that there should be additional condition in src_prepare, which checks whether LINGUAS is set to language different than >en< (and is not empty).
Comment 10 Theo Chatzimichos (RETIRED) archtester gentoo-dev Security 2010-04-02 11:24:31 UTC
already fixed, it prints a msg if linguas is unset