From nobody@FreeBSD.org  Tue Jul 12 07:35:28 2011
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id 82983106564A
	for <freebsd-gnats-submit@FreeBSD.org>; Tue, 12 Jul 2011 07:35:28 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from red.freebsd.org (red.freebsd.org [IPv6:2001:4f8:fff6::22])
	by mx1.freebsd.org (Postfix) with ESMTP id 596878FC15
	for <freebsd-gnats-submit@FreeBSD.org>; Tue, 12 Jul 2011 07:35:28 +0000 (UTC)
Received: from red.freebsd.org (localhost [127.0.0.1])
	by red.freebsd.org (8.14.4/8.14.4) with ESMTP id p6C7ZSOm095398
	for <freebsd-gnats-submit@FreeBSD.org>; Tue, 12 Jul 2011 07:35:28 GMT
	(envelope-from nobody@red.freebsd.org)
Received: (from nobody@localhost)
	by red.freebsd.org (8.14.4/8.14.4/Submit) id p6C7ZSPl095397;
	Tue, 12 Jul 2011 07:35:28 GMT
	(envelope-from nobody)
Message-Id: <201107120735.p6C7ZSPl095397@red.freebsd.org>
Date: Tue, 12 Jul 2011 07:35:28 GMT
From: Pavel Timofeev <timp87@gmail.com>
To: freebsd-gnats-submit@FreeBSD.org
Subject: Can't install java/icedtea-web
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         158826
>Category:       ports
>Synopsis:       Can't install java/icedtea-web
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-java
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Jul 12 07:40:07 UTC 2011
>Closed-Date:    Wed Aug 31 20:19:38 UTC 2011
>Last-Modified:  Wed Aug 31 20:19:38 UTC 2011
>Originator:     Pavel Timofeev
>Release:        FreeBSD 8.2 RELEASE
>Organization:
>Environment:
FreeBSD timbsd.ocs.ru 8.2-RELEASE-p2 FreeBSD 8.2-RELEASE-p2 #0: Sun May 29 16:33:39 MSD 2011     mox@timbsd.xxx.ru:/usr/obj/usr/src/sys/TIMBSD  i386
>Description:
Hello!
Can't install java/icedtea-web

[root@timbsd]# portmaster java/icedtea-web
.......
===>  Installing for icedtea-web-1.1
===>   Generating temporary packing list
===>  Checking if java/icedtea-web already installed
gmake[1]: Entering directory `/usr/ports/java/icedtea-web/work/icedtea-web-1.1'
/bin/sh /usr/ports/java/icedtea-web/work/icedtea-web-1.1/install-sh -d /usr/local/bin /usr/local/share/icedtea-web/ /usr/local/lib
install  -s -o root -g wheel -m 555 /usr/ports/java/icedtea-web/work/icedtea-web-1.1/plugin/icedteanp/IcedTeaPlugin.so /usr/local/lib
/usr/local/bin/ginstall /usr/ports/java/icedtea-web/work/icedtea-web-1.1/liveconnect/lib/classes.jar /usr/local/share/icedtea-web/plugin.jar
/usr/local/bin/ginstall /usr/ports/java/icedtea-web/work/icedtea-web-1.1/netx.build/lib/classes.jar /usr/local/share/icedtea-web/netx.jar
install  -s -o root -g wheel -m 555 launcher.build/javaws /usr/local/bin
strip: /usr/local/bin/javaws: File format not recognized
install: wait: No such file or directory
gmake[1]: *** [install-exec-local] Error 70
gmake[1]: Leaving directory `/usr/ports/java/icedtea-web/work/icedtea-web-1.1'
gmake: *** [install-am] Error 2
*** Error code 2

Stop in /usr/ports/java/icedtea-web.
*** Error code 1

Stop in /usr/ports/java/icedtea-web.

===>>> Installation of icedtea-web-1.1 (java/icedtea-web) failed
===>>> Aborting update


===>>> You can restart from the point of failure with this command line:
       portmaster <flags> java/icedtea-web


[root@timbsd /usr/ports/java/icedtea-web]# make showconfig
===> The following configuration options are available for icedtea-web-1.1:
     PLUGIN=on "Enable the browser plug-in"
     RHINO=off "Add support for Proxy Auto Config files"
     TEST=off "Add support for running regression test"
===> Use 'make config' to modify these settings

[root@timbsd /usr/ports/java/openjdk6]# pkg_info | grep openjdk6
openjdk6-b23        Oracle's Java 6 virtual machine release under the GPL v2

[root@timbsd /usr/ports/java/openjdk6]# make showconfig
===> The following configuration options are available for openjdk6-b23:
     DEBUG=off "Enable legacy debugging support"
     FASTDEBUG=off "Include fastdebug build"
     ICEDTEA=on "Apply additional patches from IcedTea"
     IPV6=off "Enable IPv6 support"
     POLICY=on "Install the Unlimited Strength Policy Files"
     SOUND=on "Enable sound support"
     TEST=off "Add support for running regression test"
===> Use 'make config' to modify these settings


>How-To-Repeat:

>Fix:


>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports-bugs->freebsd-java 
Responsible-Changed-By: edwin 
Responsible-Changed-When: Tue Jul 12 07:40:18 UTC 2011 
Responsible-Changed-Why:  
Over to maintainer (via the GNATS Auto Assign Tool) 

http://www.freebsd.org/cgi/query-pr.cgi?pr=158826 

From: Guido Falsi <mad@madpilot.net>
To: bug-followup@FreeBSD.org, timp87@gmail.com
Cc:  
Subject: Re: ports/158826: Can't install java/icedtea-web
Date: Tue, 12 Jul 2011 12:53:26 +0200

 --KFztAG8eRSV9hGtP
 Content-Type: text/plain; charset=us-ascii
 Content-Disposition: inline
 
 The port is trying to strip shell scripts, which fails.
 
 Attached patch fixes this by patching the Makefie not to strip shell
 scripts.
 
 -- 
 Guido Falsi <mad@madpilot.net>
 
 --KFztAG8eRSV9hGtP
 Content-Type: text/x-diff; charset=us-ascii
 Content-Disposition: attachment; filename="ice.diff"
 
 diff -ruN icedtea-web.old/Makefile icedtea-web/Makefile
 --- icedtea-web.old/Makefile	2011-07-12 12:49:34.017275844 +0200
 +++ icedtea-web/Makefile	2011-07-12 12:49:54.507304408 +0200
 @@ -2,7 +2,7 @@
  # Date created:		July 11, 2011
  # Whom:			Jung-uk Kim <jkim@FreeBSD.org>
  #
 -# $FreeBSD: ports/java/icedtea-web/Makefile,v 1.3 2011/07/11 23:13:16 jkim Exp $
 +# $FreeBSD: ports/java/icedtea-web/Makefile,v 1.1 2011/07/11 20:50:42 jkim Exp $
  #
  
  PORTNAME=	icedtea-web
 @@ -12,7 +12,6 @@
  
  MAINTAINER=	java@FreeBSD.org
  COMMENT=	A free Java plug-in and Java Web Start for OpenJDK
 -LICENSE=	GPLv2
  
  GNU_CONFIGURE=	yes
  USE_GMAKE=	yes
 @@ -21,7 +20,7 @@
  USE_XORG=	x11
  
  OPTIONS=	PLUGIN "Enable the browser plug-in" on \
 -		RHINO "Add support for Proxy Auto Config files" off \
 +		RHINO "Enable support for Proxy Auto Config files" off \
  		TEST "Add support for running regression test" off
  
  MAN1=		javaws.1
 @@ -65,7 +64,6 @@
  
  .if defined(WITH_RHINO)
  CONFIGURE_ARGS+=--with-rhino=${JAVASHAREDIR}/rhino/rhino.jar
 -BUILD_DEPENDS+=	${JAVASHAREDIR}/rhino/rhino.jar:${PORTSDIR}/lang/rhino
  RUN_DEPENDS+=	${JAVASHAREDIR}/rhino/rhino.jar:${PORTSDIR}/lang/rhino
  .else
  CONFIGURE_ARGS+=--with-rhino=no
 diff -ruN icedtea-web.old/files/patch-Makefile.in icedtea-web/files/patch-Makefile.in
 --- icedtea-web.old/files/patch-Makefile.in	2011-07-12 12:49:34.016285206 +0200
 +++ icedtea-web/files/patch-Makefile.in	2011-07-12 12:49:54.506304551 +0200
 @@ -1,5 +1,17 @@
 ---- Makefile.in.orig	2011-06-08 17:59:15.371244000 -0400
 -+++ Makefile.in	2011-07-11 16:37:49.000000000 -0400
 +--- Makefile.in.orig	2011-06-08 23:59:15.371244000 +0200
 ++++ Makefile.in	2011-07-12 12:43:03.500532970 +0200
 +@@ -642,9 +642,9 @@
 + @ENABLE_PLUGIN_TRUE@	${INSTALL_PROGRAM} $(PLUGIN_DIR)/IcedTeaPlugin.so $(DESTDIR)$(libdir)
 + @ENABLE_PLUGIN_TRUE@	${INSTALL_DATA} $(abs_top_builddir)/liveconnect/lib/classes.jar $(DESTDIR)$(datadir)/$(PACKAGE_NAME)/plugin.jar
 + 	${INSTALL_DATA} $(NETX_DIR)/lib/classes.jar $(DESTDIR)$(datadir)/$(PACKAGE_NAME)/netx.jar
 +-	${INSTALL_PROGRAM} launcher.build/$(javaws) $(DESTDIR)$(bindir)
 ++	${INSTALL_SCRIPT} launcher.build/$(javaws) $(DESTDIR)$(bindir)
 + 	${INSTALL_DATA} extra-lib/about.jar $(DESTDIR)$(datadir)/$(PACKAGE_NAME)/about.jar
 +-	${INSTALL_PROGRAM} launcher.build/$(itweb_settings) $(DESTDIR)$(bindir)
 ++	${INSTALL_SCRIPT} launcher.build/$(itweb_settings) $(DESTDIR)$(bindir)
 + 
 + install-data-local:
 + 	${mkinstalldirs} -d $(DESTDIR)$(mandir)/man1
  @@ -758,7 +758,7 @@
   
   netx-source-files.txt:
 
 --KFztAG8eRSV9hGtP--

From: Pavel Timofeev <timp87@gmail.com>
To: bug-followup@FreeBSD.org, timp87@gmail.com
Cc:  
Subject: Re: ports/158826: Can't install java/icedtea-web
Date: Tue, 12 Jul 2011 16:27:19 +0400

 --001636988ac0c29db704a7de6bc4
 Content-Type: text/plain; charset=UTF-8
 
 It works good. Thanks!
 
 --001636988ac0c29db704a7de6bc4
 Content-Type: text/html; charset=UTF-8
 
 It works good. Thanks!<br>
 
 --001636988ac0c29db704a7de6bc4--

From: Greg Lewis <glewis@eyesbeyond.com>
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: ports/158826: Can't install java/icedtea-web
Date: Tue, 12 Jul 2011 08:03:25 -0700

 On Tue, Jul 12, 2011 at 11:00:22AM +0000, Guido Falsi wrote:
 >  The port is trying to strip shell scripts, which fails.
 >  
 >  Attached patch fixes this by patching the Makefie not to strip shell
 >  scripts.
 
 It's worse than just that.  It's going to overwrite the symlink for javaws
 the javavm port creates in ${LOCALBASE}/bin if you have a port (e.g. jdk16)
 which actually does install javaws installed.
 
 This didn't happen previously since the IcedTea javaws was installed in
 ${LOCALBASE}/openjdk6/bin and could be chosen by javavm just like any
 other alternative.
 
 -- 
 Greg Lewis                          Email   : glewis@eyesbeyond.com
 Eyes Beyond                         Web     : http://www.eyesbeyond.com
 Information Technology              FreeBSD : glewis@FreeBSD.org

From: Jung-uk Kim <jkim@FreeBSD.org>
To: freebsd-java@freebsd.org,
 Greg Lewis <glewis@eyesbeyond.com>
Cc: bug-followup@FreeBSD.org
Subject: Re: ports/158826: Can't install java/icedtea-web
Date: Tue, 12 Jul 2011 13:26:41 -0400

 On Tuesday 12 July 2011 11:30 am, Greg Lewis wrote:
 > The following reply was made to PR ports/158826; it has been noted
 > by GNATS.
 >
 > From: Greg Lewis <glewis@eyesbeyond.com>
 > To: bug-followup@FreeBSD.org
 > Cc:
 > Subject: Re: ports/158826: Can't install java/icedtea-web
 > Date: Tue, 12 Jul 2011 08:03:25 -0700
 >
 >  On Tue, Jul 12, 2011 at 11:00:22AM +0000, Guido Falsi wrote:
 >  >  The port is trying to strip shell scripts, which fails.
 >  >
 >  >  Attached patch fixes this by patching the Makefie not to strip
 >  > shell scripts.
 >
 >  It's worse than just that.  It's going to overwrite the symlink
 > for javaws the javavm port creates in ${LOCALBASE}/bin if you have
 > a port (e.g. jdk16) which actually does install javaws installed.
 >
 >  This didn't happen previously since the IcedTea javaws was
 > installed in ${LOCALBASE}/openjdk6/bin and could be chosen by
 > javavm just like any other alternative.
 
 Yeah, you're right.  I forgot the symlinks. :-(
 
 I am going to rename it to itweb-javaws with other fixes.
 
 Jung-uk Kim

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: ports/158826: commit references a PR
Date: Tue, 12 Jul 2011 19:21:11 +0000 (UTC)

 jkim        2011-07-12 19:21:03 UTC
 
   FreeBSD ports repository
 
   Modified files:
     java/icedtea-web     Makefile 
     java/icedtea-web/files patch-Makefile.in 
   Added files:
     java/icedtea-web/files patch-launcher-javaws.in 
   Log:
   Fix various build and installation issues.
   
   - Replace various Linuxisms in Makefile with little more portable code.
   Remove now unnecessary build dependency of sysutils/coreutils.
   - Install launcher wrappers with INSTALL_SCRIPT[1].
   - Rename javaws launcher to itweb-javaws throughout.  This conflicts with
   a symlink created by java/javavmwrapper[2].
   
   PR:             ports/158826 [1]
   Reported by:    glewis [2]
   
   Revision  Changes    Path
   1.4       +11 -10    ports/java/icedtea-web/Makefile
   1.2       +138 -7    ports/java/icedtea-web/files/patch-Makefile.in
   1.1       +11 -0     ports/java/icedtea-web/files/patch-launcher-javaws.in (new)
 _______________________________________________
 cvs-all@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/cvs-all
 To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
 
State-Changed-From-To: open->closed 
State-Changed-By: jkim 
State-Changed-When: Wed Aug 31 20:18:02 UTC 2011 
State-Changed-Why:  
This problem was fixed some time ago. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=158826 
>Unformatted:
