vim-doc: Preinst script is broken

Bug #10229 reported by Debian Bug Importer
16
Affects Status Importance Assigned to Milestone
vim (Debian)
Fix Released
Unknown
vim (Ubuntu)
Fix Released
High
Unassigned

Bug Description

Automatically imported from Debian bug report #280824 http://bugs.debian.org/280824

Revision history for this message
Debian Bug Importer (debzilla) wrote :

Automatically imported from Debian bug report #280824 http://bugs.debian.org/280824

Revision history for this message
Debian Bug Importer (debzilla) wrote :

Message-Id: <email address hidden>
Date: Thu, 11 Nov 2004 17:18:56 -0500
From: Kevin McCarty <email address hidden>
To: Debian Bug Tracking System <email address hidden>
Subject: vim-doc: Preinst script is broken

Package: vim-doc
Version: 1:6.3-031+1
Severity: grave
Justification: renders package unusable

Hi,

Trying to install the latest version of vim-doc causes a long set of error
messages to be printed out:

# dpkg -i /var/cache/apt/archives/vim-doc_1%3a6.3-031+1_all.deb
(Reading database ... 96101 files and directories currently installed.)
Preparing to replace vim-doc 1:6.3-013+2 (using .../vim-doc_1%3a6.3-031+1_all.deb) ...
rm: cannot remove `/usr/share/doc//Debian': Is a directory
rm: cannot remove `/usr/share/doc//FAQ': Is a directory
rm: cannot remove `/usr/share/doc//HOWTO': Is a directory
[snip]
rm: cannot remove `/usr/share/doc//zsh-doc': Is a directory
dpkg: error processing /var/cache/apt/archives/vim-doc_1%3a6.3-031+1_all.deb (--install):
 subprocess pre-installation script returned error exit status 1

The problem appears to be an undefined variable "$pkg" in the preinst.
I guess $pkg is supposed to be vim-doc? Good thing you didn't use rm -r,
that would really have been a pain to fix :-P

#! /bin/sh -e

if [ ! -h /usr/share/doc/$pkg ] ; then
  if [ -d /usr/share/doc/$pkg ] ; then
    rm -f /usr/share/doc/$pkg/*
    rmdir /usr/share/doc/$pkg/
  fi
fi

-- System Information:
Debian Release: 3.1
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing')
Architecture: powerpc (ppc)
Kernel: Linux 2.6.8-powerpc
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)

-- no debconf information

regards,

--
Kevin B. McCarty <email address hidden> Physics Department
WWW: http://www.princeton.edu/~kmccarty/ Princeton University
GPG public key ID: 4F83C751 Princeton, NJ 08544

Revision history for this message
In , Norbert Tretkowski (tretkowski) wrote : Re: Bug#280824: vim-doc: Preinst script is broken

* Kevin McCarty wrote:
[...]
> The problem appears to be an undefined variable "$pkg" in the
> preinst. I guess $pkg is supposed to be vim-doc?

Yupp, 1:6.3-031+2 is compiling currently, and will be uploaded in a
few hours.

Norbert

Revision history for this message
In , Kevin B. McCarty (kmccarty) wrote :

package vim-doc
merge 280824 280825
retitle 280824 vim-doc: Preinst deletes symlinks in /usr/share/doc
thanks

On 11/11/2004 06:06 PM, Norbert Tretkowski wrote:
> * Kevin McCarty wrote:
> [...]
>
>>The problem appears to be an undefined variable "$pkg" in the
>>preinst. I guess $pkg is supposed to be vim-doc?
>
>
> Yupp, 1:6.3-031+2 is compiling currently, and will be uploaded in a
> few hours.

Hmm, I just noticed that the preinst _does_ delete non-hidden symlinks
and regular files (although there probably shouldn't be any of the
latter) in /usr/share/doc. I am merging with 280825 and retitling
accordingly, so people running apt-listbugs know they _really_ don't
want to install this before the fix comes in with tomorrow's dinstall run.

regards,

--
Kevin B. McCarty <email address hidden> Physics Department
WWW: http://www.princeton.edu/~kmccarty/ Princeton University
GPG public key ID: 4F83C751 Princeton, NJ 08544

Revision history for this message
Debian Bug Importer (debzilla) wrote :

Message-ID: <email address hidden>
Date: Fri, 12 Nov 2004 00:06:11 +0100
From: Norbert Tretkowski <email address hidden>
To: Kevin McCarty <email address hidden>, <email address hidden>
Subject: Re: Bug#280824: vim-doc: Preinst script is broken

* Kevin McCarty wrote:
[...]
> The problem appears to be an undefined variable "$pkg" in the
> preinst. I guess $pkg is supposed to be vim-doc?

Yupp, 1:6.3-031+2 is compiling currently, and will be uploaded in a
few hours.

Norbert

Revision history for this message
Debian Bug Importer (debzilla) wrote :

Message-ID: <email address hidden>
Date: Thu, 11 Nov 2004 18:38:31 -0500
From: "Kevin B. McCarty" <email address hidden>
To: <email address hidden>
CC: <email address hidden>
Subject: Re: Bug#280824: vim-doc: Preinst script is broken

package vim-doc
merge 280824 280825
retitle 280824 vim-doc: Preinst deletes symlinks in /usr/share/doc
thanks

On 11/11/2004 06:06 PM, Norbert Tretkowski wrote:
> * Kevin McCarty wrote:
> [...]
>
>>The problem appears to be an undefined variable "$pkg" in the
>>preinst. I guess $pkg is supposed to be vim-doc?
>
>
> Yupp, 1:6.3-031+2 is compiling currently, and will be uploaded in a
> few hours.

Hmm, I just noticed that the preinst _does_ delete non-hidden symlinks
and regular files (although there probably shouldn't be any of the
latter) in /usr/share/doc. I am merging with 280825 and retitling
accordingly, so people running apt-listbugs know they _really_ don't
want to install this before the fix comes in with tomorrow's dinstall run.

regards,

--
Kevin B. McCarty <email address hidden> Physics Department
WWW: http://www.princeton.edu/~kmccarty/ Princeton University
GPG public key ID: 4F83C751 Princeton, NJ 08544

Revision history for this message
Debian Bug Importer (debzilla) wrote :

*** Bug 10230 has been marked as a duplicate of this bug. ***

Revision history for this message
In , Thomas Hood (jdthood-localhost) wrote : merging 280824 280865

merge 280824 280865

Revision history for this message
Debian Bug Importer (debzilla) wrote :

Message-Id: <20041112072528.385C210D634@localhost>
Date: Fri, 12 Nov 2004 08:25:28 +0100 (CET)
From: <email address hidden> (Thomas Hood)
To: <email address hidden>
Subject: merging 280824 280865

merge 280824 280865

Revision history for this message
Debian Bug Importer (debzilla) wrote :

*** Bug 10238 has been marked as a duplicate of this bug. ***

Revision history for this message
In , Norbert Tretkowski (tretkowski) wrote : Bug#280824: fixed in vim 1:6.3-031+2
Download full text (5.0 KiB)

Source: vim
Source-Version: 1:6.3-031+2

We believe that the bug you reported is fixed in the latest version of
vim, which is due to be installed in the Debian FTP archive:

kvim-perl_6.3-031+2_alpha.deb
  to pool/main/v/vim/kvim-perl_6.3-031+2_alpha.deb
kvim-python_6.3-031+2_alpha.deb
  to pool/main/v/vim/kvim-python_6.3-031+2_alpha.deb
kvim-ruby_6.3-031+2_alpha.deb
  to pool/main/v/vim/kvim-ruby_6.3-031+2_alpha.deb
kvim-tcl_6.3-031+2_alpha.deb
  to pool/main/v/vim/kvim-tcl_6.3-031+2_alpha.deb
kvim_6.3-031+2_alpha.deb
  to pool/main/v/vim/kvim_6.3-031+2_alpha.deb
vim-common_6.3-031+2_all.deb
  to pool/main/v/vim/vim-common_6.3-031+2_all.deb
vim-doc_6.3-031+2_all.deb
  to pool/main/v/vim/vim-doc_6.3-031+2_all.deb
vim-gnome_6.3-031+2_alpha.deb
  to pool/main/v/vim/vim-gnome_6.3-031+2_alpha.deb
vim-gtk_6.3-031+2_alpha.deb
  to pool/main/v/vim/vim-gtk_6.3-031+2_alpha.deb
vim-lesstif_6.3-031+2_alpha.deb
  to pool/main/v/vim/vim-lesstif_6.3-031+2_alpha.deb
vim-perl_6.3-031+2_alpha.deb
  to pool/main/v/vim/vim-perl_6.3-031+2_alpha.deb
vim-python_6.3-031+2_alpha.deb
  to pool/main/v/vim/vim-python_6.3-031+2_alpha.deb
vim-ruby_6.3-031+2_alpha.deb
  to pool/main/v/vim/vim-ruby_6.3-031+2_alpha.deb
vim-tcl_6.3-031+2_alpha.deb
  to pool/main/v/vim/vim-tcl_6.3-031+2_alpha.deb
vim_6.3-031+2.diff.gz
  to pool/main/v/vim/vim_6.3-031+2.diff.gz
vim_6.3-031+2.dsc
  to pool/main/v/vim/vim_6.3-031+2.dsc
vim_6.3-031+2_alpha.deb
  to pool/main/v/vim/vim_6.3-031+2_alpha.deb

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed. If you
have further comments please address them to <email address hidden>,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Norbert Tretkowski <email address hidden> (supplier of updated vim package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing <email address hidden>)

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Format: 1.7
Date: Thu, 11 Nov 2004 23:56:12 +0100
Source: vim
Binary: vim-lesstif vim-common vim-doc vim-gnome kvim-ruby vim vim-gtk kvim-perl vim-perl kvim-tcl vim-tiny vim-ruby vim-python vim-tcl kvim-python kvim
Architecture: source alpha all
Version: 1:6.3-031+2
Distribution: unstable
Urgency: low
Maintainer: Debian VIM Group <email address hidden>
Changed-By: Norbert Tretkowski <email address hidden>
Description:
 kvim - Vi IMproved - KDE 3.x version
 kvim-perl - Vi IMproved - KDE 3.x version with Perl scripting support
 kvim-python - Vi IMproved - KDE 3.x version with Python scripting support
 kvim-ruby - Vi IMproved - KDE 3.x version with Ruby scripting support
 kvim-tcl - Vi IMproved - KDE 3.x version with TCL scripting support
 vim - Vi IMproved - enhanced vi editor
 vim-common - Vi IMproved - Common files
 vim-doc - Vi IMproved - Documentation files
 vim-gnome - Vi IMproved - GNOME2 Version
 vim-gtk - Vi IMproved - GTK2 Version
 vim-lesstif - Vi IMproved - LessTif Version
 vim-perl - Vi IMproved, with perl scripting support
 vi...

Read more...

Revision history for this message
In , Thomas Hood (jdthood-localhost) wrote : tagging 280824

tags 280824 sid

Revision history for this message
Debian Bug Importer (debzilla) wrote :
Download full text (5.3 KiB)

Message-Id: <email address hidden>
Date: Fri, 12 Nov 2004 03:17:07 -0500
From: Norbert Tretkowski <email address hidden>
To: <email address hidden>
Subject: Bug#280824: fixed in vim 1:6.3-031+2

Source: vim
Source-Version: 1:6.3-031+2

We believe that the bug you reported is fixed in the latest version of
vim, which is due to be installed in the Debian FTP archive:

kvim-perl_6.3-031+2_alpha.deb
  to pool/main/v/vim/kvim-perl_6.3-031+2_alpha.deb
kvim-python_6.3-031+2_alpha.deb
  to pool/main/v/vim/kvim-python_6.3-031+2_alpha.deb
kvim-ruby_6.3-031+2_alpha.deb
  to pool/main/v/vim/kvim-ruby_6.3-031+2_alpha.deb
kvim-tcl_6.3-031+2_alpha.deb
  to pool/main/v/vim/kvim-tcl_6.3-031+2_alpha.deb
kvim_6.3-031+2_alpha.deb
  to pool/main/v/vim/kvim_6.3-031+2_alpha.deb
vim-common_6.3-031+2_all.deb
  to pool/main/v/vim/vim-common_6.3-031+2_all.deb
vim-doc_6.3-031+2_all.deb
  to pool/main/v/vim/vim-doc_6.3-031+2_all.deb
vim-gnome_6.3-031+2_alpha.deb
  to pool/main/v/vim/vim-gnome_6.3-031+2_alpha.deb
vim-gtk_6.3-031+2_alpha.deb
  to pool/main/v/vim/vim-gtk_6.3-031+2_alpha.deb
vim-lesstif_6.3-031+2_alpha.deb
  to pool/main/v/vim/vim-lesstif_6.3-031+2_alpha.deb
vim-perl_6.3-031+2_alpha.deb
  to pool/main/v/vim/vim-perl_6.3-031+2_alpha.deb
vim-python_6.3-031+2_alpha.deb
  to pool/main/v/vim/vim-python_6.3-031+2_alpha.deb
vim-ruby_6.3-031+2_alpha.deb
  to pool/main/v/vim/vim-ruby_6.3-031+2_alpha.deb
vim-tcl_6.3-031+2_alpha.deb
  to pool/main/v/vim/vim-tcl_6.3-031+2_alpha.deb
vim_6.3-031+2.diff.gz
  to pool/main/v/vim/vim_6.3-031+2.diff.gz
vim_6.3-031+2.dsc
  to pool/main/v/vim/vim_6.3-031+2.dsc
vim_6.3-031+2_alpha.deb
  to pool/main/v/vim/vim_6.3-031+2_alpha.deb

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed. If you
have further comments please address them to <email address hidden>,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Norbert Tretkowski <email address hidden> (supplier of updated vim package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing <email address hidden>)

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Format: 1.7
Date: Thu, 11 Nov 2004 23:56:12 +0100
Source: vim
Binary: vim-lesstif vim-common vim-doc vim-gnome kvim-ruby vim vim-gtk kvim-perl vim-perl kvim-tcl vim-tiny vim-ruby vim-python vim-tcl kvim-python kvim
Architecture: source alpha all
Version: 1:6.3-031+2
Distribution: unstable
Urgency: low
Maintainer: Debian VIM Group <email address hidden>
Changed-By: Norbert Tretkowski <email address hidden>
Description:
 kvim - Vi IMproved - KDE 3.x version
 kvim-perl - Vi IMproved - KDE 3.x version with Perl scripting support
 kvim-python - Vi IMproved - KDE 3.x version with Python scripting support
 kvim-ruby - Vi IMproved - KDE 3.x version with Ruby scripting support
 kvim-tcl - Vi IMproved - KDE 3.x version with TCL scripting support
 vim - Vi IMproved - enhanced vi editor
 vim-common - Vi IMproved - Common files
 vim-doc - Vi IMpro...

Read more...

Revision history for this message
Debian Bug Importer (debzilla) wrote :

Message-Id: <20041112083944.D6FC310D590@localhost>
Date: Fri, 12 Nov 2004 09:39:44 +0100 (CET)
From: <email address hidden> (Thomas Hood)
To: <email address hidden>
Subject: tagging 280824

tags 280824 sid

Revision history for this message
In , Norbert Tretkowski (tretkowski) wrote : Re: Bug#280824: vim-doc: Preinst script is broken

* Norbert Tretkowski wrote:
> * Kevin McCarty wrote:
> [...]
> > The problem appears to be an undefined variable "$pkg" in the
> > preinst. I guess $pkg is supposed to be vim-doc?
>
> Yupp, 1:6.3-031+2 is compiling currently, and will be uploaded in a
> few hours.

Fix is in incoming.

Norbert

Revision history for this message
Debian Bug Importer (debzilla) wrote :

Message-ID: <email address hidden>
Date: Fri, 12 Nov 2004 11:16:49 +0100
From: Norbert Tretkowski <email address hidden>
To: Kevin McCarty <email address hidden>, <email address hidden>
Subject: Re: Bug#280824: vim-doc: Preinst script is broken

* Norbert Tretkowski wrote:
> * Kevin McCarty wrote:
> [...]
> > The problem appears to be an undefined variable "$pkg" in the
> > preinst. I guess $pkg is supposed to be vim-doc?
>
> Yupp, 1:6.3-031+2 is compiling currently, and will be uploaded in a
> few hours.

Fix is in incoming.

Norbert

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

The fixed version is in Hoary.

Changed in vim:
status: Unknown → 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.