<?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>217895</bug_id>
          
          <creation_ts>2008-04-16 03:23 0000</creation_ts>
          <short_desc>app-dicts/stardict-3.0.1 ebuild improvements and cleanup</short_desc>
          <delta_ts>2008-04-29 20:18:54 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>Applications</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>minor</bug_severity>
          <target_milestone>---</target_milestone>
          
          <blocked>73657</blocked>
          
          <everconfirmed>1</everconfirmed>
          <reporter>denilsonsa@gmail.com</reporter>
          <assigned_to>pva@gentoo.org</assigned_to>
          <cc>cjk@gentoo.org</cc>
    
    <cc>dirk@liji-und-dirk.de</cc>

      

      
          <long_desc isprivate="0">
            <who>denilsonsa@gmail.com</who>
            <bug_when>2008-04-16 03:23:17 0000</bug_when>
            <thetext>The current stardict-3.0.1 ebuild will build stardict with qqwry support, but won&apos;t download and install the required QQWry.Dat file. So, I&apos;ve added a qqwry useflag that installs it.

qqwry is some type of IP database. However, it appears to be in chinese language, or something like that. Considering that some people might find it useful, I think the useflag is the way to go.

I&apos;ve also added a &quot;dodoc&quot; command to add some documentation that is not installed by &quot;make install&quot;. These are just 4 plaintext files.

I&apos;m attaching a diff to the current ebuild. Please take a look and update the ebuild in portage.


It could also be possible to add a useflag to download and install WyabdcRealPeopleTTS, or maybe it would be better to add a new ebuild for it. It&apos;s a huge pack (81MB) of wav files. See http://stardict.sourceforge.net/download.php


Well, in addition to these improvements, I think we can also do some cleanup. The &quot;files/stardict-gentoo.patch&quot; file can be safely deleted, because it is for stardict-1.3.

There is also &quot;files/stardict-gtk24.patch&quot; which is for stardict-2.4.2, but does not follow the same naming convention of other patches. So I suggest to either rename this file or remove it and the 2.4.2 ebuild.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>denilsonsa@gmail.com</who>
            <bug_when>2008-04-16 03:24:16 0000</bug_when>
            <thetext>Created an attachment (id=149891)
stardict-3.0.1.ebuild.diff

My proposed changes. They work for me.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>denilsonsa@gmail.com</who>
            <bug_when>2008-04-16 04:06:35 0000</bug_when>
            <thetext>Oh, I just found that &quot;play&quot; command gives corrupted sound here, while &quot;aplay&quot; works well. Maybe we should write a patch to change the default &quot;play&quot; to &quot;aplay&quot;?</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>pva@gentoo.org</who>
            <bug_when>2008-04-28 10:58:31 0000</bug_when>
            <thetext>Thank you for report Denilson. Take a look at just committed stardict-3.0.1-r1 it should contain most of fixes you suggest. The only change I&apos;ve decided to ignore was to change play to aplay as I failed to reproduce/experience any problems with play and that is play bug in any case. If there is anything else we could improve, fill in new bugs! Thank you again.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>denilsonsa@gmail.com</who>
            <bug_when>2008-04-28 14:10:07 0000</bug_when>
            <thetext>(In reply to comment #3)
&gt; If there is anything else we could improve, fill in new bugs!

I hope you don&apos;t mind if I post more comments/improvements in this bug (and reopen it). And these are really just small improvements (one about festival use flag, and another about qqwry use flag).


Right now I wonder about the usefulness of festival useflag. It only adds a dependency, nothing else. So, maybe someone tries to enable this useflag, and only then finds that the plugin has not been built. Maybe that conditional message should be made unconditional. Maybe the useflag could be removed.

I think that there should be an explanation why the festival plugin is disabled. Does it fail to compile? Does it segfault? I remember I read somewhere the reason why it is disabled (maybe inside stardict sources/docs?), but unfortunately I&apos;ve already forgot why.

$ euse -i festival
[-    ] festival (app-dicts/stardict):
Enable festival text to speach plugin

Hum... The festival description is a lie! The plugin is *not* being enabled. ;)



$ euse -i qqwry
[-    ] qqwry (app-dicts/stardict):
Enable QQWry plugin, which provides information about geographical position, owner, etc. for IP address

I think you should say that qqwry displays information in chinese language. Otherwise, people will just enable it, look at that strange language, say WTF?, and then disable it.


That&apos;s all. Thank you for improving stardict on portage.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>pva@gentoo.org</who>
            <bug_when>2008-04-28 15:54:29 0000</bug_when>
            <thetext>(In reply to comment #4)
&gt; Right now I wonder about the usefulness of festival useflag.

Yes it just enables dependency... I see no problem with this.

&gt; I think that there should be an explanation why the festival plugin is
&gt; disabled. Does it fail to compile? Does it segfault?

This&apos;s is described, read comments inside ebuild :)

&gt; $ euse -i festival
&gt; [-    ] festival (app-dicts/stardict):
&gt; Enable festival text to speach plugin
&gt; 
&gt; Hum... The festival description is a lie! The plugin is *not* being enabled.

Ok, I&apos;ve changed wording so now it does not states that we install plugin.

&gt; $ euse -i qqwry
&gt; [-    ] qqwry (app-dicts/stardict):
&gt; Enable QQWry plugin, which provides information about geographical position,
&gt; owner, etc. for IP address

&gt; I think you should say that qqwry displays information in chinese language.

Ok, I&apos;ve added this too. Fixed again. Enjoy. :)</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>dirk@liji-und-dirk.de</who>
            <bug_when>2008-04-29 11:30:42 0000</bug_when>
            <thetext>hmm, cleaning up the ebuild is good
but unconditionally checking the use flag of a library not necessarily installed (no hard dependency on libgnome, only with gnome use flag) is really really bad as it breaks the ebuild for people not having installed gnome (or libgnome)</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>pva@gentoo.org</who>
            <bug_when>2008-04-29 20:18:54 0000</bug_when>
            <thetext>(In reply to comment #6)
&gt; but unconditionally checking the use flag of a library not necessarily
&gt; installed (no hard dependency on libgnome, only with gnome use flag) is really
&gt; really bad as it breaks the ebuild for people not having installed gnome (or
&gt; libgnome)

This was reported this morning in bug #219631 and was already fixed.
</thetext>
          </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>149891</attachid>
            <date>2008-04-16 03:24 0000</date>
            <desc>stardict-3.0.1.ebuild.diff</desc>
            <filename>stardict-3.0.1.ebuild.diff</filename>
            <type>text/plain</type>
            <data encoding="base64">LS0tIC9nZW50b28vcG9ydGFnZS9hcHAtZGljdHMvc3RhcmRpY3Qvc3RhcmRpY3QtMy4wLjEuZWJ1
aWxkCTIwMDgtMDQtMTQgMTM6MDc6MDMuMDAwMDAwMDAwIC0wMzAwCisrKyAvZ2VudG9vL292ZXJs
YXkvYXBwLWRpY3RzL3N0YXJkaWN0L3N0YXJkaWN0LTMuMC4xLmVidWlsZAkyMDA4LTA0LTE2IDAw
OjAwOjM0LjAwMDAwMDAwMCAtMDMwMApAQCAtOCwxMCArOCwxMSBAQAogIyAgICAgICB0aGVpciBp
bmRleGVzIHNlZW0gdG8gYmUgaW4gYSBkaWZmZXJlbnQgZm9ybWF0LiBTbyB3ZSdsbCBrZWVwIHRo
ZW0KICMgICAgICAgc2VwZXJhdGUgZm9yIG5vdy4KIAotSVVTRT0iZmVzdGl2YWwgZXNwZWFrIGdu
b21lIGd1Y2hhcm1hcCBzcGVsbCIKK0lVU0U9ImZlc3RpdmFsIGVzcGVhayBnbm9tZSBndWNoYXJt
YXAgcXF3cnkgc3BlbGwiCiBERVNDUklQVElPTj0iQSBHTk9NRTIgaW50ZXJuYXRpb25hbCBkaWN0
aW9uYXJ5IHN1cHBvcnRpbmcgZnV6enkgYW5kIGdsb2Igc3R5bGUgbWF0Y2hpbmciCiBIT01FUEFH
RT0iaHR0cDovL3N0YXJkaWN0LnNvdXJjZWZvcmdlLm5ldC8iCi1TUkNfVVJJPSJtaXJyb3I6Ly9z
b3VyY2Vmb3JnZS9zdGFyZGljdC8ke1B9LnRhci5iejIiCitTUkNfVVJJPSJtaXJyb3I6Ly9zb3Vy
Y2Vmb3JnZS9zdGFyZGljdC8ke1B9L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