Package: nmap
Version: 3.81-1
Severity: normal
Tags: patch

When building the package with DEB_BUILD_OPTIONS=debug, the build
fails as -g is appended after the closing quote of CFLAGS.
The attached patch fixes this.

elmar

-- System Information:
Debian Release: 3.1
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: powerpc (ppc)
Kernel: Linux 2.6.9-ppc-sleep7
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)

Versions of packages nmap depends on:
ii  libc6                       2.3.2.ds1-20 GNU C Library: Shared libraries an
ii  libgcc1                     1:3.4.3-12   GCC support library
ii  libpcre3                    5.0-1        Perl 5 Compatible Regular Expressi
ii  libssl0.9.7                 0.9.7e-3     SSL shared libraries
ii  libstdc++5                  1:3.3.5-12   The GNU Standard C++ Library v3

-- no debconf information
--- debian/rules~       2005-04-11 17:04:32.773371720 +0200
+++ debian/rules        2005-04-11 17:05:30.126652696 +0200
@@ -6,8 +6,8 @@
 # comment this to turn off debhelper verbose mode.
 export DH_VERBOSE=1
 
-CFLAGS="-O2 -Wall -D_GNU_SOURCE" 
-CXXFLAGS="-O2 -Wall -D_GNU_SOURCE"
+CFLAGS=-O2 -Wall -D_GNU_SOURCE
+CXXFLAGS=-O2 -Wall -D_GNU_SOURCE
 
 ifneq (,$(findstring debug,$(DEB_BUILD_OPTIONS)))
 CFLAGS += -g
@@ -26,8 +26,8 @@
        dh_testdir
        cd libpcap-possiblymodified && ln -s ../config.sub ../config.guess .
        cd nbase && ln -s ../config.sub ../config.guess .
-       CXXFLAGS=$(CXXFLAGS) CFLAGS=$(CFLAGS) ./configure --prefix=/usr 
--mandir='$${prefix}/share/man' --enable-ipv6
-       #cd libpcap-possiblymodified && CXXFLAGS=$(CXXFLAGS) CFLAGS=$(CFLAGS) 
./configure --prefix=/usr --mandir='$${prefix}/share/man'
+       CXXFLAGS="$(CXXFLAGS)" CFLAGS="$(CFLAGS)" ./configure --prefix=/usr 
--mandir='$${prefix}/share/man' --enable-ipv6
+       #cd libpcap-possiblymodified && CXXFLAGS="$(CXXFLAGS)" 
CFLAGS="$(CFLAGS)" ./configure --prefix=/usr --mandir='$${prefix}/share/man'
        make 
        touch build-stamp
 

Reply via email to