Path: csiph.com!optima2.xanadu-bbs.net!xanadu-bbs.net!news.glorb.com!bofh.it!news.nic.it!robomod From: Emmanuel Bourg Newsgroups: linux.debian.maint.java Subject: Re: Circular build dependencies in antlr3 Date: Wed, 23 Sep 2015 10:30:02 +0200 Message-ID: References: X-Original-To: Sergey Basalaev , debian-java@lists.debian.org X-Mailbox-Line: From debian-java-request@lists.debian.org Wed Sep 23 08:28:58 2015 Old-Return-Path: X-Amavis-Spam-Status: No, score=-7.5 tagged_above=-10000 required=5.3 tests=[BAYES_00=-2, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, FREEMAIL_FORGED_FROMDOMAIN=0.198, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.001, LDO_WHITELIST=-5, RCVD_IN_DNSWL_LOW=-0.7] autolearn=ham autolearn_force=no X-Policyd-Weight: using cached result; rate: -7 Dkim-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:subject:to:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-type:content-transfer-encoding; bh=/MwoYhuWhwyrCmbvkFTkrpKts6IfmYoLLgK6qdV8GSM=; b=tRqHST0Aecksl3TojW4U8m8z4XQNhA5B3uIXkFkCD15BoEW5UhZfKupxZY1rfzqXsA JXg0LqT8Oaz1EAYobRvQsejuE2knVm7jrp8k6c+DOEvPqVYm5As9DCciMd0AcS3WDW7s uXg98vaHi3cYsrq/FbMEYB2BpigbkRlBTGYA9LxmquBOIwikoeXElpsgqbHLjNaZneYf 5j9Goj2qIr7FbxZTymKwHiz/CWgoGbUGkTM2ae9EmqGJitzQGiaGjy5b4/Li5vRjqKpn AAQndUxByuAHydFOHHyB5Qk8Cr6PD7mfrgu33v4Kg1KP/m8Bd+1ws7aos/+IZJ5vxEAE cE/Q== X-Received: by 10.194.176.201 with SMTP id ck9mr34230924wjc.108.1442996921629; Wed, 23 Sep 2015 01:28:41 -0700 (PDT) Sender: robomod@news.nic.it X-Enigmail-Draft-Status: N1110 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.2.0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Mailing-List: archive/latest/18688 List-ID: List-URL: List-Archive: https://lists.debian.org/msgid-search/560262B8.6040507@apache.org Approved: robomod@news.nic.it Lines: 24 Organization: linux.* mail to news gateway X-Original-Date: Wed, 23 Sep 2015 10:28:40 +0200 X-Original-Message-ID: <560262B8.6040507@apache.org> X-Original-References: X-Original-Sender: Emmanuel Bourg Xref: csiph.com linux.debian.maint.java:8374 Le 23/09/2015 08:50, Sergey Basalaev a écrit : > So now I'm stuck. How do you build packages with such circular dependencies? > I checked previous versions of both packages in git, but it's still > unclear for me how they were built in the first place. Hi Sergey, I used an intermediary version of antlr (3.3) locally to build stringtemplate4 the first time, and then I built antlr 3.5.2 with stringtemplate4. The sequence is: 1. Upgrade antlr3/3.2 to the version 3.3 2. Build stringtemplate 4.0.6 with antlr 3.3 3. Upgrade antlr3 to the version 3.5.2 4. Upgrade stringtemplate4 to the version 4.0.8 I realize now that I haven't handled this circular dependency in the best way for Debian derivatives, my apologies. This caused a similar issue to the Ubuntu Java maintainers, and they ended up using the .deb from Debian to bootstrap the build. Emmanuel Bourg