Your message dated Tue, 27 Jan 2015 18:47:08 +0100
with message-id <[email protected]>
and subject line Re: Bug#776251: ack-grep fails to install due to diversion
problem
has caused the Debian Bug report #776251,
regarding ack-grep fails to install due to diversion problem
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)
--
776251: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=776251
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: ack-grep
Version: 2.14-4
Severity: grave
Justification: renders package unusable
ack-grep fails to install pretending `/usr/bin/ack' is diverted by
`/usr/bin/ack-grep' although the /usr/bin/ack file does not exist:
$ apt-get install ack-grep
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
ack-grep
0 upgraded, 1 newly installed, 0 to remove and 40 not upgraded.
Need to get 0 B/67.0 kB of archives.
After this operation, 236 kB of additional disk space will be used.
(Reading database ... 463241 files and directories currently installed.)
Preparing to unpack .../ack-grep_2.14-4_all.deb ...
Unpacking ack-grep (2.14-4) ...
dpkg: error processing archive /var/cache/apt/archives/ack-grep_2.14-4_all.deb
(--unpack):
trying to overwrite `/usr/bin/ack', which is the diverted version of
`/usr/bin/ack-grep'
Processing triggers for man-db (2.7.0.2-5) ...
Errors were encountered while processing:
/var/cache/apt/archives/ack-grep_2.14-4_all.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
zsh: exit 100 apt-get install ack-grep
It works well after manullay removing the diversion:
$ dpkg-divert --list "*ack*"
local diversion of /usr/bin/ack-grep to /usr/bin/ack
$ dpkg-divert --remove /usr/bin/ack-grep
Removing 'local diversion of /usr/bin/ack-grep to /usr/bin/ack'
I do not understand why the diversion is still there: if I remember well,
the ack-grep package was installed on this system, then removed. The
installation of the package works well on a freshly bootstrapped debian sid.
Besides, I am not sure the diversion is still needed, since according to
apt-file, ack-grep is the only package providing /usr/bin/ack.
Thanks
-- System Information:
Debian Release: 8.0
APT prefers unstable
APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386, armel, armhf
Kernel: Linux 3.16.0-4-amd64 (SMP w/4 CPU cores)
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
Versions of packages ack-grep depends on:
ii libfile-next-perl 1.12-1
ii perl 5.20.1-4
ack-grep recommends no packages.
ack-grep suggests no packages.
-- no debconf information
--- End Message ---
--- Begin Message ---
Hi Olivier,
Olivier Schwander wrote:
> Le 26 Jan 2015 15:17, gregor herrmann a écrit:
> > On Mon, 26 Jan 2015 01:01:03 +0100, Axel Beckert wrote:
> > > > $ dpkg-divert --list "*ack*"
> > > > local diversion of /usr/bin/ack-grep to /usr/bin/ack
> > > ^^^^^
> > > ... which backs my assumption that a _local_ diversion (i.e. none made
> > > by a package) is the cause.
[...]
> I don't remember having made such a diversion by myself, but anyway it
> is probably the case.
Ok.
> > > I tend to close this issue as invalid/wontfix since the cause is a
> > > local (common(*) but so far unsupported) modification of the package.
> > > IMHO it has nothing to do with the package itself.
> > >
> > > But I'd like to hear comments from others from others (especially the
> > > Debian Perl Team and the Release Team) first, too.
> >
> > I agree with the wontfix+close.
Doing so now.
> > > If they agree, I can imagine to add a diversion detection and then
> > > removal to ack-grep's preinst script despite the package never used a
> > > diversion. But I'm a) unsure if it's ok for a package to remove a
> > > _local_ diversion, and
> >
> > Hm; rather not. Maybe a warning might be ok.
[...]
> Just a note somewhere would be enough I guess.
Well, I consider that "somewhere" to be here in this bug report with
the explicit solution for the fix to be in
https://bugs.launchpad.net/ubuntu/+source/ack-grep/+bug/1385390/comments/3
Nevertheless thanks for the bug report and hence the trigger for
documenting this issue.
> > > b) if it's a good idea to introduce such a
> > > change that late in the freeze.
> >
> > Probably not.
As any note inside the package that should still reach Jessie would
still require a freeze exception etc.pp. we think it's overkill to
update the package before the Jessie release just for some
documentation note.
And since this is an issue which only comes up at the Wheezy to Jessie
dist-upgrade (or the upgrades to Ubuntu 14.04 which already has been
released), fixing this after Jessie makes no more sense either.
So I'm herewith closing this bug report.
If anyone from the release team disagrees and would like to see a fix
for this in Jessie, I'm happy to provide one. But after a discussion
on #debian-perl, we are expecting that the release team will see the
situation probably as much as overkill as we do, given that only
systems with manual local changes are affected.
Regards, Axel
--
,''`. | Axel Beckert <[email protected]>, http://people.debian.org/~abe/
: :' : | Debian Developer, ftp.ch.debian.org Admin
`. `' | 4096R: 2517 B724 C5F6 CA99 5329 6E61 2FF9 CD59 6126 16B5
`- | 1024D: F067 EA27 26B9 C3FC 1486 202E C09E 1D89 9593 0EDE
--- End Message ---