From owner-freebsd-java@FreeBSD.ORG Tue Aug 16 21:02:23 2011 Return-Path: Delivered-To: java@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 8F98D106567D for ; Tue, 16 Aug 2011 21:02:23 +0000 (UTC) (envelope-from bapt@FreeBSD.org) Received: from xiurhn.etoilebsd.net (xiurhn.etoilebsd.net [94.23.37.58]) by mx1.freebsd.org (Postfix) with ESMTP id 5DDC78FC1A for ; Tue, 16 Aug 2011 21:02:23 +0000 (UTC) Received: by xiurhn.etoilebsd.net (Postfix, from userid 80) id 007727E830; Tue, 16 Aug 2011 22:46:24 +0200 (CEST) To: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Date: Tue, 16 Aug 2011 20:46:24 +0000 From: Baptiste Daroussin Message-ID: X-Sender: bapt@FreeBSD.org User-Agent: Roundcube Webmail/0.5.3 Cc: Subject: [PATCH] libreoffice fail to built because of ant.sh X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 16 Aug 2011 21:02:23 -0000 Hi, the libreoffice crappy build system fails to build with java option on (for the 4.3.2 release). After looking at it we find out that the problem is that the build system export the DATADIR env variable and then ant is not able to find itself in the classpath. DATADIR is a quite common variable in build system, I think changing this variable name in the ant.sh.in file is the best way to fix the bug, because I imagine the failure with occur with every systems defining the DATADIR variable. Here is a patch changing DATADIR to ANTDATADIR. Hope that is ok for you? http://people.freebsd.org/~bapt/ant.sh-no-datadir.patch Thanks, Bapt