Your message dated Wed, 30 Dec 2020 01:18:22 +0000
with message-id <[email protected]>
and subject line Bug#947951: fixed in dpkg-repack 1.47
has caused the Debian Bug report #947951,
regarding Fails if packages pruned by localepurge
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 [email protected]
immediately.)


-- 
947951: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=947951
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: dpkg-repack
Version: 1.46
Severity: normal

Hi,

the localepurge package can be used to automatically remove unneeded locale
files (and thereby conserve disk space as well as inodes).

dpkg-repack used to just print warnings for non-existent files, but
currently it fails on such packages and only prints a vague warning, e.g.:

dpkg-repack: warning: problems found processing kde-style-breeze, the package 
may be broken

In fact, no actual .deb is generated at all; the dpkg build directory is
missing DEBIAN/control.

Please do one or more of the following:

1. turn this error into a warning again (in line 248, replace 'error("cannot 
find file '$fn'")' with 'warning("cannot find file '$fn'")').

2. make sure the actual error message is printed, in addition to the vague 
warning; also, make it clear that no .deb was generated and that dpkg-repack 
exits unsuccessfully.

3. make this behaviour depend on a command line option; e.g. 
--ignore-missing-files, or --ignore-missing-locale, or --fail-on-missing-files 
or whatever.

I would argue that if files are missing, the generated .deb should just not
contain them. After all, dpkg-repack's description says "dpkg-repack creates
a .deb file out of a package that has already been installed. If any changes
have been made to the package while it was unpacked (i.e. files in /etc were
modified), the new package will inherit the changes.

This utility can make it easy to copy packages from one computer to another,
or to recreate packages that are installed on your system, but no longer
available elsewhere, or to store the current state of a package before you
upgrade it."

Removing files represents "changes made to the package" that dpkg-repack
should preserve.

Whether the .list file should include the missing files or not is an
interesting question, but irrelevant for my use case (backup before
upgrade); I think it would be better to include them if possible, because
then if you install the generated .deb, it's still obvious that those files
are missing from it.

Best regards,

AndrĂ¡s

-- System Information:
Debian Release: 10.0
  APT prefers stable
  APT policy: (350, 'stable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.4.207-vs2.3.9.8 (SMP w/8 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=hu_HU.UTF-8 (charmap=UTF-8), 
LANGUAGE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash
Init: runit (via /run/runit.stopit)

Versions of packages dpkg-repack depends on:
ii  libdpkg-perl  1.19.7
ii  perl          5.30.0-9

dpkg-repack recommends no packages.

Versions of packages dpkg-repack suggests:
ii  fakeroot  1.24-1

-- no debconf information

-- 
 The important thing is that we are moving forward - never mind the direction.

--- End Message ---
--- Begin Message ---
Source: dpkg-repack
Source-Version: 1.47
Done: Guillem Jover <[email protected]>

We believe that the bug you reported is fixed in the latest version of
dpkg-repack, which is due to be installed in the Debian FTP archive.

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 [email protected],
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Guillem Jover <[email protected]> (supplier of updated dpkg-repack 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 [email protected])


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Format: 1.8
Date: Fri, 25 Dec 2020 14:07:59 +0100
Source: dpkg-repack
Architecture: source
Version: 1.47
Distribution: unstable
Urgency: medium
Maintainer: Dpkg Developers <[email protected]>
Changed-By: Guillem Jover <[email protected]>
Closes: 947951
Changes:
 dpkg-repack (1.47) unstable; urgency=medium
 .
   * Switch to Standard-Version 4.5.1 (no changed needed).
   * Switch to debhelper compatibility level 13.
   * Switch to the dh sequencer.
   * Run the autopkgtest from within the autopkgtest temporary directory.
   * Use AUTOPKGTEST_TMP instead of deprecated ADTTMP.
   * Do not make missing conffiles a fatal error. Closes: #947951
   * When catching errors during package processing, print them.
Checksums-Sha1:
 1205d7ab93bcb8afd3fb691aae69e7407989f33e 1717 dpkg-repack_1.47.dsc
 a7fef593d6bec3259e493b7599b4a981b0efa177 21732 dpkg-repack_1.47.tar.xz
 900e7c7f61b781b6852c0b4524778c3ba42d362c 5716 dpkg-repack_1.47_amd64.buildinfo
Checksums-Sha256:
 10ed17e2c549d62c7c66afb67317930e446d16b7ecd4232cde750b6326ea4bcc 1717 
dpkg-repack_1.47.dsc
 e9b8aaebc7224cf15e6eea04c82084083cd1b9a01f9dadfbc710c964e0865b44 21732 
dpkg-repack_1.47.tar.xz
 47715454108160022b7b133bfda7f272f4ffac19b307fb0fea7bf636a6cc9d81 5716 
dpkg-repack_1.47_amd64.buildinfo
Files:
 c4bad35858dab652975509ba70b9fbaa 1717 admin optional dpkg-repack_1.47.dsc
 aa9db87042eb1f17538bd396ca0138a1 21732 admin optional dpkg-repack_1.47.tar.xz
 38543be8c7d0a235688a1d801f029fcd 5716 admin optional 
dpkg-repack_1.47_amd64.buildinfo

-----BEGIN PGP SIGNATURE-----

iQIzBAEBCgAdFiEETz509DYFDBD1aWV0uXK/PqSuV6MFAl/mGlwACgkQuXK/PqSu
V6Ps/RAAlvg5HZfP4sOZF9ejkhsFm8nCR7pGTOuRRvk/TZ99vPab9ilp6CJaGQrp
a65g+4uQdo0hz+lT04zjm5vqKF/qArG4ZIdd2pCbGWsOvud4Gaslpq5Be2JVW0Am
+Y9bWJFYhAytNg3cm+meFQwFckirV1vxjuQUE4sjTDq62wbtLftg+ZiTmksh4ip9
PhsyY48KDq7TLklO/MRcyzzZS5soVqJdivg2sY2N7Hak8VIhPWHx7rfzyc+8P9w1
VGe4Ll5oWEsXzPVUeYE6YnoB9TJ5YbtWiCHBhgeX4B8hQLM9flT7QyEdgLfFv7ZI
iU3dkc/4NUbHaLJWB3vJhJ8VMn0+AtC4Vw+mv7U4ffWJfChPGOukq8zKaDCM7JDX
5xIz/J0AwNeYmNLlswt3hopRyn+9nHwS92lKEUALWz/1dwrH18K+9MZ9bX6z7KHF
3Oh/ZhfBsD8yeINC8XZgFamEy7iWWVJa7YwV3b8ULgslAfIeCBxpz0lwpft2MLRk
lSE3CnuKdpqMMVBuKp00OE/IZZSYVc3ddu7cM1Q4sxA7y51Ak2GA5x9RTFdCG40w
X5smVSgX1UV7L6qrRZbm4odAlVsaqx4w/0C++su2pIDNUyx2cPWur7tn7voxVtg4
5R5gGpq9qXzQplFfSw+r5D5fpRi7nC2TmDFqZxCP1dgI/ZdmT1o=
=8GHl
-----END PGP SIGNATURE-----

--- End Message ---

Reply via email to