Package: libsane1
Version: 1.0.27-1~experimental6.1
Severity: normal
Tags: patch

Hi,

makedev is a deprecated tool and should not be used on a modern Linux
system anymore.
By keeping the alternative Depends, apt will not autoremove the makedev
package on dist-upgrades.
Please consider applying the attached patch.

Regards,
Michael


-- System Information:
Debian Release: buster/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (200, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.17.0-3-amd64 (SMP w/4 CPU cores)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8), 
LANGUAGE=de_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages libsane1 depends on:
ii  acl                2.2.52-3+b1
ii  adduser            3.117
ii  libavahi-client3   0.7-4
ii  libavahi-common3   0.7-4
ii  libc6              2.27-5
ii  libgphoto2-6       2.5.19-1
ii  libgphoto2-port12  2.5.19-1
ii  libieee1284-3      0.2.11-13
ii  libjpeg62-turbo    1:1.5.2-2+b1
ii  libsane-common     1.0.27-1~experimental6.1
ii  libsnmp30          5.7.3+dfsg-3
ii  libssl1.1          1.1.1~~pre9-1
ii  libtiff5           4.0.9-6
ii  libusb-1.0-0       2:1.0.22-2
ii  makedev            2.3.1-94
ii  udev               239-7

Versions of packages libsane1 recommends:
ii  sane-utils  1.0.27-1~experimental6.1

Versions of packages libsane1 suggests:
ii  avahi-daemon  0.7-4
pn  hplip         <none>

-- no debconf information
>From 12a7f1dd80cc70ae2092efabef98b1169e843fb1 Mon Sep 17 00:00:00 2001
From: Michael Biebl <[email protected]>
Date: Thu, 23 Aug 2018 09:25:11 +0200
Subject: [PATCH] Drop makedev dependency

This tool is deprecated and keeping the dependency around prevents
makedev from being autoremoved on dist upgrades.
---
 debian/control           |  2 +-
 debian/libsane1.postinst | 13 -------------
 2 files changed, 1 insertion(+), 14 deletions(-)

diff --git a/debian/control b/debian/control
index cb78d0f..a19bcbc 100644
--- a/debian/control
+++ b/debian/control
@@ -85,7 +85,7 @@ Depends:
  acl [linux-any],
  adduser,
  libsane-common (= ${source:Version}),
- udev [linux-any] | makedev [linux-any],
+ udev [linux-any],
  ${misc:Depends},
  ${shlibs:Depends}
 Recommends: sane-utils (>= ${binary:Version})
diff --git a/debian/libsane1.postinst b/debian/libsane1.postinst
index 914d42e..545b6aa 100644
--- a/debian/libsane1.postinst
+++ b/debian/libsane1.postinst
@@ -8,19 +8,6 @@ case "$1" in
        echo "Adding scanner group..."
        addgroup --quiet --system scanner || true
     fi
-
-    if [ "$(uname -s)" = "Linux" ]; then
-       if [ -e /dev/MAKEDEV ]; then
-           # create /dev/parport*
-           if [ ! -c /dev/parport0 ]; then
-               (cd /dev && ./MAKEDEV parport) || true
-           fi
-           # create /dev/sg*
-           if [ ! -c /dev/sg0 ]; then
-               (cd /dev && ./MAKEDEV sg) || true
-           fi
-       fi
-    fi
     ;;
 
     abort-upgrade|abort-remove|abort-deconfigure)
-- 
2.18.0

Reply via email to