Bug#691063: java-package: generate package needs more provides

arne anka debian at ginguppin.de
Sat Oct 20 21:10:35 UTC 2012


Package: java-package
Version: 0.50+nmu1
Severity: normal

Dear Maintainer,

after generating a java6 package from 6.0.37 (oracle-j2sdk1.6_1.6.0+update37_amd64.deb) I attempted to remove the old sun* packages and the never used and only by force installed openjdk*
packages (I don't care if debian recommends, them, I just don't want openjdk).

but trying to remove those ...

aptitude purge openjdk-6-jre-headless sun-java5-jdk sun-java5-demo sun-java5-bin sun-java5-doc sun-java5-jre openjdk-6-jre-headless sun-java6-jre sun-java6-bin sun-java6-jdk sun-java6-source

results in aptitide trying to remove another batch of packages because
certain virtual packages are missing the:

The following packages have unmet dependencies:
 junit4 : Depends: default-jre-headless but it is not going to be
installed. or
                   java5-runtime-headless which is a virtual package.
 openjdk-6-jre-lib : Depends: openjdk-6-jre-headless (>= 6b17) but it is
not going to be installed.
 libgeronimo-interceptor-3.0-spec-java : Depends: default-jre-headless
but it is not going to be installed. or
                                                  java5-runtime-headless
which is a virtual package.
 sun-java6-plugin : Depends: sun-java6-bin (>= 6.33-1) but it is not
going to be installed.
 libreoffice-base : Depends: default-jre but it is not going to be
installed. or
                             gcj-jre but it is not going to be
installed. or
                             java-gcj-compat which is a virtual package.
or
                             openjdk-6-jre but it is not going to be
installed. or
                             openjdk-7-jre but it is not going to be
installed. or
                             sun-java5-jre but it is not going to be
installed. or
                             sun-java6-jre but it is not going to be
installed. or
                             java5-runtime which is a virtual package.
or
                             jre which is a virtual package.
 ia32-sun-java6-bin : Depends: sun-java6-jre (>= 6.33-1) but it is not
going to be installed.
 mediathekview : Depends: default-jre but it is not going to be
installed. or
                          java6-runtime which is a virtual package. or
                          java7-runtime which is a virtual package.
 ca-certificates-java : Depends: openjdk-6-jre-headless (>=
6b16-1.6.1-2) but it is not going to be installed. or
                                 java6-runtime-headless which is a
virtual package.
 latexdraw : Depends: openjdk-7-jre but it is not going to be installed.
or
                      openjdk-6-jre but it is not going to be installed.
or
                      sun-java6-jre but it is not going to be installed.
 sun-java6-fonts : Depends: sun-java6-jre (>= 6.33-1) but it is not
going to be installed.
 libreoffice-filter-mobiledev : Depends: default-jre but it is not going
to be installed. or
                                         gcj-jre but it is not going to
be installed. or
                                         java-gcj-compat which is a
virtual package. or
                                         openjdk-6-jre but it is not
going to be installed. or
                                         openjdk-7-jre but it is not
going to be installed. or
                                         sun-java5-jre but it is not
going to be installed. or
                                         sun-java6-jre but it is not
going to be installed. or
                                         java5-runtime which is a
virtual package. or
                                         jre which is a virtual package.
 libbatik-java : Depends: default-jre-headless but it is not going to be
installed. or
                          java5-runtime-headless which is a virtual
package. or
                          java6-runtime-headless which is a virtual
package. or
                          java7-runtime-headless which is a virtual
package.
 jlex : Depends: default-jre but it is not going to be installed. or
                 java6-runtime which is a virtual package.
 umlet : Depends: openjdk-6-jdk but it is not going to be installed. or
                  java6-sdk which is a virtual package.
 maven : Depends: default-jre (>= 1:1.5) but it is not going to be
installed. or
                  default-jre-headless (>= 1:1.5) but it is not going to
be installed. or
                  java5-runtime which is a virtual package. or
                  java5-runtime-headless which is a virtual package.
The following actions will resolve these dependencies:

      Remove the following packages:         
1)      ca-certificates-java                 
2)      fop                                  
3)      ia32-sun-java6-bin                   
4)      jlex                                 
5)      junit4                               
6)      latexdraw                            
7)      libaether-java                       
8)      libbatik-java                        
9)      libcdi-api-java                      
10)     libdoxia-java                        
11)     libdoxia-sitetools-java              
12)     libfop-java                          
13)     libgeronimo-interceptor-3.0-spec-java
14)     libmaven-plugin-tools-java           
15)     libmaven-reporting-impl-java         
16)     libmaven-scm-java                    
17)     libmaven2-core-java                  
18)     libplexus-containers1.5-java         
19)     libreoffice                          
20)     libreoffice-base                     
21)     libreoffice-filter-mobiledev         
22)     libreoffice-report-builder-bin       
23)     libsisu-ioc-java                     
24)     libwagon-java                        
25)     libwagon2-java                       
26)     maven                                
27)     mediathekview                        
28)     openjdk-6-jre-lib                    
29)     openoffice.org                       
30)     openoffice.org-base                  
31)     openoffice.org-filter-mobiledev      
32)     sun-java6-fonts                      
33)     sun-java6-plugin                     
34)     umlet                                

well, except the specified packages I don't want to remove any of these
packages and if I am not mistaken, none of these would have to go if the generated oracle-j2sdk1.6_1.6.0+update37_amd64.deb would provide

java5-runtime-headless java6-runtime java6-sdk sun-java6-jre jre

according to #684993 this should be fixed, but looking at the generated
package's Provides section that's obviously not the case:

Provides: j2re1.6, j2sdk1.6, java-browser-plugin, java-compiler,
java-runtime, java-runtime-headless, java-sdk, java-virtual-machine,
java2-compiler, java2-runtime, java2-runtime-headless, java2-sdk


-- System Information:
Debian Release: wheezy/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 3.2.0-4-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_DK.UTF-8, LC_CTYPE=en_DK.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages java-package depends on:
ii  debhelper   9.20120909
ii  fakeroot    1.18.4-2
ii  libasound2  1.0.25-4
ii  libx11-6    2:1.5.0-1
ii  unzip       6.0-7

Versions of packages java-package recommends:
ii  dpkg-dev  1.16.9
ii  gcc       4:4.7.2-1

Versions of packages java-package suggests:
pn  openjdk-6-jre  <none>
pn  openjdk-7-jre  <none>

-- debconf information:
* java-package/postinst-note:



More information about the pkg-java-maintainers mailing list