Bug#753586: Create a libmapserver1 debug package

Frederic Junod frederic.junod at camptocamp.com
Thu Jul 3 10:32:42 UTC 2014


Source: mapserver
Version: 6.4.1-4
Severity: wishlist

Hello,

It would be nice to create a debug package for libmapserver1.

See attached patch.

thanks,

fredj


-- 
Frédéric Junod
Camptocamp SA
-------------- next part --------------
diff --git a/debian/control b/debian/control
index be5e2b1..142b985 100644
--- a/debian/control
+++ b/debian/control
@@ -70,6 +70,19 @@ Description: Shared library for MapServer
  functionality in MapScript is provided by the suggested mapscript
  library packages.
 
+Package: libmapserver1-dbg
+Architecture: any
+Section: debug
+Priority: extra
+Depends: ${misc:Depends}, libmapserver1 (= ${binary:Version})
+Description: Debugging symbols for libmapserver1
+ MapServer is a CGI-based framework for Internet map services which
+ supports Open Geospatial Consortium (OGC) standards. Scripting
+ functionality in MapScript is provided by the suggested mapscript
+ library packages.
+ .
+ This package contains the debugging symbols for libmapserver1.
+
 Package: libmapserver1-dev
 Architecture: any
 Section: libdevel
diff --git a/debian/rules b/debian/rules
index 54c06a4..604b749 100755
--- a/debian/rules
+++ b/debian/rules
@@ -28,6 +28,7 @@ MANPAGES:=$(wildcard debian/man/*.*.xml)
 MS_VERSION=$(shell dpkg-parsechangelog | sed -ne 's/^Version: \(.*\)-.*/\1/p')
 
 CMAKE_OPTS:= \
+		-DCMAKE_BUILD_TYPE=RelWithDebInfo \
 		-DCMAKE_EXE_LINKER_FLAGS="$(LDFLAGS)" \
 		-DCMAKE_MODULE_LINKER_FLAGS="$(LDFLAGS)" \
 		-DCMAKE_SHARED_LINKER_FLAGS="$(LDFLAGS)" \
@@ -70,6 +71,9 @@ CMAKE_OPTS:= \
 	      --parallel \
 	      --buildsystem cmake
 
+override_dh_strip:
+	dh_strip --dbg-package=libmapserver1-dbg
+
 override_dh_auto_clean:
 	dh_clean
 


More information about the Pkg-grass-devel mailing list