From unknown Mon Jun 23 16:46:38 2025 X-Loop: help-debbugs@gnu.org Subject: bug#9306: Java build errors due to trailing colon in CLASSPATH Resent-From: "Daniel Richard G." Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-automake@gnu.org Resent-Date: Mon, 15 Aug 2011 19:57:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 9306 X-GNU-PR-Package: automake X-GNU-PR-Keywords: To: 9306@debbugs.gnu.org X-Debbugs-Original-To: bug-automake@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.13134381879852 (code B ref -1); Mon, 15 Aug 2011 19:57:02 +0000 Received: (at submit) by debbugs.gnu.org; 15 Aug 2011 19:56:27 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Qt3Gs-0002Yr-Uq for submit@debbugs.gnu.org; Mon, 15 Aug 2011 15:56:27 -0400 Received: from eggs.gnu.org ([140.186.70.92]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Qt3Gp-0002Yj-Sb for submit@debbugs.gnu.org; Mon, 15 Aug 2011 15:56:24 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Qt3F9-0004DN-Ch for submit@debbugs.gnu.org; Mon, 15 Aug 2011 15:54:40 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_LOW, T_DKIM_INVALID autolearn=unavailable version=3.3.1 Received: from lists.gnu.org ([140.186.70.17]:47972) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qt3F9-0004DJ-BE for submit@debbugs.gnu.org; Mon, 15 Aug 2011 15:54:39 -0400 Received: from eggs.gnu.org ([140.186.70.92]:35615) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qt3F8-0003uJ-3C for bug-automake@gnu.org; Mon, 15 Aug 2011 15:54:39 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Qt3F6-0004Cv-Vj for bug-automake@gnu.org; Mon, 15 Aug 2011 15:54:38 -0400 Received: from out4.smtp.messagingengine.com ([66.111.4.28]:55053) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qt3F6-0004Cq-Ss for bug-automake@gnu.org; Mon, 15 Aug 2011 15:54:36 -0400 Received: from compute5.internal (compute5.nyi.mail.srv.osa [10.202.2.45]) by gateway1.messagingengine.com (Postfix) with ESMTP id 366DC221B1 for ; Mon, 15 Aug 2011 15:54:36 -0400 (EDT) Received: from web2.messagingengine.com ([10.202.2.212]) by compute5.internal (MEProxy); Mon, 15 Aug 2011 15:54:36 -0400 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=message-id:from:to:mime-version :content-transfer-encoding:content-type:subject:date; s=smtpout; bh=Z9rwy9tdcJKeBmvCzRMl6zig9Ds=; b=RooWHy6JvUAIW4TwZJxrHuXRxu7+ By2E9Rk0p3s7YKYUfx1Z8JyuOj5rgjeAbNnzCZ5GZIXBw8nQciltCUQzWTo0KipB A2wh4tyPh4K0cYxI+8AL9to1+vtq6nhnThVFOzg3zqAXmLl+L5dChrerOm603g4Y hbmZeWBRdN3Uit0= Received: by web2.messagingengine.com (Postfix, from userid 99) id 14B54344A4D; Mon, 15 Aug 2011 15:54:36 -0400 (EDT) Message-Id: <1313438076.6433.140258129915661@webmail.messagingengine.com> X-Sasl-Enc: oD/lkSd/tnoos38SQ6/MhznMhhSUI18KUymugdxqcAbr 1313438076 From: "Daniel Richard G." MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: multipart/mixed; boundary="_----------=_131343807664330" X-Mailer: MessagingEngine.com Webmail Interface Date: Mon, 15 Aug 2011 15:54:36 -0400 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 140.186.70.17 X-Spam-Score: -6.6 (------) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.6 (------) This is a multi-part message in MIME format. --_----------=_131343807664330 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="us-ascii" Date: Mon, 15 Aug 2011 15:54:36 -0400 X-Mailer: MessagingEngine.com Webmail Interface I am using Automake 1.11.1, and have recently encountered a subtle issue that causes compilation of some Java programs to fail. Here is a typical build failure, produced from a minimal test case I've assembled, using OpenJDK on Ubuntu's Natty release: make[3]: Entering directory `/tmp/automake-java-bug/org/gnu/bug' CLASSPATH=../../..:./../../..:$CLASSPATH javac -d ../../.. Library.java Application.java ./Library.java:5: duplicate class: org.gnu.bug.Library public class Library ^ Application.java:9: cannot access Library bad class file: RegularFileObject[./Library.java] file does not contain class Library Please remove or make sure it appears in the correct subdirectory of the classpath. Library lib = new Library(); ^ 2 errors make[3]: *** [classdist_noinst.stamp] Error 1 If I copy-and-paste the javac invocation, edit it slightly, and run it... env CLASSPATH=../../..:./../../..: javac -d ../../.. Library.java Application.java ...I get the same error. However, if I remove that trailing colon from CLASSPATH, and try it again... env CLASSPATH=../../..:./../../.. javac -d ../../.. Library.java Application.java ...compilation succeeds. If I invoke the above build with env CLASSPATH=/does-not-exist make then compilation likewise succeeds. Note that I do not have CLASSPATH set in my environment. It would appear that a trailing colon in the CLASSPATH environment variable has a special meaning attached to it, which makes Automake's use of CLASSPATH=mumblemumble:$$CLASSPATH in makefiles problematic. (The straightforward solution would be to replace that construct with CLASSPATH=mumblemumble$${CLASSPATH:+:$$CLASSPATH}, but whether all shells can handle that is an open question.) Attached is a tarball containing the minimal test case. --Daniel P.S.: Please Cc: any replies to me, as I am not subscribed to this list. -- NAME = Daniel Richard G. _\|/_ Remember, skunks MAIL = skunk@iSKUNK.ORG (/o|o\) _- don't smell bad--- MAIL+= skunk@alum.MIT.EDU < (^),> it's the people who WWW = (not there yet!) / \ annoy us that do! --_----------=_131343807664330 MIME-Version: 1.0 Content-Disposition: attachment; filename="automake-java-bug.tar.gz" Content-Id: Content-Transfer-Encoding: base64 Content-Type: application/x-gzip; name="automake-java-bug.tar.gz" X-Mailer: MIME::Lite 3.027 (F2.77; A2.06; B3.08; Q3.08) Date: Mon, 15 Aug 2011 15:54:36 -0400 H4sICAx3SU4CA2F1dG9tYWtlLWphdmEtYnVnLnRhcgDtmm1vmlAUx3nL/RR3 7RvWTITL05Jmyai1na2tnei2xDQGFSkTwfDQrVv23Xeg1LKaJm2mmJjzC8lt z71cEv73f84FtNMknNszp/bdvrVro9Stc2tHAgxNg1Y1pLxlisqkPF7AybLO GDMUBf6WZIVBQzWuAtI4sSNKuYkbzp1fz4+zpzG3g9gr+mcR1wnE+KYy/XW9 0F/TVU0F/TUm6xyVUP+Ns/+mPvKCenxDSOwktOb8JCRbAZEzDoMprcHh0dot rX2ltu8Tsk+bnRPCITvr/zBadw14Tf5nOvTLqiTJmP+3p78bpPWt6q8ZDPXf rv7r2wu+Xn9NUQ3Uf/v6t71RZEd3Ytb5f/rrqvqs/opkFPrrmmTIoL+hywz3 f1VQr9OyyIQs7PHMdh0Ky0CEZSDCMjiEaDryvTEd+3YcP5xAfhO+iBcR4S3h IcjDpEGY3HiBS5OQTkLC/yHLsXC/E2huQ28CXRbc9XxkP3amqS9YSZSdZkdu MZd1FyfOXAzTRFxAV+IHQtZ5mM0Js8KlcEO6Mf9fQM/U8x3RnnOb8z94/8H/ iqHk/lcMfP6rhDPzi9ntdHr0AxXFen4QMvHiZBiEXgBNNgA6y0mCmosFOBls HAZF1tjH58Jd9P9ToTdV/+Vl/dcl6GeSqqL/q6r/q2725oswSspbAPHg6Sag dFZpI1Au7nPbC0r1PB5cFyW9yCXU90aQWQLnx+P+Aa7C8xAXV3cGe1ft/umn Paz8Ffl/PbX/Jf6XSvVfVxjUf12HbvR/BVj9o+NW1wIfgvZoJvR/7v/1ef/V /me5/yWG9b9i/0POR/+j/9fs/Rf539CW739ldv/9V8X3fxX7H/I+Ic1vva45 PG5Z2QuBx18CENJoN83Lk1a7mQ09EPNnAEwXu+j/7Lu/56YRJIBxNf5XdWVZ /zUo/OB/TUL/V8I+LetNiNkYXnWb3eZnYcBE/T08skOkddnqCQOzWCpnsFKO Uvf6HR3IopQ18SwNZh8967x/eS52uqdZbGVh3U/V6EAWOR1a3QakHWHw3Mcm GEzMi/zCQ7Pf61yY500BLifDQadh5HhukI9ZzpjnJmFA+If6RfjyTvb+v/Jz 7WOkXPVIMWun37vq97LfuzjB5N97hEkDQRAEQRAEQRAEQRAEQRAEQRAEQRAE QRAEQRAEQZCt8hfQkjFCAFAAAA== --_----------=_131343807664330-- From unknown Mon Jun 23 16:46:38 2025 X-Loop: help-debbugs@gnu.org Subject: bug#9306: Java build errors due to trailing colon in CLASSPATH Resent-From: Stefano Lattarini Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-automake@gnu.org Resent-Date: Tue, 16 Aug 2011 13:34:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 9306 X-GNU-PR-Package: automake X-GNU-PR-Keywords: To: 9306@debbugs.gnu.org Cc: skunk@iskunk.org X-Debbugs-Original-To: bug-automake@gnu.org X-Debbugs-Original-Cc: 9306@debbugs.gnu.org, "Daniel Richard G." Received: via spool by submit@debbugs.gnu.org id=B.131350159613217 (code B ref -1); Tue, 16 Aug 2011 13:34:01 +0000 Received: (at submit) by debbugs.gnu.org; 16 Aug 2011 13:33:16 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QtJlb-0003R7-SG for submit@debbugs.gnu.org; Tue, 16 Aug 2011 09:33:16 -0400 Received: from eggs.gnu.org ([140.186.70.92]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QtJlZ-0003R0-Ip for submit@debbugs.gnu.org; Tue, 16 Aug 2011 09:33:14 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QtJjl-0000ia-2k for submit@debbugs.gnu.org; Tue, 16 Aug 2011 09:31:25 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,FREEMAIL_FROM, RCVD_IN_DNSWL_LOW, T_DKIM_INVALID, T_TO_NO_BRKTS_FREEMAIL autolearn=unavailable version=3.3.1 Received: from lists.gnu.org ([140.186.70.17]:47806) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QtJjk-0000iK-V2 for submit@debbugs.gnu.org; Tue, 16 Aug 2011 09:31:20 -0400 Received: from eggs.gnu.org ([140.186.70.92]:34165) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QtJjg-0001pu-92 for bug-automake@gnu.org; Tue, 16 Aug 2011 09:31:20 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QtJjd-0000gM-Uw for bug-automake@gnu.org; Tue, 16 Aug 2011 09:31:16 -0400 Received: from mail-wy0-f169.google.com ([74.125.82.169]:61866) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QtJjd-0000g8-L4 for bug-automake@gnu.org; Tue, 16 Aug 2011 09:31:13 -0400 Received: by wyi11 with SMTP id 11so93847wyi.0 for ; Tue, 16 Aug 2011 06:31:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=from:to:subject:date:user-agent:cc:references:in-reply-to :mime-version:content-type:message-id; bh=5N2X9xLGynWSYooHb/q86KwhHp5UIpFUKkKlV4KOo7I=; b=l2xLj6936bUGKMVkcu6EbOMRZh90cxUGLeYVD6TbecQFf4O+DFkA08k7ByWptPevaG cszQuoKbaDEF/REQSQBTvL1LS8GWsSW4Qyze1KeDoUK1YInPDv90vGPd9REu4p10bGs6 hY3jOzVGRHwKagAXStOb14/yYasMzL/uC12eA= Received: by 10.227.12.18 with SMTP id v18mr4568504wbv.89.1313501472426; Tue, 16 Aug 2011 06:31:12 -0700 (PDT) Received: from bigio.localnet (host175-92-dynamic.4-87-r.retail.telecomitalia.it [87.4.92.175]) by mx.google.com with ESMTPS id el9sm33541wbb.41.2011.08.16.06.31.10 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 16 Aug 2011 06:31:11 -0700 (PDT) From: Stefano Lattarini Date: Tue, 16 Aug 2011 15:30:59 +0200 User-Agent: KMail/1.13.3 (Linux/2.6.30-2-686; KDE/4.4.4; i686; ; ) References: <1313438076.6433.140258129915661@webmail.messagingengine.com> In-Reply-To: <1313438076.6433.140258129915661@webmail.messagingengine.com> MIME-Version: 1.0 Content-Type: Multipart/Mixed; boundary="Boundary-00=_UEnSOg7AqG9lzg3" Message-Id: <201108161531.00529.stefano.lattarini@gmail.com> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 140.186.70.17 X-Spam-Score: -5.1 (-----) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -5.1 (-----) --Boundary-00=_UEnSOg7AqG9lzg3 Content-Type: Text/Plain; charset="utf-8" Content-Transfer-Encoding: 7bit Hi Daniel, thanks for the report. On Monday 15 August 2011, Daniel Richard wrote: > I am using Automake 1.11.1, and have recently encountered a subtle issue > that causes compilation of some Java programs to fail. > > Here is a typical build failure, produced from a minimal test case I've > assembled, using OpenJDK on Ubuntu's Natty release: > > make[3]: Entering directory `/tmp/automake-java-bug/org/gnu/bug' > CLASSPATH=../../..:./../../..:$CLASSPATH javac -d ../../.. Library.java Application.java > ./Library.java:5: duplicate class: org.gnu.bug.Library > public class Library > ^ > Application.java:9: cannot access Library > bad class file: RegularFileObject[./Library.java] > file does not contain class Library > Please remove or make sure it appears in the correct subdirectory of the classpath. > Library lib = new Library(); > ^ > 2 errors > make[3]: *** [classdist_noinst.stamp] Error 1 > > > If I copy-and-paste the javac invocation, edit it slightly, and run > it... > > env CLASSPATH=../../..:./../../..: javac -d ../../.. Library.java Application.java > > ...I get the same error. However, if I remove that trailing colon from > CLASSPATH, and try it again... > > env CLASSPATH=../../..:./../../.. javac -d ../../.. Library.java Application.java > > ...compilation succeeds. If I invoke the above build with > > env CLASSPATH=/does-not-exist make > > then compilation likewise succeeds. > > Note that I do not have CLASSPATH set in my environment. It would appear > that a trailing colon in the CLASSPATH environment variable has a > special meaning attached to it, which makes Automake's use of > CLASSPATH=mumblemumble:$$CLASSPATH in makefiles problematic. > > (The straightforward solution would be to replace that construct with > CLASSPATH=mumblemumble$${CLASSPATH:+:$$CLASSPATH}, but whether all > shells can handle that is an open question.) > Luckily, as far as I know, the above construct should be portable to all non-museum shells. So I've used it with only a minor modification (with the only purpose of making the contruct slighlty clearer): CLASSPATH=mumblemumble$${CLASSPATH:+":$$CLASSPATH"} > Attached is a tarball containing the minimal test case. > I can reproduce the problem using your test case, and fix it using your suggestion. I've preparad the attached patch, which I will push in a couple of days if there are no further comments. BTW, are you the same "Daniel Richard G." listed in THANKS with the address "danielg@teragram.com"? If yes, should I update your address there? Thanks, Stefano --Boundary-00=_UEnSOg7AqG9lzg3 Content-Type: text/x-patch; charset="utf-8"; name="0001-java-avoid-compilation-errors-when-CLASSPATH-is-empt.patch" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline; filename="0001-java-avoid-compilation-errors-when-CLASSPATH-is-empt.patch" =46rom 7f1cf56ba7d1b36fb4c9464f8ed7d10ad44e65a9 Mon Sep 17 00:00:00 2001 Message-Id: <7f1cf56ba7d1b36fb4c9464f8ed7d10ad44e65a9.1313501403.git.stefan= o.lattarini@gmail.com> =46rom: Daniel Richard G Date: Tue, 16 Aug 2011 15:19:14 +0200 Subject: [PATCH] java: avoid compilation errors when CLASSPATH is empty * lib/am/java.am (CLASSPATH_ENV): When redefining `$CLASSPATH', do not append an empty component in case the previous value of CLASSPATH is empty or unset. * tests/java-empty-classpath.test: New test. * tests/Makefile.am (TESTS): Update. =46ixes automake bug#9306. =2D-- ChangeLog | 11 +++++ lib/am/java.am | 2 +- tests/java-empty-classpath.test | 90 +++++++++++++++++++++++++++++++++++= ++++ 3 files changed, 102 insertions(+), 1 deletions(-) create mode 100755 tests/java-empty-classpath.test diff --git a/ChangeLog b/ChangeLog index af2556f..c9ce830 100644 =2D-- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,14 @@ +2011-08-16 Daniel Richard G. (tiny change) + Stefano Lattarini + + java: avoid compilation errors when CLASSPATH is empty + * lib/am/java.am (CLASSPATH_ENV): When redefining `$CLASSPATH', + do not append an empty component in case the previous value of + CLASSPATH is empty or unset. + * tests/java-empty-classpath.test: New test. + * tests/Makefile.am (TESTS): Update. + Fixes automake bug#9306. + 2011-08-08 Stefano Lattarini =20 test defs: more environment cleanup diff --git a/lib/am/java.am b/lib/am/java.am index d6eb455..604df22 100644 =2D-- a/lib/am/java.am +++ b/lib/am/java.am @@ -21,7 +21,7 @@ ## ---------- ## =20 JAVAC =3D javac =2DCLASSPATH_ENV =3D CLASSPATH=3D$(JAVAROOT):$(srcdir)/$(JAVAROOT):$$CLASSP= ATH +CLASSPATH_ENV =3D CLASSPATH=3D$(JAVAROOT):$(srcdir)/$(JAVAROOT)$${CLASSPAT= H:+":$$CLASSPATH"} JAVAROOT =3D $(top_builddir) =20 class%DIR%.stamp: $(%DIR%_JAVA) diff --git a/tests/java-empty-classpath.test b/tests/java-empty-classpath.t= est new file mode 100755 index 0000000..230bb7c =2D-- /dev/null +++ b/tests/java-empty-classpath.test @@ -0,0 +1,90 @@ +#! /bin/sh +# Copyright (C) 2011 Free Software Foundation, Inc. +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2, or (at your option) +# any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, see . + +# Java compilation works also when CLASSPATH is unset or empty at +# compilation time. See automake bug#9306. + +required=3Djavac +. ./defs || Exit 1 + +set -e + +cat >> configure.in <<'END' +AC_CONFIG_SRCDIR([org/gnu/bug/Library.java]) +AC_CONFIG_FILES([ + org/Makefile + org/gnu/Makefile + org/gnu/bug/Makefile +]) +AC_OUTPUT +END + +mkdir org org/gnu org/gnu/bug +cat > Makefile.am < org/Makefile.am=20 +echo SUBDIRS =3D bug > org/gnu/Makefile.am=20 +cat > org/gnu/bug/Makefile.am <<'END' +JAVAROOT =3D ../../.. +dist_noinst_JAVA =3D Library.java Application.java +END + +cat > org/gnu/bug/Library.java <<'END' +package org.gnu.bug; +public class Library +{ + public Library () + { + // Nothing to do. + } + public static void doSomethingUseful (String arg) + { + System.out.println (arg); + } +} +END + +cat > org/gnu/bug/Application.java <<'END' +import org.gnu.bug.*; +public class Application +{ + public static void main (String args[]) + { + Library lib =3D new Library (); + lib.doSomethingUseful ("PLUGH"); + } +} +END + +$ACLOCAL +$AUTOCONF +$AUTOMAKE +./configure + +unset CLASSPATH || : +$MAKE +$MAKE clean + +CLASSPATH=3D''; export CLASSPATH +$MAKE +$MAKE clean + +unset CLASSPATH || : +$MAKE distcheck + +: =2D-=20 1.7.2.3 --Boundary-00=_UEnSOg7AqG9lzg3-- From debbugs-submit-bounces@debbugs.gnu.org Tue Aug 16 13:03:05 2011 Received: (at control) by debbugs.gnu.org; 16 Aug 2011 17:03:05 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QtN2d-0008G6-W0 for submit@debbugs.gnu.org; Tue, 16 Aug 2011 13:03:05 -0400 Received: from mail-wy0-f172.google.com ([74.125.82.172]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QtN2b-0008Ft-VU for control@debbugs.gnu.org; Tue, 16 Aug 2011 13:03:03 -0400 Received: by wyg8 with SMTP id 8so64948wyg.3 for ; Tue, 16 Aug 2011 10:01:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=from:to:subject:date:user-agent:mime-version:content-type :content-transfer-encoding:message-id; bh=l5sz9L5uoWioz60vQZ1CukdygMMY94VYIxZGQaEWQMM=; b=itYH73VRwekCJ2xxQrQ4s6M7D/dZS4fFX+YHGDOqEAhslJHUTY4EKTCT+KbkXj5IGE ce6c54r1RM/724aFGi/nazhwi1+3aAbY0hHXJ8FIGvHUkN6A+3AGjgrANSgAM+6SJClY LQA1BQnn05xfvgzbQHFz4w74XIEG0BpMLwZ8g= Received: by 10.216.180.77 with SMTP id i55mr4421123wem.100.1313514072878; Tue, 16 Aug 2011 10:01:12 -0700 (PDT) Received: from bigio.localnet (host175-92-dynamic.4-87-r.retail.telecomitalia.it [87.4.92.175]) by mx.google.com with ESMTPS id y61sm157164wec.30.2011.08.16.10.01.11 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 16 Aug 2011 10:01:11 -0700 (PDT) From: Stefano Lattarini To: control@debbugs.gnu.org Subject: none Date: Tue, 16 Aug 2011 19:01:02 +0200 User-Agent: KMail/1.13.3 (Linux/2.6.30-2-686; KDE/4.4.4; i686; ; ) MIME-Version: 1.0 Content-Type: Text/Plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <201108161901.02874.stefano.lattarini@gmail.com> X-Spam-Score: -3.9 (---) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -3.9 (---) tag 9306 patch tag 9245 patch thanks From unknown Mon Jun 23 16:46:38 2025 X-Loop: help-debbugs@gnu.org Subject: bug#9306: Java build errors due to trailing colon in CLASSPATH Resent-From: "Daniel Richard G." Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-automake@gnu.org Resent-Date: Tue, 16 Aug 2011 19:13:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 9306 X-GNU-PR-Package: automake X-GNU-PR-Keywords: patch To: stefano.lattarini@gmail.com, 9306@debbugs.gnu.org X-Debbugs-Original-To: "Stefano Lattarini" , bug-automake@gnu.org X-Debbugs-Original-Cc: 9306@debbugs.gnu.org Received: via spool by submit@debbugs.gnu.org id=B.131352193613076 (code B ref -1); Tue, 16 Aug 2011 19:13:01 +0000 Received: (at submit) by debbugs.gnu.org; 16 Aug 2011 19:12:16 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QtP3g-0003Oq-95 for submit@debbugs.gnu.org; Tue, 16 Aug 2011 15:12:16 -0400 Received: from eggs.gnu.org ([140.186.70.92]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QtP3f-0003Ol-F8 for submit@debbugs.gnu.org; Tue, 16 Aug 2011 15:12:15 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QtP1s-0001NX-W3 for submit@debbugs.gnu.org; Tue, 16 Aug 2011 15:10:26 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_LOW, T_DKIM_INVALID autolearn=unavailable version=3.3.1 Received: from lists.gnu.org ([140.186.70.17]:60282) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QtP1s-0001NT-Sg for submit@debbugs.gnu.org; Tue, 16 Aug 2011 15:10:24 -0400 Received: from eggs.gnu.org ([140.186.70.92]:44538) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QtP1r-0007g9-S9 for bug-automake@gnu.org; Tue, 16 Aug 2011 15:10:24 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QtP1q-0001N2-9M for bug-automake@gnu.org; Tue, 16 Aug 2011 15:10:23 -0400 Received: from out4.smtp.messagingengine.com ([66.111.4.28]:54830) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QtP1q-0001Mk-3D for bug-automake@gnu.org; Tue, 16 Aug 2011 15:10:22 -0400 Received: from compute6.internal (compute6.nyi.mail.srv.osa [10.202.2.46]) by gateway1.messagingengine.com (Postfix) with ESMTP id C528222049; Tue, 16 Aug 2011 15:10:11 -0400 (EDT) Received: from web2.messagingengine.com ([10.202.2.212]) by compute6.internal (MEProxy); Tue, 16 Aug 2011 15:10:11 -0400 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=message-id:from:to:cc:mime-version :content-transfer-encoding:content-type:references:subject :in-reply-to:date; s=smtpout; bh=kblr0rAOPy0LkWXh8pcxkQkOV78=; b= aoe2UojMasVdn0EqrNAc/gbZImZMBv392Dyi5o/ve9tAwkvH4N+d7TZIQpD9Hecu 0oIVIfWMHBrYvW4k4BOVUiZSc6cGHu1Sm4mD4yAdMb70bdf5cmpKvNi33PBW3yOX Kz5Tu3zGdQ/VdLZVTde9S8UX1dlNph03xZfOdtUEznk= Received: by web2.messagingengine.com (Postfix, from userid 99) id A4D0E3C28AF; Tue, 16 Aug 2011 15:10:11 -0400 (EDT) Message-Id: <1313521811.5959.140258130336305@webmail.messagingengine.com> X-Sasl-Enc: 4B1bxKz8abtxTizoRpLblu6+8sDssbRqa3Ge1xnMn+18 1313521811 From: "Daniel Richard G." MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="us-ascii" X-Mailer: MessagingEngine.com Webmail Interface References: <1313438076.6433.140258129915661@webmail.messagingengine.com> <201108161531.00529.stefano.lattarini@gmail.com> In-Reply-To: <201108161531.00529.stefano.lattarini@gmail.com> Date: Tue, 16 Aug 2011 15:10:11 -0400 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 140.186.70.17 X-Spam-Score: -6.1 (------) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.2 (------) On Tue, 2011 Aug 16 15:30+0200, Stefano Lattarini wrote: > > Luckily, as far as I know, the above construct should be portable to > all non-museum shells. So I've used it with only a minor modification > (with the only purpose of making the contruct slighlty clearer): > > CLASSPATH=mumblemumble$${CLASSPATH:+":$$CLASSPATH"} The extra clarity is appreciated; I'm still not used to doing these special variable dereferences :-) > I can reproduce the problem using your test case, and fix it using > your suggestion. I've preparad the attached patch, which I will push > in a couple of days if there are no further comments. The patch works for me, and I defer to you on older shells being able to handle this. > BTW, are you the same "Daniel Richard G." listed in THANKS with the > address "danielg@teragram.com"? If yes, should I update your > address there? The same! That's my work address, and while it remains active, my personal address (@iskunk.org) is the one I usually go by in this realm. Please feel free to update the entry. Regards, --Daniel -- NAME = Daniel Richard G. _\|/_ Remember, skunks MAIL = skunk@iSKUNK.ORG (/o|o\) _- don't smell bad--- MAIL+= skunk@alum.MIT.EDU < (^),> it's the people who WWW = (not there yet!) / \ annoy us that do! From unknown Mon Jun 23 16:46:38 2025 X-Loop: help-debbugs@gnu.org Subject: bug#9306: Java build errors due to trailing colon in CLASSPATH Resent-From: Stefano Lattarini Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-automake@gnu.org Resent-Date: Wed, 17 Aug 2011 07:57:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 9306 X-GNU-PR-Package: automake X-GNU-PR-Keywords: patch To: "Daniel Richard G." Cc: 9306@debbugs.gnu.org X-Debbugs-Original-Cc: 9306@debbugs.gnu.org, bug-automake@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.131356778512704 (code B ref -1); Wed, 17 Aug 2011 07:57:01 +0000 Received: (at submit) by debbugs.gnu.org; 17 Aug 2011 07:56:25 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QtazA-0003Ir-VE for submit@debbugs.gnu.org; Wed, 17 Aug 2011 03:56:25 -0400 Received: from eggs.gnu.org ([140.186.70.92]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Qtaz7-0003Id-W4 for submit@debbugs.gnu.org; Wed, 17 Aug 2011 03:56:22 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QtaxI-0002ye-On for submit@debbugs.gnu.org; Wed, 17 Aug 2011 03:54:29 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,FREEMAIL_FROM, RCVD_IN_DNSWL_LOW,T_DKIM_INVALID autolearn=unavailable version=3.3.1 Received: from lists.gnu.org ([140.186.70.17]:35316) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QtaxI-0002yW-NK for submit@debbugs.gnu.org; Wed, 17 Aug 2011 03:54:28 -0400 Received: from eggs.gnu.org ([140.186.70.92]:35655) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QtaxH-0003QZ-JQ for bug-automake@gnu.org; Wed, 17 Aug 2011 03:54:28 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QtaxG-0002yL-CM for bug-automake@gnu.org; Wed, 17 Aug 2011 03:54:27 -0400 Received: from mail-ww0-f49.google.com ([74.125.82.49]:35898) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QtaxG-0002yE-46 for bug-automake@gnu.org; Wed, 17 Aug 2011 03:54:26 -0400 Received: by wwf10 with SMTP id 10so566391wwf.30 for ; Wed, 17 Aug 2011 00:54:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=from:to:subject:date:user-agent:cc:references:in-reply-to :mime-version:content-type:message-id; bh=A6+HmFS1TZ88m3ePWzyHnfQUIuxUbh1sMiNvGPT4y/E=; b=OOofhtlBtokfR/iY9pO7rv4KBI0JzEgiDDsRpFKj+bKi8yW4/uzIYmMClcc0ttU6c8 ZNVxRpJ+NWWjBbSlXDq75K2wJmTfA/UUQQIPxdeNnDxDm9q8T3g9ux7B0OEpBDv8yt8m lY23PTeAoSzXi/SKTtqtXvHQkIhGhWczUN1ew= Received: by 10.216.187.145 with SMTP id y17mr558342wem.70.1313567665086; Wed, 17 Aug 2011 00:54:25 -0700 (PDT) Received: from bigio.localnet (host47-92-dynamic.9-87-r.retail.telecomitalia.it [87.9.92.47]) by mx.google.com with ESMTPS id g48sm568266wee.37.2011.08.17.00.54.21 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 17 Aug 2011 00:54:22 -0700 (PDT) From: Stefano Lattarini Date: Wed, 17 Aug 2011 09:54:12 +0200 User-Agent: KMail/1.13.3 (Linux/2.6.30-2-686; KDE/4.4.4; i686; ; ) References: <1313438076.6433.140258129915661@webmail.messagingengine.com> <201108161531.00529.stefano.lattarini@gmail.com> <1313521811.5959.140258130336305@webmail.messagingengine.com> In-Reply-To: <1313521811.5959.140258130336305@webmail.messagingengine.com> MIME-Version: 1.0 Content-Type: Multipart/Mixed; boundary="Boundary-00=_lO3SORYPWA/SJnl" Message-Id: <201108170954.13159.stefano.lattarini@gmail.com> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 140.186.70.17 X-Spam-Score: -5.3 (-----) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -5.5 (-----) --Boundary-00=_lO3SORYPWA/SJnl Content-Type: Text/Plain; charset="utf-8" Content-Transfer-Encoding: 7bit On Tuesday 16 August 2011, Daniel Richard wrote: > On Tue, 2011 Aug 16 15:30+0200, Stefano Lattarini wrote: > > BTW, are you the same "Daniel Richard G." listed in THANKS with the > > address "danielg@teragram.com"? If yes, should I update your > > address there? > > The same! That's my work address, and while it remains active, my > personal address (@iskunk.org) is the one I usually go by in this realm. > Please feel free to update the entry. > OK, will do with the attached trivial patch. Thanks, Stefano --Boundary-00=_lO3SORYPWA/SJnl Content-Type: text/x-patch; charset="utf-8"; name="0001-THANKS-Daniel-Richard-G.-Update-e-mail-address.patch" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline; filename="0001-THANKS-Daniel-Richard-G.-Update-e-mail-address.patch" =46rom 4eed80c1b8684ce924163f9b3aaae98ac6b3826e Mon Sep 17 00:00:00 2001 Message-Id: <4eed80c1b8684ce924163f9b3aaae98ac6b3826e.1313567598.git.stefan= o.lattarini@gmail.com> =46rom: Stefano Lattarini Date: Wed, 17 Aug 2011 09:53:07 +0200 Subject: [PATCH] * THANKS (Daniel Richard G.): Update e-mail address. =2D-- ChangeLog | 4 ++++ THANKS | 2 +- 2 files changed, 5 insertions(+), 1 deletions(-) diff --git a/ChangeLog b/ChangeLog index c9ce830..a124259 100644 =2D-- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2011-08-17 Stefano Lattarini + + * THANKS (Daniel Richard G.): Update e-mail address. + 2011-08-16 Daniel Richard G. (tiny change) Stefano Lattarini =20 diff --git a/THANKS b/THANKS index 3d71419..d91c5bb 100644 =2D-- a/THANKS +++ b/THANKS @@ -67,7 +67,7 @@ Dalibor Topic robilad@kaffe.org danbp danpb@nospam.postmaster.co.uk Daniel Jacobowitz drow@false.org Daniel Kahn Gillmor dkg@fifthhorseman.net =2DDaniel Richard G. danielg@teragram.com +Daniel Richard G. skunk@iskunk.org Dave Brolley brolley@redhat.com Dave Korn dave.korn.cygwin@googlemail.com Dave Morrison dave@bnl.gov =2D-=20 1.7.2.3 --Boundary-00=_lO3SORYPWA/SJnl-- From unknown Mon Jun 23 16:46:38 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.427 (Entity 5.427) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: "Daniel Richard G." Subject: bug#9306: closed (Re: bug#9306: Java build errors due to trailing colon in CLASSPATH) Message-ID: References: <201108182127.39989.stefano.lattarini@gmail.com> <1313438076.6433.140258129915661@webmail.messagingengine.com> X-Gnu-PR-Message: they-closed 9306 X-Gnu-PR-Package: automake X-Gnu-PR-Keywords: patch Reply-To: 9306@debbugs.gnu.org Date: Thu, 18 Aug 2011 19:31:03 +0000 Content-Type: multipart/mixed; boundary="----------=_1313695863-31368-1" This is a multi-part message in MIME format... ------------=_1313695863-31368-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #9306: Java build errors due to trailing colon in CLASSPATH which was filed against the automake package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 9306@debbugs.gnu.org. --=20 9306: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D9306 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1313695863-31368-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 9306-done) by debbugs.gnu.org; 18 Aug 2011 19:30:23 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Qu8IE-00088e-W8 for submit@debbugs.gnu.org; Thu, 18 Aug 2011 15:30:22 -0400 Received: from mail-wy0-f172.google.com ([74.125.82.172]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Qu8Ho-00087Q-Uw for 9306-done@debbugs.gnu.org; Thu, 18 Aug 2011 15:30:15 -0400 Received: by wyg8 with SMTP id 8so1635305wyg.3 for <9306-done@debbugs.gnu.org>; Thu, 18 Aug 2011 12:27:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=from:to:subject:date:user-agent:references:in-reply-to:mime-version :content-type:content-transfer-encoding:message-id; bh=4UuH796n9i9maCwTEEWvh76YjQ8byt2TIx3sHhQdSKM=; b=E2Umng7pBYdVOx0eLetSsbdZsnravIp/2AmcrBHB4nglfvZx4WN16FRkdjZqDJ+J+L 5JH705j0pGHxXnlYdMPZDWwsIU+4zEN6b1ozB9yLI3LUTTP7GgZZQmDq1K27aFYeuLF+ DrzVq5j37NaKgp7I0suEswr/xA3IVMfAG8K/Y= Received: by 10.216.238.87 with SMTP id z65mr1115688weq.15.1313695670048; Thu, 18 Aug 2011 12:27:50 -0700 (PDT) Received: from bigio.localnet (host131-92-dynamic.4-87-r.retail.telecomitalia.it [87.4.92.131]) by mx.google.com with ESMTPS id p49sm1700729weq.7.2011.08.18.12.27.48 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 18 Aug 2011 12:27:48 -0700 (PDT) From: Stefano Lattarini To: "Daniel Richard G." , 9306-done@debbugs.gnu.org Subject: Re: bug#9306: Java build errors due to trailing colon in CLASSPATH Date: Thu, 18 Aug 2011 21:27:39 +0200 User-Agent: KMail/1.13.3 (Linux/2.6.30-2-686; KDE/4.4.4; i686; ; ) References: <1313438076.6433.140258129915661@webmail.messagingengine.com> <1313521811.5959.140258130336305@webmail.messagingengine.com> <201108170954.13159.stefano.lattarini@gmail.com> In-Reply-To: <201108170954.13159.stefano.lattarini@gmail.com> MIME-Version: 1.0 Content-Type: Text/Plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <201108182127.39989.stefano.lattarini@gmail.com> X-Spam-Score: -3.9 (---) X-Debbugs-Envelope-To: 9306-done X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -3.9 (---) On Wednesday 17 August 2011, Stefano Lattarini wrote: > On Tuesday 16 August 2011, Daniel Richard wrote: > > On Tue, 2011 Aug 16 15:30+0200, Stefano Lattarini wrote: > > > BTW, are you the same "Daniel Richard G." listed in THANKS with the > > > address "danielg@teragram.com"? If yes, should I update your > > > address there? > > > > The same! That's my work address, and while it remains active, my > > personal address (@iskunk.org) is the one I usually go by in this realm. > > Please feel free to update the entry. > > > OK, will do with the attached trivial patch. > I've pushed both the patches now, and I'm closing the bug report. Thanks, Stefano ------------=_1313695863-31368-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 15 Aug 2011 19:56:27 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Qt3Gs-0002Yr-Uq for submit@debbugs.gnu.org; Mon, 15 Aug 2011 15:56:27 -0400 Received: from eggs.gnu.org ([140.186.70.92]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Qt3Gp-0002Yj-Sb for submit@debbugs.gnu.org; Mon, 15 Aug 2011 15:56:24 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Qt3F9-0004DN-Ch for submit@debbugs.gnu.org; Mon, 15 Aug 2011 15:54:40 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_LOW, T_DKIM_INVALID autolearn=unavailable version=3.3.1 Received: from lists.gnu.org ([140.186.70.17]:47972) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qt3F9-0004DJ-BE for submit@debbugs.gnu.org; Mon, 15 Aug 2011 15:54:39 -0400 Received: from eggs.gnu.org ([140.186.70.92]:35615) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qt3F8-0003uJ-3C for bug-automake@gnu.org; Mon, 15 Aug 2011 15:54:39 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Qt3F6-0004Cv-Vj for bug-automake@gnu.org; Mon, 15 Aug 2011 15:54:38 -0400 Received: from out4.smtp.messagingengine.com ([66.111.4.28]:55053) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qt3F6-0004Cq-Ss for bug-automake@gnu.org; Mon, 15 Aug 2011 15:54:36 -0400 Received: from compute5.internal (compute5.nyi.mail.srv.osa [10.202.2.45]) by gateway1.messagingengine.com (Postfix) with ESMTP id 366DC221B1 for ; Mon, 15 Aug 2011 15:54:36 -0400 (EDT) Received: from web2.messagingengine.com ([10.202.2.212]) by compute5.internal (MEProxy); Mon, 15 Aug 2011 15:54:36 -0400 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=message-id:from:to:mime-version :content-transfer-encoding:content-type:subject:date; s=smtpout; bh=Z9rwy9tdcJKeBmvCzRMl6zig9Ds=; b=RooWHy6JvUAIW4TwZJxrHuXRxu7+ By2E9Rk0p3s7YKYUfx1Z8JyuOj5rgjeAbNnzCZ5GZIXBw8nQciltCUQzWTo0KipB A2wh4tyPh4K0cYxI+8AL9to1+vtq6nhnThVFOzg3zqAXmLl+L5dChrerOm603g4Y hbmZeWBRdN3Uit0= Received: by web2.messagingengine.com (Postfix, from userid 99) id 14B54344A4D; Mon, 15 Aug 2011 15:54:36 -0400 (EDT) Message-Id: <1313438076.6433.140258129915661@webmail.messagingengine.com> X-Sasl-Enc: oD/lkSd/tnoos38SQ6/MhznMhhSUI18KUymugdxqcAbr 1313438076 From: "Daniel Richard G." To: bug-automake@gnu.org MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: multipart/mixed; boundary="_----------=_131343807664330" X-Mailer: MessagingEngine.com Webmail Interface Subject: Java build errors due to trailing colon in CLASSPATH Date: Mon, 15 Aug 2011 15:54:36 -0400 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 140.186.70.17 X-Spam-Score: -6.6 (------) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.6 (------) This is a multi-part message in MIME format. --_----------=_131343807664330 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="us-ascii" Date: Mon, 15 Aug 2011 15:54:36 -0400 X-Mailer: MessagingEngine.com Webmail Interface I am using Automake 1.11.1, and have recently encountered a subtle issue that causes compilation of some Java programs to fail. Here is a typical build failure, produced from a minimal test case I've assembled, using OpenJDK on Ubuntu's Natty release: make[3]: Entering directory `/tmp/automake-java-bug/org/gnu/bug' CLASSPATH=../../..:./../../..:$CLASSPATH javac -d ../../.. Library.java Application.java ./Library.java:5: duplicate class: org.gnu.bug.Library public class Library ^ Application.java:9: cannot access Library bad class file: RegularFileObject[./Library.java] file does not contain class Library Please remove or make sure it appears in the correct subdirectory of the classpath. Library lib = new Library(); ^ 2 errors make[3]: *** [classdist_noinst.stamp] Error 1 If I copy-and-paste the javac invocation, edit it slightly, and run it... env CLASSPATH=../../..:./../../..: javac -d ../../.. Library.java Application.java ...I get the same error. However, if I remove that trailing colon from CLASSPATH, and try it again... env CLASSPATH=../../..:./../../.. javac -d ../../.. Library.java Application.java ...compilation succeeds. If I invoke the above build with env CLASSPATH=/does-not-exist make then compilation likewise succeeds. Note that I do not have CLASSPATH set in my environment. It would appear that a trailing colon in the CLASSPATH environment variable has a special meaning attached to it, which makes Automake's use of CLASSPATH=mumblemumble:$$CLASSPATH in makefiles problematic. (The straightforward solution would be to replace that construct with CLASSPATH=mumblemumble$${CLASSPATH:+:$$CLASSPATH}, but whether all shells can handle that is an open question.) Attached is a tarball containing the minimal test case. --Daniel P.S.: Please Cc: any replies to me, as I am not subscribed to this list. -- NAME = Daniel Richard G. _\|/_ Remember, skunks MAIL = skunk@iSKUNK.ORG (/o|o\) _- don't smell bad--- MAIL+= skunk@alum.MIT.EDU < (^),> it's the people who WWW = (not there yet!) / \ annoy us that do! --_----------=_131343807664330 MIME-Version: 1.0 Content-Disposition: attachment; filename="automake-java-bug.tar.gz" Content-Id: Content-Transfer-Encoding: base64 Content-Type: application/x-gzip; name="automake-java-bug.tar.gz" X-Mailer: MIME::Lite 3.027 (F2.77; A2.06; B3.08; Q3.08) Date: Mon, 15 Aug 2011 15:54:36 -0400 H4sICAx3SU4CA2F1dG9tYWtlLWphdmEtYnVnLnRhcgDtmm1vmlAUx3nL/RR3 7RvWTITL05Jmyai1na2tnei2xDQGFSkTwfDQrVv23Xeg1LKaJm2mmJjzC8lt z71cEv73f84FtNMknNszp/bdvrVro9Stc2tHAgxNg1Y1pLxlisqkPF7AybLO GDMUBf6WZIVBQzWuAtI4sSNKuYkbzp1fz4+zpzG3g9gr+mcR1wnE+KYy/XW9 0F/TVU0F/TUm6xyVUP+Ns/+mPvKCenxDSOwktOb8JCRbAZEzDoMprcHh0dot rX2ltu8Tsk+bnRPCITvr/zBadw14Tf5nOvTLqiTJmP+3p78bpPWt6q8ZDPXf rv7r2wu+Xn9NUQ3Uf/v6t71RZEd3Ytb5f/rrqvqs/opkFPrrmmTIoL+hywz3 f1VQr9OyyIQs7PHMdh0Ky0CEZSDCMjiEaDryvTEd+3YcP5xAfhO+iBcR4S3h IcjDpEGY3HiBS5OQTkLC/yHLsXC/E2huQ28CXRbc9XxkP3amqS9YSZSdZkdu MZd1FyfOXAzTRFxAV+IHQtZ5mM0Js8KlcEO6Mf9fQM/U8x3RnnOb8z94/8H/ iqHk/lcMfP6rhDPzi9ntdHr0AxXFen4QMvHiZBiEXgBNNgA6y0mCmosFOBls HAZF1tjH58Jd9P9ToTdV/+Vl/dcl6GeSqqL/q6r/q2725oswSspbAPHg6Sag dFZpI1Au7nPbC0r1PB5cFyW9yCXU90aQWQLnx+P+Aa7C8xAXV3cGe1ft/umn Paz8Ffl/PbX/Jf6XSvVfVxjUf12HbvR/BVj9o+NW1wIfgvZoJvR/7v/1ef/V /me5/yWG9b9i/0POR/+j/9fs/Rf539CW739ldv/9V8X3fxX7H/I+Ic1vva45 PG5Z2QuBx18CENJoN83Lk1a7mQ09EPNnAEwXu+j/7Lu/56YRJIBxNf5XdWVZ /zUo/OB/TUL/V8I+LetNiNkYXnWb3eZnYcBE/T08skOkddnqCQOzWCpnsFKO Uvf6HR3IopQ18SwNZh8967x/eS52uqdZbGVh3U/V6EAWOR1a3QakHWHw3Mcm GEzMi/zCQ7Pf61yY500BLifDQadh5HhukI9ZzpjnJmFA+If6RfjyTvb+v/Jz 7WOkXPVIMWun37vq97LfuzjB5N97hEkDQRAEQRAEQRAEQRAEQRAEQRAEQRAE QRAEQRAEQZCt8hfQkjFCAFAAAA== --_----------=_131343807664330-- ------------=_1313695863-31368-1--