summaryrefslogtreecommitdiff
path: root/debian
diff options
context:
space:
mode:
authorJörg Frings-Fürst <debian@jff-webhosting.net>2017-08-06 10:33:46 +0200
committerJörg Frings-Fürst <debian@jff-webhosting.net>2017-08-06 10:33:46 +0200
commite719a395d1f59b7fbb83296c7a8ef04b8999095b (patch)
tree8948461d40f2372117b743421088f59ec46bf7f4 /debian
parentab8a4ae8735806d0cc128a6e3399000fc8e21b3d (diff)
parent7c4c39a26c0ebe12e0b8825fc41249a702e65cf8 (diff)
Merge branch 'bugfix/system' into develop
Diffstat (limited to 'debian')
-rw-r--r--debian/changelog23
-rw-r--r--debian/control3
-rw-r--r--debian/copyright2
-rw-r--r--debian/libsane-common.install (renamed from debian/libsane-common.install.in)0
-rw-r--r--debian/libsane-common.manpages1
-rw-r--r--debian/patches/0150-genesys-Fix-use-of-uninitialized-variable.patch25
-rw-r--r--debian/patches/series1
-rwxr-xr-xdebian/rules39
-rw-r--r--debian/sane-utils.install4
-rw-r--r--debian/sane-utils.manpages5
10 files changed, 77 insertions, 26 deletions
diff --git a/debian/changelog b/debian/changelog
index 665cfef..b8d2480 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,26 @@
+sane-backends (1.0.27-1~experimental3) UNRELEASED; urgency=medium
+
+ * debian/control:
+ + Drop outdated Recommends libsane-extras-dev to libsane-dev
+ binary package (Closes: #868265).
+ + Drop outdated texlive and texlive-latex-extra Build-Dependency.
+ * debian/rules:
+ + Drop create and install the /etc/sane.d/dll.d directory.
+ + Move rules from override_dh_install-arch and override_dh_auto_install-arch
+ to override_dh_install-indep and override_dh_auto_install-indep
+ to build the arch all packages without error (CLoses: #870455).
+ * Move libsane-common.install.in to libsane-common.install.
+ * debian/copyright:
+ + Add year 2017 for debian/*.
+ * New debian/patches/0150-genesys-Fix-use-of-uninitialized-variable.patch:
+ + Initializing usb_mode (Closes:# 869673).
+ Thanks to Florian Lindemann <linde@bfw-online.de> and
+ Olaf Meeuwissen <paddy-hack@member.fsf.org>.
+ * Move install of man pages from debian/rules to libsane-common.manpages and
+ sane-utils.manpages.
+
+ -- Jörg Frings-Fürst <debian@jff-webhosting.net> Wed, 02 Aug 2017 18:20:24 +0200
+
sane-backends (1.0.27-1~experimental2) experimental; urgency=medium
* debian/rules:
diff --git a/debian/control b/debian/control
index ae3f16a..cba9436 100644
--- a/debian/control
+++ b/debian/control
@@ -20,8 +20,6 @@ Build-Depends:
libusb-1.0-0-dev,
pkg-config,
po-debconf,
- texlive,
- texlive-latex-extra,
xutils-dev
Homepage: http://www.sane-project.org
Vcs-Git: git://anonscm.debian.org/collab-maint/sane-backends.git
@@ -113,7 +111,6 @@ Multi-Arch: same
Depends:
libsane1 (= ${binary:Version}),
${misc:Depends}
-Recommends: libsane-extras-dev
Description: API development library for scanners [development files]
SANE stands for "Scanner Access Now Easy" and is an application
programming interface (API) that provides standardized access to any
diff --git a/debian/copyright b/debian/copyright
index 5590146..7a672b5 100644
--- a/debian/copyright
+++ b/debian/copyright
@@ -13,7 +13,7 @@ Copyright: 1997-2002 Kevin Dalley <kevind@rahul.net>
2002-2011 Julien BLACHE <jblache@debian.org>
2002-2006 Aurélien Jarno <aurel32@debian.org>
2013 Mark Buda <hermit@acm.org>
- 2014-2016 Jörg Frings-Fürst <debian@jff-webhosting.net>
+ 2014-2017 Jörg Frings-Fürst <debian@jff-webhosting.net>
License: GPL-2+ with sane exception
Files: backend/abaton.*
diff --git a/debian/libsane-common.install.in b/debian/libsane-common.install
index 9def933..9def933 100644
--- a/debian/libsane-common.install.in
+++ b/debian/libsane-common.install
diff --git a/debian/libsane-common.manpages b/debian/libsane-common.manpages
new file mode 100644
index 0000000..d8b3598
--- /dev/null
+++ b/debian/libsane-common.manpages
@@ -0,0 +1 @@
+doc/*.man
diff --git a/debian/patches/0150-genesys-Fix-use-of-uninitialized-variable.patch b/debian/patches/0150-genesys-Fix-use-of-uninitialized-variable.patch
new file mode 100644
index 0000000..0311975
--- /dev/null
+++ b/debian/patches/0150-genesys-Fix-use-of-uninitialized-variable.patch
@@ -0,0 +1,25 @@
+From dd61ef1cc84299781e382b9258d97102cee192b4 Mon Sep 17 00:00:00 2001
+From: Olaf Meeuwissen <paddy-hack@member.fsf.org>
+Date: Thu, 3 Aug 2017 18:50:05 +0900
+Subject: [PATCH] genesys: Fix use of uninitialized variable
+
+See https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=869673
+---
+ backend/genesys.c | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/backend/genesys.c b/backend/genesys.c
+index 1c1bbf4..0b644c4 100644
+--- a/backend/genesys.c
++++ b/backend/genesys.c
+@@ -6237,6 +6237,7 @@ attach (SANE_String_Const devname, Genesys_Device ** devp, SANE_Bool may_wait)
+ dev->model = genesys_usb_device_list[i].model;
+ dev->vendorId = genesys_usb_device_list[i].vendor;
+ dev->productId = genesys_usb_device_list[i].product;
++ dev->usb_mode = 0; /* i.e. unset */
+ dev->already_initialized = SANE_FALSE;
+
+ DBG (DBG_info, "attach: found %s flatbed scanner %s at %s\n",
+--
+2.1.4
+
diff --git a/debian/patches/series b/debian/patches/series
index 3820487..02949a2 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -21,3 +21,4 @@
0140-avahi.patch
0145-avahi.patch
0100-source_spelling.patch
+0150-genesys-Fix-use-of-uninitialized-variable.patch
diff --git a/debian/rules b/debian/rules
index ad09a43..1354391 100755
--- a/debian/rules
+++ b/debian/rules
@@ -62,8 +62,7 @@ override_dh_auto_clean:
$(RM) include/byteorder.h include/_stdint.h
# Add here commands to clean up after the build process.
[ ! -f Makefile ] || $(MAKE) distclean
- $(RM) debian/libsane-common.install
- $(RM) debian/libsane.udev
+ $(RM) debian/libsane1.udev
dh_auto_clean
override_dh_auto_install-arch:
@@ -72,24 +71,33 @@ override_dh_auto_install-arch:
$(RM) debian/tmp/usr/lib/$(DEB_HOST_MULTIARCH)/sane/libsane.so.1
# remove libsane-dll, same as regular libsane
$(RM) debian/tmp/usr/lib/$(DEB_HOST_MULTIARCH)/sane/libsane-dll.*
- # install only the manpages for the backends which have been built
- cp debian/libsane-common.install.in debian/libsane-common.install
- ls debian/tmp/usr/lib/$(DEB_HOST_MULTIARCH)/sane/*.so | sed -e \
- "s#.*/lib\([^.]\+\)[.]so#usr/share/man/man5/\1.5#" | { while read mp; do \
- test -e debian/tmp/$$mp && echo $$mp >> debian/libsane-common.install; done }
+
+override_dh_auto_install-indep:
+ dh_auto_install
override_dh_install-arch:
dh_install
+ # Install the pkg-config file
+ mkdir -p debian/libsane-dev/usr/lib/$(DEB_HOST_MULTIARCH)/pkgconfig/
+ cp tools/sane-backends.pc debian/libsane-dev/usr/lib/$(DEB_HOST_MULTIARCH)/pkgconfig/
+
+override_dh_install-indep:
+ dh_install
# Install HAL fdi file
mkdir -p $(CURDIR)/debian/libsane-common/usr/share/hal/fdi/preprobe/10osvendor
$(CURDIR)/tools/sane-desc -s $(CURDIR)/doc/descriptions -m hal-new > \
$(CURDIR)/debian/libsane-common/usr/share/hal/fdi/preprobe/10osvendor/20-libsane.fdi
- # Install the pkg-config file
- mkdir -p debian/libsane-dev/usr/lib/$(DEB_HOST_MULTIARCH)/pkgconfig/
- cp tools/sane-backends.pc debian/libsane-dev/usr/lib/$(DEB_HOST_MULTIARCH)/pkgconfig/
- #
- mkdir -p $(CURDIR)/debian//sane-utils/usr/share/man/man5/
- cp $(CURDIR)/doc/sane-umax_pp.man $(CURDIR)/debian/sane-utils/usr/share/man/man5/umax_pp.5
+
+override_dh_installman-indep:
+ dh_installman
+ # remove man files from package sane-utils
+ $(RM) $(CURDIR)/debian/libsane-common/usr/share/man/man1/gamma4scanimage.1
+ $(RM) $(CURDIR)/debian/libsane-common/usr/share/man/man1/sane-find-scanner.1
+ $(RM) $(CURDIR)/debian/libsane-common/usr/share/man/man1/scanimage.1
+ $(RM) $(CURDIR)/debian/libsane-common/usr/share/man/man5/sane-umax_pp.5
+ $(RM) $(CURDIR)/debian/libsane-common/usr/share/man/man8/saned.8
+ # remove manpages for not build libs
+ $(RM) $(CURDIR)/debian/libsane-common/usr/share/man/man5/sane-v4l.5
override_dh_installdocs-arch:
dh_installdocs
@@ -98,8 +106,6 @@ override_dh_installdocs-arch:
override_dh_installdocs-indep:
dh_installdocs
- # create the /etc/sane.d/dll.d directory in libsane-common
- install -d debian/libsane-common/etc/sane.d/dll.d
# Platform-specific documentation
$(RM) debian/libsane-common/etc/sane.d/saned.conf
ifeq (kfreebsd,$(DEB_HOST_ARCH_OS))
@@ -113,7 +119,6 @@ override_dh_installudev-arch:
ifeq (linux,$(DEB_HOST_ARCH_OS))
# udev support
# Generate the udev rules file
-# $(CURDIR)/tools/sane-desc -s $(CURDIR)/doc/descriptions -m udev+acl > $(CURDIR)/debian/libsane1.udev
$(CURDIR)/tools/sane-desc -s $(CURDIR)/doc/descriptions -m udev+hwdb > $(CURDIR)/debian/libsane1.udev
$(CURDIR)/tools/sane-desc -s $(CURDIR)/doc/descriptions -m hwdb > $(CURDIR)/debian/20-sane.hwdb
cp $(CURDIR)/debian/20-sane.hwdb $(CURDIR)/debian/libsane1/lib/udev/hwdb.d/
@@ -133,5 +138,3 @@ override_dh_systemd_enable-arch:
override_dh_makeshlibs-arch:
dh_makeshlibs -- -v$(VERSION) -Pdebian/libsane1 -plibsane1
- # Empty dependency_libs in all .la files
- #find debian -name "*.la" -type f -exec sed -i "/dependency_libs/ s/'.*'/''/" -i {} \;
diff --git a/debian/sane-utils.install b/debian/sane-utils.install
index a953300..ed670e4 100644
--- a/debian/sane-utils.install
+++ b/debian/sane-utils.install
@@ -3,10 +3,6 @@ usr/bin/gamma4scanimage
usr/bin/sane-find-scanner
usr/bin/scanimage
usr/sbin/saned
-usr/share/man/man1/gamma4scanimage.1
-usr/share/man/man1/sane-find-scanner.1
-usr/share/man/man1/scanimage.1
-usr/share/man/man8/saned.8
tools/umax_pp usr/bin
debian/saned.socket lib/systemd/system
debian/saned@.service lib/systemd/system
diff --git a/debian/sane-utils.manpages b/debian/sane-utils.manpages
new file mode 100644
index 0000000..02e37a7
--- /dev/null
+++ b/debian/sane-utils.manpages
@@ -0,0 +1,5 @@
+doc/gamma4scanimage.man
+doc/sane-find-scanner.man
+doc/scanimage.man
+doc/saned.man
+doc/sane-umax_pp.man