Package: libgtkada2 Severity: normal Tags: patch
When building the package with DEB_BUILD_OPTIONS="noopt nostrip", the shared libraries and executables get stripped anyway. Also, the CFLAGS don't get passed down to configure or the build process. I urgently need this to work well to help me debug a crash in gnat-gps. For the moment, I have built a local package using the attached patch and it works well for me. -- System Information: Debian Release: 4.0 APT prefers testing APT policy: (990, 'testing'), (500, 'unstable'), (1, 'experimental') Architecture: i386 (i686) Shell: /bin/sh linked to /bin/bash Kernel: Linux 2.6.18-3-686 Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
diff -u libgtkada2-2.8.1/debian/changelog libgtkada2-2.8.1/debian/changelog --- libgtkada2-2.8.1/debian/changelog +++ libgtkada2-2.8.1/debian/changelog @@ -1,3 +1,10 @@ +libgtkada2 (2.8.1-4miki1) unstable; urgency=low + + * Local package. + * Correctly apply DEB_BUILD_OPTIONS={noopt,nostrip} + + -- Alain Kalker <[EMAIL PROTECTED]> Mon, 19 Feb 2007 08:16:37 +0100 + libgtkada2 (2.8.1-4) unstable; urgency=low * Clean up the diff.gz, it was preventing 00-makefiles.patch from diff -u libgtkada2-2.8.1/debian/rules libgtkada2-2.8.1/debian/rules --- libgtkada2-2.8.1/debian/rules +++ libgtkada2-2.8.1/debian/rules @@ -121,7 +121,9 @@ --build=$(DEB_BUILD_GNU_TYPE) \ --prefix=/usr \ --mandir=\$${prefix}/share/man \ - --infodir=\$${prefix}/share/info + --infodir=\$${prefix}/share/info \ + CFLAGS="$(CFLAGS)" \ + INSTALL_PROGRAM="$(INSTALL_PROGRAM)" rm config.log mv src/gate src/gate$(major) mv src/gtkada-config src/gtkada$(major)-config @@ -318,10 +320,12 @@ usr/share/man/man1/gate$(major).1 \ usr/share/man/man1/gate.1 +ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS))) : # Finally strip, compress, and build the .debs dh_strip -a -Nlibgtkada$(major)-dev -Nlibgnomeada$(major)-dev dh_strip -plibgtkada$(major)-dev -X.a dh_strip -plibgnomeada$(major)-dev -X.a +endif dh_compress -a dh_fixperms -a dh_installdeb -a diff -u libgtkada2-2.8.1/patches/series libgtkada2-2.8.1/patches/series --- libgtkada2-2.8.1/patches/series +++ libgtkada2-2.8.1/patches/series @@ -6,0 +7 @@ +06-debugopt.patch only in patch2: unchanged: --- libgtkada2-2.8.1.orig/.pc/.version +++ libgtkada2-2.8.1/.pc/.version @@ -0,0 +1 @@ +2 only in patch2: unchanged: --- libgtkada2-2.8.1.orig/patches/06-debugopt.patch +++ libgtkada2-2.8.1/patches/06-debugopt.patch @@ -0,0 +1,23 @@ +Local patch: + +Replace hardcoded debugging and optimization flags with @[EMAIL PROTECTED] + +-- +Alain Kalker + + +Index: libgtkada2-2.8.1/src/Makefile.common.in +=================================================================== +--- libgtkada2-2.8.1.orig/src/Makefile.common.in 2007-02-19 08:14:50.000000000 +0100 ++++ libgtkada2-2.8.1/src/Makefile.common.in 2007-02-19 08:15:22.000000000 +0100 +@@ -3,8 +3,8 @@ + FPIC = @FPIC@ + PWD = $(shell pwd) + +-GNATFLAGS = -g -O2 -gnatafno +-GNATFLAGS_DEVEL = -O2 -gnatay -gnatwae -g -gnatec=$(PWD)/gnat.adc ++GNATFLAGS = @CFLAGS@ -gnatafno ++GNATFLAGS_DEVEL = @CFLAGS@ -gnatay -gnatwae -gnatec=$(PWD)/gnat.adc + + GNATMAKE = gnatmake + OS_SPECIFIC_LINK_OPTIONS = @OS_SPECIFIC_LINK_OPTIONS@