Bug#994081: libdvd-pkg: 1.4.3-1-1 Upgrade Results in 'apt-get check' Failure

2023-09-06 Thread Cecil Westerhof
On Sun, 3 Sep 2023 15:52:23 +0200 Cecil Westerhof 
wrote:
> On Tue, 13 Jun 2023 00:11:16 +0200 Alban Browaeys 
wrote:
> > Package: libdvd-pkg
> > Version: 1.4.3-1-1
> > Followup-For: Bug #994081
> >
> > Dear Maintainer,
> > TL;DR: could apt-get be called with "--dry-run" a flag when we call its
> > "check" command as to get libdvd-pkg triggers script to run?
>
> Why is nothing done with this? Even if it just would have been: this is no
> solution because --dry-run does not what needs to be done?
> I just switched to Debian 12 from 11 and ran into this issue. And when I
> saw that the issue was about two years old I was flabbergasted: I am used
> to the high quality of Debian.
>
> I made in /usr/lib/libdvd-pkg/b-i_libdvdcss.sh the following change:
> #  added ry-run and /dev/null redirection removed
> apt-get check --dry-run # >/dev/null 2>&1
>
> I am now waiting until my system needs an upgrade to see the result from
> this change.
> I will share it when I have it.

In my /usr/lib/libdvd-pkg/b-i_libdvdcss.sh at line 46, I changed:
apt-get check >/dev/null 2>&1
if [ "$?" -ne 0 ]; then
echo "${PKGI}: \`apt-get check\` failed, you may have broken
packages. Aborting..."
exit 0
fi

into:
#  dry-run toegevoegd en /dev/null redirection verwijderd
echo "BEFORE 'apt-get check' problem"
apt-get check --dry-run # >/dev/null 2>&1
if [ "$?" -ne 0 ]; then
echo "${PKGI}: \`apt-get check\` failed, you may have broken
packages. Aborting..."
exit 0
fi
echo "AFTER  'apt-get check' problem"

I had an upgrade that could be done and this resulted in:
BEFORE 'apt-get check' problem
Reading package lists...
Building dependency tree...
Reading state information...
AFTER  'apt-get check' problem

So by adding --dry-run we do not get the error anymore.
So if there is no reason that --dry-run would be wrong, I think it is a
good idea to add it: then this two year old problem would finally be solved.


Bug#994081: libdvd-pkg: 1.4.3-1-1 Upgrade Results in 'apt-get check' Failure

2023-09-03 Thread Cecil Westerhof
On Tue, 13 Jun 2023 00:11:16 +0200 Alban Browaeys  wrote:
> Package: libdvd-pkg
> Version: 1.4.3-1-1
> Followup-For: Bug #994081
>
> Dear Maintainer,
> TL;DR: could apt-get be called with "--dry-run" a flag when we call its
> "check" command as to get libdvd-pkg triggers script to run?

Why is nothing done with this? Even if it just would have been: this is no
solution because --dry-run does not what needs to be done?
I just switched to Debian 12 from 11 and ran into this issue. And when I
saw that the issue was about two years old I was flabbergasted: I am used
to the high quality of Debian.

I made in /usr/lib/libdvd-pkg/b-i_libdvdcss.sh the following change:
#  added ry-run and /dev/null redirection removed
apt-get check --dry-run # >/dev/null 2>&1

I am now waiting until my system needs an upgrade to see the result from
this change.
I will share it when I have it.


Bug#994081: libdvd-pkg: 1.4.3-1-1 Upgrade Results in 'apt-get check' Failure

2023-06-12 Thread Alban Browaeys
Package: libdvd-pkg
Version: 1.4.3-1-1
Followup-For: Bug #994081

Dear Maintainer,
TL;DR: could apt-get be called with "--dry-run" a flag when we call its
"check" command as to get libdvd-pkg triggers script to run?



The error trigger on each installi (or reinstall) or removal of a package.
libdvd-pkg: `apt-get check` failed, you may have broken packages. Aborting...

Adding "set -x" to /usr/lib/libdvd-pkg/b-i_libdvdcss.sh
and removing the stdout and stderr redirection from the "apt-get check"
and "dpkg -P nonexistent-package" calls, I get:

+ . /usr/lib/libdvd-pkg/VARS
+ PKGI=libdvd-pkg
+ DIR=/usr/src/libdvd-pkg
+ PKGG=libdvdcss2
+ PKGG_ALL=libdvdcss2 libdvdcss-dev
+ P88=88libdvdcss-pkg
+ VERGG=1.4.3-1
+ dpkg --status libdvdcss2
+ perl -0ne print $1 if m{^Status:\s+install\s+ok\s+installed}sm and 
m{^Version:\s+(\S+)}sm;
+ VERG=1.4.2-1~local
+ dpkg --compare-versions 1.4.3-1~local gt 1.4.2-1~local
+ [ 0 = 0 ]
+ [ -f /usr/src/libdvd-pkg/libdvdcss2-1.4.3-1.is-installed ]
+ dpkg -P non-existent-package
dpkg: warning: ignoring request to remove non-existent-package which isn't 
installed
+ [ 0 -eq 2 ]
+ [ ! -s /usr/src/libdvd-pkg/libdvdcss_1.4.3.orig.tar.bz2 ]
+ echo libdvd-pkg: Checking orig.tar integrity...
libdvd-pkg: Checking orig.tar integrity...
+ sha256sum --check --strict 
/usr/share/libdvd-pkg/libdvdcss_1.4.3.orig.tar.bz2.sha256
/usr/src/libdvd-pkg/libdvdcss_1.4.3.orig.tar.bz2: OK
+ [ 0 -ne 0 ]
+ apt-get check
E: Could not get lock /var/lib/dpkg/lock-frontend. It is held by process 
2522949 (apt)
N: Be aware that removing the lock file is not a solution and may break your 
system.
E: Unable to acquire the dpkg frontend lock (/var/lib/dpkg/lock-frontend), is 
another process using it?
+ [ 100 -ne 0 ]
+ echo libdvd-pkg: `apt-get check` failed, you may have broken packages. 
Aborting...
libdvd-pkg: `apt-get check` failed, you may have broken packages. Aborting...
+ exit 0


dpkg only check for /var/lib/dpkg/lock and /var/lib/dpkg/triggers/Lock

"apt-get check" always fails in a trigger as
[200~/var/lib/dpkg/lock-frontend is locked by the parent apt.
So the whole script is nowadays a noop.

I believe passing the "--dry-run" flag to "apt-get check" would keep the
consistency check and allow to the script to fulfill its duty.


-- System Information:
Debian Release: 12.0
  APT prefers stable-debug
  APT policy: (500, 'stable-debug'), (500, 'oldstable-updates'), (500, 
'oldstable-security'), (500, 'oldstable-debug'), (500, 'oldoldstable'), (500, 
'stable'), (500, 'oldstable'), (99, 'testing-debug'), (99, 'testing'), (90, 
'unstable-debug'), (90, 'unstable'), (1, 'experimental-debug'), (1, 
'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 6.1.0-7-amd64 (SMP w/4 CPU threads; PREEMPT)
Kernel taint flags: TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages libdvd-pkg depends on:
ii  build-essential   12.9
ii  debconf [debconf-2.0] 1.5.82
ii  debhelper [debhelper-compat]  13.11.4
ii  devscripts2.23.4
ii  wget  1.21.3-1+b2

Versions of packages libdvd-pkg recommends:
ii  libcap2-bin  1:2.66-4

libdvd-pkg suggests no packages.

-- debconf information:
* libdvd-pkg/build: true
  libdvd-pkg/post-invoke_hook-remove: false
  libdvd-pkg/upgrade:
* libdvd-pkg/post-invoke_hook-install: true
  libdvd-pkg/title_u:
* libdvd-pkg/first-install:
  libdvd-pkg/title_b-i:

-- debsums errors found:
debsums: changed file /usr/lib/libdvd-pkg/b-i_libdvdcss.sh (from libdvd-pkg 
package)



Bug#994081: libdvd-pkg: 1.4.3-1-1 Upgrade Results in 'apt-get check' Failure

2021-09-14 Thread Dmitry Smirnov
On Saturday, 11 September 2021 7:22:33 PM AEST Kurt Meyer wrote:
> libdvd-pkg: `apt-get check` failed, you may have broken packages.
> Aborting...

I understand that "apt check" should not fail on held packages so
I suspect there might be something wrong with the state of
package management on system. Could you try "apt install -f" please?

-- 
Cheers,
 Dmitry Smirnov
 GPG key : 4096R/52B6BBD953968D1B

---

If the truth offends, it's our job to offend.
 -- Satoshi Kanazawa

---
Your Facebook friends are wrong about the lockdown. A non-hysterics's guide
to COVID-19 by Tom Woods.
 -- https://wrongaboutlockdown.com/


signature.asc
Description: This is a digitally signed message part.


Bug#994081: libdvd-pkg: 1.4.3-1-1 Upgrade Results in 'apt-get check' Failure

2021-09-11 Thread Kurt Meyer
Package: libdvd-pkg
Version: 1.4.3-1-1
Severity: normal

Dear Maintainer,

* What led up to the situation?

I performed an upgrade (apt upgrade) with the following manually held back 
packages due to bug reports: libc6, libc6:i386, libc6-dev, libxml2, 
libxml2:i386, and lintian.

Following is a complete list of held back packages resulting from the manually 
held back packages:



The following packages have been kept back:
  cpp-9 gcc-11-base gcc-11-base:i386 gcc-9 gcc-9-base gcc-9-base:i386 libasan5
  libasan6 libatomic1 libatomic1:i386 libc-bin libc-dev-bin libc6 libc6:i386
  libc6-dev libcc1-0 libgcc-9-dev libgcc-s1 libgcc-s1:i386 libgfortran5 libgomp1
  libgomp1:i386 libitm1 liblsan0 libquadmath0 libstdc++6 libstdc++6:i386 
libtsan0
  libubsan1 libuno-sal3 libxml2 libxml2:i386 lintian locales mpv vorbis-tools



* What exactly did you do (or not do) that was effective (or ineffective)?

n/a

* What was the outcome of this action?



libdvd-pkg: Downloading orig source...
I: libdvdcss_1.4.3
/usr/bin/wget --tries=3 --timeout=40 --read-timeout=40 --continue -O 
libdvdcss_1.4.3.orig.tar.bz2 \
  
https://download.videolan.org/pub/libdvdcss/1.4.3/libdvdcss-1.4.3.tar.bz2 \
|| /usr/bin/uscan --noconf --verbose --rename 
--destdir=/usr/src/libdvd-pkg --check-dirname-level=0 --force-download 
--download-current-version /usr/share/libdvd-pkg/debian
--2021-09-11 02:13:51--  
https://download.videolan.org/pub/libdvdcss/1.4.3/libdvdcss-1.4.3.tar.bz2
Resolving download.videolan.org (download.videolan.org)... 213.36.253.2, 
2a01:e0d:1:3:58bf:fa02:c0de:5
Connecting to download.videolan.org 
(download.videolan.org)|213.36.253.2|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 388404 (379K) [application/octet-stream]
Saving to: ‘libdvdcss_1.4.3.orig.tar.bz2’

libdvdcss_1.4.3.orig 100%[==>] 379.30K  1.35MB/sin 0.3s 
  

2021-09-11 02:13:52 (1.35 MB/s) - ‘libdvdcss_1.4.3.orig.tar.bz2’ saved 
[388404/388404]

libdvd-pkg: Checking orig.tar integrity...
/usr/src/libdvd-pkg/libdvdcss_1.4.3.orig.tar.bz2: OK
libdvd-pkg: `apt-get check` failed, you may have broken packages. Aborting...



* What outcome did you expect instead?

A normal upgrade.


-- System Information:
Debian Release: bookworm/sid
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 5.10.0-8-amd64 (SMP w/4 CPU threads)
Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_FIRMWARE_WORKAROUND, 
TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages libdvd-pkg depends on:
ii  build-essential   12.9
ii  debconf [debconf-2.0] 1.5.77
ii  debhelper [debhelper-compat]  13.5.1
ii  devscripts2.21.4
ii  wget  1.21-1+b1

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

libdvd-pkg suggests no packages.

-- debconf information:
  libdvd-pkg/post-invoke_hook-remove: false
* libdvd-pkg/build: true
* libdvd-pkg/post-invoke_hook-install: true
  libdvd-pkg/title_b-i:
* libdvd-pkg/first-install:
  libdvd-pkg/upgrade:
  libdvd-pkg/title_u: