git post-installation script fails if emacs and git is being installed at the same time.

Bug #722946 reported by Matt Wheeler
184
This bug affects 23 people
Affects Status Importance Assigned to Milestone
git (Debian)
Fix Released
Unknown
git (Ubuntu)
Fix Released
High
Unassigned
Natty
Fix Released
High
Unassigned

Bug Description

Binary package hint: git

failed on upgrade to ubuntu 11.04

ProblemType: Package
DistroRelease: Ubuntu 11.04
Package: git 1:1.7.4.1-1
ProcVersionSignature: Ubuntu 2.6.38-4.31-generic 2.6.38-rc5
Uname: Linux 2.6.38-4-generic x86_64
Architecture: amd64
Date: Tue Feb 22 02:59:25 2011
ErrorMessage: subprocess installed post-installation script returned error exit status 1
InstallationMedia: Ubuntu 9.10 "Karmic Koala" - Release amd64 (20091027)
SourcePackage: git
Title: package git 1:1.7.4.1-1 failed to install/upgrade: subprocess installed post-installation script returned error exit status 1

Revision history for this message
Matt Wheeler (funkyhat) wrote :
Revision history for this message
Anders Kaseorg (andersk) wrote :

Hmm. The actual error is that git.el already exists.

Setting up git (1:1.7.4.1-1) ...
install/git: Handling install of emacsen flavor emacs
install/git: Handling install of emacsen flavor emacs23
install/git: byte-compiling for emacs23
ln: creating symbolic link `git.el': File exists
emacs-package-install: /usr/lib/emacsen-common/packages/install/git emacs23 emacs23 failed at /usr/lib/emacsen-common/emacs-package-install line 30, <TSORT> line 1.
dpkg: error processing git (--configure):
 subprocess installed post-installation script returned error exit status 1

Do you know what what the existing git.el is? Try something like
  find /usr -name git.el | xargs -r ls -l
for example.

Revision history for this message
Matt Wheeler (funkyhat) wrote : Re: [Bug 722946] Re: package git 1:1.7.4.1-1 failed to install/upgrade: subprocess installed post-installation script returned error exit status 1

On 22 February 2011 04:52, Anders Kaseorg <email address hidden> wrote:
> Hmm.  The actual error is that git.el already exists.
>
> Setting up git (1:1.7.4.1-1) ...
> install/git: Handling install of emacsen flavor emacs
> install/git: Handling install of emacsen flavor emacs23
> install/git: byte-compiling for emacs23
> ln: creating symbolic link `git.el': File exists
> emacs-package-install: /usr/lib/emacsen-common/packages/install/git emacs23 emacs23 failed at /usr/lib/emacsen-common/emacs-package-install line 30, <TSORT> line 1.
> dpkg: error processing git (--configure):
>  subprocess installed post-installation script returned error exit status 1
>
> Do you know what what the existing git.el is?  Try something like
>  find /usr -name git.el | xargs -r ls -l
> for example.

As far as I can tell it was created by a previous version of the git
package (possibly from the git ppa?), the link (and another that
caused almost the same failure) was already pointing to the same
place.

On my own system I fixed the issue by removing the two links (git.el
and git-blame.el) before re-running dpkg.

I've prepared a version of the git package that changes ln -s to ln
-sf in the relevant script to work around the error, but I don't know
if that's a good way to solve the issue, or if it might cause any
other problems, so I haven't uploaded it anywhere yet (also noone else
has reported or confirmed it so maybe it was just my system in the
first place...)

--
Matt Wheeler
<email address hidden>

Revision history for this message
Anders Kaseorg (andersk) wrote : Re: package git 1:1.7.4.1-1 failed to install/upgrade: subprocess installed post-installation script returned error exit status 1

Okay. I wonder if this is related to http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=614578 .

Revision history for this message
Andreas Olsson (andol) wrote :

Well, in any case I can confirm and reproduce this issue as of git 1:1.7.4.1-1 by either

a) Have an Ubuntu 10.10 system with both emacs and git installed, and then upgrade to Ubuntu 11.04
b) Have an Ubuntu 11.04 system where git and emacs is installed at the same time. It doesn't matter whatever emacsen-common is installed beforehand or not.

Changed in git (Ubuntu):
status: New → Confirmed
summary: - package git 1:1.7.4.1-1 failed to install/upgrade: subprocess installed
- post-installation script returned error exit status 1
+ git post-installation script fails if emacs and git is installed at the
+ same time.
James Troup (elmo)
tags: added: regression-proposed
Andreas Olsson (andol)
summary: - git post-installation script fails if emacs and git is installed at the
- same time.
+ git post-installation script fails if emacs and git is being installed
+ at the same time.
Changed in git (Debian):
status: Unknown → New
Anders Kaseorg (andersk)
tags: added: regression-release
removed: regression-proposed
Changed in git (Ubuntu):
importance: Undecided → High
Revision history for this message
Anders Kaseorg (andersk) wrote :

This is fixed in the upcoming Debian upload of 1.7.4.1-2.

Revision history for this message
Martin Pitt (pitti) wrote :

Fixed git is currently in Debian NEW queue. Once it hits sid, we'll sync it. Thanks Anders!

Changed in git (Ubuntu Natty):
status: Confirmed → Fix Committed
Changed in git (Debian):
status: New → Fix Committed
Changed in git (Ubuntu Natty):
status: Fix Committed → Fix Released
Changed in git (Debian):
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.