Your message dated Fri, 23 Jan 2015 17:12:17 +0100
with message-id <20150123161217.ga32...@gaara.hadrons.org>
and subject line Re: Bug#776072: dpkg-maintscript-helper dir_to_symlink 
explodes on subtree in cups-pdf package
has caused the Debian Bug report #776072,
regarding dpkg-maintscript-helper dir_to_symlink explodes on subtree in 
cups-pdf package
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 ow...@bugs.debian.org
immediately.)


-- 
776072: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=776072
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems
--- Begin Message ---
Package: dpkg
Version: 1.17.23
Severity: serious
Control: block 774918 by -1

Hi Guillem,

cups-pdf recently switched to dir_to_symlink which explodes for whatever
reason (the cups-pdf bug is #774918):

  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

At this point we still have these files:

# 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

and the preinst looks like this:

#!/bin/sh
set -e
# Automatically added by dh_installdeb
dpkg-maintscript-helper dir_to_symlink /usr/share/doc/cups-pdf 
/usr/share/doc/printer-driver-cups-pdf -- "$@"
# End automatically added section


Andreas

Attachment: cups-pdf_2.6.1-14.1.log.gz
Description: application/gzip


--- End Message ---
--- Begin Message ---
Hi!

On Fri, 2015-01-23 at 16:44:53 +0100, Andreas Beckmann wrote:
> Package: dpkg
> Version: 1.17.23
> Severity: serious
> Control: block 774918 by -1

I don't think this is a bug in dpkg, see below.

> cups-pdf recently switched to dir_to_symlink which explodes for whatever
> reason (the cups-pdf bug is #774918):
> 
>   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-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's because the previous version (2.6.1-6) was an arch:any package,
so the dpkg-query on cups-pdf:all does not find it. This works as
expected, and a fix needs to be implemented in cups-pdf itsel to cope
with that.

> At this point we still have these files:
> 
> # dpkg -S $(find /usr/share/doc/cups-pdf)
[…]

Yes, if dpkg-maintscript-helper cannot do its job it will abort.

> and the preinst looks like this:
> 
> #!/bin/sh
> set -e
> # Automatically added by dh_installdeb
> dpkg-maintscript-helper dir_to_symlink /usr/share/doc/cups-pdf 
> /usr/share/doc/printer-driver-cups-pdf -- "$@"
> # End automatically added section

This needs to be passed the correct arch-qualified package name (either
:<arch> or :all) for the previous package. Thus closing. But feel free
to reopen if I missed something else.

Thanks,
Guillem

--- End Message ---

Reply via email to