Using Ubuntu (& Debian) pbuilder with Sun Java¶
If your package needs a version of Java from Sun to build you will get into problems building it with pbuilder as the license question will not be shown (and hence it can not be answered).
Examples of Build Depends that fails without this small patch:
Build-Depends: debhelper (>= 4.0.0), j2sdk1.4 | java2-compiler Build-Depends: debhelper (>= 4.0.0), sun-java6-jdk | java2-compiler
The patch attached to this page (against pbuilder version: 0.161ubuntu2) allows pbuilder to be used.
Note you have to list muliverse as a component in pbuilderrc as well e.g.
COMPONENTS="main universe restricted multiverse"
or for Debian you will need non-free and contrib as well
COMPONENTS="main contrib non-free"
Patches: