8 .
/usr
/share
/dpkg
/sh
/dpkg-error.sh
14 local origin
="$DPKG_ROOT/etc/dpkg/origins/default"
17 if [ -e "$origin" ]; then
18 vendor
=$
(sed -ne 's/^Vendor: *\([^ ]\+\) */\1/p' "$origin" |
tr A-Z a-z
)
21 echo "${vendor:-default}"
24 check_merged_usr_via_aliased_dirs
()
32 # In Debian some people have gotten so offended by the following _warning_
33 # that they have resorted to bullying and abuse. Life's too short, sorry.
37 # Ubuntu does not seem interested in it.
42 for d
in /bin
/sbin
/lib
/lib32
/libo32
/libx32
/lib64
; do
43 linkname
="$(readlink $DPKG_ROOT$d || true)"
44 if [ "$linkname" = "usr$d" ] ||
[ "$linkname" = "/usr$d" ]; then
45 warning
"This system uses merged-usr-via-aliased-dirs, going behind dpkg's"
46 warning
"back, breaking its core assumptions. This can cause silent file"
47 warning
"overwrites and disappearances, and its general tools misbehavior."
48 warning
"See <https://wiki.debian.org/Teams/Dpkg/FAQ#broken-usrmerge>."
56 check_merged_usr_via_aliased_dirs
58 abort-upgrade|abort-deconfigure|abort-remove
)
61 error
"called with unknown argument '$1'"