[Pkg-cups-devel] Bug#774918: cups-pdf: copyright file missing after upgrade (policy 12.5)

Andreas Beckmann anbe at debian.org
Fri Jan 23 15:30:49 UTC 2015


Followup-For: Bug #774918
Control: found -1 2.6.1-14.1

That did not work:

  Selecting previously unselected package printer-driver-cups-pdf.
  Preparing to unpack .../printer-driver-cups-pdf_2.6.1-14.1_amd64.deb ...
  Unpacking printer-driver-cups-pdf (2.6.1-14.1) ...
  Replacing files in old package cups-pdf (2.6.1-6) ...
  Preparing to unpack .../cups-pdf_2.6.1-14.1_all.deb ...
  dpkg-query: no packages found matching cups-pdf:all
  dpkg-query: package 'cups-pdf' is not installed
  Use dpkg --info (= dpkg-deb --info) to examine archive files,
  and dpkg --contents (= dpkg-deb --contents) to list their contents.
  dpkg-query: package 'cups-pdf' is not installed
  Use dpkg --info (= dpkg-deb --info) to examine archive files,
  and dpkg --contents (= dpkg-deb --contents) to list their contents.
  dpkg-query: package 'cups-pdf' is not installed
  Use dpkg --info (= dpkg-deb --info) to examine archive files,
  and dpkg --contents (= dpkg-deb --contents) to list their contents.
  dpkg-query: package 'cups-pdf' is not installed
  Use dpkg --info (= dpkg-deb --info) to examine archive files,
  and dpkg --contents (= dpkg-deb --contents) to list their contents.
  dpkg-query: package 'cups-pdf' is not installed
  Use dpkg --info (= dpkg-deb --info) to examine archive files,
  and dpkg --contents (= dpkg-deb --contents) to list their contents.
  dpkg-query: package 'cups-pdf' is not installed
  Use dpkg --info (= dpkg-deb --info) to examine archive files,
  and dpkg --contents (= dpkg-deb --contents) to list their contents.
  dpkg-query: package 'cups-pdf' is not installed
  Use dpkg --info (= dpkg-deb --info) to examine archive files,
  and dpkg --contents (= dpkg-deb --contents) to list their contents.
  dpkg-query: package 'cups-pdf' is not installed
  Use dpkg --info (= dpkg-deb --info) to examine archive files,
  and dpkg --contents (= dpkg-deb --contents) to list their contents.
  dpkg-query: package 'cups-pdf' is not installed
  Use dpkg --info (= dpkg-deb --info) to examine archive files,
  and dpkg --contents (= dpkg-deb --contents) to list their contents.
  dpkg-query: package 'cups-pdf' is not installed
  Use dpkg --info (= dpkg-deb --info) to examine archive files,
  and dpkg --contents (= dpkg-deb --contents) to list their contents.
  dpkg-query: package 'cups-pdf' is not installed
  Use dpkg --info (= dpkg-deb --info) to examine archive files,
  and dpkg --contents (= dpkg-deb --contents) to list their contents.
  dpkg-query: package 'cups-pdf' is not installed
  Use dpkg --info (= dpkg-deb --info) to examine archive files,
  and dpkg --contents (= dpkg-deb --contents) to list their contents.
  dpkg-query: package 'cups-pdf' is not installed
  Use dpkg --info (= dpkg-deb --info) to examine archive files,
  and dpkg --contents (= dpkg-deb --contents) to list their contents.
  dpkg-query: package 'cups-pdf' is not installed
  Use dpkg --info (= dpkg-deb --info) to examine archive files,
  and dpkg --contents (= dpkg-deb --contents) to list their contents.
  dpkg-query: package 'cups-pdf' is not installed
  Use dpkg --info (= dpkg-deb --info) to examine archive files,
  and dpkg --contents (= dpkg-deb --contents) to list their contents.
  dpkg-query: package 'cups-pdf' is not installed
  Use dpkg --info (= dpkg-deb --info) to examine archive files,
  and dpkg --contents (= dpkg-deb --contents) to list their contents.
  dpkg-query: package 'cups-pdf' is not installed
  Use dpkg --info (= dpkg-deb --info) to examine archive files,
  and dpkg --contents (= dpkg-deb --contents) to list their contents.
  dpkg-query: package 'cups-pdf' is not installed
  Use dpkg --info (= dpkg-deb --info) to examine archive files,
  and dpkg --contents (= dpkg-deb --contents) to list their contents.
  dpkg-query: package 'cups-pdf' is not installed
  Use dpkg --info (= dpkg-deb --info) to examine archive files,
  and dpkg --contents (= dpkg-deb --contents) to list their contents.
  dpkg-query: package 'cups-pdf' is not installed
  Use dpkg --info (= dpkg-deb --info) to examine archive files,
  and dpkg --contents (= dpkg-deb --contents) to list their contents.
  dpkg-query: package 'cups-pdf' is not installed
  Use dpkg --info (= dpkg-deb --info) to examine archive files,
  and dpkg --contents (= dpkg-deb --contents) to list their contents.
  dpkg-query: package 'cups-pdf' is not installed
  Use dpkg --info (= dpkg-deb --info) to examine archive files,
  and dpkg --contents (= dpkg-deb --contents) to list their contents.
  dpkg-query: package 'cups-pdf' is not installed
  Use dpkg --info (= dpkg-deb --info) to examine archive files,
  and dpkg --contents (= dpkg-deb --contents) to list their contents.
  dpkg-query: package 'cups-pdf' is not installed
  Use dpkg --info (= dpkg-deb --info) to examine archive files,
  and dpkg --contents (= dpkg-deb --contents) to list their contents.
  dpkg-query: package 'cups-pdf' is not installed
  Use dpkg --info (= dpkg-deb --info) to examine archive files,
  and dpkg --contents (= dpkg-deb --contents) to list their contents.
  dpkg-query: package 'cups-pdf' is not installed
  Use dpkg --info (= dpkg-deb --info) to examine archive files,
  and dpkg --contents (= dpkg-deb --contents) to list their contents.
  dpkg-maintscript-helper: error: directory '/usr/share/doc/cups-pdf' contains files not owned by package cups-pdf:all, cannot switch to symlink
  dpkg: error processing archive /var/cache/apt/archives/cups-pdf_2.6.1-14.1_all.deb (--unpack):
   subprocess new pre-installation script returned error exit status 1
  Preparing to unpack .../libreadline5_5.2+dfsg-2_amd64.deb ...
  Unpacking libreadline5:amd64 (5.2+dfsg-2) over (5.2+dfsg-2~deb7u1) ...
  Preparing to unpack .../libpam-runtime_1.1.8-3.1_all.deb ...
  Unpacking libpam-runtime (1.1.8-3.1) over (1.1.3-7.1) ...
  Errors were encountered while processing:
   /var/cache/apt/archives/cups-pdf_2.6.1-14.1_all.deb

that was with dpkg 1.17.23, looks a bit like dir_to_symlink is not working 
correctly.

at the failing point we have:

# ls -laR /usr/share/doc/cups-pdf
/usr/share/doc/cups-pdf:
total 32
drwxr-xr-x   3 root root  180 Jan 23 15:21 .
drwxr-xr-x 198 root root 4120 Jan 23 15:22 ..
-rw-r--r--   1 root root 1415 Apr  1  2012 README.Debian
-rw-r--r--   1 root root 2083 Feb 18  2011 README.gz
-rw-r--r--   1 root root 1871 Apr  2  2012 buildinfo.gz
-rw-r--r--   1 root root 8512 Apr  1  2012 changelog.Debian.gz
-rw-r--r--   1 root root 2629 Oct  4  2011 changelog.gz
-rw-r--r--   1 root root 1395 Apr  1  2012 copyright
drwxr-xr-x   5 root root  120 Jan 23 15:21 examples

/usr/share/doc/cups-pdf/examples:
total 4
drwxr-xr-x 5 root root  120 Jan 23 15:21 .
drwxr-xr-x 3 root root  180 Jan 23 15:21 ..
-rw-r--r-- 1 root root 1211 Oct  4  2011 Contents
drwxr-xr-x 2 root root  120 Jan 23 15:21 SELinux-HOWTO
drwxr-xr-x 3 root root  120 Jan 23 15:21 cups-pdf-dispatch-0.1
drwxr-xr-x 2 root root  120 Jan 23 15:21 pstitleiconv-0.2

/usr/share/doc/cups-pdf/examples/SELinux-HOWTO:
total 16
drwxr-xr-x 2 root root  120 Jan 23 15:21 .
drwxr-xr-x 5 root root  120 Jan 23 15:21 ..
-rw-r--r-- 1 root root 1600 Oct  4  2011 INSTALL-SELinux
-rw-r--r-- 1 root root  877 Feb 18  2011 cups_pdf.te
-rw-r--r-- 1 root root  536 Oct  4  2011 cups_pdf.te_orig
-rwxr-xr-x 1 root root 2854 Feb 18  2011 update-module

/usr/share/doc/cups-pdf/examples/cups-pdf-dispatch-0.1:
total 12
drwxr-xr-x 3 root root  120 Jan 23 15:21 .
drwxr-xr-x 5 root root  120 Jan 23 15:21 ..
-rw-r--r-- 1 root root 1446 Feb 18  2011 README
-rw-r--r-- 1 root root 3195 Feb 18  2011 cups-pdf-dispatch.conf
-rw-r--r-- 1 root root 2531 Feb 18  2011 cups-pdf-dispatch.gz
drwxr-xr-x 2 root root   80 Jan 23 15:21 examples

/usr/share/doc/cups-pdf/examples/cups-pdf-dispatch-0.1/examples:
total 8
drwxr-xr-x 2 root root   80 Jan 23 15:21 .
drwxr-xr-x 3 root root  120 Jan 23 15:21 ..
-rw-r--r-- 1 root root 2021 Feb 18  2011 cups-pdf-dispatch-ldap.conf
-rw-r--r-- 1 root root 1788 Feb 18  2011 cups-pdf-dispatch-ru.conf.gz

/usr/share/doc/cups-pdf/examples/pstitleiconv-0.2:
total 16
drwxr-xr-x 2 root root  120 Jan 23 15:21 .
drwxr-xr-x 5 root root  120 Jan 23 15:21 ..
-rw-r--r-- 1 root root  179 Feb 18  2011 ChangeLog
-rw-r--r-- 1 root root 1211 Feb 18  2011 README
-rwxr-xr-x 1 root root 3466 Feb 18  2011 pstitleiconv
-rw-r--r-- 1 root root  239 Feb 18  2011 pstitleiconv.conf

# dpkg -S $(find /usr/share/doc/cups-pdf)
cups-pdf: /usr/share/doc/cups-pdf
cups-pdf: /usr/share/doc/cups-pdf/copyright
cups-pdf: /usr/share/doc/cups-pdf/buildinfo.gz
cups-pdf: /usr/share/doc/cups-pdf/changelog.gz
cups-pdf: /usr/share/doc/cups-pdf/README.gz
cups-pdf: /usr/share/doc/cups-pdf/README.Debian
cups-pdf: /usr/share/doc/cups-pdf/changelog.Debian.gz
cups-pdf: /usr/share/doc/cups-pdf/examples
cups-pdf: /usr/share/doc/cups-pdf/examples/Contents
cups-pdf: /usr/share/doc/cups-pdf/examples/SELinux-HOWTO
cups-pdf: /usr/share/doc/cups-pdf/examples/SELinux-HOWTO/update-module
cups-pdf: /usr/share/doc/cups-pdf/examples/SELinux-HOWTO/INSTALL-SELinux
cups-pdf: /usr/share/doc/cups-pdf/examples/SELinux-HOWTO/cups_pdf.te
cups-pdf: /usr/share/doc/cups-pdf/examples/SELinux-HOWTO/cups_pdf.te_orig
cups-pdf: /usr/share/doc/cups-pdf/examples/pstitleiconv-0.2
cups-pdf: /usr/share/doc/cups-pdf/examples/pstitleiconv-0.2/pstitleiconv
cups-pdf: /usr/share/doc/cups-pdf/examples/pstitleiconv-0.2/ChangeLog
cups-pdf: /usr/share/doc/cups-pdf/examples/pstitleiconv-0.2/README
cups-pdf: /usr/share/doc/cups-pdf/examples/pstitleiconv-0.2/pstitleiconv.conf
cups-pdf: /usr/share/doc/cups-pdf/examples/cups-pdf-dispatch-0.1
cups-pdf: /usr/share/doc/cups-pdf/examples/cups-pdf-dispatch-0.1/cups-pdf-dispatch.gz
cups-pdf: /usr/share/doc/cups-pdf/examples/cups-pdf-dispatch-0.1/cups-pdf-dispatch.conf
cups-pdf: /usr/share/doc/cups-pdf/examples/cups-pdf-dispatch-0.1/README
cups-pdf: /usr/share/doc/cups-pdf/examples/cups-pdf-dispatch-0.1/examples
cups-pdf: /usr/share/doc/cups-pdf/examples/cups-pdf-dispatch-0.1/examples/cups-pdf-dispatch-ru.conf.gz
cups-pdf: /usr/share/doc/cups-pdf/examples/cups-pdf-dispatch-0.1/examples/cups-pdf-dispatch-ldap.conf

so perhaps it's better to give up on dir_to_symlink for this transitional package
and use symlink_to_dir instead and put the files back in there ...

Andreas
-------------- next part --------------
A non-text attachment was scrubbed...
Name: cups-pdf_2.6.1-14.1.log.gz
Type: application/gzip
Size: 56023 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-cups-devel/attachments/20150123/fa5e9b01/attachment-0001.bin>


More information about the Pkg-cups-devel mailing list