Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.maint.java > #8372 > unrolled thread

Circular build dependencies in antlr3

Started bySergey Basalaev <sbasalaev@gmail.com>
First post2015-09-23 09:10 +0200
Last post2015-09-23 13:50 +0200
Articles 3 — 2 participants

Back to article view | Back to linux.debian.maint.java


Contents

  Circular build dependencies in antlr3 Sergey Basalaev <sbasalaev@gmail.com> - 2015-09-23 09:10 +0200
    Re: Circular build dependencies in antlr3 Emmanuel Bourg <ebourg@apache.org> - 2015-09-23 10:30 +0200
      Re: Circular build dependencies in antlr3 Sergey Basalaev <sbasalaev@gmail.com> - 2015-09-23 13:50 +0200

#8372 — Circular build dependencies in antlr3

FromSergey Basalaev <sbasalaev@gmail.com>
Date2015-09-23 09:10 +0200
SubjectCircular build dependencies in antlr3
Message-ID<qbMlH-5p4-7@gated-at.bofh.it>

[Multipart message — attachments visible in raw view] — view raw

Greetings, debian-java

I wanted to put the latest antlr3 package into my Ubuntu PPA, but I cannot
build it
because apparently it has circular build dependencies.

antlr3   3.5.2-2
Build-Depends: libstringtemplate4-java (>= 4.0.8)

libstringtemplate4-java   4.0.8-2
Build-Depends: antlr3 (>= 3.5.2)

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.

Regards,
Sergey

[toc] | [next] | [standalone]


#8374

FromEmmanuel Bourg <ebourg@apache.org>
Date2015-09-23 10:30 +0200
Message-ID<qbNB7-76g-3@gated-at.bofh.it>
In reply to#8372
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

[toc] | [prev] | [next] | [standalone]


#8376

FromSergey Basalaev <sbasalaev@gmail.com>
Date2015-09-23 13:50 +0200
Message-ID<qbQIG-33j-13@gated-at.bofh.it>
In reply to#8374

[Multipart message — attachments visible in raw view] — view raw

2015-09-23 14:28 GMT+06:00 Emmanuel Bourg <ebourg@apache.org>:

> Le 23/09/2015 08:50, Sergey Basalaev a écrit :
>
> 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
>

Thank you, Emmanuel

I'll try to follow these steps.

Sergey

[toc] | [prev] | [standalone]


Back to top | Article view | linux.debian.maint.java


csiph-web