<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "http://bugs.gentoo.org/bugzilla.dtd">

<bugzilla version="2.22.7"
          urlbase="http://bugs.gentoo.org/"
          maintainer="bugzilla@gentoo.org"
>

    <bug>
          <bug_id>137297</bug_id>
          
          <creation_ts>2006-06-19 13:47 0000</creation_ts>
          <short_desc>kde-meta should pull kde-i18n</short_desc>
          <delta_ts>2006-12-10 07:32:35 0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>Gentoo Linux</product>
          <component>KDE</component>
          <version>unspecified</version>
          <rep_platform>All</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          
          <priority>P2</priority>
          <bug_severity>enhancement</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>kavol@email.cz</reporter>
          <assigned_to>kde@gentoo.org</assigned_to>
          <cc>beww@beww.org</cc>
    
    <cc>denilsonsa@gmail.com</cc>
    
    <cc>EvilGlowingApple@gmail.com</cc>
    
    <cc>fuzzyray@gentoo.org</cc>
    
    <cc>g.chulkov@iu-bremen.de</cc>
    
    <cc>hkbst@gentoo.org</cc>
    
    <cc>jakub@gentoo.org</cc>
    
    <cc>m.debruijne@matrict.nl</cc>
    
    <cc>njdoyle+bugs@gmail.com</cc>
    
    <cc>zeekec@mad.scientist.com</cc>

      

      
          <long_desc isprivate="0">
            <who>kavol@email.cz</who>
            <bug_when>2006-06-19 13:47:45 0000</bug_when>
            <thetext>Hello,

at first lets see the docs:

http://www.gentoo.org/doc/en/kde-split-ebuilds.xml
- &quot;To get absolutely all KDE split ebuilds, emerge kde-meta.&quot;

http://www.gentoo.org/doc/en/kde-config.xml
- &quot;If you want a full-blown KDE installation, install kde-meta. This package will pull in all KDE applications as dependencies.&quot;

Well, the second (the newer) one is not so clear (kde-i18n itself is not an application), but IMHO &quot;all&quot; or &quot;full-blown&quot; KDE should include kde-i18n ...

I know it may sound strange to somebody, but there is really a big part of world outside America ;-) and this part is far bigger than the number of disabled people (who can select their enhancements at least via the USE &quot;accessibility&quot;). So I would suggest that if you do not want to install kde-i18n by default, make this at least USE controlled, or, in my opinion it would be nice to look at &quot;userlocales&quot; and system locale settings, and install  it automatically if there is any other language than C or English.

- thanks</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>flameeyes@gentoo.org</who>
            <bug_when>2006-06-19 14:44:16 0000</bug_when>
            <thetext>You&apos;re right, it should be part of kde-meta.

What you think of a &quot;nls&quot; useflag, in line with other packages? Usually nls is enabled for non-English systems.
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>kavol@email.cz</who>
            <bug_when>2006-07-10 05:37:31 0000</bug_when>
            <thetext>(In reply to comment #1)
&gt; What you think of a &quot;nls&quot; useflag, in line with other packages? Usually nls is
&gt; enabled for non-English systems.
&gt; 

well, it looks like a good idea to me - reading the description, this use flag is exactly for that purpose ... a good example is the package man-pages - if nls is set, it pulls localised man pages</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>flameeyes@gentoo.org</who>
            <bug_when>2006-07-10 07:09:17 0000</bug_when>
            <thetext>IA64 needs to be cleared up before.

Please people mark ~ia64 version 3.5.3 of kde-i18n.

</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>kloeri@gentoo.org</who>
            <bug_when>2006-11-25 08:53:06 0000</bug_when>
            <thetext>~ia64 done.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>masterdriverz@gentoo.org</who>
            <bug_when>2006-11-26 04:05:09 0000</bug_when>
            <thetext>Thanks, fixed in CVS</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>betelgeuse@gentoo.org</who>
            <bug_when>2006-11-26 04:11:06 0000</bug_when>
            <thetext>(In reply to comment #5)
&gt; Thanks, fixed in CVS
&gt; 

We should change the nls use flag description to be more generic if nls use flag is to be used as we don&apos;t use gettext here I think:

betelgeuse@pena ~ $ euse -i nls
global use flags (searching: nls)
************************************************************
[- cD ] nls - Adds Native Language Support (using gettext - GNU locale utilities)
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>masterdriverz@gentoo.org</who>
            <bug_when>2006-11-26 04:20:41 0000</bug_when>
            <thetext>Reopening pending RFC on -dev...</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>flameeyes@gentoo.org</who>
            <bug_when>2006-11-26 06:29:04 0000</bug_when>
            <thetext>Why don&apos;t you all mind your own business, for once? Sigh.

KDE does use gettext for i18n, maybe we install something more (the doc) but it&apos;s always the same .mo files that get installed.
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>njdoyle+bugs@gmail.com</who>
            <bug_when>2006-11-26 11:46:56 0000</bug_when>
            <thetext>There is a problem. On a default system, nls is on by default. If I am using LINGUAS=&quot;en&quot; for a plain English install (like most people would be doing) kde-meta will try to pull in kde-il8n. kde-il8n complains and fails to install because it does not support LINGUAS=&quot;en&quot;. The problem with this is now with a completely default install, you can not install kde-meta.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>fuzzyray@gentoo.org</who>
            <bug_when>2006-11-27 14:45:29 0000</bug_when>
            <thetext>As mentioned in the comment above, this breaks a stable default install. i.e nls is turned on by default and no LINGUAS variable is set.  Unfortunately for english speakers, setting LINGUAS=&quot;en&quot; doesn&apos;t work either.  The only thing to do is add &quot;kde-base/kde-meta -nls&quot; to /etc/portage/package.use which most likely isn&apos;t going to be obvious to a newer user.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>deathwing00@gentoo.org</who>
            <bug_when>2006-11-28 05:21:10 0000</bug_when>
            <thetext>*** Bug 156498 has been marked as a duplicate of this bug. ***</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>denilsonsa@gmail.com</who>
            <bug_when>2006-11-28 05:56:36 0000</bug_when>
            <thetext>There still a problem, and it is not fixed (like comment #9 and comment #10 described). Other bugs are being marked as duplicate of this. This should be marked as REOPENED.

I guess many people are asking this in forums and IRC.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>bill_krueger@verizon.net</who>
            <bug_when>2006-11-28 11:15:53 0000</bug_when>
            <thetext>(In reply to comment #10)


I tried the solution of adding kde-base/kde-meta -nls to package.use and get the error:

&gt;&gt; Emerging (1 of 1) kde-base/kde-i18n-3.5.5 to /
...snip...
&gt;&gt;&gt; Unpacking source...
/usr/portage/kde-base/kde-i18n/kde-i18n-3.5.5.ebuild: line 27: [: missing `]&apos;

The line from the ebuild it says is in error is:


	if [ -z &quot;${A}&quot; &amp;&amp; LINGUAS != &quot;en&quot;]; then


</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>deathwing00@gentoo.org</who>
            <bug_when>2006-11-28 12:37:54 0000</bug_when>
            <thetext>Someone forgot to check if LINGUAS was actually set or not. And it should be ${LINGUAS}... $ lack :)</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>njdoyle+bugs@gmail.com</who>
            <bug_when>2006-11-28 13:19:35 0000</bug_when>
            <thetext>Created an attachment (id=102939)
Patch to make ebuild work

Latest change in CVS bypasses the explicit dying and error message but now breaks when it tries to unpack ${A} because A is actually empty. Here is a patch, tested, that makes everything work.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>njdoyle+bugs@gmail.com</who>
            <bug_when>2006-11-28 13:19:35 0000</bug_when>
            <thetext>Created an attachment (id=102938)
Patch to make ebuild work

Latest change in CVS bypasses the explicit dying and error message but now breaks when it tries to unpack ${A} because A is actually empty. Here is a patch, tested, that makes everything work.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>deathwing00@gentoo.org</who>
            <bug_when>2006-11-28 14:11:52 0000</bug_when>
            <thetext>*** Bug 156543 has been marked as a duplicate of this bug. ***</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>denilsonsa@gmail.com</who>
            <bug_when>2006-11-28 15:21:13 0000</bug_when>
            <thetext>(In reply to comment #13)
&gt; &gt;&gt;&gt; Unpacking source...
&gt; /usr/portage/kde-base/kde-i18n/kde-i18n-3.5.5.ebuild: line 27: [: missing `]&apos;
&gt; 
&gt;         if [ -z &quot;${A}&quot; &amp;&amp; LINGUAS != &quot;en&quot;]; then

For me, the ] should be separated by space. Like this:

  if [ -z &quot;${A}&quot; &amp;&amp; &quot;${LINGUAS}&quot; != &quot;en&quot; ]; then

Of course, you could also use [[ ]] instead of [ ]</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>njdoyle+bugs@gmail.com</who>
            <bug_when>2006-11-28 15:31:55 0000</bug_when>
            <thetext>(In reply to comment #18)
&gt; (In reply to comment #13)
&gt; &gt; &gt;&gt;&gt; Unpacking source...
&gt; &gt; /usr/portage/kde-base/kde-i18n/kde-i18n-3.5.5.ebuild: line 27: [: missing `]&apos;
&gt; &gt; 
&gt; &gt;         if [ -z &quot;${A}&quot; &amp;&amp; LINGUAS != &quot;en&quot;]; then
&gt; 
&gt; For me, the ] should be separated by space. Like this:
&gt; 
&gt;   if [ -z &quot;${A}&quot; &amp;&amp; &quot;${LINGUAS}&quot; != &quot;en&quot; ]; then
&gt; 
&gt; Of course, you could also use [[ ]] instead of [ ]
&gt; 

This has already been fixed in portage. The problem is, this caused the other problem in the ebuild that I mentioned in comment #15 (and #16, stupid double posting).</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>beww@beww.org</who>
            <bug_when>2006-11-28 16:16:04 0000</bug_when>
            <thetext>Sorry to be stupid, but the patch from 15/16 helps, but the emerge still fails because LINGUA is not set, and &quot;en&quot; is not acceptable. I suppose I could set &quot;en_GB&quot; but I don&apos;t want to as the Brits don&apos;t know how to spell properly :-)

What do I have to do to get a bog-stock stable system to update without needing magic incantations ?

But I do appreciate the prompt attention from folks here, but it is not &quot;fixed&quot; as long as &quot;emerge avuDN world&quot; fails on a stock stable system.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>njdoyle+bugs@gmail.com</who>
            <bug_when>2006-11-28 16:26:38 0000</bug_when>
            <thetext>(In reply to comment #20)
&gt; Sorry to be stupid, but the patch from 15/16 helps, but the emerge still fails
&gt; because LINGUA is not set, and &quot;en&quot; is not acceptable. I suppose I could set
&gt; &quot;en_GB&quot; but I don&apos;t want to as the Brits don&apos;t know how to spell properly :-)
&gt; 
&gt; What do I have to do to get a bog-stock stable system to update without needing
&gt; magic incantations ?
&gt; 
&gt; But I do appreciate the prompt attention from folks here, but it is not &quot;fixed&quot;
&gt; as long as &quot;emerge avuDN world&quot; fails on a stock stable system.
&gt; 

Try syncing the latest version. It should now have all relevant fixes. It works for me and I have only LINGUAS=&quot;en&quot;. Just make sure you have LINGUAS set in make.conf. I suppose maybe the error should add &quot;en&quot; to the list to be more helpful because the whole point of the latter part of the bug was getting &quot;en&quot; to work.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>beww@beww.org</who>
            <bug_when>2006-11-28 17:01:29 0000</bug_when>
            <thetext>OK, thanks much. Works much better with &quot;LINGUAS&quot; instead of &quot;LINGUA&quot;  :-)</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>fuzzyray@gentoo.org</who>
            <bug_when>2006-11-29 10:59:59 0000</bug_when>
            <thetext>Who&apos;s in charge of the KDE configuration guide?  We should update it to state that LINGUAS needs to be set to a valid value (to include en) in order to install kde-meta. As it stands right now, a default stable install does not have LINGUAS set, so installing kde-meta will fail until it is set.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>njdoyle+bugs@gmail.com</who>
            <bug_when>2006-11-29 11:11:33 0000</bug_when>
            <thetext>(In reply to comment #23)
&gt; Who&apos;s in charge of the KDE configuration guide?  We should update it to state
&gt; that LINGUAS needs to be set to a valid value (to include en) in order to
&gt; install kde-meta. As it stands right now, a default stable install does not
&gt; have LINGUAS set, so installing kde-meta will fail until it is set.

It would not be hard to change the ebuild so that if LINGUAS is not set, it would be treated the same as LINGUAS=&quot;en&quot;. My guess is that this would be the best desired effect. Also it should be noted that &quot;en&quot; should be added to the list of valid languages in the error message that is produced when an invalid LINGUAS is encountered.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>beww@beww.org</who>
            <bug_when>2006-11-29 11:26:18 0000</bug_when>
            <thetext>Not to be pedantic, but shouldn&apos;t that be &quot;en_US&quot;. Yanks are not the only ones who speak English, in fact they probably are some of the poorest speakers of the &quot;King&apos;s English&quot; (and yes, I am a Yank).</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>deathwing00@gentoo.org</who>
            <bug_when>2006-11-29 12:57:21 0000</bug_when>
            <thetext>I&apos;d opt for checking if LINGUAS is unset instead of forcing our users to add an unnecessary line. The other way around is to hardcode this into the eclass, but if it only affects one ebuild, let the ebuild treat it.

Let Flameeyes speak about this.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>jakub@gentoo.org</who>
            <bug_when>2006-12-10 02:28:28 0000</bug_when>
            <thetext>*** Bug 157703 has been marked as a duplicate of this bug. ***</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>jakub@gentoo.org</who>
            <bug_when>2006-12-10 02:34:21 0000</bug_when>
            <thetext>Reopening until unset LINGUAS is handled gracefully.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>deathwing00@gentoo.org</who>
            <bug_when>2006-12-10 07:32:35 0000</bug_when>
            <thetext>Fixed in CVS.

The error message has been converted to a warning message and dies no more.

It shows up only if LINGUAS is unset or if LINGUAS contains only unsupported languages.

It does not show up if the only language code set is &apos;en&apos;.</thetext>
          </long_desc>
      
          <attachment
              isobsolete="1"
              ispatch="1"
              isprivate="0"
          >
            <attachid>102938</attachid>
            <date>2006-11-28 13:19 0000</date>
            <desc>Patch to make ebuild work</desc>
            <filename>kde-i18n.patch</filename>
            <type>text/plain</type>
            <data encoding="base64">LS0tIGtkZS1pMThuLTMuNS41LmVidWlsZAkyMDA2LTExLTI4IDE2OjA2OjI1LjAwMDAwMDAwMCAt
MDQwMAorKysgL3Jvb3Qva2RlLWkxOG4tMy41LjUuZWJ1aWxkCTIwMDYtMTEtMjggMTc6MDQ6MTEu
MDAwMDAwMDAwIC0wNDAwCkBAIC0zNyw3ICszNyw5IEBACiAJZmkKIAogCSMgT3ZlcnJpZGUga2Rl
X3NyY191bnBhY2suCi0JdW5wYWNrICR7QX0KKwlpZiAhIFtbIC16ICIke0F9IiBdXTsgdGhlbgor
CQl1bnBhY2sgJHtBfQorCWZpCiAKIAkjIFdvcmsgYXJvdW5kIEtERSBidWcgMTI2MzExLgogCWZv
ciBkaXIgaW4gYGxzICIke1dPUktESVJ9ImA7IGRvCg==
</data>        

          </attachment>
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>102939</attachid>
            <date>2006-11-28 13:19 0000</date>
            <desc>Patch to make ebuild work</desc>
            <filename>kde-i18n.patch</filename>
            <type>text/plain</type>
            <data encoding="base64">LS0tIGtkZS1pMThuLTMuNS41LmVidWlsZAkyMDA2LTExLTI4IDE2OjA2OjI1LjAwMDAwMDAwMCAt
MDQwMAorKysgL3Jvb3Qva2RlLWkxOG4tMy41LjUuZWJ1aWxkCTIwMDYtMTEtMjggMTc6MDQ6MTEu
MDAwMDAwMDAwIC0wNDAwCkBAIC0zNyw3ICszNyw5IEBACiAJZmkKIAogCSMgT3ZlcnJpZGUga2Rl
X3NyY191bnBhY2suCi0JdW5wYWNrICR7QX0KKwlpZiAhIFtbIC16ICIke0F9IiBdXTsgdGhlbgor
CQl1bnBhY2sgJHtBfQorCWZpCiAKIAkjIFdvcmsgYXJvdW5kIEtERSBidWcgMTI2MzExLgogCWZv
ciBkaXIgaW4gYGxzICIke1dPUktESVJ9ImA7IGRvCg==
</data>        

          </attachment>
    </bug>

</bugzilla>