<?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>168550</bug_id>
          
          <creation_ts>2007-02-27 11:19 0000</creation_ts>
          <short_desc>app-emacs/chess-2.0_beta5-r1 installs pixmaps and sounds in site-lisp directory</short_desc>
          <delta_ts>2007-02-27 12:39:24 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>Ebuilds</component>
          <version>2006.1</version>
          <rep_platform>All</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>ulm@gentoo.org</reporter>
          <assigned_to>emacs@gentoo.org</assigned_to>
          

      

      
          <long_desc isprivate="0">
            <who>ulm@gentoo.org</who>
            <bug_when>2007-02-27 11:19:36 0000</bug_when>
            <thetext>emerge app-emacs/chess-2.0_beta5-r1 installs chess&apos;s pixmaps and sounds in subdirectories of /usr/share/emacs/site-lisp. These directories are unnecessarily added by Emacs to its load-path.

Proposed fix: Pixmaps should go into /usr/share/pixmaps/chess, sounds into /usr/share/sounds/chess.

Another issue is that the site-init file does an unconditional &quot;(require &apos;chess)&quot; where an &quot;autoload&quot; would be sufficient. See commentary in chess.el:

;; To just get a chessboard up, put the following in your .emacs file:
;;   (add-to-list &apos;load-path &quot;&lt;the path to Emacs Chess&gt;&quot;)
;;   (autoload &apos;chess &quot;chess&quot; &quot;Play a game of chess&quot; t)

Find attached my proposed changes to the ebuild and a new site-init file. It applies (and I have tested it) with chess-2.0_beta5, too, in case you want to maintain a separate stable branch.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>ulm@gentoo.org</who>
            <bug_when>2007-02-27 11:20:20 0000</bug_when>
            <thetext>Created an attachment (id=111397)
Proposed changes to chess-2.0_beta5-r1.ebuild

</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>ulm@gentoo.org</who>
            <bug_when>2007-02-27 11:21:14 0000</bug_when>
            <thetext>Created an attachment (id=111398)
Site-init file 51chess-gentoo.el

</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>fauli@gentoo.org</who>
            <bug_when>2007-02-27 12:39:24 0000</bug_when>
            <thetext>(In reply to comment #0)
&gt; Find attached my proposed changes to the ebuild and a new site-init file. It
&gt; applies (and I have tested it) with chess-2.0_beta5, too, in case you want to
&gt; maintain a separate stable branch.

 Thanks.  Fixed in CVS.  I won&apos;t do the changes for the stable branch, it was broken for a long time and I wait until Emacs 22 goes stable.</thetext>
          </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>111397</attachid>
            <date>2007-02-27 11:20 0000</date>
            <desc>Proposed changes to chess-2.0_beta5-r1.ebuild</desc>
            <filename>diff</filename>
            <type>text/plain</type>
            <data encoding="base64">LS0tIC4uLy4uLy4uLy4uL2FwcC1lbWFjcy9jaGVzcy9jaGVzcy0yLjBfYmV0YTUtcjEuZWJ1aWxk
CTIwMDctMDItMDkgMDE6MjY6MjguMDAwMDAwMDAwICswMTAwCisrKyBjaGVzcy0yLjBfYmV0YTUt
cjEuZWJ1aWxkCTIwMDctMDItMjcgMTE6MDc6MzMuMDAwMDAwMDAwICswMTAwCkBAIC0yNSw3ICsy
NSw3IEBACiAKIFM9IiR7V09SS0RJUn0vJHtQL19iZXRhL2J9IgogCi1TSVRFRklMRT01MGNoZXNz
LWdlbnRvby5lbAorU0lURUZJTEU9NTFjaGVzcy1nZW50b28uZWwKIAogc3JjX3VucGFjaygpIHsK
IAl1bnBhY2sgJHtBfQpAQCAtNDAsNyArNDAsMTAgQEAKIHNyY19pbnN0YWxsKCkgewogCWVsaXNw
LWluc3RhbGwgJHtQTn0gKi5lbCAqLmVsYwogCWVsaXNwLXNpdGUtZmlsZS1pbnN0YWxsICIke0ZJ
TEVTRElSfS8ke1NJVEVGSUxFfSIKLQljcCAtciAiJHtTfS8uLi9waWVjZXMiICIke1N9Ly4uL3Nv
dW5kcyIgIiR7RH0vJHtTSVRFTElTUH0vJHtQTn0iCisJZG9kaXIgL3Vzci9zaGFyZS9waXhtYXBz
LyR7UE59CisJY3AgLXIgIiR7V09SS0RJUn0vcGllY2VzLy4iICIke0R9L3Vzci9zaGFyZS9waXht
YXBzLyR7UE59IgorCWRvZGlyIC91c3Ivc2hhcmUvc291bmRzLyR7UE59CisJY3AgLXIgIiR7V09S
S0RJUn0vc291bmRzLy4iICIke0R9L3Vzci9zaGFyZS9zb3VuZHMvJHtQTn0iCiAJZG9pbmZvIGNo
ZXNzLmluZm8KIAlkb2h0bWwgKi5odG1sCiAJZG9kb2MgQ2hhbmdlTG9nIEVQRC50eHQgUEdOLnR4
dCBQTEFOIFJFQURNRSBUT0RPCg==
</data>        

          </attachment>
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>111398</attachid>
            <date>2007-02-27 11:21 0000</date>
            <desc>Site-init file 51chess-gentoo.el</desc>
            <filename>51chess-gentoo.el</filename>
            <type>text/plain</type>
            <data encoding="base64">Cjs7OyBjaGVzcyBzaXRlLWxpc3AgY29uZmlndXJhdGlvbiAKCihhZGQtdG8tbGlzdCAnbG9hZC1w
YXRoICJAU0lURUxJU1BAIikKKGF1dG9sb2FkICdjaGVzcyAiY2hlc3MiICJQbGF5IGEgZ2FtZSBv
ZiBjaGVzcyIgdCkKCihjdXN0b20tc2V0LXZhcmlhYmxlcwogJyhjaGVzcy1pbWFnZXMtZGlyZWN0
b3J5ICIvdXNyL3NoYXJlL3BpeG1hcHMvY2hlc3MveGJvYXJkIikKICcoY2hlc3Mtc291bmQtZGly
ZWN0b3J5ICIvdXNyL3NoYXJlL3NvdW5kcy9jaGVzcyIpKQoKOzsgQ2hhbmdlIHRoZSBlbmdpbmUg
cHJlZmVyZW5jZSBvcmRlciAtLSBnbnVjaGVzcyBpcyBhIGRlcGVuZGVuY3kgKHdlCjs7IGRlcGVu
ZCBvbiBhcHAtZ2FtZXMvZ251Y2hlc3MgZXhwbGljaXRseSkuIFdlIG1ha2UgY3JhZnR5IGFuZAo7
OyBwaGFsYW54IG9wdGlvbmFsLiBUaGUgdXNlciBjYW4gb3ZlcnJpZGUgdGhpcyBhbnl0aW1lIHVz
aW5nIE0teAo7OyBjdXN0b21pemUtZ3JvdXAgUkVUIGNoZXNzIFJFVAoKKGN1c3RvbS1zZXQtdmFy
aWFibGVzCiAnKGNoZXNzLWRlZmF1bHQtZW5naW5lIChxdW90ZSAoY2hlc3MtZ251Y2hlc3MgY2hl
c3MtY3JhZnR5IGNoZXNzLXBoYWxhbngpKSkpCg==
</data>        

          </attachment>
    </bug>

</bugzilla>