[PATCH] Fix options-dirs/set_rootfs for YP rootfs use-case

Mark Hatle <[email protected]> Mon, 19 Jan 2026 15:52:08 -0600
Newsgroups gmane.linux.debian.devel.dpkg.general
Message-ID <[email protected]>
In the Yocto Project builds we use rootfs processing to install into an
emulate chroot using the pseudo tool.  Until recently, the pseudo tool
had a bug where 'realpath' would canonicalize a path, even if the target
did not exist.

When this bug was fixed (to conform to POSIX and glibc behavior), it
exposed an issue in dpkg that it was always trying to canonicalize the
hard coded ADMINDIR path (appended to the rootfs.)  In the case of
the Yocto Project, this path will never exist.

(any questions, please CC/TO me as I'm not subscribed to the debian-dpkg
mailing list.)

Thank you!

Mark Hatle (1):
  libdpkg: options-dirs, set_rootfs was not checking environment

 lib/dpkg/options-dirs.c | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)