summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJörg Frings-Fürst <debian@jff-webhosting.net>2020-10-12 10:24:53 +0200
committerJörg Frings-Fürst <debian@jff-webhosting.net>2020-10-12 10:24:53 +0200
commit736573a8db4bd098da28a4831ce4c601f880aacd (patch)
treeca8b05929c1fbc232d28e38e3cb5527f54b61414
parent48bb1feef2e1b36a4cb7f014e58146ad18402364 (diff)
Add creation for the lock directory
-rw-r--r--debian/changelog5
-rw-r--r--debian/libsane1.postinst5
-rw-r--r--debian/patches/0055-Fix_build_error.patch2
3 files changed, 10 insertions, 2 deletions
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 <andy@stupidmail.ch>).
-- Jörg Frings-Fürst <debian@jff.email> 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