From 736573a8db4bd098da28a4831ce4c601f880aacd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Frings-F=C3=BCrst?= Date: Mon, 12 Oct 2020 10:24:53 +0200 Subject: Add creation for the lock directory --- debian/changelog | 5 ++++- debian/libsane1.postinst | 5 +++++ debian/patches/0055-Fix_build_error.patch | 2 +- 3 files changed, 10 insertions(+), 2 deletions(-) (limited to 'debian') diff --git a/debian/changelog b/debian/changelog index fdc0acd..462cbb7 100644 --- a/debian/changelog +++ b/debian/changelog @@ -3,7 +3,10 @@ sane-backends (1.0.31-3) UNRELEASED; urgency=medium * debian/sane-utils.postrm (Closes: #941625): - On purge remove pid file if sysvinit are used. * debian/99-libsane1.rules (Closes: #960083): - - Add contition ENV{DEVNAME}!="" to run setfacl only on usb scanners. + - Add condition ENV{DEVNAME}!="" to run setfacl only on usb scanners. + * debian/libsane1.postinst: + - Add creation for the lock directory + (Thanks to Andreas Tscharner ). -- Jörg Frings-Fürst Wed, 30 Sep 2020 16:12:47 +0200 diff --git a/debian/libsane1.postinst b/debian/libsane1.postinst index 971103e..88528f0 100644 --- a/debian/libsane1.postinst +++ b/debian/libsane1.postinst @@ -9,6 +9,11 @@ case "$1" in addgroup --quiet --system scanner || true fi + if [ -d /var/lock/sane ]; then + mkdir /var/lock/sane + fi + chown saned:saned /var/lock/sane + ;; abort-upgrade|abort-remove|abort-deconfigure) diff --git a/debian/patches/0055-Fix_build_error.patch b/debian/patches/0055-Fix_build_error.patch index 3816692..b1b09b1 100644 --- a/debian/patches/0055-Fix_build_error.patch +++ b/debian/patches/0055-Fix_build_error.patch @@ -13,7 +13,7 @@ Index: trunk/po/POTFILES.in backend/p5_device.c backend/pixma/pixma.c -backend/pixma/pixma_sane_options.c -+#backend/pixma/pixma_sane_options.c ++backend/pixma/pixma_sane_options.c backend/plustek.c backend/plustek_pp.c backend/pnm.c -- cgit v1.2.3