From owner-freebsd-java@FreeBSD.ORG Mon Oct 4 11:02:13 2004 Return-Path: Delivered-To: freebsd-java@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 487AB16A4EB for ; Mon, 4 Oct 2004 11:02:13 +0000 (GMT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3C3F143D4C for ; Mon, 4 Oct 2004 11:02:13 +0000 (GMT) (envelope-from owner-bugmaster@freebsd.org) Received: from freefall.freebsd.org (peter@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.11/8.12.11) with ESMTP id i94B2DP7031424 for ; Mon, 4 Oct 2004 11:02:13 GMT (envelope-from owner-bugmaster@freebsd.org) Received: (from peter@localhost) by freefall.freebsd.org (8.12.11/8.12.11/Submit) id i94B2Cu6031418 for freebsd-java@freebsd.org; Mon, 4 Oct 2004 11:02:12 GMT (envelope-from owner-bugmaster@freebsd.org) Date: Mon, 4 Oct 2004 11:02:12 GMT Message-Id: <200410041102.i94B2Cu6031418@freefall.freebsd.org> X-Authentication-Warning: freefall.freebsd.org: peter set sender to owner-bugmaster@freebsd.org using -f From: FreeBSD bugmaster To: freebsd-java@FreeBSD.org Subject: Current problem reports assigned to you X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 04 Oct 2004 11:02:13 -0000 Current FreeBSD problem reports Critical problems Serious problems S Submitted Tracker Resp. Description ------------------------------------------------------------------------------- o [2004/05/01] java/66151 java JBuilderX (sun jvm 1.4.1 builtin) crashes o [2004/07/13] java/68972 java unpack crashes during make install of lin o [2004/07/27] ports/69675 java Eclipse slow typing o [2004/08/30] java/71146 java jdk 1.4.2-p6 jboss,eclipse problems o [2004/09/09] java/71516 java jdk13 hotspot fails to build with recent o [2004/09/28] java/72151 java JVM crash on 5.2.1-R 6 problems total. Non-critical problems S Submitted Tracker Resp. Description ------------------------------------------------------------------------------- o [2002/10/18] ports/44251 java new port textproc/xml-stylebook: create J s [2003/09/16] ports/56928 java jce-aba port should install to $JAVA_HOME o [2004/02/14] java/62837 java linux-sun-jdk14 executables hang with COM o [2004/04/08] ports/65335 java [PATCH] java/jdk14: use bsd.java.mk for J o [2004/08/11] java/70292 java jdk14 compile problem 5 problems total. From owner-freebsd-java@FreeBSD.ORG Mon Oct 4 11:02:41 2004 Return-Path: Delivered-To: freebsd-java@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 052FC16A50E for ; Mon, 4 Oct 2004 11:02:41 +0000 (GMT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id DA3E843D45 for ; Mon, 4 Oct 2004 11:02:40 +0000 (GMT) (envelope-from owner-bugmaster@freebsd.org) Received: from freefall.freebsd.org (peter@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.11/8.12.11) with ESMTP id i94B2eEo031873 for ; Mon, 4 Oct 2004 11:02:40 GMT (envelope-from owner-bugmaster@freebsd.org) Received: (from peter@localhost) by freefall.freebsd.org (8.12.11/8.12.11/Submit) id i94B2eNt031867 for java@freebsd.org; Mon, 4 Oct 2004 11:02:40 GMT (envelope-from owner-bugmaster@freebsd.org) Date: Mon, 4 Oct 2004 11:02:40 GMT Message-Id: <200410041102.i94B2eNt031867@freefall.freebsd.org> X-Authentication-Warning: freefall.freebsd.org: peter set sender to owner-bugmaster@freebsd.org using -f From: FreeBSD bugmaster To: java@FreeBSD.org Subject: Current problem reports assigned to you X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 04 Oct 2004 11:02:41 -0000 Current FreeBSD problem reports Critical problems Serious problems S Submitted Tracker Resp. Description ------------------------------------------------------------------------------- o [2004/09/22] ports/72014 java Eclipse doesn't work (SigBus 10) if it ha 1 problem total. Non-critical problems From owner-freebsd-java@FreeBSD.ORG Mon Oct 4 23:54:06 2004 Return-Path: Delivered-To: freebsd-java@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 682E316A4CE for ; Mon, 4 Oct 2004 23:54:06 +0000 (GMT) Received: from p4.roq.com (ns1.ecoms.com [207.44.130.137]) by mx1.FreeBSD.org (Postfix) with ESMTP id D9C2543D1F for ; Mon, 4 Oct 2004 23:54:03 +0000 (GMT) (envelope-from mv@roq.com) Received: from p4.roq.com (localhost.roq.com [127.0.0.1]) by p4.roq.com (Postfix) with ESMTP id 925E34CCA5 for ; Mon, 4 Oct 2004 23:54:59 +0000 (GMT) Received: from [192.168.46.34] (s0D26.static.pacific.net.au [203.100.254.38]) by p4.roq.com (Postfix) with ESMTP id BF41C4CCA1 for ; Mon, 4 Oct 2004 23:54:58 +0000 (GMT) Message-ID: <4161E299.5080905@roq.com> Date: Tue, 05 Oct 2004 09:54:01 +1000 From: Michael Vince User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.7.2) Gecko/20040928 X-Accept-Language: en-us, en MIME-Version: 1.0 To: freebsd-java@freebsd.org References: <415BB528.9020702@gazeta.pl> In-Reply-To: <415BB528.9020702@gazeta.pl> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-AV-Checked: ClamAV using ClamSMTP Subject: Java support for AMD64 Options X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 04 Oct 2004 23:54:06 -0000 I am going to be setting up a JSP server and I have ordered a Dell 1850 EMT64 x2 Intel server with 4gigs of ram, if there is no native java support what other options are there? can I run the 32bit native java for FreeBSD or how well would the linux java run under load on it? If I have to I will install regular 32bit FreeBSD on the server but it would be nice to be able to run the AMD64 port of the OS. Any comments would be appreciated > Hi, > Anyone can tell me what is status of native java port for AMD64 platform? > Same question should consider eclipse - native java required - so if > we get native java for AMD64, we should get running all other stuff > such as eclipse, tomcat, or it's much more problematic? > I would appreciate any URLs answering this problem, could be private > if this question isn't in focus now. > > Best Regards, > Lee > _______________________________________________ > freebsd-java@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-java > To unsubscribe, send any mail to "freebsd-java-unsubscribe@freebsd.org" From owner-freebsd-java@FreeBSD.ORG Tue Oct 5 02:54:35 2004 Return-Path: Delivered-To: freebsd-java@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5234416A4CE for ; Tue, 5 Oct 2004 02:54:35 +0000 (GMT) Received: from mta3.srv.hcvlny.cv.net (mta3.srv.hcvlny.cv.net [167.206.5.69]) by mx1.FreeBSD.org (Postfix) with ESMTP id 734F943D53 for ; Tue, 5 Oct 2004 02:54:34 +0000 (GMT) (envelope-from fred@automaticrootbeer.com) Received: from [192.168.0.3] (ool-43503fcd.dyn.optonline.net [67.80.63.205]) by mta3.srv.hcvlny.cv.net (iPlanet Messaging Server 5.2 HotFix 1.25 (built Mar 3 2004)) with ESMTP id <0I5300ETHC2X9C@mta3.srv.hcvlny.cv.net> for freebsd-java@FreeBSD.org; Mon, 04 Oct 2004 22:54:34 -0400 (EDT) Date: Mon, 04 Oct 2004 22:54:33 -0400 From: Fred McCann To: freebsd-java@FreeBSD.org Message-id: MIME-version: 1.0 X-Mailer: Apple Mail (2.619) Content-type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Content-transfer-encoding: 7BIT Subject: Error building jdk-1.4.2p6_4 X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 05 Oct 2004 02:54:35 -0000 I'm building jdk-1.4.2p6_4 on FreeBSD 4.10 and I can't get past this: Sanity check passed. /bin/mkdir -p ../build/bsd-i586/hotspot-i586/tmp (cd ./../build/bsd-i586/hotspot-i586/tmp; \ gmake -f /usr/ports/java/jdk14/work/hotspot/build/bsd/Makefile product \ HOTSPOT_BUILD_VERSION=1.4.2-p6-fmccann_06_oct_2004_02_49 GAMMADIR=/usr/ports/java/jdk14/work/hotspot ; ) gmake[1]: Entering directory `/usr/ports/java/jdk14/work/control/build/bsd-i586/hotspot-i586/tmp' sh /usr/ports/java/jdk14/work/hotspot/build/bsd/makefiles/buildATree.sh compiler2 /usr/ports/java/jdk14/work/hotspot bsd i486 (cd bsd_i486_compiler2/product; gmake) gmake[2]: Entering directory `/usr/ports/java/jdk14/work/control/build/bsd-i586/hotspot-i586/tmp/ bsd_i486_compiler2/product' Unexpected Signal : 10 occurred at PC=0x2827FF74 Function=other_values_do__8BlockEndPFPP11Instruction_v+0x38 Library=/usr/local/jdk1.4.2/jre/lib/i386/client/libjvm.so Current Java thread: Dynamic libraries: 0x8048000 /usr/local/jdk1.4.2/bin/javac 0x2806c000 /usr/lib/libc_r.so.4 0x28123000 /usr/local/jdk1.4.2/jre/lib/i386/client/libjvm.so 0x28651000 /usr/lib/libstdc++.so.3 0x28696000 /usr/lib/libm.so.2 0x286b1000 /usr/local/jdk1.4.2/jre/lib/i386/native_threads/libhpi.so 0x286bf000 /usr/local/jdk1.4.2/jre/lib/i386/libverify.so 0x286da000 /usr/local/jdk1.4.2/jre/lib/i386/libjava.so 0x286fb000 /usr/local/jdk1.4.2/jre/lib/i386/libzip.so 0x2804e000 /usr/libexec/ld-elf.so.1 Heap at VM Abort: Heap def new generation total 576K, used 240K [0x2c4a0000, 0x2c540000, 0x2c980000) eden space 512K, 47% used [0x2c4a0000, 0x2c4dc378, 0x2c520000) from space 64K, 0% used [0x2c520000, 0x2c520000, 0x2c530000) to space 64K, 0% used [0x2c530000, 0x2c530000, 0x2c540000) tenured generation total 7552K, used 0K [0x2c980000, 0x2d0e0000, 0x304a0000) the space 7552K, 0% used [0x2c980000, 0x2c980000, 0x2c980200, 0x2d0e0000) compacting perm gen total 4096K, used 1112K [0x304a0000, 0x308a0000, 0x344a0000) the space 4096K, 27% used [0x304a0000, 0x305b6280, 0x305b6400, 0x308a0000) Local Time = Wed Oct 6 02:49:24 2004 Elapsed Time = 0 # # HotSpot Virtual Machine Error : 10 # Error ID : 4F530E43505002F1 # Please report this error to # freebsd-java@FreeBSD.org mailing list # # Java VM: Java HotSpot(TM) Client VM (1.4.2-p6-fmccann_05_oct_2004_01_18 mixed mode) # # An error report file has been saved as hs_err_pid7014.log. # Please refer to the file for further information. # gmake[2]: *** [../generated/MakeDeps.class] Abort trap (core dumped) gmake[2]: Leaving directory `/usr/ports/java/jdk14/work/control/build/bsd-i586/hotspot-i586/tmp/ bsd_i486_compiler2/product' gmake[1]: *** [product] Error 2 gmake[1]: Leaving directory `/usr/ports/java/jdk14/work/control/build/bsd-i586/hotspot-i586/tmp' gmake: *** [product] Error 2 *** Error code 2 Stop in /usr/ports/java/jdk14. Does anyone have any ideas? I couldn't find anything in the list archive. - Fred McCann From owner-freebsd-java@FreeBSD.ORG Thu Oct 7 00:24:34 2004 Return-Path: Delivered-To: freebsd-java@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4B14516A50A for ; Thu, 7 Oct 2004 00:24:34 +0000 (GMT) Received: from gldis.ca (constans.gldis.ca [66.11.169.73]) by mx1.FreeBSD.org (Postfix) with ESMTP id E022C43D41 for ; Thu, 7 Oct 2004 00:24:33 +0000 (GMT) (envelope-from gldisater@gldis.ca) Received: from [127.0.0.1] (localhost [127.0.0.1]) by gldis.ca (8.12.11/8.12.11) with ESMTP id i970WMAT019888 for ; Wed, 6 Oct 2004 20:32:23 -0400 (EDT) (envelope-from gldisater@gldis.ca) From: Jeremy Faulkner To: java@freebsd.org Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="=-JdpDbwPGl1GL/81J+EyO" Message-Id: <1097094403.90638.7.camel@ocean-deep.gldis.ca> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.4.6 Date: Wed, 06 Oct 2004 20:27:07 +0000 X-Virus-Scanned: ClamAV version 'clamd / ClamAV version 0.65', clamav-milter version '0.60p' Subject: Azureus port skeleton for testing X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 07 Oct 2004 00:24:34 -0000 --=-JdpDbwPGl1GL/81J+EyO Content-Type: text/plain Content-Transfer-Encoding: quoted-printable This is just a first cut to test the functionality of the port. The start-up script "Azureus" still has hardcoded variables that need to be sorted out. I am also aware that some graphics do not display properly in GUI, namely the "torrent health" and completion status bars (file and pieces tabs). This port requires the Eclipse port because of eclipse's SWT libraries, and will continue to do so until a separate port can be created for the SWT libraries needed by both Eclipse and Azureus (and any other Java application that uses SWT). http://www.gldis.ca/gldisater/Azureus.tar.gz --=20 Jeremy Faulkner --=-JdpDbwPGl1GL/81J+EyO Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.6 (FreeBSD) iD8DBQBBZFUDfb0Lle2MIEIRArDEAKCGY0iym0fpJ3dS6+QsKYOhZKCh2wCgwRBT 2P3GjELWSBHqmA+JKtat60g= =E6+F -----END PGP SIGNATURE----- --=-JdpDbwPGl1GL/81J+EyO-- From owner-freebsd-java@FreeBSD.ORG Thu Oct 7 13:50:49 2004 Return-Path: Delivered-To: freebsd-java@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 426FD16A5F2 for ; Thu, 7 Oct 2004 13:50:49 +0000 (GMT) Received: from arabica.esil.univ-mrs.fr (arabica.esil.univ-mrs.fr [139.124.41.108]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5D66143D39 for ; Thu, 7 Oct 2004 13:50:48 +0000 (GMT) (envelope-from herve.quiroz@esil.univ-mrs.fr) Received: from arabica.esil.univ-mrs.fr (localhost.esil.univ-mrs.fr [127.0.0.1])i97DolHJ000774; Thu, 7 Oct 2004 15:50:47 +0200 (CEST) (envelope-from herve.quiroz@esil.univ-mrs.fr) Received: (from rv@localhost) by arabica.esil.univ-mrs.fr (8.13.1/8.12.10/Submit) id i97Dok3p000773; Thu, 7 Oct 2004 15:50:46 +0200 (CEST) (envelope-from herve.quiroz@esil.univ-mrs.fr) X-Authentication-Warning: arabica.esil.univ-mrs.fr: rv set sender to herve.quiroz@esil.univ-mrs.fr using -f Date: Thu, 7 Oct 2004 15:50:46 +0200 From: Herve Quiroz To: Jeremy Faulkner Message-ID: <20041007135046.GA99606@arabica.esil.univ-mrs.fr> Mail-Followup-To: Jeremy Faulkner , java@freebsd.org References: <1097094403.90638.7.camel@ocean-deep.gldis.ca> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1097094403.90638.7.camel@ocean-deep.gldis.ca> User-Agent: Mutt/1.4.2.1i cc: java@freebsd.org Subject: Re: Azureus port skeleton for testing X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 07 Oct 2004 13:50:49 -0000 Jeremy, I am glad to see someone finally made a port for this tool. That would indeed be a good addition to the ports collection. I will test your port when I get some free time (I need to install eclipse as well). However, I a few comments by just looking at the files. First, the Makefile itself: - A quick portlint give me the following output: WARN: Makefile: "EXTRACT_ONLY" has to appear earlier. WARN: Makefile: "DISTFILES" has to appear earlier. WARN: Makefile: "EXTRACT_ONLY" has to appear earlier. 0 fatal errors and 3 warnings found. - It is generally not a good idea to install JAR files in ${PREFIX}/bin. As suggested in [1], a Java application should install its data files (such as its JAR files) in an overriden ${DATADIR} which is set to ${JAVASHAREDIR}/${PORTNAME}. - Not mandatory: if you install the JAR file in ${DATADIR} and wish to remove the entire pkg-plist file, just add the following line in Makefile: PLIST_FILES= bin/Azureus %%DATADIR%%/Azureus2.jar - The right way to install a script shell is by using ${INSTALL_SCRIPT}. To install a JAR file OTOH, I would suggest ${INSTALL_DATA} rather than just ${CP} to let the port install the file with correct owner, group and modes. - "Date created: October 6, 2003" <- I think you mean 2004 ;) - I don't have any pointer to justify my point but I am pretty sure porters are encouraged to name their ports using lowercase characters. I could be wrong so please anyone tell me if this is not the case. Second, looking at your shell script in files/, there are some things you may improve: - Too many paths are hardcoded. You may use %%PREFIX%% for instance and perform some sed magic in 'do-configure' target. Don't forget to differenciate ${PREFIX} (for everything related to the current port) and ${LOCALBASE} (for everything else, such as Eclipse stuff). - The same goes for the path of the 'java' executable. You could rather use the same kind of sed magic to replace %%JAVA%% with ${JAVA}. That said, this is just a quick review as I don't have enough time ATM. If nobody else handles this port by the next days, I will probably handle this myself. In such a case, you may send a PR and CC me. We're still under ports CVS tree freeze ATM, so there's no hurry here. Herve [1] Porter's Handbook - Using Java - Best practices http://www.freebsd.org/doc/en_US.ISO8859-1/books/porters-handbook/using-java.html#JAVA-BEST-PRACTICES On Wed, Oct 06, 2004 at 08:27:07PM +0000, Jeremy Faulkner wrote: > This is just a first cut to test the functionality of the port. The > start-up script "Azureus" still has hardcoded variables that need to be > sorted out. I am also aware that some graphics do not display properly > in GUI, namely the "torrent health" and completion status bars (file and > pieces tabs). > > This port requires the Eclipse port because of eclipse's SWT libraries, > and will continue to do so until a separate port can be created for the > SWT libraries needed by both Eclipse and Azureus (and any other Java > application that uses SWT). > > http://www.gldis.ca/gldisater/Azureus.tar.gz > -- > Jeremy Faulkner From owner-freebsd-java@FreeBSD.ORG Thu Oct 7 14:17:57 2004 Return-Path: Delivered-To: freebsd-java@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D2F8716A4CE for ; Thu, 7 Oct 2004 14:17:57 +0000 (GMT) Received: from smtpout03-04.mesa1.secureserver.net (smtpout03-04.mesa1.secureserver.net [64.202.165.74]) by mx1.FreeBSD.org (Postfix) with SMTP id 703AC43D2D for ; Thu, 7 Oct 2004 14:17:57 +0000 (GMT) (envelope-from mriem@manorrock.org) Received: (qmail 19764 invoked from network); 7 Oct 2004 14:17:56 -0000 Received: from unknown (69.68.107.139) by smtpout03-04.mesa1.secureserver.net (64.202.165.74) with ESMTP; 07 Oct 2004 14:17:56 -0000 From: "Manfred N. Riem" To: Date: Thu, 7 Oct 2004 09:17:58 -0500 Organization: Manor 'n Rock MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook, Build 11.0.6353 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180 Thread-Index: AcSseHIMIP03BeT5RKmjWPJL9iRuYA== Message-Id: <20041007141757.703AC43D2D@mx1.FreeBSD.org> Subject: Questions about porting a Java application X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: mriem@manorrock.org List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 07 Oct 2004 14:17:57 -0000 Hi all, I have a Java application that I want to port and I have read the better part of [1]. The application that I want to port unfortunately has a specific structure that does NOT make it possible to adhere to the practices. What is the general thing to do in such a case? As far as I can tell from the Win32 starter script for the application it insists on an application directory with the following structure INSTALL-DIR | +---- bin | +---- doc | +---- lib Any advice about this? Kind regards, Manfred Riem mriem@manorrock.org [1] Porter's Handbook - Using Java - Best practices http://www.freebsd.org/doc/en_US.ISO8859-1/books/porters-handbook/using-java .html#JAVA-BEST-PRACTICES From owner-freebsd-java@FreeBSD.ORG Thu Oct 7 14:34:49 2004 Return-Path: Delivered-To: freebsd-java@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 62CEE16A4CE for ; Thu, 7 Oct 2004 14:34:49 +0000 (GMT) Received: from arabica.esil.univ-mrs.fr (arabica.esil.univ-mrs.fr [139.124.41.108]) by mx1.FreeBSD.org (Postfix) with ESMTP id C65C043D41 for ; Thu, 7 Oct 2004 14:34:48 +0000 (GMT) (envelope-from herve.quiroz@esil.univ-mrs.fr) Received: from arabica.esil.univ-mrs.fr (localhost.esil.univ-mrs.fr [127.0.0.1])i97EYerC014069; Thu, 7 Oct 2004 16:34:40 +0200 (CEST) (envelope-from herve.quiroz@esil.univ-mrs.fr) Received: (from rv@localhost) by arabica.esil.univ-mrs.fr (8.13.1/8.12.10/Submit) id i97EYYY1014068; Thu, 7 Oct 2004 16:34:34 +0200 (CEST) (envelope-from herve.quiroz@esil.univ-mrs.fr) X-Authentication-Warning: arabica.esil.univ-mrs.fr: rv set sender to herve.quiroz@esil.univ-mrs.fr using -f Date: Thu, 7 Oct 2004 16:34:34 +0200 From: Herve Quiroz To: "Manfred N. Riem" Message-ID: <20041007143434.GA14005@arabica.esil.univ-mrs.fr> Mail-Followup-To: "Manfred N. Riem" , java@freebsd.org References: <20041007141757.703AC43D2D@mx1.FreeBSD.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20041007141757.703AC43D2D@mx1.FreeBSD.org> User-Agent: Mutt/1.4.2.1i cc: java@freebsd.org Subject: Re: Questions about porting a Java application X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 07 Oct 2004 14:34:49 -0000 Manfred, I don't know if the INSTALLDIR/doc is mandatory, but I'll assume it's not. Hence, I would do the following: - install 'INSTALL-DIR/bin/*' in ${JAVASHAREDIR}/${PORTNAME}/bin/ - install 'INSTALL-DIR/lib/*' in ${JAVASHAREDIR}/${PORTNAME}/lib/ - install 'INSTALL-DIR/*' in ${JAVASHAREDIR}/${PORTNAME}/ - install 'INSTALL-DIR/doc/*' in ${DOCSDIR}/ - symlink ${JAVASHAREDIR}/${PORTNAME}/bin/ in ${PREFIX}/bin. I'm not sure about the last point though. Maybe it's even more simple to install directly in ${PREFIX}/bin if the application allows it. Herve On Thu, Oct 07, 2004 at 09:17:58AM -0500, Manfred N. Riem wrote: > Hi all, > > I have a Java application that I want to port and I have read the better > part of [1]. The application that I want to port unfortunately has a > specific structure that does NOT make it possible to adhere to the > practices. What is the general thing to do in such a case? > > As far as I can tell from the Win32 starter script for the application it > insists on an application > directory with the following structure > > INSTALL-DIR > | > +---- bin > | > +---- doc > | > +---- lib > > Any advice about this? > > Kind regards, > Manfred Riem > mriem@manorrock.org > > [1] Porter's Handbook - Using Java - Best practices > http://www.freebsd.org/doc/en_US.ISO8859-1/books/porters-handbook/using-java > .html#JAVA-BEST-PRACTICES From owner-freebsd-java@FreeBSD.ORG Thu Oct 7 15:20:17 2004 Return-Path: Delivered-To: freebsd-java@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 99C6516A4CE for ; Thu, 7 Oct 2004 15:20:17 +0000 (GMT) Received: from smtp.infracaninophile.co.uk (happy-idiot-talk.infracaninophile.co.uk [81.2.69.218]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3ADD343D46 for ; Thu, 7 Oct 2004 15:20:16 +0000 (GMT) (envelope-from m.seaman@infracaninophile.co.uk) Received: from happy-idiot-talk.infracaninophile.co.uk (localhost.infracaninophile.co.uk [IPv6:::1])i97FKCN5000976 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Thu, 7 Oct 2004 16:20:12 +0100 (BST) (envelope-from matthew@happy-idiot-talk.infracaninophile.co.uk) Received: (from matthew@localhost)i97FKBJb000975; Thu, 7 Oct 2004 16:20:11 +0100 (BST) (envelope-from matthew) Date: Thu, 7 Oct 2004 16:20:11 +0100 From: Matthew Seaman To: Jeremy Faulkner , java@freebsd.org Message-ID: <20041007152011.GA691@happy-idiot-talk.infracaninophile.co.uk> References: <1097094403.90638.7.camel@ocean-deep.gldis.ca> <20041007135046.GA99606@arabica.esil.univ-mrs.fr> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="xHFwDpU9dbj6ez1V" Content-Disposition: inline In-Reply-To: <20041007135046.GA99606@arabica.esil.univ-mrs.fr> User-Agent: Mutt/1.4.2.1i X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-1.5.6 (smtp.infracaninophile.co.uk [IPv6:::1]); Thu, 07 Oct 2004 16:20:12 +0100 (BST) X-Virus-Scanned: clamd / ClamAV version devel-20040904, clamav-milter version 0.75l on smtp.infracaninophile.co.uk X-Virus-Status: Clean X-Spam-Status: No, hits=-4.8 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=2.64 X-Spam-Checker-Version: SpamAssassin 2.64 (2004-01-11) on happy-idiot-talk.infracaninophile.co.uk Subject: Re: Azureus port skeleton for testing X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 07 Oct 2004 15:20:17 -0000 --xHFwDpU9dbj6ez1V Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Oct 07, 2004 at 03:50:46PM +0200, Herve Quiroz wrote: > - I don't have any pointer to justify my point but I am pretty sure > porters are encouraged to name their ports using lowercase characters. > I could be wrong so please anyone tell me if this is not the case. These are not hard and fast rules, but generally directories in the ports tree should be all lower case, eg: databases/phpmyadmin while package names, $LATEST_LINK can be mixed case, but should start with a lower case letter, eg: phpMyAdmin-2.5.7.1_1 (See http://www.freebsd.org/doc/en_US.ISO8859-1/books/porters-handbook/makefile-= naming.html#PORTING-PKGNAME) Although see ports/68896 -- ports with mixed case names may not show up in 'make search' under 5.x Cheers, Matthew --=20 Dr Matthew J Seaman MA, D.Phil. 26 The Paddocks Savill Way PGP: http://www.infracaninophile.co.uk/pgpkey Marlow Tel: +44 1628 476614 Bucks., SL7 1TH UK --xHFwDpU9dbj6ez1V Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.6 (FreeBSD) iD8DBQFBZV6riD657aJF7eIRAnJRAKCLpCyylFWmqwlVBoFt8Xnq7oYxXgCeJS2P O+IMDbHHd/RD6rN8JSme7Rc= =Gffn -----END PGP SIGNATURE----- --xHFwDpU9dbj6ez1V-- From owner-freebsd-java@FreeBSD.ORG Fri Oct 8 02:40:49 2004 Return-Path: Delivered-To: freebsd-java@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E3A8B16A4CE; Fri, 8 Oct 2004 02:40:49 +0000 (GMT) Received: from gldis.ca (constans.gldis.ca [66.11.169.73]) by mx1.FreeBSD.org (Postfix) with ESMTP id 603EA43D53; Fri, 8 Oct 2004 02:40:49 +0000 (GMT) (envelope-from gldisater@gldis.ca) Received: from [127.0.0.1] (localhost [127.0.0.1]) by gldis.ca (8.12.11/8.12.11) with ESMTP id i982mYrn038080; Thu, 7 Oct 2004 22:48:35 -0400 (EDT) (envelope-from gldisater@gldis.ca) From: Jeremy Faulkner To: Herve Quiroz In-Reply-To: <20041007135046.GA99606@arabica.esil.univ-mrs.fr> References: <1097094403.90638.7.camel@ocean-deep.gldis.ca> <20041007135046.GA99606@arabica.esil.univ-mrs.fr> Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="=-JQ9knkFrTdmK4XBFyitP" Message-Id: <1097189014.37262.15.camel@ocean-deep.gldis.ca> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.4.6 Date: Thu, 07 Oct 2004 22:43:35 +0000 X-Virus-Scanned: ClamAV version 'clamd / ClamAV version 0.65', clamav-milter version '0.60p' cc: java@freebsd.org Subject: Re: Azureus port skeleton for testing X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 08 Oct 2004 02:40:50 -0000 --=-JQ9knkFrTdmK4XBFyitP Content-Type: text/plain Content-Transfer-Encoding: quoted-printable On Thu, 2004-10-07 at 13:50, Herve Quiroz wrote: > First, the Makefile itself: >=20 > - A quick portlint give me the following output: >=20 > WARN: Makefile: "EXTRACT_ONLY" has to appear earlier. > WARN: Makefile: "DISTFILES" has to appear earlier. > WARN: Makefile: "EXTRACT_ONLY" has to appear earlier. > 0 fatal errors and 3 warnings found. portlint and I have never gotten along well together, until now. > - It is generally not a good idea to install JAR files in ${PREFIX}/bin. > As suggested in [1], a Java application should install its data files > (such as its JAR files) in an overriden ${DATADIR} which is set to > ${JAVASHAREDIR}/${PORTNAME}. Ok. > Second, looking at your shell script in files/, there are some things > you may improve: >=20 > - Too many paths are hardcoded. You may use %%PREFIX%% for instance and > perform some sed magic in 'do-configure' target. Don't forget to > differenciate ${PREFIX} (for everything related to the current port) > and ${LOCALBASE} (for everything else, such as Eclipse stuff). >=20 > - The same goes for the path of the 'java' executable. You could rather > use the same kind of sed magic to replace %%JAVA%% with ${JAVA}. >=20 Yes, I know there are a lot of hard coded values in the script, I even said as much in my email to the list. The new version of the port that I just uploaded (10:30 EST Thursday) should be better, and should allow the use of the motif SWT. I'll test the motif SWT during the weekend. > That said, this is just a quick review as I don't have enough time ATM. > If nobody else handles this port by the next days, I will probably > handle this myself. In such a case, you may send a PR and CC me. We're > still under ports CVS tree freeze ATM, so there's no hurry here. >=20 > Herve I'll create the PR when I'm satisfied with the port. I think the currently available version is Pretty Damn Close To Done (TM). --=20 Jeremy Faulkner --=-JQ9knkFrTdmK4XBFyitP Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.6 (FreeBSD) iD8DBQBBZcaWfb0Lle2MIEIRAjfjAJ9L3/rh6btKi7a0hfoEEoNneWGfbACeOCih A+IgUOHq8y2MFugYrPs+QUk= =5RiG -----END PGP SIGNATURE----- --=-JQ9knkFrTdmK4XBFyitP-- From owner-freebsd-java@FreeBSD.ORG Sat Oct 9 22:06:45 2004 Return-Path: Delivered-To: freebsd-java@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D02B316A4CE for ; Sat, 9 Oct 2004 22:06:45 +0000 (GMT) Received: from gldis.ca (constans.gldis.ca [66.11.169.73]) by mx1.FreeBSD.org (Postfix) with ESMTP id 76DE043D41 for ; Sat, 9 Oct 2004 22:06:45 +0000 (GMT) (envelope-from gldisater@gldis.ca) Received: from [127.0.0.1] (localhost [127.0.0.1]) by gldis.ca (8.12.11/8.12.11) with ESMTP id i99MEN9U049524 for ; Sat, 9 Oct 2004 18:14:24 -0400 (EDT) (envelope-from gldisater@gldis.ca) From: Jeremy Faulkner To: java@freebsd.org In-Reply-To: <1097094403.90638.7.camel@ocean-deep.gldis.ca> References: <1097094403.90638.7.camel@ocean-deep.gldis.ca> Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="=-5PCflR0tgBwBC0lMBNdu" Message-Id: <1097345389.76311.23.camel@ocean-deep.gldis.ca> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.4.6 Date: Sat, 09 Oct 2004 18:09:50 +0000 X-Virus-Scanned: ClamAV version 'clamd / ClamAV version 0.65', clamav-milter version '0.60p' Subject: Re: Azureus port skeleton for testing X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 09 Oct 2004 22:06:45 -0000 --=-5PCflR0tgBwBC0lMBNdu Content-Type: text/plain Content-Transfer-Encoding: quoted-printable On Wed, 2004-10-06 at 20:27, Jeremy Faulkner wrote: > This is just a first cut to test the functionality of the port. The > start-up script "Azureus" still has hardcoded variables that need to be > sorted out. I am also aware that some graphics do not display properly > in GUI, namely the "torrent health" and completion status bars (file and > pieces tabs). >=20 > This port requires the Eclipse port because of eclipse's SWT libraries, > and will continue to do so until a separate port can be created for the > SWT libraries needed by both Eclipse and Azureus (and any other Java > application that uses SWT). >=20 > http://www.gldis.ca/gldisater/Azureus.tar.gz I just uploaded a new version of the port: http://www.gldis.ca/gldisater/azureus.tar.gz As the name suggests, the portname is now lowercase. This version works with both motif and gtk SWT installations. The improper display of graphics that I reported in my original post occurs only in the gtk SWT. If there are no complaints about this version of the port I will open a PR something next week. --=20 Jeremy Faulkner --=-5PCflR0tgBwBC0lMBNdu Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.6 (FreeBSD) iD8DBQBBaCltfb0Lle2MIEIRAkQkAJsFhiOr47oeHSymWa3/+avd2/iCbgCaAzR+ bQvFL5HXWIOAjPGyczcp4SE= =4jpG -----END PGP SIGNATURE----- --=-5PCflR0tgBwBC0lMBNdu-- From owner-freebsd-java@FreeBSD.ORG Sat Oct 9 23:12:00 2004 Return-Path: Delivered-To: freebsd-java@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 540EA16A4CE for ; Sat, 9 Oct 2004 23:12:00 +0000 (GMT) Received: from grebe.mail.pas.earthlink.net (grebe.mail.pas.earthlink.net [207.217.120.46]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1047243D2D for ; Sat, 9 Oct 2004 23:11:59 +0000 (GMT) (envelope-from rperry4@earthlink.net) Received: from dialup-4.250.42.210.dial1.weehawken1.level3.net ([4.250.42.210] helo=sphinx.alpha.domain) by grebe.mail.pas.earthlink.net with esmtp (Exim 3.33 #1) id 1CGQNZ-0007hM-00 for freebsd-java@freebsd.org; Sat, 09 Oct 2004 16:11:58 -0700 Received: from sphinx.alpha.domain (localhost [127.0.0.1]) by sphinx.alpha.domain (8.12.9p2/8.12.9) with ESMTP id i99NF910060498 for ; Sat, 9 Oct 2004 19:15:10 -0400 (EDT) (envelope-from rperry4@earthlink.net) Received: (from rperry@localhost) by sphinx.alpha.domain (8.12.9p2/8.12.9/Submit) id i99NF6ca060497 for freebsd-java@freebsd.org; Sat, 9 Oct 2004 19:15:06 -0400 (EDT) (envelope-from rperry4@earthlink.net) X-Authentication-Warning: sphinx.alpha.domain: rperry set sender to rperry4@earthlink.net using -f Date: Sat, 9 Oct 2004 19:15:03 -0400 From: Bob Perry To: freebsd-java@freebsd.org Message-ID: <20041009231503.GA60414@sphinx.alpha.domain> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4.2.1i Subject: LoadPlugin Issue with JDK1.3.1 and Mozilla 1.7.2 X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 09 Oct 2004 23:12:00 -0000 I don't develop Java apps for FreeBSD but use the JDK ports because I thought it necessary in order to view java apps in the browsers (?). I currently run FreeBSD 4.9 and experiment with Mozilla 1.7.2, Firefox 0.9.3, and Galeon 1.3.17. All three browsers have been crashing consistently and I suspect that part of the problem may lie with the error message I receive stating: LoadPlugin: Failed to initialize shared library /usr/local/ jdk1.3.1/jre/plugin/i386/ns600/libjavaplugin_oji.so [/usr/local/ jdk1.3.1/jre/plugin/i386/ns600/libjavaplugin_oji.so: Undefined symbol "_vt$16nsQueryInterface"] I had a chance to review the archives and it appears as though I should use the Java Development Kit 1.4.1. Is this correct? If so, are there any hints or secrets you might want to pass along before I port the linux version in? Since I'm not a member of the list, could you cc me? Thanks much. Bob Perry -- I've learned that whatever hits the fan will not be evenly distributed. FreeBSD 4.9-RELEASE-p2 #0