Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 684536 - dev-lang/clojure - [ERROR] Failed to execute goal on project clojure: Could not resolve dependencies for project org.clojure:clojure:jar:1.10.0: Failed to collect dependencies at org.clojure:spec.alpha:jar:0.2.176: Failed to read artifact descriptor for..
Summary: dev-lang/clojure - [ERROR] Failed to execute goal on project clojure: Could n...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: ARM64 Linux
: Normal normal
Assignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it
URL:
Whiteboard:
Keywords: PullRequest
Depends on:
Blocks:
 
Reported: 2019-04-27 21:22 UTC by Paul Jewell
Modified: 2020-04-23 05:19 UTC (History)
4 users (show)

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


Attachments
emerge --info output (emerge-output,6.39 KB, text/plain)
2019-04-27 21:24 UTC, Paul Jewell
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Paul Jewell 2019-04-27 21:22:18 UTC
When trying to emerge dev-lang/clojure-1.10.0, the following error happens:

>>> Recording dev-lang/clojure in "world" favorites file...

>>> Verifying ebuild manifests

>>> Emerging (1 of 1) dev-lang/clojure-1.10.0::gentoo
 * clojure-1.10.0.tar.gz BLAKE2B SHA512 size ;-) ...                                                                        [ ok ]
 * Using: icedtea-bin-8
>>> Unpacking source...
>>> Unpacking clojure-1.10.0.tar.gz to /var/tmp/portage/dev-lang/clojure-1.10.0/work
>>> Source unpacked in /var/tmp/portage/dev-lang/clojure-1.10.0/work
>>> Preparing source in /var/tmp/portage/dev-lang/clojure-1.10.0/work/clojure-clojure-76b87a6 ...
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/dev-lang/clojure-1.10.0/work/clojure-clojure-76b87a6 ...
Rewriting attributes
Rewriting ./build.xml
>>> Source configured.
>>> Compiling source in /var/tmp/portage/dev-lang/clojure-1.10.0/work/clojure-clojure-76b87a6 ...
[ERROR] Failed to execute goal on project clojure: Could not resolve dependencies for project org.clojure:clojure:jar:1.10.0: Failed to collect dependencies at org.clojure:spec.alpha:jar:0.2.176: Failed to read artifact descriptor for org.clojure:spec.alpha:jar:0.2.176: Could not transfer artifact org.clojure:spec.alpha:pom:0.2.176 from/to central (https://repo.maven.apache.org/maven2): repo.maven.apache.org: Temporary failure in name resolution: Unknown host repo.maven.apache.org: Temporary failure in name resolution -> [Help 1]
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR] 
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException
cat: maven-classpath: No such file or directory
cat: maven-classpath: No such file or directory
Wrote maven-classpath.properties for standalone ant use
 * Disabling all optional ANT_TASKS
Buildfile: /var/tmp/portage/dev-lang/clojure-1.10.0/work/clojure-clojure-76b87a6/build.xml

1.9 builds install without issue.

Reproducible: Always

Steps to Reproduce:
1.emerge -av dev-lang/clojure (having enabled unstable flag for this package first)
2.Error reported
3.


Expected Results:  
Successful compilation and merger
Comment 1 Paul Jewell 2019-04-27 21:24:25 UTC
Created attachment 574458 [details]
emerge --info output

emerge --info output
Comment 2 Kent Fredric (IRC: kent\n) (RETIRED) gentoo-dev 2019-09-16 09:36:35 UTC
Adding Patrice as CC because they did the last 2 version bumps, both of which are broken in this way, while the 1.8 slot still works.

Presumably, he knows how to get this working, as presumably, he tested this beyond just bumping the ebuild.
Comment 3 anonymous 2020-01-02 08:24:18 UTC
I suspect that it fails because the build tries to break out of network sandbox by fetching dependencies from the internet.
Comment 4 anonymous 2020-01-02 08:28:48 UTC
I confirmed that disabling network-sandbox work around the issue. The build is flawed.
Comment 5 Tom Gillespie 2020-01-03 06:14:11 UTC
I have submitted a pull request that fixes this https://github.com/gentoo/gentoo/pull/14224.
Comment 6 Larry the Git Cow gentoo-dev 2020-04-23 05:19:07 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=421fb65443c227152636a9378dd9963bd65427b0

commit 421fb65443c227152636a9378dd9963bd65427b0
Author:     Tom Gillespie <tgbugs@gmail.com>
AuthorDate: 2020-01-03 07:41:15 +0000
Commit:     Kent Fredric <kentnl@gentoo.org>
CommitDate: 2020-04-23 05:03:07 +0000

    dev-lang/clojure: >=1.9.0 fix sandbox violations
    
    This commit updates the clojure ebuilds to use the latest ebuild
    conventions and updates the dependencies to include two new packages.
    
    This is the last in a series of 3 commits that make it possible to build
    >=clojure-1.9.0 on gentoo without pulling in any maven dependencies which
    trigger network-sandbox violations.
    
    To accomplish this two new packages dev-java/spec-alpha and
    dev-java/core-specs-alpha have been added to the tree. They are
    dependencies written in clojure that are required to build clojure but
    that do not themselves depend on clojure.
    
    Closes: https://bugs.gentoo.org/670680
    Closes: https://bugs.gentoo.org/684536
    Closes: https://github.com/gentoo/gentoo/pull/14224
    
    Signed-off-by: Tom Gillespie <tgbugs@gmail.com>
    Signed-off-by: Kent Fredric <kentnl@gentoo.org>

 dev-lang/clojure/clojure-1.10.0.ebuild   | 20 ++++++++++--------
 dev-lang/clojure/clojure-1.9.0-r1.ebuild | 35 ++++++++++++++++----------------
 2 files changed, 29 insertions(+), 26 deletions(-)