<?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>235393</bug_id>
          
          <creation_ts>2008-08-21 18:55 0000</creation_ts>
          <short_desc>dev-util/git: 72git-gentoo.el does nothing for &gt;=emacs-22.2</short_desc>
          <delta_ts>2008-11-24 00:46:42 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>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>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>simons@cryp.to</reporter>
          <assigned_to>emacs@gentoo.org</assigned_to>
          <cc>robbat2@gentoo.org</cc>

      

      
          <long_desc isprivate="0">
            <who>simons@cryp.to</who>
            <bug_when>2008-08-21 18:55:03 0000</bug_when>
            <thetext>I&apos;m wondering about the file /usr/share/emacs/site-lisp/site-gentoo.d/72git-gentoo.el that&apos;s installed by  dev-util/git: Why is the initialization code contained in a 

  (unless (fboundp &apos;vc-git-registered) ...)

bracket? I don&apos;t see how git can be registered as a VC backend at the time that file is parsed. No matter what I do, I cannot make the default installation support M-x git-status. Removing that unless-conditional remedies the problem.

Am I missing something? How is that thing supposed to work?

Reproducible: Always

Steps to Reproduce:
1. USE=emacs emerge git
2. emacs
3. M-x git-status

Doesn&apos;t work.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>ulm@gentoo.org</who>
            <bug_when>2008-08-21 20:13:47 0000</bug_when>
            <thetext>This is on purpose, since VC in &gt;=emacs-22.2 comes with its own Git backend already. So in this case we disable the code that comes with dev-util/git, see bug 194690.
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>ulm@gentoo.org</who>
            <bug_when>2008-08-25 08:03:15 0000</bug_when>
            <thetext>Resolving as invalid. Please reopen if you think that this is still an issue.

For clarification, I&apos;ve put a comment in 72git-gentoo.el:
;; GNU Emacs &gt;=22.2 already includes vc-git.el.
;; Enable the following only if Emacs has no GIT support.
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>simons@cryp.to</who>
            <bug_when>2008-10-30 05:25:52 0000</bug_when>
            <thetext>The git support shipped with Emacs does not provide &apos;git-status&apos;; the mode installed by git, however, does. So the elisp files from git should be preferred. Am I missing something? </thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>ulm@gentoo.org</who>
            <bug_when>2008-10-30 07:24:40 0000</bug_when>
            <thetext>Created an attachment (id=170294)
Proposed patch for git-1.6.0.3.ebuild

(In reply to comment #3)
&gt; The git support shipped with Emacs does not provide &apos;git-status&apos;; the mode
&gt; installed by git, however, does. So the elisp files from git should be
&gt; preferred.

As I wrote before, we cannot use vc-git.el with Emacs &gt;= 22.2.

But you have a point, we could autoload git.el (i.e., git-status) unconditionally and apply the version test only for vc-git.el. Patch for the ebuild is attached, new site-init file will follow.
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>ulm@gentoo.org</who>
            <bug_when>2008-10-30 07:29:27 0000</bug_when>
            <thetext>Created an attachment (id=170296)
files/50git-gentoo.el

New site-init file.

(I&apos;ve changed its number from 72 to the canonical 50. There is no other package required before git in the load sequence, and whenever I see a number like 72 I ask myself what would be the reason for this.)
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>ulm@gentoo.org</who>
            <bug_when>2008-11-15 13:22:57 0000</bug_when>
            <thetext>robbat2, any objections if I commit this myself?
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>robbat2@gentoo.org</who>
            <bug_when>2008-11-24 00:46:42 0000</bug_when>
            <thetext>In 1.6.0.4-r1</thetext>
          </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>170294</attachid>
            <date>2008-10-30 07:24 0000</date>
            <desc>Proposed patch for git-1.6.0.3.ebuild</desc>
            <filename>git-1.6.0.3.ebuild.patch</filename>
            <type>text/plain</type>
            <data encoding="base64">LS0tIGdpdC0xLjYuMC4zLmVidWlsZAkyOSBPY3QgMjAwOCAwMTozMzoxMyAtMDAwMAkxLjEKKysr
IGdpdC0xLjYuMC4zLmVidWlsZAkzMCBPY3QgMjAwOCAwNzoxNTo0MSAtMDAwMApAQCAtNDMsNyAr
NDMsNyBAQAogCQkJKQogCWd0az8gICggPj1kZXYtcHl0aG9uL3B5Z3RrLTIuOCApIgogCi1TSVRF
RklMRT03MiR7UE59LWdlbnRvby5lbAorU0lURUZJTEU9NTAke1BOfS1nZW50b28uZWwKIFM9IiR7
V09SS0RJUn0vJHtNWV9QfSIKIAogcGtnX3NldHVwKCkgewpAQCAtMTM0LDEyICsxMzQsMTIgQEAK
IAlkb2Jhc2hjb21wbGV0aW9uIGNvbnRyaWIvY29tcGxldGlvbi9naXQtY29tcGxldGlvbi5iYXNo
ICR7UE59CiAKIAlpZiB1c2UgZW1hY3MgOyB0aGVuCi0JCWVsaXNwLWluc3RhbGwgJHtQTn0gY29u
dHJpYi9lbWFjcy97LHZjLX1naXQuZWwqIHx8IFwKLQkJCWRpZSAiZWxpc3AtaW5zdGFsbCBmYWls
ZWQiCi0JCWVsaXNwLXNpdGUtZmlsZS1pbnN0YWxsICIke0ZJTEVTRElSfSIvJHtTSVRFRklMRX0K
KwkJZWxpc3AtaW5zdGFsbCAke1BOfSBjb250cmliL2VtYWNzL2dpdC57ZWwsZWxjfSB8fCBkaWUK
KwkJZWxpc3AtaW5zdGFsbCAke1BOfS9jb21wYXQgY29udHJpYi9lbWFjcy92Yy1naXQue2VsLGVs
Y30gfHwgZGllCiAJCSMgZG9uJ3QgYWRkIGF1dG9tYXRpY2FsbHkgdG8gdGhlIGxvYWQtcGF0aCwg
c28gdGhlIHNpdGVmaWxlCiAJCSMgY2FuIGRvIGEgY29uZGl0aW9uYWwgbG9hZGluZwotCQl0b3Vj
aCAiJHtEfSIvIiR7U0lURUxJU1B9Ii8ke1BOfS8ubm9zZWFyY2gKKwkJdG91Y2ggIiR7RH0ke1NJ
VEVMSVNQfS8ke1BOfS9jb21wYXQvLm5vc2VhcmNoIgorCQllbGlzcC1zaXRlLWZpbGUtaW5zdGFs
bCAiJHtGSUxFU0RJUn0vJHtTSVRFRklMRX0iIHx8IGRpZQogCWZpCiAKIAlpZiB1c2UgZ3RrIDsg
dGhlbgpAQCAtMjcwLDEyICsyNzAsNyBAQAogfQogCiBwa2dfcG9zdGluc3QoKSB7Ci0JaWYgdXNl
IGVtYWNzIDsgdGhlbgotCQllbGlzcC1zaXRlLXJlZ2VuCi0JCWVsb2cgIkdOVSBFbWFjcyBoYXMg
YnVpbHQtaW4gR2l0IHN1cHBvcnQgaW4gdmVyc2lvbnMgZ3JlYXRlciAyMi4xLiIKLQkJZWxvZyAi
WW91IGNhbiBkaXNhYmxlIHRoZSBlbWFjcyBVU0UgZmxhZyBmb3IgZGV2LXV0aWwvZ2l0IgotCQll
bG9nICJpZiB5b3UgYXJlIHVzaW5nIHN1Y2ggYSB2ZXJzaW9uLiIKLQlmaQorCXVzZSBlbWFjcyAm
JiBlbGlzcC1zaXRlLXJlZ2VuCiAJaWYgdXNlIHN1YnZlcnNpb24gJiYgISBidWlsdF93aXRoX3Vz
ZSBkZXYtdXRpbC9zdWJ2ZXJzaW9uIHBlcmwgOyB0aGVuCiAJCWV3YXJuICJZb3UgbXVzdCBidWls
ZCBkZXYtdXRpbC9zdWJ2ZXJzaW9uIHdpdGggVVNFPXBlcmwiCiAJCWV3YXJuICJ0byBnZXQgdGhl
IGZ1bGwgZnVuY3Rpb25hbGl0eSBvZiBnaXQtc3ZuISIK
</data>        

          </attachment>
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>170296</attachid>
            <date>2008-10-30 07:29 0000</date>
            <desc>files/50git-gentoo.el</desc>
            <filename>50git-gentoo.el</filename>
            <type>text/plain</type>
            <data encoding="base64">Cjs7OyBkZXYtdXRpbC9naXQgc2l0ZS1saXNwIGNvbmZpZ3VyYXRpb24KCihhZGQtdG8tbGlzdCAn
bG9hZC1wYXRoICJAU0lURUxJU1BAIikKKGF1dG9sb2FkICdnaXQtc3RhdHVzICJnaXQiICJFbnRy
eSBwb2ludCBpbnRvIGdpdC1zdGF0dXMgbW9kZS4iIHQpCjs7KGF1dG9sb2FkICdnaXQtYmxhbWUt
bW9kZSAiZ2l0LWJsYW1lIgo7OyAgIk1pbm9yIG1vZGUgZm9yIGluY3JlbWVudGFsIGJsYW1lIGZv
ciBHaXQuIiB0KQoKOzsgR05VIEVtYWNzID49MjIuMiBhbHJlYWR5IGluY2x1ZGVzIHZjLWdpdC5l
bC4KOzsgRW5hYmxlIHRoZSBmb2xsb3dpbmcgb25seSBpZiBFbWFjcyBoYXMgbm8gR0lUIHN1cHBv
cnQuCih1bmxlc3MgKGZib3VuZHAgJ3ZjLWdpdC1yZWdpc3RlcmVkKQogIChhZGQtdG8tbGlzdCAn
bG9hZC1wYXRoICJAU0lURUxJU1BAL2NvbXBhdCIpCiAgKGFkZC10by1saXN0ICd2Yy1oYW5kbGVk
LWJhY2tlbmRzICdHSVQpKQo=
</data>        

          </attachment>
    </bug>

</bugzilla>