--- debian/control.orig	2013-09-23 00:22:37.000000000 +0000
+++ debian/control	2013-09-23 00:24:20.000000000 +0000
@@ -181,6 +181,19 @@
  .
  This package includes the regression test suite.
 
+Package: mariadb-server-5.5-dbg 
+Architecture: any 
+Section: debug 
+Priority: extra 
+Depends: mariadb-server-5.5 (= ${binary:Version}), mariadb-server-core-5.5 (= ${binary:Version}) 
+Description: Debug symbols for the MariaDB database server 
+ MariaDB is a fast, stable and true multi-user, multi-threaded SQL database 
+ server. SQL (Structured Query Language) is the most popular database query 
+ language in the world. The main goals of MariaDB are speed, robustness and 
+ ease of use. 
+ . 
+ This package includes the debug symbols. 
+ 
 Package: mariadb-server-5.5
 Architecture: any
 Suggests: tinyca, mailx, mariadb-test
--- debian/rules.orig	2013-09-23 00:22:52.000000000 +0000
+++ debian/rules	2013-09-23 00:25:59.000000000 +0000
@@ -74,7 +74,8 @@
 		-DBUILD_CONFIG=mysql_release \
 		-DCOMPILATION_COMMENT="mariadb.org binary distribution" \
 		-DSYSTEM_TYPE="debian-linux-gnu" \
-		-DDEB=debian'
+		-DDEB=debian' \
+		-DCMAKE_BUILD_TYPE=Debug
 
 	touch $@
 
@@ -255,7 +256,7 @@
 	dh_installinfo -a
 	dh_installlogcheck -a
 	dh_installchangelogs -a
-	dh_strip -a
+	dh_strip -a    --dbg-package=mariadb-server-5.5-dbg
 	dh_link -a	# .so muss nach .so.1.2.3 installier werden!
 	dh_compress -a
 	dh_fixperms -a
