Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 739746 - dev-java/antlr-3.5.2 : * java-config --classpath=stringtemplate-4 failed
Summary: dev-java/antlr-3.5.2 : * java-config --classpath=stringtemplate-4 failed
Status: RESOLVED DUPLICATE of bug 742554
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Java team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-08-31 15:45 UTC by Toralf Förster
Modified: 2021-03-19 21:22 UTC (History)
5 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge-info.txt (emerge-info.txt,16.94 KB, text/plain)
2020-08-31 15:45 UTC, Toralf Förster
Details
dev-java:antlr-3.5.2:20200831-004107.log (dev-java:antlr-3.5.2:20200831-004107.log,2.76 KB, text/plain)
2020-08-31 15:45 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,178.96 KB, text/plain)
2020-08-31 15:45 UTC, Toralf Förster
Details
environment (environment,153.43 KB, text/plain)
2020-08-31 15:45 UTC, Toralf Förster
Details
etc.portage.tbz2 (etc.portage.tbz2,22.25 KB, application/x-bzip)
2020-08-31 15:45 UTC, Toralf Förster
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster gentoo-dev 2020-08-31 15:45:19 UTC
 * ERROR: dev-java/antlr-3.5.2::gentoo failed (compile phase):
 *   java-config --classpath=stringtemplate-4 failed
 * 

  -------------------------------------------------------------------

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.1_desktop-libressl-20200826-071836

  -------------------------------------------------------------------

gcc-config -l:
 [1] x86_64-pc-linux-gnu-10.2.0 *
clang version 10.0.1 
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/lib/llvm/10/bin
/usr/lib/llvm/10
10.0.1
Available Python interpreters, in order of preference:
  [1]   python3.7
  [2]   python3.9 (fallback)
  [3]   python3.8 (fallback)
  [4]   python2.7 (fallback)
  [5]   pypy3 (fallback)
Available Ruby profiles:
  [1]   ruby25 (with Rubygems) *
Available Rust versions:
  [1]   rust-bin-1.46.0
  [2]   rust-1.46.0 *
The following VMs are available for generation-2:
*)	IcedTea JDK 3.16.0 [icedtea-bin-8]
Available Java Virtual Machines:
  [1]   icedtea-bin-8  system-vm

The Glorious Glasgow Haskell Compilation System, version 8.8.4

  timestamp(s) of HEAD at this tinderbox image:
/var/db/repos/gentoo	Mon Aug 31 12:05:42 AM UTC 2020
/var/db/repos/libressl	Mon Aug 10 09:13:35 AM UTC 2020

emerge -qpvO dev-java/antlr
[ebuild  NS   ] dev-java/antlr-4.5.3 [2.7.7-r8] USE="-doc -source -test% (-examples%)"
Comment 1 Toralf Förster gentoo-dev 2020-08-31 15:45:21 UTC
Created attachment 657620 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2020-08-31 15:45:22 UTC
Created attachment 657622 [details]
dev-java:antlr-3.5.2:20200831-004107.log
Comment 3 Toralf Förster gentoo-dev 2020-08-31 15:45:24 UTC
Created attachment 657624 [details]
emerge-history.txt
Comment 4 Toralf Förster gentoo-dev 2020-08-31 15:45:26 UTC
Created attachment 657626 [details]
environment
Comment 5 Toralf Förster gentoo-dev 2020-08-31 15:45:28 UTC
Created attachment 657628 [details]
etc.portage.tbz2
Comment 6 Doppler 2020-09-05 17:30:28 UTC
afaict, this is related to commit faa407032918b43fafe7d4e1de85dde4d30ba4f2, temporarily reverting it allowed me to build antlr-3.5.2
Comment 7 Larry the Git Cow gentoo-dev 2020-12-14 11:27:55 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=328e8d91d758ff48a29908db00c416a4389f4220

commit 328e8d91d758ff48a29908db00c416a4389f4220
Author:     Miroslav Šulc <fordfrog@gentoo.org>
AuthorDate: 2020-12-14 11:27:40 +0000
Commit:     Miroslav Šulc <fordfrog@gentoo.org>
CommitDate: 2020-12-14 11:27:40 +0000

    dev-java/antlr: migrated 3.5.2 to eapi7
    
    Closes: https://bugs.gentoo.org/739746
    Package-Manager: Portage-3.0.12, Repoman-3.0.2
    Signed-off-by: Miroslav Šulc <fordfrog@gentoo.org>

 .../antlr/{antlr-3.5.2.ebuild => antlr-3.5.2-r1.ebuild}    | 14 +++++++++-----
 1 file changed, 9 insertions(+), 5 deletions(-)
Comment 8 Miroslav Šulc gentoo-dev 2020-12-14 11:29:47 UTC
i found the fix does not work on another computer
Comment 9 Miroslav Šulc gentoo-dev 2020-12-14 11:34:11 UTC
ok, the reason for this is that antlr-3.5.2 depends on stringtemplate:4 which has in PDEPEND antlr:3.5 which cannot be found as it is not installed yet. when antlr:3.5 is already installed, the issue should be gone.
Comment 10 Simon de Hartog 2021-01-23 08:59:56 UTC
Hi,

I tried installing antlr 4(!) today, which required me to upgrade antlr 3 as well. I ran in to the bug mentioned here. stringtemplate:4 installs fine, but when I try to install antlr 4, requiring antlr 3, the compilation of antlr 3.5.2 fails because it fetches the classpath from stringtemplate:4, which needs antlr 3.5, but in this case, is not installed yet. So the circular dependency problem is fixed for stringtemplate:4 installs, but not for antlr 3.5, needing stringtemplate:4, needing an actual installed antlr:3.5.

So how can I arrange for antlr 3.5 to get installed? Actually, my main goal is to install antlr:4, but other packages on my system need antlr 3.

Kind regards,
Simon de Hartog
Comment 11 Georgy Yakovlev archtester gentoo-dev 2021-03-19 21:22:45 UTC
closing in favor of 742554 which contains a workaround in the comment section.

*** This bug has been marked as a duplicate of bug 742554 ***
Comment 12 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2021-03-19 21:22:57 UTC
https://bugs.gentoo.org/742554#c4