This is an automated email from the git hooks/post-receive script. guillem pushed a commit to branch main in repository dpkg.
View the commit online: https://git.dpkg.org/cgit/dpkg/dpkg.git/commit/?id=bc4dc7153597fc7a1f1343567a148e5df2365b44 commit bc4dc7153597fc7a1f1343567a148e5df2365b44 Author: Johannes Schauer Marin Rodrigues <[email protected]> AuthorDate: Tue May 14 03:16:20 2024 +0200 debian: Suppress s-s-d compat symlink if /sbin is missing When bootstrapping, if base-files has not yet been unpacked, the /sbin pathname is going to be missing and we will not be able to create a compat symlink, and «ln» will fail aborting the package installation. We cannot unconditionally create the /sbin directory as that would break on usr-merged systems that ship a symlink in a package such as base-files. Ideally base-files would be unpacked first by the bootstrapping tool, but that would required encoding this ordering somehow. Closes: #1071078 Signed-off-by: Guillem Jover <[email protected]> --- debian/dpkg.postinst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/debian/dpkg.postinst b/debian/dpkg.postinst index 113c8d53a..8d9f6067f 100644 --- a/debian/dpkg.postinst +++ b/debian/dpkg.postinst @@ -59,7 +59,7 @@ setup_aliases() # Add a backward compatibility symlink alias for s-s-d, which is now # installed in its canonical location. - if [ ! -f "$DPKG_ROOT/sbin/$prog" ]; then + if [ ! -f "$DPKG_ROOT/sbin/$prog" ] && [ -d "$DPKG_ROOT/sbin" ]; then ln -s "/usr/sbin/$prog" "$DPKG_ROOT/sbin/$prog" fi } -- Dpkg.Org's dpkg

