X-Recipient: archive-cygwin AT delorie DOT com X-SWARE-Spam-Status: No, hits=-2.5 required=5.0 tests=AWL,BAYES_00,SPF_PASS X-Spam-Check-By: sourceware.org Message-ID: <4B4AB4AC.1010005@users.sourceforge.net> Date: Sun, 10 Jan 2010 23:18:36 -0600 From: "Yaakov (Cygwin/X)" User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.1.5) Gecko/20091204 Thunderbird/3.0 MIME-Version: 1.0 To: cygwin AT cygwin DOT com Subject: Re: Java alternatives (was Re: Updated: stable compiler package gcc4-4.3.4-3) References: <4B39942B DOT 5040900 AT users DOT sourceforge DOT net> <4B4A9CFF DOT 70802 AT gmail DOT com> In-Reply-To: <4B4A9CFF.70802@gmail.com> Content-Type: multipart/mixed; boundary="------------080003030604030401060301" Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com --------------080003030604030401060301 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit On 10/01/2010 21:37, Dave Korn wrote: > BTW I'm going to ship AWT with the next GCJ, if that's of any interest to > anyone. It builds and appears to be passing the mauve testsuite, so that's > probably worth chucking over the wall and letting people start playing with. Good idea, but a heads-up; with Classpath, I found that a patch was necessary to fix Awt fonts, and Swing which uses them extensively: http://cygwin-ports.svn.sourceforge.net/viewvc/cygwin-ports/ports/trunk/java/classpath/0.98-awt.patch > I've got no objection to splitting up the single big monolithic set of > alternatives that I currently group under master "gcj" into a bunch of > subpackages if that's what you're saying? Yes, the reason being that other packages which provide JDK-compatible commands don't provide *all* of them; e.g. gcj is not command-line compatible with 'javac', fastjar is just 'jar', classpath doesn't provide a 'java' but jamvm/cacao do; jdk6-langtools provides only compilers, etc. BTW, gjavah and the other tools are going to work in the next release, right? > If you'd like to rewrite the current postinstall/preremove scripts to > do what you want, that might be the most explicit way to show me what you mean > and I'll happily PTC them (by which I mean sure, anything sane I'll throw in > and use it!) Attached. > Argh, and thank you for pointing that out. It appears that I lost all the x > perms on all the scripts in my last build, probably caused by my using win32 > editors (followed by d2u) when adjusting them. I've spotted that and fixed it > manually a few times but I'd better script it to avoid future accidents; it'd > be an easy thing to add to the cygport. Append their basenames to SRC_URI and dobin in src_install. Yaakov --------------080003030604030401060301 Content-Type: text/plain; name="gcc4-java.postinstall" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="gcc4-java.postinstall" #!/bin/bash /usr/sbin/update-alternatives \ --install "/usr/bin/gcj.exe" "gcj" "/usr/bin/gcj-4.exe" 40 \ --slave "/usr/bin/gc-analyze.exe" "gc-analyze" "/usr/bin/gc-analyze-4.exe" \ --slave "/usr/bin/gcj-dbtool.exe" "gcj-dbtool" "/usr/bin/gcj-dbtool-4.exe" \ --slave "/usr/bin/gcjh.exe" "gcjh" "/usr/bin/gcjh-4.exe" \ --slave "/usr/bin/gij.exe" "gij" "/usr/bin/gij-4.exe" \ --slave "/usr/bin/i686-pc-cygwin-gcj.exe" "i686-pc-cygwin-gcj" "/usr/bin/i686-pc-cygwin-gcj-4.exe" \ --slave "/usr/bin/jv-convert.exe" "jv-convert" "/usr/bin/jv-convert-4.exe" \ --slave "/usr/share/man/man1/gc-analyze.1.gz" "gc-analyze.1.gz" "/usr/share/man/man1/gc-analyze-4.1.gz" \ --slave "/usr/share/man/man1/gcj.1.gz" "gcj.1.gz" "/usr/share/man/man1/gcj-4.1.gz" \ --slave "/usr/share/man/man1/gcj-dbtool.1.gz" "gcj-dbtool.1.gz" "/usr/share/man/man1/gcj-dbtool-4.1.gz" \ --slave "/usr/share/man/man1/gcjh.1.gz" "gcjh.1.gz" "/usr/share/man/man1/gcjh-4.1.gz" \ --slave "/usr/share/man/man1/gij.1.gz" "gij.1.gz" "/usr/share/man/man1/gij-4.1.gz" \ --slave "/usr/share/man/man1/jv-convert.1.gz" "jv-convert.1.gz" "/usr/share/man/man1/jv-convert-4.1.gz" /usr/sbin/update-alternatives \ --install "/usr/bin/jar" "jar" "/usr/bin/gjar-4.exe" 40 \ --slave "/usr/share/man/man1/jar.1.gz" "jar.1.gz" "/usr/share/man/man1/gjar-4.1.gz" # update version for each release! /usr/sbin/update-alternatives \ --install "/usr/bin/java" "java" "/usr/bin/gij-4.exe" 40 \ --slave "/usr/lib/tools.jar" "tools.jar" "/usr/share/java/libgcj-tools-4.3.4.jar" /usr/sbin/update-alternatives \ --install "/usr/bin/javah" "javah" "/usr/bin/gjavah-4.exe" 40 \ --slave "/usr/share/man/man1/javah.1.gz" "javah.1.gz" "/usr/share/man/man1/gjavah-4.1.gz" /usr/sbin/update-alternatives \ --install "/usr/bin/javap" "javap" "/usr/bin/jcf-dump-4.exe" 40 \ --slave "/usr/share/man/man1/jcf-dump.1.gz" "jcf-dump.1.gz" "/usr/share/man/man1/jcf-dump-4.1.gz" /usr/sbin/update-alternatives \ --install "/usr/bin/appletviewer" "appletviewer" "/usr/bin/gappletviewer-4.exe" 40 \ --slave "/usr/bin/jarsigner" "jarsigner" "/usr/bin/gjarsigner-4.exe" \ --slave "/usr/bin/keytool" "keytool" "/usr/bin/gkeytool-4.exe" \ --slave "/usr/bin/native2ascii" "native2ascii" "/usr/bin/gnative2ascii-4.exe" \ --slave "/usr/bin/orbd" "orbd" "/usr/bin/gorbd-4.exe" \ --slave "/usr/bin/rmic" "rmic" "/usr/bin/grmic-4.exe" \ --slave "/usr/bin/rmid" "rmid" "/usr/bin/grmid-4.exe" \ --slave "/usr/bin/rmiregistry" "rmiregistry" "/usr/bin/grmiregistry-4.exe" \ --slave "/usr/bin/serialver" "serialver" "/usr/bin/gserialver-4.exe" \ --slave "/usr/bin/tnameserv" "tnameserv" "/usr/bin/gtnameserv-4.exe" \ --slave "/usr/share/man/man1/appletviewer.1.gz" "appletviewer.1.gz" "/usr/share/man/man1/gappletviewer-4.1.gz" \ --slave "/usr/share/man/man1/jarsigner.1.gz" "jarsigner.1.gz" "/usr/share/man/man1/gjarsigner-4.1.gz" \ --slave "/usr/share/man/man1/keytool.1.gz" "keytool.1.gz" "/usr/share/man/man1/gkeytool-4.1.gz" \ --slave "/usr/share/man/man1/native2ascii.1.gz" "native2ascii.1.gz" "/usr/share/man/man1/gnative2ascii-4.1.gz" \ --slave "/usr/share/man/man1/orbd.1.gz" "orbd.1.gz" "/usr/share/man/man1/gorbd-4.1.gz" \ --slave "/usr/share/man/man1/rmic.1.gz" "rmic.1.gz" "/usr/share/man/man1/grmic-4.1.gz" \ --slave "/usr/share/man/man1/rmid.1.gz" "rmid.1.gz" "/usr/share/man/man1/grmid-4.1.gz" \ --slave "/usr/share/man/man1/rmiregistry.1.gz" "rmiregistry.1.gz" "/usr/share/man/man1/grmiregistry-4.1.gz" \ --slave "/usr/share/man/man1/serialver.1.gz" "serialver.1.gz" "/usr/share/man/man1/gserialver-4.1.gz" \ --slave "/usr/share/man/man1/tnameserv.1.gz" "tnameserv.1.gz" "/usr/share/man/man1/gtnameserv-4.1.gz" --------------080003030604030401060301 Content-Type: text/plain; name="gcc4-java.preremove" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="gcc4-java.preremove" #!/bin/bash /usr/sbin/update-alternatives --remove "gcj" "/usr/bin/gcj-4.exe" /usr/sbin/update-alternatives --remove "jar" "/usr/bin/gjar-4.exe" /usr/sbin/update-alternatives --remove "java" "/usr/bin/gij-4.exe" /usr/sbin/update-alternatives --remove "javah" "/usr/bin/gjavah-4.exe" /usr/sbin/update-alternatives --remove "javap" "/usr/bin/jcf-dump-4.exe" /usr/sbin/update-alternatives --remove "appletviewer" "/usr/bin/gappletviewer-4.exe" --------------080003030604030401060301 Content-Type: text/plain; charset=us-ascii -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple --------------080003030604030401060301--