Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 670680 - dev-lang/clojure-1.9.0 : cat: maven-classpath: No such file or directory
Summary: dev-lang/clojure-1.9.0 : cat: maven-classpath: No such file or directory
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All 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
: 684022 (view as bug list)
Depends on:
Blocks:
 
Reported: 2018-11-08 16:24 UTC by Toralf Förster
Modified: 2020-04-23 05:19 UTC (History)
1 user (show)

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


Attachments
emerge-info.txt (emerge-info.txt,16.76 KB, text/plain)
2018-11-08 16:24 UTC, Toralf Förster
Details
dev-lang:clojure-1.9.0:20181108-054347.log (dev-lang:clojure-1.9.0:20181108-054347.log,6.03 KB, text/plain)
2018-11-08 16:24 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,200.92 KB, text/plain)
2018-11-08 16:24 UTC, Toralf Förster
Details
environment (environment,149.88 KB, text/plain)
2018-11-08 16:24 UTC, Toralf Förster
Details
etc.portage.tbz2 (etc.portage.tbz2,12.70 KB, application/x-bzip)
2018-11-08 16:24 UTC, Toralf Förster
Details
temp.tbz2 (temp.tbz2,33.11 KB, application/x-bzip)
2018-11-08 16:24 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 2018-11-08 16:24:04 UTC
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/ProjectBuildingException
[ERROR] [Help 2] http://cwiki.apache.org/confluence/display/MAVEN/PluginManagerException
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

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

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.0-desktop-gnome_libressl_20181104-213057

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

gcc-config -l:
 [1] x86_64-pc-linux-gnu-7.3.1
 [2] x86_64-pc-linux-gnu-8.2.0 *

Available Python interpreters, in order of preference:
  [1]   python3.7
  [2]   python3.6
  [3]   python2.7 (fallback)
  [4]   jython2.7 (fallback)
Available Ruby profiles:
  [1]   ruby23 (with Rubygems) *
java-config:
The following VMs are available for generation-2:
*)	IcedTea JDK 3.9.0 [icedtea-bin-8]
Available Java Virtual Machines:
  [1]   icedtea-bin-8  system-vm

emerge -qpvO dev-lang/clojure
[ebuild  N    ] dev-lang/clojure-1.9.0  USE="-source -test"
Comment 1 Toralf Förster gentoo-dev 2018-11-08 16:24:07 UTC
Created attachment 554534 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2018-11-08 16:24:10 UTC
Created attachment 554536 [details]
dev-lang:clojure-1.9.0:20181108-054347.log
Comment 3 Toralf Förster gentoo-dev 2018-11-08 16:24:12 UTC
Created attachment 554538 [details]
emerge-history.txt
Comment 4 Toralf Förster gentoo-dev 2018-11-08 16:24:16 UTC
Created attachment 554540 [details]
environment
Comment 5 Toralf Förster gentoo-dev 2018-11-08 16:24:19 UTC
Created attachment 554542 [details]
etc.portage.tbz2
Comment 6 Toralf Förster gentoo-dev 2018-11-08 16:24:22 UTC
Created attachment 554544 [details]
temp.tbz2
Comment 7 Dennis Schridde 2018-11-12 09:19:37 UTC
I believe the actual error happens before the quoted part:

>>> Compiling source in /tmp/portage/dev-lang/clojure-1.9.0/work/clojure-clojure-e5a8cfa ...
[ERROR] [ERROR] Some problems were encountered while processing the POMs:
[ERROR] Unresolveable build extension: Plugin org.sonatype.plugins:nexus-staging-maven-plugin:1.6.7 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.sonatype.plugins:nexus-staging-maven-plugin:jar:1.6.7 @ 
 @ 
[ERROR] The build could not read 1 project -> [Help 1]
[ERROR]   
[ERROR]   The project org.clojure:clojure:1.9.0 (/tmp/portage/dev-lang/clojure-1.9.0/work/clojure-clojure-e5a8cfa/pom.xml) has 1 error
[ERROR]     Unresolveable build extension: Plugin org.sonatype.plugins:nexus-staging-maven-plugin:1.6.7 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.sonatype.plugins:nexus-staging-maven-plugin:jar:1.6.7: Could not transfer artifact org.sonatype.plugins:nexus-staging-maven-plugin:pom:1.6.7 from/to central (https://repo.maven.apache.org/maven2): repo.maven.apache.org: Name or service not known: Unknown host repo.maven.apache.org: Name or service not known -> [Help 2]
[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/ProjectBuildingException
[ERROR] [Help 2] http://cwiki.apache.org/confluence/display/MAVEN/PluginManagerException
cat: maven-classpath: No such file or directory
cat: maven-classpath: No such file or directory
Wrote maven-classpath.properties for standalone ant use


I would guess that this is a missing dependency / source file detected by FEATURES=network-sandbox.
Comment 8 Dennis Schridde 2018-11-13 17:52:18 UTC
This patch to the Gentoo ebuild makes it build: https://github.com/devurandom/gentoo-overlay/commit/3faf5b966b665c561a9583f30b291d3028e1c6f3

Gathering all the dependencies was quite bothersome: While Clojure has a very short list of things it requires, it feels as if Maven requires half of Maven Central to run.  I completely understand why the original ebuild author tried to skip this step... If any tooling exists to generate a list of artifacts (POMs and JARs) required to build a POM (incl. the Maven plugins required), that would be appreciated and might make updates easier.

It might be beneficial to extract parts of this ebuild into a maven.eclass.

One might also consider installing the clj tool / wrapper script (src/main/resources/) or docs (doc/) from https://github.com/clojure/brew-install -- I did not do that yet, since it also depends on Clojure's own `clojure` wrapper script.
Comment 9 Dennis Schridde 2019-04-19 07:03:04 UTC
This affects Clojure 1.10.0 as well.  The actual error is again:
[ERROR] Unresolveable build extension: Plugin org.sonatype.plugins:nexus-staging-maven-plugin:1.6.7 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.sonatype.plugins:nexus-staging-maven-plugin:jar:1.6.7 @ 

Fixed in https://github.com/devurandom/gentoo-overlay/commit/b99c788c35ebaad12734394651978700c7f0c106

ChangeLog: https://github.com/devurandom/gentoo-overlay/commits/master/dev-lang/clojure
Comment 10 Dennis Schridde 2019-04-19 08:24:36 UTC
I took the liberty to suggest myself as a proxied maintainer: https://github.com/gentoo/gentoo/pull/11741
Comment 11 Paul Jewell 2019-04-27 20:21:35 UTC
Thank you Dennis!
Comment 12 Kent Fredric (IRC: kent\n) (RETIRED) gentoo-dev 2019-06-26 16:20:54 UTC
*** Bug 684022 has been marked as a duplicate of this bug. ***
Comment 13 wolfwood 2019-10-28 23:15:24 UTC
the patch from the pull request works for me. looks like pulling it in is held up on an ask to shrink the size of the patch?
Comment 14 Tom Gillespie 2020-01-03 08:06:18 UTC
See also my pull request for this that avoids maven altogether https://github.com/gentoo/gentoo/pull/14224.
Comment 15 Larry the Git Cow gentoo-dev 2020-04-23 05:19:13 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(-)