Package: libavc1394
Severity: normal
Tags: patch

        Hi,

 Attached patch adds recommended support for noopt and nostrip
 DEB_BUILD_OPTIONS which makes getting backtraces from submitters with
 debugging symbols more useful.

 Thanks for considering,

-- System Information:
Debian Release: testing/unstable
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.16-2-686
Locale: [EMAIL PROTECTED], [EMAIL PROTECTED] (charmap=ISO-8859-15)

-- 
Loïc Minier <[EMAIL PROTECTED]>
--- libavc1394-0.5.3/debian/changelog
+++ libavc1394-0.5.3/debian/changelog
@@ -1,3 +1,10 @@
+libavc1394 (0.5.3-1.1) unstable; urgency=low
+
+  * Non-maintainer upload.
+  * Add support for noopt and nostrip DEB_BUILD_OPTIONS.
+
+ -- Loic Minier <[EMAIL PROTECTED]>  Mon, 12 Jun 2006 14:03:57 +0200
+
 libavc1394 (0.5.3-1) unstable; urgency=low
 
   * New upstream version.
--- libavc1394-0.5.3/debian/rules
+++ libavc1394-0.5.3/debian/rules
@@ -10,6 +10,16 @@
 
 include /usr/share/dpatch/dpatch.make
 
+# support for noopt and nostrip in DEB_BUILD_OPTIONS
+ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
+        CFLAGS += -g -O0
+else
+        CFLAGS += -g -O2
+endif
+ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS)))
+        INSTALL_PROGRAM += -s
+endif
+
 # shared library versions, option 1
 #version=2.0.5
 #major=2
@@ -32,7 +42,7 @@
        ln -sf /usr/share/misc/config.sub .
        ln -sf /usr/share/misc/config.guess .
 
-       ./configure --prefix=/usr --mandir=\$${prefix}/share/man 
--infodir=\$${prefix}/share/info
+       env CFLAGS="$(CFLAGS)" ./configure --prefix=/usr 
--mandir=\$${prefix}/share/man --infodir=\$${prefix}/share/info
 
        touch configure-stamp
 

Reply via email to