Bug#824093: dpkg-reconfigure libdvd-pkg fails to build libdvdcss2 with dpkg 1.18.7

Carlos Maddela e7appew at gmail.com
Thu May 12 07:54:40 UTC 2016


Package: libdvd-pkg
Version: 1.4.0-1-1
Severity: normal
Tags: patch

With dpkg version 1.18.7 (possibly other versions > 1.18.4 as well),
'dpkg-reconfigure libdvd-pkg' fails to build anything. It always ends up
with the following error:

	libdvd-pkg: dpkg database is locked. You may need to use command "sudo dpkg-reconfigure libdvd-pkg".
	libdvd-pkg: Building and installation of package(s) [libdvdcss2 libdvdcss-dev] postponed till after next APT operation.

The problem occurs in /usr/lib/libdvd-pkg/b-i_libdvdcss.sh, which uses
"dpkg -i /dev/zero" to determine the lock status of dpkg. Newer versions
of dpkg produce the following error:

	dpkg: error: archive '/dev/zero' is not a regular file

which also returns an error status of 2, hence nothing ever builds.

Purging or removing a non-existent package should restore the original
behaviour. I have attached a patch with this fix.

Best regards,

Carlos

-- System Information:
Debian Release: stretch/sid
  APT prefers unstable
  APT policy: (990, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.5.0-2-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages libdvd-pkg depends on:
ii  build-essential        12.2
ii  debconf [debconf-2.0]  1.5.59
ii  debhelper              9.20160403
ii  devscripts             2.16.4
ii  dh-autoreconf          12
ii  wget                   1.17.1-2

Versions of packages libdvd-pkg recommends:
ii  libcap2-bin  1:2.24-12

libdvd-pkg suggests no packages.

-- debconf information excluded
-------------- next part --------------
A non-text attachment was scrubbed...
Name: fix-dpkg-lock-check.patch
Type: text/x-diff
Size: 1076 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-multimedia-maintainers/attachments/20160512/8dc2c608/attachment.patch>


More information about the pkg-multimedia-maintainers mailing list