git-core fails to install

Bug #164167 reported by Justin Dugger
16
This bug affects 1 person
Affects Status Importance Assigned to Milestone
git-core (Debian)
Fix Released
Unknown
git-core (Ubuntu)
Fix Released
High
Unassigned

Bug Description

Binary package hint: git-core

In hardy, git-core fails to install:
jldugger@jldugger-laptop:~$ sudo apt-get install git-core
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
  libdigest-sha1-perl liberror-perl
Suggested packages:
  git-arch git-cvs git-svn git-email git-daemon-run git-gui gitk gitweb
Recommended packages:
  git-doc
The following NEW packages will be installed:
  git-core libdigest-sha1-perl liberror-perl
0 upgraded, 3 newly installed, 0 to remove and 2 not upgraded.
Need to get 40.2kB/4059kB of archives.
After unpacking 8720kB of additional disk space will be used.
Do you want to continue [Y/n]? y
Get:1 http://us.archive.ubuntu.com hardy/main liberror-perl 0.15-8 [15.5kB]
Get:2 http://us.archive.ubuntu.com hardy/main libdigest-sha1-perl 2.11-2 [24.7kB]
Fetched 40.2kB in 0s (54.0kB/s)
Selecting previously deselected package liberror-perl.
(Reading database ... 199044 files and directories currently installed.)
Unpacking liberror-perl (from .../liberror-perl_0.15-8_all.deb) ...
Selecting previously deselected package libdigest-sha1-perl.
Unpacking libdigest-sha1-perl (from .../libdigest-sha1-perl_2.11-2_i386.deb) ...
Unpacking git-core (from .../git-core_1%3a1.5.3.6-1_i386.deb) ...
dpkg: error processing /var/cache/apt/archives/git-core_1%3a1.5.3.6-1_i386.deb (--unpack):
 trying to overwrite `/usr/share/perl5/Error.pm', which is also in package liberror-perl
dpkg-deb: subprocess paste killed by signal (Broken pipe)
Errors were encountered while processing:
 /var/cache/apt/archives/git-core_1%3a1.5.3.6-1_i386.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

Why is git-core providing a module it already depends on?

Revision history for this message
Shirish Agarwal (shirishag75) wrote :

confirmed.

Changed in git-core:
importance: Undecided → High
status: New → Triaged
Revision history for this message
Kow (kow) wrote :

Problem is with source tarball. Debian has rules to delete Error.pm and the man page for it (git includes this because Perl doesnt). liberror-perl is a dependency for git-core. Now back to the problem, it appears the permissions are wrong in the source tarball so the rules script does not have correct permissions to delete the files. I recommend patching the Makefiles to remove these. One of the relevant makefiles is <src package dir>/Perl/Makefile. Now I think there is a man page too that needs to be removed but I haven't looked at that.

Changed in git-core:
status: Unknown → Fix Released
Revision history for this message
Luca Falavigna (dktrkranz) wrote :

Fixed in 1:1.5.3.6-1.1.

Changed in git-core:
status: Triaged → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

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