5 local origin
="$DPKG_ROOT/etc/dpkg/origins/default"
8 if [ -n "$DEB_VENDOR" ]; then
10 elif [ -e "$origin" ]; then
11 vendor
=$
(sed -ne 's/^Vendor: *\([^ ]\+\) */\1/p' "$origin" |
tr A-Z a-z
)
14 echo "${vendor:-default}"
17 check_merged_usr_via_aliased_dirs
()
25 # In Debian some people have gotten so offended by the following _warning_
26 # that they have resorted to bullying and abuse. Life's too short, sorry.
30 # Ubuntu does not seem interested in it.
35 for d
in /bin
/sbin
/lib
/lib32
/libo32
/libx32
/lib64
; do
36 linkname
="$(readlink $d)"
37 if [ "$linkname" = "usr$d" ] ||
[ "$linkname" = "/usr$d" ]; then
38 echo "This system uses merged-usr-via-aliased-dirs, going behind dpkg's" >&3
39 echo "back, breaking its core assumptions. This can cause silent file" >&3
40 echo "overwrites and disappearances, and its general tools misbehavior." >&3
41 echo "See <https://wiki.debian.org/Teams/Dpkg/FAQ#broken-usrmerge>." >&3
47 check_merged_usr_via_aliased_dirs