Remove the lsb-compat package to force migration away from LSB packages
authorDidier Raboud <odyx@debian.org>
Mon, 19 Jun 2017 07:32:05 +0000 (09:32 +0200)
committerDidier Raboud <odyx@debian.org>
Sat, 5 Aug 2017 20:07:51 +0000 (16:07 -0400)
debian/control
debian/lsb-compat.dirs [deleted file]
debian/lsb-compat.install [deleted file]
debian/lsb-compat.lintian-overrides [deleted file]
debian/lsb-compat.manpages [deleted file]
debian/lsb-compat.postinst [deleted file]
debian/lsb-compat.prerm [deleted file]
debian/rules

index a28b4bfa5138f7f64f2e9c367caa765fd43c503d..1b2d6d03a3228abb617100890df245dead9e58b5 100644 (file)
@@ -52,33 +52,3 @@ Description: Linux Standard Base version reporting utility
  While it is intended for use by LSB packages, this command may also
  be useful for programmatically distinguishing between a pure Debian
  installation and derived distributions.
-
-Package: lsb-compat
-Architecture: any
-Depends: lsb-release (>= ${source:Version}),
- lsb-base (>= ${source:Version}),
- ${glibc},
- ${python3:Depends},
- ${misc:Depends},
- ${depends},
-# printer drivers, such as epson-inkjet-printer-201106w
- libcups2,
- libcupsimage2,
- ghostscript,
- cups-filters (>= 1.0.36),
-Provides: ${provides},
- lsb-core (= 4.1),
- lsb (= 4.1),
-Conflicts:
- lsb-core,
- lsb
-Replaces:
- lsb-core,
- lsb
-Description: Linux Standard Base Compatibility
- The Linux Standard Base (http://www.linuxbase.org/) was a standard
- core system that third-party applications written for Linux could
- depend upon.
- .
- This package provides the most minimal layer to be able to install and run
- selected legacy LSB packages on Debian.
diff --git a/debian/lsb-compat.dirs b/debian/lsb-compat.dirs
deleted file mode 100644 (file)
index d3d8c10..0000000
+++ /dev/null
@@ -1,3 +0,0 @@
-usr/lib/lsb
-var/lib/lsb
-etc/profile.d
diff --git a/debian/lsb-compat.install b/debian/lsb-compat.install
deleted file mode 100644 (file)
index eaee1e9..0000000
+++ /dev/null
@@ -1,4 +0,0 @@
-initdutils.py /usr/lib/lsb
-install_initd /usr/lib/lsb
-remove_initd /usr/lib/lsb
-lsbinstall /usr/lib/lsb
diff --git a/debian/lsb-compat.lintian-overrides b/debian/lsb-compat.lintian-overrides
deleted file mode 100644 (file)
index 64b2b9f..0000000
+++ /dev/null
@@ -1,2 +0,0 @@
-# The purpose of LSB is to ensure that those packages are present. Being explicit cannot hurt.
-depends-on-essential-package-without-using-version depends: bsdutils
diff --git a/debian/lsb-compat.manpages b/debian/lsb-compat.manpages
deleted file mode 100644 (file)
index 44c423d..0000000
+++ /dev/null
@@ -1 +0,0 @@
-lsb.8
diff --git a/debian/lsb-compat.postinst b/debian/lsb-compat.postinst
deleted file mode 100755 (executable)
index ce155f5..0000000
+++ /dev/null
@@ -1,65 +0,0 @@
-#!/bin/sh
-
-set -e
-
-setup_ldso_symlink () {
-    ARCH=$DPKG_MAINTSCRIPT_ARCH
-    if [ -z "$ARCH" ]; then
-        ARCH=$(dpkg --print-architecture)
-    fi
-    case "$ARCH" in
-        s390|ppc64|sparc|sparc64|alpha|hppa|m68k|mipsel)
-            ln -sf ld.so.1 /lib/ld-lsb-$ARCH.so.1
-            ln -sf ld.so.1 /lib/ld-lsb-$ARCH.so.2
-            ln -sf ld.so.1 /lib/ld-lsb-$ARCH.so.3
-            ;;
-        powerpc)
-            ln -sf ld.so.1 /lib/ld-lsb-ppc32.so.1
-            ln -sf ld.so.1 /lib/ld-lsb-ppc32.so.2
-            ln -sf ld.so.1 /lib/ld-lsb-ppc32.so.3
-            ;;
-        i386)
-            ln -sf ld-linux.so.2 /lib/ld-lsb.so.1
-            ln -sf ld-linux.so.2 /lib/ld-lsb.so.2
-            ln -sf ld-linux.so.2 /lib/ld-lsb.so.3
-            ;;
-        amd64)
-            ln -sf ld-linux.so.2 /lib/ld-lsb.so.1
-            ln -sf ld-linux.so.2 /lib/ld-lsb.so.2
-            ln -sf ld-linux.so.2 /lib/ld-lsb.so.3
-            ln -sf ld-linux-x86-64.so.2 /lib64/ld-lsb-x86-64.so.2
-            ln -sf ld-linux-x86-64.so.2 /lib64/ld-lsb-x86-64.so.3
-            ;;
-        ia64)
-            ln -sf ld-linux-ia64.so.2 /lib/ld-lsb-ia64.so.1
-            ln -sf ld-linux-ia64.so.2 /lib/ld-lsb-ia64.so.2
-            ln -sf ld-linux-ia64.so.2 /lib/ld-lsb-ia64.so.3
-            ;;
-        *)
-            echo "ld-lsb-*.so.1 symlink for $ARCH is unknown!"
-            ;;
-    esac
-}
-
-PATH=/sbin:/usr/sbin:$PATH
-export PATH
-
-. /usr/share/debconf/confmodule
-
-case "$1" in
-    configure)
-        if dpkg --compare-versions "$2" lt "3.2+Debian30" ; then
-          [ -L /lib/ld-lsb-x86-64.so.2 ] && rm /lib/ld-lsb-x86-64.so.2 || true
-          [ -L /lib/ld-lsb-x86-64.so.3 ] && rm /lib/ld-lsb-x86-64.so.3 || true
-        fi
-        setup_ldso_symlink
-        ;;
-    abort-upgrade|abort-remove|abort-deconfigure)
-        ;;
-    *)
-        echo "postinst called with unknown argument \`$1'" >&2
-        exit 1
-    ;;
-esac
-
-#DEBHELPER#
diff --git a/debian/lsb-compat.prerm b/debian/lsb-compat.prerm
deleted file mode 100644 (file)
index 8b1f535..0000000
+++ /dev/null
@@ -1,47 +0,0 @@
-#!/bin/sh
-
-set -e
-
-remove_ldso_symlink () {
-    ARCH=$DPKG_MAINTSCRIPT_ARCH
-    if [ -z "$ARCH" ]; then
-        ARCH=$(dpkg --print-architecture)
-    fi
-    case "$ARCH" in
-        s390|ia64|ppc64|sparc|sparc64|alpha|hppa|m68k|mipsel)
-            rm -f /lib/ld-lsb-$ARCH.so.[123]
-            ;;
-        powerpc)
-            rm -f /lib/ld-lsb-ppc32.so.[123]
-            ;;
-        i386)
-            rm -f /lib/ld-lsb.so.[123]
-            ;;
-        amd64)
-            rm -f /lib/ld-lsb.so.[123] /lib64/ld-lsb-x86-64.so.[23]
-            ;;
-        *)
-            echo "ld-lsb-*.so.1 symlink for $ARCH is unknown; not removed."
-            ;;
-    esac
-}
-
-PATH=/sbin:/usr/sbin:$PATH
-export PATH
-
-case "$1" in
-    remove)
-        remove_ldso_symlink
-        rm -f /var/lib/lsb/facilities
-        rm -f /var/lib/lsb/depends
-        ;;
-    failed-upgrade|upgrade|deconfigure)
-        ;;
-    *)
-        echo "prerm called with unknown argument \`$1'" >&2
-        exit 1
-    ;;
-esac
-
-
-#DEBHELPER#
index 690f84ccd33a0a6afcd55c8f2f79d8615bd810c0..33c4aff37822c6712b4de6d224934ba2dc603c0e 100755 (executable)
@@ -78,17 +78,3 @@ override_dh_installdeb:
        cp debian/lsb-base.maintscript.Ubuntu debian/lsb-base.maintscript
        dh_installdeb
 endif
-
-override_dh_gencontrol:
-       @echo >> debian/lsb-compat.substvars "glibc=${LIBC}"
-#      @[ ${DEB_HOST_GNU_TYPE} != 'arm-linux-gnueabi' ] && echo >> debian/lsb-cxx.substvars "depends=libstdc++5" || true
-       @echo >> debian/lsb-cxx.substvars "provides=lsb-cxx-${lsbarch}"
-       @echo >> debian/lsb-graphics.substvars "provides=lsb-graphics-${lsbarch}"
-       @echo >> debian/lsb-desktop.substvars "provides=lsb-qt4-${lsbarch}, lsb-desktop-${lsbarch}"
-       @echo >> debian/lsb-multimedia.substvars "provides=lsb-multimedia-${lsbarch}"
-       @echo >> debian/lsb-languages.substvars "provides=lsb-languages-${lsbarch}"
-       @echo >> debian/lsb-printing.substvars "provides=lsb-printing-${lsbarch}"
-       @echo >> debian/lsb-security.substvars "provides=lsb-security-${lsbarch}"
-       @[ ${DEB_HOST_ARCH} = 'amd64' ] && echo >> debian/lsb-compat.substvars "depends=libc6:i386 | libc6-i386, zlib1g:i386 | lib32z1" || true
-       @[ ${DEB_HOST_ARCH} = 'kfreebsd-amd64' ] && echo >> debian/lsb-compat.substvars "depends=libc0.1:kfreebsd-i386 | libc0.1-i386, zlib1g:kfreebsd-i386 | lib32z1" || true
-       dh_gencontrol