[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Permission to upload gnat-4.1 with 3 new binary packages?



I've just applied a patch to gnat-4.1 that builds 3 new binary
packages containing debugging symbols for libraries.  Neither the
libraries themselves nor the compiler tools are affected.  I hereby
request permission to upload to unstable, and to allow gnat-4.1 and
related packages to migrate to testing after the usual 10-day period.

Patch below (I'll change UNRELEASED to unstable in the changelog
before uploading, obviously).

-- 
Ludovic Brenta.

=== debian/rules.d/binary-ada.mk
==================================================================
--- debian/rules.d/binary-ada.mk	(/local/gcccvs/tags/sid/gcc-4.1-4.1.1ds2-21)	(revision 1778)
+++ debian/rules.d/binary-ada.mk	(/local/gcccvs/branches/etch/gcc-4.1)	(revision 1778)
@@ -10,8 +10,11 @@
 p_gbase	= gnat-$(GNAT_VERSION)-base
 p_gnat	= gnat-$(GNAT_VERSION)
 p_lgnat	= libgnat-$(GNAT_VERSION)
+p_lgnat_dbg = $(p_lgnat)-dbg
 p_lgnatvsn = libgnatvsn$(GNAT_VERSION)
+p_lgnatvsn_dbg = $(p_lgnatvsn)-dbg
 p_lgnatprj = libgnatprj$(GNAT_VERSION)
+p_lgnatprj_dbg = $(p_lgnatprj)-dbg
 p_gnatd	= $(p_gnat)-doc
 
 d_gbase	= debian/$(p_gbase)
@@ -79,7 +82,7 @@
 
 	debian/dh_rmemptydirs -p$(p_lgnat)
 
-	dh_strip -p$(p_lgnat)
+	dh_strip -p$(p_lgnat) --dbg-package=$(p_lgnat)
 	dh_compress -p$(p_lgnat)
 	dh_fixperms -p$(p_lgnat)
 	b=libgnat; \
@@ -108,6 +111,14 @@
 	trap '' 1 2 3 15; touch $@; mv $(install_stamp)-tmp $(install_stamp)
 
 
+$(binary_stamp)-libgnatdbg: $(binary_stamp)-libgnat
+	dh_compress -p$(p_lgnat_dbg)
+	dh_fixperms -p$(p_lgnat_dbg)
+	dh_gencontrol -p$(p_lgnat_dbg) -- -v$(DEB_VERSION) $(common_substvars)
+	dh_installdeb -p$(p_lgnat_dbg)
+	dh_md5sums -p$(p_lgnat_dbg)
+	dh_builddeb -p$(p_lgnat_dbg)
+	touch $@
 
 $(binary_stamp)-libgnatvsn:
 	: # libgnatvsn-dev
@@ -119,7 +130,7 @@
 	dh_link -plibgnatvsn-dev \
 	   usr/lib/libgnatvsn.so.$(GNAT_VERSION) \
 	   usr/lib/libgnatvsn.so
-	dh_strip -plibgnatvsn-dev -X.a
+	dh_strip -plibgnatvsn-dev -X.a --keep-debug
 	dh_fixperms -plibgnatvsn-dev
 	debian/dh_doclink -plibgnatvsn-dev $(p_gbase)
 	dh_gencontrol -plibgnatvsn-dev -- -v$(DEB_VERSION) $(common_substvars)
@@ -129,7 +140,7 @@
 	: # libgnatvsn
 	dh_movefiles -p$(p_lgnatvsn) usr/lib/libgnatvsn.so.$(GNAT_VERSION)
 	debian/dh_doclink -p$(p_lgnatvsn) $(p_gbase)
-	dh_strip -p$(p_lgnatvsn)
+	dh_strip -p$(p_lgnatvsn) --dbg-package=$(p_lgnatvsn)
 	dh_makeshlibs -p$(p_lgnatvsn) -V '$(p_lgnatvsn) (>= $(DEB_VERSION))'
 	cat debian/$(p_lgnatvsn)/DEBIAN/shlibs >> debian/shlibs.local
 	dh_shlibdeps -p$(p_lgnatvsn)
@@ -140,6 +151,15 @@
 
 	touch $@
 
+$(binary_stamp)-libgnatvsndbg: $(binary_stamp)-libgnatvsn
+	dh_compress -p$(p_lgnatvsn_dbg)
+	dh_fixperms -p$(p_lgnatvsn_dbg)
+	dh_gencontrol -p$(p_lgnatvsn_dbg) -- -v$(DEB_VERSION) $(common_substvars)
+	dh_installdeb -p$(p_lgnatvsn_dbg)
+	dh_md5sums -p$(p_lgnatvsn_dbg)
+	dh_builddeb -p$(p_lgnatvsn_dbg)
+	touch $@
+
 $(binary_stamp)-libgnatprj:
 	: # libgnatprj-dev
 	dh_movefiles -plibgnatprj-dev usr/lib/ada/adalib/gnatprj
@@ -150,7 +170,7 @@
 	dh_link -plibgnatprj-dev \
 	   usr/lib/libgnatprj.so.$(GNAT_VERSION) \
 	   usr/lib/libgnatprj.so
-	dh_strip -plibgnatprj-dev -X.a
+	dh_strip -plibgnatprj-dev -X.a --keep-debug
 	dh_fixperms -plibgnatprj-dev
 	debian/dh_doclink -plibgnatprj-dev $(p_gbase)
 	dh_gencontrol -plibgnatprj-dev -- -v$(DEB_VERSION) $(common_substvars)
@@ -160,7 +180,7 @@
 	: # libgnatprj
 	dh_movefiles -p$(p_lgnatprj) usr/lib/libgnatprj.so.$(GNAT_VERSION)
 	debian/dh_doclink -p$(p_lgnatprj) $(p_gbase)
-	dh_strip -p$(p_lgnatprj)
+	dh_strip -p$(p_lgnatprj) --dbg-package=$(p_lgnatprj)
 	dh_makeshlibs -p$(p_lgnatprj) -V '$(p_lgnatprj) (>= $(DEB_VERSION))'
 	cat debian/$(p_lgnatprj)/DEBIAN/shlibs >> debian/shlibs.local
 	dh_shlibdeps -p$(p_lgnatprj)
@@ -171,10 +191,19 @@
 
 	touch $@
 
+$(binary_stamp)-libgnatprjdbg: $(binary_stamp)-libgnatprj
+	dh_compress -p$(p_lgnatprj_dbg)
+	dh_fixperms -p$(p_lgnatprj_dbg)
+	dh_gencontrol -p$(p_lgnatprj_dbg) -- -v$(DEB_VERSION) $(common_substvars)
+	dh_installdeb -p$(p_lgnatprj_dbg)
+	dh_md5sums -p$(p_lgnatprj_dbg)
+	dh_builddeb -p$(p_lgnatprj_dbg)
+	touch $@
+
 ifeq ($(with_libgnat),yes)
-$(binary_stamp)-ada: $(install_stamp) $(binary_stamp)-libgnat
-$(binary_stamp)-ada: $(binary_stamp)-libgnatvsn
-$(binary_stamp)-ada: $(binary_stamp)-libgnatprj
+$(binary_stamp)-ada: $(install_stamp) $(binary_stamp)-libgnat $(binary_stamp)-libgnatdbg
+$(binary_stamp)-ada: $(binary_stamp)-libgnatvsn $(binary_stamp)-libgnatvsndbg
+$(binary_stamp)-ada: $(binary_stamp)-libgnatprj $(binary_stamp)-libgnatprjdbg
 else
 $(binary_stamp)-ada: $(install_stamp)
 endif
=== debian/control.m4
==================================================================
--- debian/control.m4	(/local/gcccvs/tags/sid/gcc-4.1-4.1.1ds2-21)	(revision 1778)
+++ debian/control.m4	(/local/gcccvs/branches/etch/gcc-4.1)	(revision 1778)
@@ -983,6 +983,16 @@
 Description: Runtime library for GNU Ada applications
  Library needed for GNU Ada applications linked against the shared library.
 
+Package: libgnat`'-GNAT_V-dbg
+Section: libdevel
+Architecture: any
+Priority: extra
+Depends: libgnat`'-GNAT_V
+Recommends: gnat-gdb (>= 6.4)
+Description: Runtime library for GNU Ada applications
+ Debugging symbols for the library needed for GNU Ada applications linked
+ against the shared library.
+
 Package: libgnatvsn-dev
 Section: libdevel
 Architecture: any
@@ -1007,6 +1017,19 @@
  .
  This package contains the run-time shared library.
 
+Package: libgnatvsn`'GNAT_V-dbg
+Architecture: any
+Priority: extra
+Section: libdevel
+Depends: libgnatvsn`'GNAT_V
+Recommends: gnat-gdb (>= 6.4)
+Description: GNU Ada compiler version library
+ This library exports selected components of GNAT, the GNU Ada compiler, for use
+ in other packages, most notably ASIS and ASIS-based packages.  It is licensed
+ under the GNAT-Modified GPL, allowing to link proprietary programs with it.
+ .
+ This package contains the debugging symbols for the run-time shared library.
+
 Package: libgnatprj-dev
 Section: libdevel
 Architecture: any
@@ -1039,6 +1062,23 @@
  distributed at all.
  .
  This package contains the run-time shared library.
+
+Package: libgnatprj`'GNAT_V-dbg
+Architecture: any
+Priority: extra
+Section: libdevel
+Depends: libgnatprj`'GNAT_V
+Recommends: gnat-gdb (>= 6.4)
+Description: GNU Ada Project Manager
+ GNAT, the GNU Ada compiler, uses project files to organise source and object
+ files in large-scale development efforts.  Several other tools, such as
+ ASIS tools (package asis-programs) and GNAT Programming Studio (package
+ gnat-gps) also use project files.  This library contains the necessary
+ support; it was built from GNAT itself.  It is licensed under the pure GPL;
+ all programs that use it must also be distributed under the GPL, or not
+ distributed at all.
+ .
+ This package contains the debugging symbols for the run-time shared library.
 ')`'dnl libgnat
 
 ifenabled(`lib64gnat',`
=== debian/changelog
==================================================================
--- debian/changelog	(/local/gcccvs/tags/sid/gcc-4.1-4.1.1ds2-21)	(revision 1778)
+++ debian/changelog	(/local/gcccvs/branches/etch/gcc-4.1)	(revision 1778)
@@ -1,3 +1,12 @@
+gnat-4.1 (4.1.1-22) UNRELEASED; urgency=low
+
+  [Kevin Brown]
+  * debian/control.m4, debian/rules.d/binary-ada.mk: provide new packages
+    containing debugging symbols for Ada libraries: libgnat-4.1-dbg,
+    libgnatprj4.1-dbg, and libgnatvsn4.1-dbg.
+
+ -- Ludovic Brenta <lbrenta@debian.org>  Wed, 10 Jan 2007 23:48:30 +0100
+
 gcc-4.1 (4.1.1ds2-21) unstable; urgency=high
 
   * Enable -pthread for GNU/Hurd (Michael Banck). Closes: #400031.



Reply to: