diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-06-07 05:38:15 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-06-07 05:38:42 +0000 |
commit | 59d817986e6c6a05ff03b79c8aed54685f3318fd (patch) | |
tree | aca9f6a8b98a978dce023559ccea1cfe05e08f7b /debian/postinst | |
parent | Merging upstream version 13.3. (diff) | |
download | base-files-59d817986e6c6a05ff03b79c8aed54685f3318fd.tar.xz base-files-59d817986e6c6a05ff03b79c8aed54685f3318fd.zip |
Merging debian version 13.3.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'debian/postinst')
-rw-r--r-- | debian/postinst | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/debian/postinst b/debian/postinst index 573214f..60cba7e 100644 --- a/debian/postinst +++ b/debian/postinst @@ -148,4 +148,26 @@ case "${1}" in ;; esac +rtlddir="#USR_MERGE_RTLDLIB#" +if [ "$1" = "configure" ] && [ -n "$rtlddir" ]; then + # Remove temporary DEP17 M4 diversion added by glibc. + dpkg-divert --quiet --package base-files --remove --no-rename --divert "/.$rtlddir.usr-is-merged" "/$rtlddir" +fi + +if [ "$1" = "configure" ] || [ "$1" = "triggered" ]; then + for d in #USR_MERGE_MULTILIB#; do + if [ -d "$DPKG_ROOT/usr/$d" ]; then + if [ -L "$DPKG_ROOT/$d" ]; then + : + elif [ -d "$DPKG_ROOT/$d" ]; then + echo "Warning: /$d is not a symlink, but should be." 1>&2 + else + ln -s "usr/$d" "$DPKG_ROOT/$d" + fi + elif [ -L "$DPKG_ROOT/$d" ]; then + rm "$DPKG_ROOT/$d" + fi + done +fi + #DEBHELPER# |