Package: k3b
Version: 0.12.17-2+b1
Severity: normal
Tags: patch

Hello,

support for DEB_BUILD_OPTIONS is broken in currect packages.
My patch (attached) fixes the issue.


-- System Information:
Debian Release: testing/unstable
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.18-1-amd64
Locale: LANG=lt_LT, LC_CTYPE=lt_LT (charmap=ISO-8859-13)

Versions of packages k3b depends on:
ii  cdparanoia           3.10+debian~pre0-2  audio extraction tool for sampling
ii  kdebase-bin          4:3.5.5a-2mdx2      core binaries for the KDE base mod
ii  kdelibs-data         4:3.5.5a.dfsg.1-1   core shared data for all KDE appli
ii  kdelibs4c2a          4:3.5.5a.dfsg.1-1   core libraries and binaries for al
ii  libacl1              2.2.41-1            Access control list shared library
ii  libart-2.0-2         2.3.17-1            Library of functions for 2D graphi
ii  libattr1             2.4.32-1            Extended attribute shared library
ii  libaudio2            1.8-2               The Network Audio System (NAS). (s
ii  libc6                2.3.6.ds1-6         GNU C Library: Shared libraries
ii  libdbus-1-3          0.93-1              simple interprocess messaging syst
ii  libdbus-qt-1-1c2     0.62.git.20060814-2 simple interprocess messaging syst
ii  libexpat1            1.95.8-3.3          XML parsing C library - runtime li
ii  libfontconfig1       2.4.1-2             generic font configuration library
ii  libfreetype6         2.2.1-5             FreeType 2 font engine, shared lib
ii  libgamin0 [libfam0]  0.1.7-4             Client library for the gamin file 
ii  libgcc1              1:4.1.1-16          GCC support library
ii  libhal1              0.5.8.1-2           Hardware Abstraction Layer - share
ii  libice6              1:1.0.1-2           X11 Inter-Client Exchange library
ii  libidn11             0.6.5-1             GNU libidn library, implementation
ii  libjpeg62            6b-13               The Independent JPEG Group's JPEG 
ii  libk3b2              0.12.17-2+b1        The KDE cd burning application lib
ii  libmusicbrainz4c2a   2.1.4-1             Second generation incarnation of t
ii  libpng12-0           1.2.8rel-7          PNG library - runtime
ii  libqt3-mt            3:3.3.6-4           Qt GUI Library (Threaded runtime v
ii  libsm6               1:1.0.1-3           X11 Session Management library
ii  libstdc++6           4.1.1-16            The GNU Standard C++ Library v3
ii  libx11-6             2:1.0.3-2           X11 client-side library
ii  libxcursor1          1.1.7-4             X cursor management library
ii  libxext6             1:1.0.1-2           X11 miscellaneous extension librar
ii  libxft2              2.1.8.2-8           FreeType-based font drawing librar
ii  libxi6               1:1.0.1-3           X11 Input extension library
ii  libxinerama1         1:1.0.1-4.1         X11 Xinerama extension library
ii  libxrandr2           2:1.1.0.2-4         X11 RandR extension library
ii  libxrender1          1:0.9.1-3           X Rendering Extension client libra
ii  libxt6               1:1.0.2-2           X11 toolkit intrinsics library
ii  mkisofs              5:1.0~pre4-1.1      Creates ISO-9660 CD-ROM filesystem
ii  wodim                5:1.0~pre4-1.1      command line CD writing tool
ii  zlib1g               1:1.2.3-13          compression library - runtime

Versions of packages k3b recommends:
ii  cdrdao                    1:1.2.2-2      records CDs in Disk-At-Once (DAO) 
ii  dvd+rw-tools              7.0-1          DVD+-RW/R tools
ii  kcontrol                  4:3.5.5a-2mdx2 control center for KDE
ii  kdebase-kio-plugins       4:3.5.5a-2mdx2 core I/O slaves for KDE
ii  vcdimager                 0.7.23-3       A VideoCD (VCD) image mastering an

-- no debconf information
--- k3b-0.12.17/debian/changelog
+++ k3b-0.12.17/debian/changelog
@@ -1,3 +1,10 @@
+k3b (0.12.17-2mdx1) unstable; urgency=low
+
+  * Support DEB_BUILD_OPTIONS="noopt" properly (via CXXFLAGS,
+    not just CFLAGS)
+
+ -- Modestas Vainius <[EMAIL PROTECTED]>  Wed, 13 Sep 2006 18:58:53 +0300
+
 k3b (0.12.17-2) unstable; urgency=low
 
   * Update transcode apt source (closes: #386080), thanks Eric!
--- k3b-0.12.17/debian/rules
+++ k3b-0.12.17/debian/rules
@@ -20,12 +20,15 @@
 DEB_HOST_GNU_TYPE       ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
 DEB_BUILD_GNU_TYPE      ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
 
-CFLAGS = -Wall -g
+CFLAGS = -Wall -g3
+CXXFLAGS = -Wall -g3 -fpermissive
 
 ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
 	CFLAGS += -O0
+	CXXFLAGS += -O0
 else
 	CFLAGS += -O2
+	CXXFLAGS += -O2
 endif
 ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS)))
 	INSTALL_PROGRAM += -s
@@ -48,7 +51,7 @@
 
 	# run configure with build tree $(objdir)
 	cd $(objdir) && \
-	../configure $(configkde) CXXFLAGS=-fpermissive --without-resmgr
+	CFLAGS="$(CFLAGS)" CXXFLAGS="$(CXXFLAGS)" ../configure $(configkde) --without-resmgr
 
 	touch configure-stamp
 

Reply via email to