java-gcj-compat-dev: Missing Depends on gcj-4.3

Damien Raude-Morvan drazzib at drazzib.com
Thu Jun 11 19:33:53 UTC 2009


severity 532292 important
stop

Hi,

In fact all Debian Java packages using default-jdk-builddep (or java-gcj-
compat-dev) are failing to build in pbuilder (or schroot/sbuild).
[so upgrading this bug to important]

Every time same error is printed in builder log :
----------------------------
Setting up java-gcj-compat-dev (1.0.80-5) ...                                                                       
update-alternatives: error: alternative path /usr/lib/jvm/java-
gcj/bin/jarsigner doesn't exist.
----------------------------

In my chroot, "/usr/lib/jvm/java-gcj/bin/jarsigner" is a dangling symlink to 
"/usr/bin/gjarsigner-4.3".

This file is theoricaly provided by "gcj-4.3" package but here is the 
dependencies chain providing "gcj-4.3" :
----------------------------
Package: java-gcj-compat-dev
Depends: java-gcj-compat (= 1.0.80-5), gcj, ecj-gcj (>= 3.3.0+0728), gjdoc (>= 
0.7.8), gappletviewer-4.3
Recommends: libgcj9-src

Package: java-gcj-compat
Depends: java-gcj-compat-headless (= 1.0.80-5), libgcj9-0-awt
Suggests: libgcj9-src, libgcj9-dbg

Package: java-gcj-compat-headless
Depends: java-common (>= 0.25), gij (>= 4:4.3), fastjar, libgcj-bc (>= 4.3), 
libgcj9-jar (>= 4.3), libmx4j-java (>= 3.0.1), libgcj-common (>= 1:4.4.0-2)
Recommends: java-gcj-compat

Package: libgcj9-0-awt
Depends: gcj-4.3-base (>= 4.3.3-8)

Package: libgcj9-src
Depends: gcj-4.3-base (>= 4.3.3-1), gcj-4.3 (>= 4.3.3-1), libgcj9-jar (= 
4.3.3-8)
----------------------------

As you can see, it's only a *Recommends* :
-> java-gcj-compat-dev which [Recommends: libgcj9-src] which [Depends: 
gcj-4.3]

So pbuilder or sbuild won't install it - by default - during package build.

And in "java-gcj-compat-dev.postinst" :
update-alternatives --quiet --install /usr/bin/jarsigner jarsigner 
/usr/lib/jvm/java-gcj/bin/jarsigner 1043...

Since dpkg 1.15.0 [1] (uploaded to unstable on May, 21th 2009), update-
alternative has been rewrote from scratch and may not allow this kind of 
"alternative to dangling symlink" ?

IMHO, java-gcj-compat-dev is expected to install all gcj-4.3 tools and should 
Depends on it.

[1] http://packages.debian.org/changelogs/pool/main/d/dpkg/current/changelog
Cheers,
-- 
Damien Raude-Morvan / www.drazzib.com

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.alioth.debian.org/pipermail/pkg-java-maintainers/attachments/20090611/711f2dd2/attachment.pgp>


More information about the pkg-java-maintainers mailing list