I have a patch which implements the DEB_BUILD_OPTIONS debug flag from policy, section 11.1. (The nostrip flag is already handled automatically by debhelper.) If you approve I'd like to commit this change to KDE CVS, both in KDE_2_2_BRANCH and HEAD.
In the meantime, I'm Cc'ing this to the list in case any other KDE package maintainers are interested. -- Daniel Schepler "Please don't disillusion me. I [EMAIL PROTECTED] haven't had breakfast yet." -- Orson Scott Card
Index: admin/debianrules =================================================================== RCS file: /home/kde/kde-common/admin/debianrules,v retrieving revision 1.82.2.5 diff -u -r1.82.2.5 debianrules --- admin/debianrules 2002/02/19 05:03:27 1.82.2.5 +++ admin/debianrules 2002/02/22 12:44:02 @@ -49,6 +49,14 @@ $MCOPIDL="$kde_bindir/mcopidl"; $ARTSCCONFIG="$kde_bindir/artsc-config"; +if (defined $ENV{DEB_BUILD_OPTIONS} && + $ENV{DEB_BUILD_OPTIONS} =~ /\bdebug\b/) { + $enable_debug="--enable-debug"; +} +else { + $enable_debug="--disable-debug"; +} + if (@ARGV && $ARGV[0] eq 'echodirs') { print STDOUT "export kde_htmldir=$kde_htmldir\n"; print STDOUT "export kde_appsdir=$kde_appsdir\n"; @@ -78,9 +86,9 @@ print STDOUT "export KDB2HTML=$KDB2HTML\n"; print STDOUT "export MCOPIDL=$MCOPIDL\n"; print STDOUT "export ARTSCCONFIG=$ARTSCCONFIG\n"; - print STDOUT "configkde=--disable-debug --disable-rpath --prefix=\$(kde_prefix) --libexecdir=\$(kde_bindir) --libdir=\$(kde_libdir) --includedir=\$(kde_includedir) --with-qt-includes=/usr/include/qt --mandir=\$(mandir) --infodir=\$(infodir)\n"; - print STDOUT "configkdevelop=--disable-debug --enable-docbase --enable-kdoc2 --disable-rpath --libdir=\$(kde_libdir) --includedir=\$(kde_includedir) --with-qt-includes=/usr/include/qt --mandir=\$(mandir) --with-kdelibsdoc-dir=/usr/share/doc/libkdecore-doc/html\n"; - print STDOUT "configkdepim=--disable-debug --with-extra-includes=/usr/include/libpisock --enable-shared --disable-rpath --libdir=\$(kde_libdir) --includedir=\$(kde_includedir) --prefix=\$(kde_prefix) --libexecdir=\$(kde_bindir) --with-qt-includes=/usr/include/qt --mandir=\$(mandir) --infodir=\$(infodir)\n"; + print STDOUT "configkde=$enable_debug --disable-rpath --prefix=\$(kde_prefix) --libexecdir=\$(kde_bindir) --libdir=\$(kde_libdir) --includedir=\$(kde_includedir) --with-qt-includes=/usr/include/qt --mandir=\$(mandir) --infodir=\$(infodir)\n"; + print STDOUT "configkdevelop=$enable_debug --enable-docbase --enable-kdoc2 --disable-rpath --libdir=\$(kde_libdir) --includedir=\$(kde_includedir) --with-qt-includes=/usr/include/qt --mandir=\$(mandir) --with-kdelibsdoc-dir=/usr/share/doc/libkdecore-doc/html\n"; + print STDOUT "configkdepim=$enable_debug --with-extra-includes=/usr/include/libpisock --enable-shared --disable-rpath --libdir=\$(kde_libdir) --includedir=\$(kde_includedir) --prefix=\$(kde_prefix) --libexecdir=\$(kde_bindir) --with-qt-includes=/usr/include/qt --mandir=\$(mandir) --infodir=\$(infodir)\n"; exit }