Package: simple-scan
Version: 3.4.2-1
Severity: normal
Tags: patch

Dear Debian folks,


`simple-scan` segfaulted for me as for two other users [1][2]. Following
up on these segfaults is more complicated if there is no package
containing the debugging information.

Please apply the included patch by saving this message in mbox format
and executing `git am --scissors thismessage.mbox`.

It would be great if you could also take the needed steps to get this
into Wheezy.


Thanks,

Paul


[1] http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=647968
[2] http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=680601

---- 8< ----- >8 ----
From: Paul Menzel <pm.deb...@googlemail.com>
Date: Mon, 10 Sep 2012 23:24:45 +0200
Subject: [PATCH] debian/{control,rules}: Add simple-scan-dbg for debugging 
symbols [1]

Unfortunately Simple Scan seems to segfault quite often. Providing a
package simple-scan-dbg containing the debugging symbols will hopefully
help to track those down.

[1] http://wiki.debian.org/DebugPackage
---
 debian/control |   15 +++++++++++++++
 debian/rules   |   10 ++++++++++
 2 files changed, 25 insertions(+)

diff --git a/debian/control b/debian/control
index f8b298f..b7fe771 100644
--- a/debian/control
+++ b/debian/control
@@ -43,3 +43,18 @@ Description: Simple Scanning Utility
  Simple Scan is basically a frontend for SANE - which is the same
  backend as XSANE uses. This means that all existing scanners will
  work and the interface is well tested.
+
+Package: simple-scan-dbg
+Architecture: any
+Section: debug
+Priority: extra
+Depends:
+ simple-scan (= ${binary:Version}),
+ ${misc:Depends},
+ ${shlibs:Depends}
+Description: Debugging symbols for Simple Scanning Utility
+ Simple Scan is an easy-to-use application, designed to let users
+ connect their scanner and quickly have the image/document in an
+ appropriate format.
+ .
+ This package contains the debugging symbols for simple-scan.
diff --git a/debian/rules b/debian/rules
index da46680..d1daa66 100755
--- a/debian/rules
+++ b/debian/rules
@@ -23,3 +23,13 @@ override_dh_auto_configure:
 override_dh_auto_build:
        cd po; intltool-update -p
        dh_auto_build
+
+.PHONY: override_dh_strip
+override_dh_strip:
+       dh_strip --dbg-package=simple-scan-dbg
+
+override_dh_auto_install:
+       dh_auto_install --destdir=debian/simple-scan
+
+override_dh_installdocs:
+       dh_installdocs --link-doc=simple-scan
-- 
1.7.10.4

Attachment: signature.asc
Description: This is a digitally signed message part

Reply via email to