File: bug-script

package info (click to toggle)
dpkg 1.21.22
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 55,700 kB
  • sloc: ansic: 36,629; perl: 27,006; sh: 18,033; makefile: 4,928; cpp: 4,829; sed: 104
file content (12 lines) | stat: -rw-r--r-- 503 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
#!/bin/sh

for d in /bin /sbin /lib /lib32 /libo32 /libx32 /lib64; do
  linkname="$(readlink $d)"
  if [ "$linkname" = "usr$d" ] || [ "$linkname" = "/usr$d" ]; then
    echo "This system uses merged-usr-via-aliased-dirs, going behind dpkg's" >&3
    echo "back, breaking its core assumptions. This can cause silent file" >&3
    echo "overwrites and disappearances, and its general tools misbehavior." >&3
    echo "See <https://wiki.debian.org/Teams/Dpkg/FAQ#broken-usrmerge>." >&3
    break
  fi
done