NetBSD Problem Report #48247

From www@NetBSD.org  Fri Sep 27 02:38:27 2013
Return-Path: <www@NetBSD.org>
Received: from mail.netbsd.org (mail.netbsd.org [149.20.53.66])
	(using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits))
	(Client CN "mail.NetBSD.org", Issuer "Postmaster NetBSD.org" (verified OK))
	by mollari.NetBSD.org (Postfix) with ESMTPS id A63C8726A3
	for <gnats-bugs@gnats.NetBSD.org>; Fri, 27 Sep 2013 02:38:27 +0000 (UTC)
Message-Id: <20130927023825.D9A35726A4@mollari.NetBSD.org>
Date: Fri, 27 Sep 2013 02:38:25 +0000 (UTC)
From: nathanialsloss@yahoo.com.au
Reply-To: nathanialsloss@yahoo.com.au
To: gnats-bugs@NetBSD.org
Subject: icedtea-web: javaws, itweb-settings scripts broken and man pages missing from package
X-Send-Pr-Version: www-1.0

>Number:         48247
>Category:       pkg
>Synopsis:       icedtea-web: javaws, itweb-settings scripts broken and man pages missing from package
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Sep 27 02:40:00 +0000 2013
>Originator:     Nat Sloss
>Release:        pkgsrc-2013Q2
>Organization:
>Environment:
NetBSD beast 6.99.23 NetBSD 6.99.23 (LOCKDEBUG) #4: Wed Jul 17 22:24:41 EST 2013  build@beast:/usr/src/sys/arch/i386/compile/obj/LOCKDEBUG i386
>Description:
javaws and itweb-settings should run in bash and the scripts are broken.
javaws and itweb-settings and javaws man page should be added to PLIST and not deleted post install.
>How-To-Repeat:
javaws is missing from install so it cannot be run or associated with jnlp files in firefox.
>Fix:
Apply these patches:
Index: pkgsrc/www/icedtea-web/Makefile
===================================================================
RCS file: /cvsroot/pkgsrc/www/icedtea-web/Makefile,v
retrieving revision 1.25
diff -u -r1.25 Makefile
--- pkgsrc/www/icedtea-web/Makefile	6 Jun 2013 12:55:11 -0000	1.25
+++ pkgsrc/www/icedtea-web/Makefile	27 Sep 2013 02:12:36 -0000
@@ -25,6 +27,8 @@

 MAKE_ENV+=		BOOT_DIR=${PREFIX}/java/openjdk7

+DEPENDS+=		bash-[0-9]*:../../shells/bash
+
 pre-configure:
 	cd ${WRKSRC} && ${SETENV} ${CONFIGURE_ENV} autoreconf -if

@@ -34,11 +38,9 @@
 post-install:
 	cd ${DESTDIR}/${PREFIX}/lib/netscape/plugins && \
 		${LN} -s ../../IcedTeaPlugin.so IcedTeaPlugin.so
-	${RM} -r ${DESTDIR}/${PREFIX}/bin ${DESTDIR}/${PREFIX}/man

 BUILDLINK_API_DEPENDS.xulrunner17+=       xulrunner17>=17.0.6nb1
 .include "../../devel/xulrunner17/buildlink3.mk"
Index: pkgsrc/www/icedtea-web/PLIST
===================================================================
RCS file: /cvsroot/pkgsrc/www/icedtea-web/PLIST,v
retrieving revision 1.2
diff -u -r1.2 PLIST
--- pkgsrc/www/icedtea-web/PLIST	2 Jun 2013 06:15:44 -0000	1.2
+++ pkgsrc/www/icedtea-web/PLIST	27 Sep 2013 02:13:00 -0000
@@ -1,6 +1,9 @@
-@comment $NetBSD: PLIST,v 1.2 2013/06/02 06:15:44 ryoon Exp $
+@comment $NetBSD$
+bin/itweb-settings
+bin/javaws
 lib/IcedTeaPlugin.so
 lib/netscape/plugins/IcedTeaPlugin.so
+man/man1/javaws.1
 share/icedtea-web/about.jar
 share/icedtea-web/about.jnlp
 share/icedtea-web/javaws_splash.png
--- /dev/null	2013-09-27 11:38:44.000000000 +1000
+++ pkgsrc/www/icedtea-web/patches/patch-launcher_launchers.in	2013-09-27 11:41:45.000000000 +1000
@@ -0,0 +1,18 @@
+$NetBSD$
+
+--- launcher/launchers.in.orig	2013-05-20 14:22:44.000000000 +0000
++++ launcher/launchers.in
+@@ -1,4 +1,4 @@
+-#!/bin/sh
++#!/usr/pkg/bin/bash
+ 
+ JAVA=@JAVA@
+ LAUNCHER_BOOTCLASSPATH=@LAUNCHER_BOOTCLASSPATH@
+@@ -86,6 +86,6 @@ while [ "$j" -lt "${#ARGS[@]}" ]; do
+   k=$((k+1))
+ done
+ 
+-exec -a "$PROGRAM_NAME" "${COMMAND[@]}"
++exec "${COMMAND[@]}"
+ 
+ exit $?

This allows you to configure the icedtea plugin and I've successfully tested javaws with the java kvm client for my remote access card (a jnlp file opened with javaws from a web page) as well as other jnlp test pages some worked although a few did not.

Note: These patches are my own work which I submit under the NetBSD license.

I hope this is useful.

Regards,

Nat.

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2007 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.