From owner-freebsd-java@FreeBSD.ORG  Wed Jan 14 04:00:38 2004
Return-Path: <owner-freebsd-java@FreeBSD.ORG>
Delivered-To: freebsd-java@hub.freebsd.org
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 87CFF16A4CE
	for <freebsd-java@hub.freebsd.org>;
	Wed, 14 Jan 2004 04:00:38 -0800 (PST)
Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 6659643D54
	for <freebsd-java@hub.freebsd.org>;
	Wed, 14 Jan 2004 04:00:27 -0800 (PST)
	(envelope-from gnats@FreeBSD.org)
Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1])
	i0EC0RFR056634	for <freebsd-java@freefall.freebsd.org>;
	Wed, 14 Jan 2004 04:00:27 -0800 (PST)
	(envelope-from gnats@freefall.freebsd.org)
Received: (from gnats@localhost)
	by freefall.freebsd.org (8.12.10/8.12.10/Submit) id i0EC0RJD056630;
	Wed, 14 Jan 2004 04:00:27 -0800 (PST)
	(envelope-from gnats)
Resent-Date: Wed, 14 Jan 2004 04:00:27 -0800 (PST)
Resent-Message-Id: <200401141200.i0EC0RJD056630@freefall.freebsd.org>
Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer)
Resent-To: freebsd-java@FreeBSD.org
Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org,
	Herve Quiroz <herve.quiroz@esil.univ-mrs.fr>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 54AB016A4CE
	for <FreeBSD-gnats-submit@freebsd.org>;
	Wed, 14 Jan 2004 03:55:11 -0800 (PST)
Received: from andouillette.esil.univ-mrs.fr (andouillette.esil.univ-mrs.fr
	[139.124.41.109])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 3266F43D45
	for <FreeBSD-gnats-submit@freebsd.org>;
	Wed, 14 Jan 2004 03:55:04 -0800 (PST)
	(envelope-from rv@andouillette.esil.univ-mrs.fr)
Received: from andouillette.esil.univ-mrs.fr (localhost [127.0.0.1])
	i0EBt3n5008686	for <FreeBSD-gnats-submit@freebsd.org>;
	Wed, 14 Jan 2004 12:55:03 +0100 (CET)
	(envelope-from rv@andouillette.esil.univ-mrs.fr)
Received: (from rv@localhost)i0EBt2w7008685;
	Wed, 14 Jan 2004 12:55:02 +0100 (CET)
Message-Id: <200401141155.i0EBt2w7008685@andouillette.esil.univ-mrs.fr>
Date: Wed, 14 Jan 2004 12:55:02 +0100 (CET)
From: Herve Quiroz <herve.quiroz@esil.univ-mrs.fr>
To: FreeBSD-gnats-submit@FreeBSD.org
X-Send-Pr-Version: 3.113
Subject: java/61357: Fix port: java/jakarta-commons-cli
X-BeenThere: freebsd-java@freebsd.org
X-Mailman-Version: 2.1.1
Precedence: list
Reply-To: Herve Quiroz <herve.quiroz@esil.univ-mrs.fr>
List-Id: Porting Java to FreeBSD <freebsd-java.freebsd.org>
List-Unsubscribe: <http://lists.freebsd.org/mailman/listinfo/freebsd-java>,
	<mailto:freebsd-java-request@freebsd.org?subject=unsubscribe>
List-Archive: <http://lists.freebsd.org/pipermail/freebsd-java>
List-Post: <mailto:freebsd-java@freebsd.org>
List-Help: <mailto:freebsd-java-request@freebsd.org?subject=help>
List-Subscribe: <http://lists.freebsd.org/mailman/listinfo/freebsd-java>,
	<mailto:freebsd-java-request@freebsd.org?subject=subscribe>
X-List-Received-Date: Wed, 14 Jan 2004 12:00:38 -0000


>Number:         61357
>Category:       java
>Synopsis:       Fix port: java/jakarta-commons-cli
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-java
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          update
>Submitter-Id:   current-users
>Arrival-Date:   Wed Jan 14 04:00:26 PST 2004
>Closed-Date:
>Last-Modified:
>Originator:     Herve Quiroz <herve.quiroz@esil.univ-mrs.fr>
>Release:        FreeBSD 5.1-RELEASE-p11 i386
>Organization:
>Environment:
System: FreeBSD andouillette.esil.univ-mrs.fr 5.1-RELEASE-p11 FreeBSD 5.1-RELEASE-p11 #1: Mon Jan 5 18:04:15 CET 2004 root@andouillette.esil.univ-mrs.fr:/usr/obj/usr/src/sys/ASSIMILATED i386

>Description:

Short story: java/jakarta-commons-cli won't build as commons-lang is not in the
classpath and there is a problem with dependency fetching (which I suspect is
related to Ant rather than commons-cli).


Now the long story:

When I tried to upgrade my java/jakarta-commons-cli port I had a build error.
So I tried to build it directly with Ant as a normal user and I get errors
while fetching dependencies. I am able to fetch them using wget so I wonder if
someone already experienced such a problem.

Anyway, here is the output just in case:

> Buildfile: build.xml
>
> init:
> 
> get-deps:
>       [get] Getting: http://www.ibiblio.org/maven/commons-logging/jars/commons-logging-1.0.jar
>       [get] Error getting http://www.ibiblio.org/maven/commons-logging/jars/commons-logging-1.0.jar to /export/andouillette/home/rv/src/commons-cli-1.0/lib/commons-logging-1.0.jar
>       [get] Getting: http://www.ibiblio.org/maven/commons-lang/jars/commons-lang-SNAPSHOT.jar
>       [get] Error getting http://www.ibiblio.org/maven/commons-lang/jars/commons-lang-SNAPSHOT.jar to /export/andouillette/home/rv/src/commons-cli-1.0/lib/commons-lang-SNAPSHOT.jar
>       [get] Getting: http://www.ibiblio.org/maven/junit/jars/junit-3.7.jar
>       [get] Error getting http://www.ibiblio.org/maven/junit/jars/junit-3.7.jar to /export/andouillette/home/rv/src/commons-cli-1.0/lib/junit-3.7.jar
> 
> jar:
> 
> BUILD SUCCESSFUL
> Total time: 1 second

But then I realized that the build is successful as user (using jdk-1.4.2) but
not as root while building the port (using 1.4.2 also).  I've just realized
that the problem comes from my classpath that is set to "all JARs in
${JAVAJARDIR}" as user but not as root. The most important point here being
that building commons-cli requires commons-lang...

Now we've got two way of dealing with it:

 - Install from binary version and set commons-lang as RUN_DEPENDS

 - Build from source but then add commons-lang in BUILD_DEPENDS and
   RUN_DEPENDS and add ${JAVAJARDIR}/commons-lang.jar in the classpath
   while building the port.

 - Build from source but fix the dependency fetching. However IMHO fecthing
   additional dependencies at build time is not good. First because of
   redundancy (in this case JUnit and commons-lang may already be installed as
   a port), and then because with this scheme you cannot build a "distfiles"
   distribution CD-ROM so you can build ports while disconnected from the
   network.

I prefer the first one but I'm not the maintainer. And that would resolve the
Javadoc/pkg-plist issue...

I suspect dependency fetching problems may have something to do with the new
version of Ant (1.6.0)... in which case we should probably send another
different PR to work on this particular issue.

>How-To-Repeat:

unset CLASSPATH
cd /usr/ports/java/jakarta-commons-cli
make build

>Fix:

Nothing yet, as we need to know what the opinion of the maintainer. I can
submit a fix in either case however.
>Release-Note:
>Audit-Trail:
>Unformatted: