Your message dated Fri, 07 Mar 2025 03:19:44 +0000
with message-id <[email protected]>
and subject line Bug#1020533: fixed in dpkg 1.22.16
has caused the Debian Bug report #1020533,
regarding dpkg should use /var/lib/dpkg/arch to determine native arch when 
running chrootless
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.)


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

Hi,

steps to reproduce on amd64:

#!/bin/sh
set -exu
mkdir -p dpkgroot/var/lib/dpkg
echo "arm64" > dpkgroot/var/lib/dpkg/arch
cat << 'END' > dpkgroot/var/lib/dpkg/status
Package: perl-base
Status: install ok installed
Architecture: arm64
Version: 1
END
mkdir -p pkg/DEBIAN
cat << 'END' > pkg/DEBIAN/control
Package: perl-modules-5.34
Version: 1
Architecture: all
Depends: perl-base
END
dpkg-deb --build pkg pkg.deb
PATH=/usr/sbin:/usr/bin:/sbin:/bin dpkg \
        --log=/dev/null \
        --force-not-root \
        --force-script-chrootless \
        --root=dpkgroot \
        --install pkg.deb

result:

Preparing to unpack pkg.deb ...
Unpacking perl-modules-5.34 (1) ...
dpkg: dependency problems prevent configuration of perl-modules-5.34:
 perl-modules-5.34 depends on perl-base.
dpkg: error processing package perl-modules-5.34 (--install):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 perl-modules-5.34

If one changes "Architecture: arm64" to "Architecture: amd64" (the
architecture of my native dpkg) it works.

Maybe the prolbem is, that dpkg treats perl-modules-5.34 (it being
arch:all) implicitly as the native arch which is (wrongly) chosen to be
amd64 instead of arm64. And in that case, perl-base:arm64 cannot satisfy
its dependency.

Thanks!

cheers, josch

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

We believe that the bug you reported is fixed in the latest version of
dpkg, 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 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, 07 Mar 2025 03:03:55 +0100
Source: dpkg
Architecture: source
Version: 1.22.16
Distribution: unstable
Urgency: medium
Maintainer: Dpkg Developers <[email protected]>
Changed-By: Guillem Jover <[email protected]>
Closes: 825385 1020533 1033051 1095412 1095542 1098464 1099687
Changes:
 dpkg (1.22.16) unstable; urgency=medium
 .
   [ Guillem Jover ]
   * Add support for native arch definition for chroots.
     Closes: #825385, #1020533
   * dpkg-db-keeper: Fix pathname in example dpkg.cfg snippet.
   * Portability:
     - start-stop-daemon: Move <compat.h> and <dpkg/macros.h> after OS and
       header setup macros.
   * Perl modules:
     - Dpkg::OpenPGP::Backend::GnuPG: Do not require cmdstore for backend
       command.
     - Dpkg::OpenPGP::Backend: Generalize has_verify_cmd().
     - Dpkg::OpenPGP::Backend: Support disabling cmd and cmdv via 'none' value.
     - Dpkg::OpenPGP::Backend::SOP: Add sopv support.
     - Dpkg::OpenPGP::Backend::GnuPG: Refactor newline workaround into a
       function.
     - Dpkg::OpenPGP::Backend::GnuPG: Do not add the newline workaround for
       gpg-sq.
     - Dpkg::OpenPGP::Backend::Sequoia: Add a hint about authorizing own keys.
     - Dpkg::OpenPGP::Backend::Sequoia: Refactor cmd and cmdv handling.
   * Documentation:
     - man: Remove trailing space. Closes: #1095542
     - doc: Remove trailing angle bracket.
     - doc: Split and sort copyright statements.
   * Code internals:
     - libdpkg: Add new strvec module.
     - libdpkg: Add new path_canonicalize() function.
     - libdpkg: Add new file_realpath() function.
     - libdpkg: Add new file_canonicalize() function.
     - libdpkg: Normalize root dir setting.
     - libdpkg: Remove unused pwd.h and grp.h header includes.
     - libdpkg: Refactor passwd and group fetching into functions.
     - libdpkg: Cache root user/group to UID/GID mapping to speed up unpacking.
     - libdpkg: Update missing symbols to the version map.
     - start-stop-daemon: Move Solaris _FILE_OFFSET_BITS undef after other
       header setup macros.
     - dselect, test: Mark C++ destructors on derived classes as override.
     - start-stop-daemon: Reformat license/copyright comment header.
     - libcompat: Add compatibility functions for fgetpwent() and fgetgrent().
     - libdpkg: Add support for sysuser/sysgroup specific to each chroot.
       Closes: #1033051
   * Build system:
     - Avoid explicitly escaped hash characters in automake files.
   * Packaging:
     - Add OpenPGP tools to Build-Depends as pkg.dpkg.author-testing build
       profile.
     - Move gnupg and gpgv as the last alternatives.
     - Add a NEWS entry to dpkg-dev for Rules-Requires-Root default change.
   * Test suite:
     - Skip OpenPGP backend tests based on available cmd and cmdv programs.
     - Rework OpenPGP backend selection to prepare for cmdv support.
     - Add OpenPGP cmdv testing support.
     - Refactor database files creation into new DPKG_GEN_DB_FILE macro.
     - Update cppcheck to request C++14 to match expected baseline.
     - Pass --root-owner-group to dpkg-deb in functional tests.
   * Localization:
     - Update Brazilian Portuguese translations.
       Thanks to Paulo Henrique de Lima Santana <[email protected]>.
       Closes: #1098464, #1099687
     - Update Dutch man pages translations.
       Thanks to Frans Spiesschaert <[email protected]>.
       Closes: #1095412
 .
   [ Helge Kreutzmann ]
   * Localization:
     - Update German man pages translation.
 .
   [ Sven Joachim ]
   * Localization:
     - Update German programs translation.
Checksums-Sha1:
 902e145e4b18ee0a38222f77c293d7c9518a4cec 3406 dpkg_1.22.16.dsc
 3d36c24759c915641b394d3c384153bb2b6d5af6 5752396 dpkg_1.22.16.tar.xz
 fe3b40233f1d3984124f90ffe0735452482d0416 8071 dpkg_1.22.16_amd64.buildinfo
Checksums-Sha256:
 efe57b828a6f5093ee388782342c4d26e146b7b4505129deb65d993608148be4 3406 
dpkg_1.22.16.dsc
 b5638ef361862cee85a63fa26c6d6ba9476c6cdf0d0037eab3270793411b6c16 5752396 
dpkg_1.22.16.tar.xz
 d04cfde83bb9a784740d50641760501ea59297bc5ab14a1d7308bc639ed5c0e0 8071 
dpkg_1.22.16_amd64.buildinfo
Files:
 4a93cb1a39e46e85491ecde9e35aa299 3406 admin required dpkg_1.22.16.dsc
 9a1c11fb35e468b55c1bf3609be98175 5752396 admin required dpkg_1.22.16.tar.xz
 54064bb3121aae6bc092178e3f0d236e 8071 admin required 
dpkg_1.22.16_amd64.buildinfo


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

wsG7BAEBCgBvBYJnylvNCRC5cr8+pK5Xo0cUAAAAAAAeACBzYWx0QG5vdGF0aW9u
cy5zZXF1b2lhLXBncC5vcmfusdMn7vQnY0vXTIWUP9WN2FVv7c69CuMhu/WxP6eS
0RYhBE8+dPQ2BQwQ9WlldLlyvz6krlejAAAX4RAAyF5jKoZKVJ2YKLTIf8ZS0dWx
DM381gnuL8GPxZ3JsdDPndOTN25aU5zk62pwjfHcXngYX8UMMa9YHQjdm0lWw57g
TYOiPsRvM7ww79gpbZOYu5+iEK7SyhlLpdjQSTJfRm/HsTJ9/UCFGH0XWgMTOciX
dDEtnm4TGdZYLecO4sUebzRIpBH4wp0bYT6O6Q7JHZ7bRqubAazQ+VuaV+IU0wI2
MRlHjDuxixDuzZ0+qvSug7b6c+ldlRfDuRKRE5YXDe3T3i7QhasiVYVHoBUh8NRZ
/fKsTl3B+cpPt/qnkt09yOZ4c9SoQ+Y1ZaClj9G5CWYVTXd+4Iw6Mh2HsXYNuffu
vMte6hL6WpjZHhZ3NPEV/A/cJhuViPTxkQWr4ECVmbLrdVX6U572+P7o/FwTOX/I
J5/Xebnfl1ghjEy8wd/adkZFnB7KhREO+CcPtCl6FLxmd5UF5/RU7/oZcaMHJKYn
JD5RRkHpN7n770K1hc4nja+93TvHlRdRX8MFKHTXAqSGlF8PkLIsdXGpiORFtTxH
vSbDAdTqxMzZjScLCLnASowgGKmPWG1gtWUKTOQoO1runaTdzOmiCP+v0btiZtnY
mBCSCQalNRvCnJLSaZcO3TOmJBNd6wLb2Msor/s65GdxEyPEv5RjYgUhdGVRK/NZ
k1mYcvcUZbGWLEN09vI=
=ZZdg
-----END PGP SIGNATURE-----

Attachment: pgptOgT8h80jA.pgp
Description: PGP signature


--- End Message ---

Reply via email to