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=75fe33f1e2f2790c75850db51b80a82bb8b2926f commit 75fe33f1e2f2790c75850db51b80a82bb8b2926f Author: Guillem Jover <[email protected]> AuthorDate: Thu Mar 31 11:07:42 2022 +0200 debian: Silence warning about merged-usr-via-aliased-dirs on Debian On Debian some people seem so offended by a (factual) warning, that the obvious recourse has been for them to bully and abuse. Life's too short for that. If you might have wanted to be able to know about the status of dpkg on *your* system, and decide for *yourself* what to do with it, sorry, you will need to get aware some other way. --- debian/dpkg.postinst | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/debian/dpkg.postinst b/debian/dpkg.postinst index 280b49a86..83a487319 100644 --- a/debian/dpkg.postinst +++ b/debian/dpkg.postinst @@ -9,8 +9,30 @@ PROGNAME=dpkg setup_colors +get_vendor() +{ + local origin="$DPKG_ROOT/etc/dpkg/origins/default" + local vendor + + if [ -e "$origin" ]; then + vendor=$(sed -ne 's/^Vendor: *\([^ ]\+\) */\1/p' "$origin" | tr '[A-Z]' '[a-z]') + fi + + echo "${vendor:-default}" +} + check_merged_usr_via_aliased_dirs() { + local vendor + + vendor=$(get_vendor) + + # In Debian some people have gotten so offended by the following _warning_ + # that they have resorted to bullying and abuse. Life's too short, sorry. + if [ "$vendor" = "debian" ]; then + return + fi + for d in /bin /sbin /lib /lib32 /libo32 /libx32 /lib64; do linkname="$(readlink $DPKG_ROOT$d || true)" if [ "$linkname" = "usr$d" ] || [ "$linkname" = "/usr$d" ]; then -- Dpkg.Org's dpkg

