tags 278105 + patch
thanks

The attached patch implements the addtion of a new 'libgcj-dev' package
to gcc-defaults.

Please look at Bug#300353 as an example of the problems which occur
because a 'libgcj-dev' package is missing.

Regards
Andreas Jochens

diff -urN ../tmp-orig/gcc-defaults-1.19/debian/control.m4 ./debian/control.m4
--- ../tmp-orig/gcc-defaults-1.19/debian/control.m4     2004-03-28 
17:39:22.000000000 +0200
+++ ./debian/control.m4 2005-03-25 15:24:27.001706869 +0100
@@ -102,6 +102,17 @@
  .
  This is a dependency package providing the default GNU Java compiler.SSW
 
+Package: libgcj-dev
+Priority: optional
+Architecture: any
+Depends: LIBGCJ-dev (>= EPOCH:CV_CPP), gcj (>= EPOCH:CV_CPP)
+Description: Java development headers and static library for use with gcj 
+ These are the development headers and static libraries that go along with 
+ the gcj front end to gcc. libgcj includes parts of the Java Class Libraries, 
+ plus glue to connect the libraries to the compiler and the underlying OS.
+ .
+ This is a dependency package providing the default Java development 
headers.SSW
+
 Package: gij
 Priority: optional
 Architecture: any
diff -urN ../tmp-orig/gcc-defaults-1.19/debian/rules ./debian/rules
--- ../tmp-orig/gcc-defaults-1.19/debian/rules  2004-11-13 22:41:32.000000000 
+0100
+++ ./debian/rules      2005-03-25 15:26:43.589097435 +0100
@@ -76,6 +76,8 @@
 REQV_GIJ       = $(REQV_33)
 REQV_GPC       = $(REQV_GPC_33)
 
+LIBGCJ         = libgcj4
+
 EPOCH=4
 OS_NAME        := Linux
 packages := chill c++ fortran java objc pascal
@@ -182,6 +184,7 @@
           -DREQV_GIJ='$(REQV_GIJ)' \
           -DREQV_GPC='$(REQV_GPC)' \
           -DREQV_GPCDEP='$(REQV_GPCDEP)' \
+          -DLIBGCJ='$(LIBGCJ)' \
                debian/control.m4 > debian/control.tmp2
        uniq debian/control.tmp2 > debian/control.tmp
        rm -f debian/control.tmp2
@@ -355,6 +358,9 @@
          /usr/share/man/man1/gcj-wrapper-$(PV_GCJ).1.gz 
/usr/share/man/man1/gcj-wrapper.1.gz \
          /usr/share/info/gcj-$(PV_GCJ).info.gz /usr/share/info/gcj.info.gz
 
+       : # libgcj-dev
+       dh_installdirs -plibgcj-dev usr/bin /usr/share/man/man1 usr/share/doc
+
        : # gij
        dh_installdirs -pgij usr/bin /usr/share/man/man1 usr/share/doc
        dh_link -pgij \
@@ -429,6 +435,7 @@
 endif
 ifeq (java, $(findstring java, $(packages)))
        dh_gencontrol -pgcj   -u-v$(EPOCH):$(CV_GCJ)
+       dh_gencontrol -plibgcj-dev   -u-v$(EPOCH):$(CV_GCJ)
        dh_gencontrol -pgij   -u-v$(EPOCH):$(CV_GIJ)
 endif
 ifeq (chill, $(findstring chill, $(packages)))


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to