[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#544986: marked as done (lprng: Fail to upgrade/reinstall if /etc/printcap do not exist)



Your message dated Tue, 22 Sep 2009 07:02:28 +0000
with message-id <E1MpzOO-00086D-Gr@ries.debian.org>
and subject line Bug#544986: fixed in lprng 3.8.A-3
has caused the Debian Bug report #544986,
regarding lprng: Fail to upgrade/reinstall if /etc/printcap do not exist
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 owner@bugs.debian.org
immediately.)


-- 
544986: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=544986
Debian Bug Tracking System
Contact owner@bugs.debian.org with problems
--- Begin Message ---
Package: lprng
Version: 3.8.A-2.1
Severity: important

I discovered this by change, while working on a NMU of lprng.  The
package fail to upgrade/reinstall if /etc/printcap do not exist.  The
problem is this code in the postinst:

        # Only make the symlink if nothing is there already Bug: #147641
        if [ ! -e /etc/lprng/printcap ] ; then
            (cd /etc/lprng ; ln -s ../printcap . )
        fi

If the symlink point to no-where, the -e test fail and the call to ln
fail.  Perhaps -L should be used instead?  Replacing -e with -L solved
the installation problem, but might fail if a sysadmin replaces the
symlink with a real file.

Or perhaps there is a missing dependency, a package what should make
sure /etc/printcap is available?

Here is the output from the failing installation.  It was done in a
clean sid chroot.

# aptitude install lprng
Reading package lists... Done
Building dependency tree
Reading state information... Done
Reading extended state information
Initializing package states... Done
Reading task descriptions... Done
The following NEW packages will be installed:
  lprng
0 packages upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 0B/1158kB of archives. After unpacking 2871kB will be used.
Writing extended state information... Done
Preconfiguring packages ...
Selecting previously deselected package lprng.
(Reading database ... 20185 files and directories currently installed.)
Unpacking lprng (from .../lprng_3.8.A-2.1_i386.deb) ...
Processing triggers for man-db ...
Setting up lprng (3.8.A-2.1) ...
Reading package lists... Done
Building dependency tree
Reading state information... Done
Reading extended state information
Initializing package states... Done
Writing extended state information... Done
Reading task descriptions... Done

# ls -l /etc/printcap /etc/lprng/printcap
ls: cannot access /etc/printcap: No such file or directory
lrwxrwxrwx 1 root root 11 Sep  4 09:49 /etc/lprng/printcap -> ../printcap
# aptitude reinstall lprng
Reading package lists... Done
Building dependency tree
Reading state information... Done
Reading extended state information
Initializing package states... Done
Reading task descriptions... Done
The following packages will be REINSTALLED:
  lprng
0 packages upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 0 not upgraded.
Need to get 0B/1158kB of archives. After unpacking 0B will be used.
Writing extended state information... Done
Preconfiguring packages ...
(Reading database ... 20238 files and directories currently installed.)
Preparing to replace lprng 3.8.A-2.1 (using .../lprng_3.8.A-2.1_i386.deb) ...
Unpacking replacement lprng ...
Processing triggers for man-db ...
Setting up lprng (3.8.A-2.1) ...
ln: creating symbolic link `./printcap': File exists
dpkg: error processing lprng (--configure):
 subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
 lprng
E: Sub-process /usr/bin/dpkg returned an error code (1)
A package failed to install.  Trying to recover:
Setting up lprng (3.8.A-2.1) ...
ln: creating symbolic link `./printcap': File exists
dpkg: error processing lprng (--configure):
 subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
 lprng
Reading package lists... Done
Building dependency tree
Reading state information... Done
Reading extended state information
Initializing package states... Done
Reading task descriptions... Done

#



--- End Message ---
--- Begin Message ---
Source: lprng
Source-Version: 3.8.A-3

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

lprng_3.8.A-3.diff.gz
  to pool/main/l/lprng/lprng_3.8.A-3.diff.gz
lprng_3.8.A-3.dsc
  to pool/main/l/lprng/lprng_3.8.A-3.dsc
lprng_3.8.A-3_i386.deb
  to pool/main/l/lprng/lprng_3.8.A-3_i386.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 544986@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Craig Small <csmall@debian.org> (supplier of updated lprng 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 ftpmaster@debian.org)


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

Format: 1.8
Date: Tue, 22 Sep 2009 15:34:35 +1000
Source: lprng
Binary: lprng
Architecture: source i386
Version: 3.8.A-3
Distribution: unstable
Urgency: low
Maintainer: Craig Small <csmall@debian.org>
Changed-By: Craig Small <csmall@debian.org>
Description: 
 lprng      - lpr/lpd printer spooling system
Closes: 492684 537857 544986 544991
Changes: 
 lprng (3.8.A-3) unstable; urgency=low
 .
   * Corrected patch for kfreebsd Closes: #537857
   * postinst checks for symlink on printcap Closes: #544986
   * Documented lpd_listen_port in lpd.conf man page Closes: #492684
   * Maintainer upload Closes: #544991
   * Changed rules file for new debhelper
   * Changed from dpatch to quilt for patching
   * Fixed symlinks for 2 filter man pages
Checksums-Sha1: 
 14ac71f6bdb0d0742235e9f9aeb4c8133d70ac12 1086 lprng_3.8.A-3.dsc
 2e41939b16bf6184f6609abc5aa78e999ad3bf7d 33897 lprng_3.8.A-3.diff.gz
 a8e5bc3f786174d45f9272ebafffdf3e20c0587a 1154976 lprng_3.8.A-3_i386.deb
Checksums-Sha256: 
 70ee358fcdd2b9ed232e0e24e12746738edf5cf151322aa411afd0ac18864e60 1086 lprng_3.8.A-3.dsc
 cef70c322eb3991baf7b2527f65146e5d25391ea838002f041ceb5737316e814 33897 lprng_3.8.A-3.diff.gz
 e2f9d29ba23824e9c8dc1ab8857d429bab0d521d456fa48d3c2ef18c3cccfa29 1154976 lprng_3.8.A-3_i386.deb
Files: 
 639366e93d1fc49c3d95137b58f4156f 1086 net extra lprng_3.8.A-3.dsc
 703da93b8a4fb56616b2d8043bfe2a8b 33897 net extra lprng_3.8.A-3.diff.gz
 5ae5bf0815a44efc8ea4fd43f04e1111 1154976 net extra lprng_3.8.A-3_i386.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)

iD8DBQFKuHGRx2zlrBLK36URAsJCAKCDbk8++tzHJpYuLRGMYb37IYAg7ACcCZU1
L6PZ28prO5Xe/AC+Od/Ulpo=
=Vyfg
-----END PGP SIGNATURE-----



--- End Message ---

Reply to: