[to list as well as Russ!]
On 3 January 2012 19:17, Russ Allbery <r...@debian.org> wrote: > David Gerard <dger...@gmail.com> writes: >> To clarify: these are binaries that the previous 6u26 packages linked >> from /etc/alternatives, which running the present Oracle 6u30 JDK >> through Cedric's java-package doesn't link. > Per previous discussion on the list, apparently apt is rather obsolete and > has been subsumed into new javac functionality as of Java 6. I'm not sure > about the other ones. apt still exists in 6u30, so should be kept for compatibility (the entire point of this nuisance). java_vm is in jre/bin/ rather than bin/ . So it needs special casing. I've added a whole function for this purpose to keep it in the same style ... Here's a (rough) patch for Cédric's consideration. This only handles Oracle JDK6, I haven't looked at Oracle JRE6/JRE7/JDK7, it could probably be done better. The only file patched is lib/oracle-j2sdk1.6/install . *** oracle-j2sdk1.6/install.old 2012-01-04 12:02:02.707914416 +0000 --- oracle-j2sdk1.6/install 2012-01-04 12:42:19.817241440 +0000 *************** *** 24,50 **** --- 24,64 ---- "$j2se_base/bin/$program" "$priority" } + # alternative <program> in JRE without man page + function program_alternative_jre_no_man() { + local program="$1" + update-alternatives \ + --install "/usr/bin/$program" "$program" \ + "$j2se_base/jre/bin/$program" "$priority" + } + # kinit, klist, and ktab not installed at this # time; handling of /etc/krb5.conf not addressed # JRE-specific alternatives with JDKs cannot be # handled by our current approach program_alternative appletviewer + program_alternative apt program_alternative_no_man ControlPanel program_alternative extcheck + program_alternative_no_man HtmlConverter program_alternative idlj program_alternative jar program_alternative jarsigner program_alternative java + program_alternative_jre_no_man java_vm program_alternative javac program_alternative javadoc program_alternative javah program_alternative javap program_alternative javaws program_alternative jconsole + program_alternative_no_man jcontrol program_alternative jdb + program_alternative jhat program_alternative jinfo program_alternative jmap program_alternative jps + program_alternative jrunscript program_alternative jsadebugd program_alternative jstack program_alternative jstat *************** *** 57,66 **** --- 71,84 ---- program_alternative rmic program_alternative rmid program_alternative rmiregistry + program_alternative schemagen program_alternative serialver program_alternative servertool program_alternative tnameserv program_alternative unpack200 + program_alternative wsgen + program_alternative wsimport + program_alternative xjc # derive the architecture-specific # directory for the plugin - d. -- To UNSUBSCRIBE, email to debian-java-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/caj0tu1gc_ylis_cmfv7jtc1qbfs-rareh5hcjz+sw3wpdrw...@mail.gmail.com