[MacPorts] #30305: :error:build Target org.macports.build returned: shell command failed
#30305: :error:build Target org.macports.build returned: shell command failed --------------------------------+------------------------------------------- Reporter: skyisred@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.0.0 Keywords: | Port: --------------------------------+------------------------------------------- Been trying to use macports to install groovy on mac ox 10.6.8 using sudo port install groovy, but get the following error from main.log {{{ :info:build shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_java_groovy/work/groovy-1.8.0" && ant install -DskipTests=true " returned error 1 :error:build Target org.macports.build returned: shell command failed (see log for details) :debug:build Backtrace: shell command failed (see log for details) while executing "command_exec build" (procedure "portbuild::build_main" line 8) invoked from within "$procedure $targetname" :info:build Warning: the following items did not execute (for groovy): org.macports.activate org.macports.build org.macports.destroot org.macports.install :notice:build Log for groovy is at: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_ports_java_groovy/main.log }}} -- Ticket URL: <https://trac.macports.org/ticket/30305> MacPorts <http://www.macports.org/> Ports system for Mac OS
#30305: :error:build Target org.macports.build returned: shell command failed --------------------------------+------------------------------------------- Reporter: skyisred@… | Owner: breskeby@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.0.0 Keywords: | Port: groovy --------------------------------+------------------------------------------- Changes (by ryandesign@…): * owner: macports-tickets@… => breskeby@… * port: => groovy Comment: Please attach the main.log. -- Ticket URL: <https://trac.macports.org/ticket/30305#comment:1> MacPorts <http://www.macports.org/> Ports system for Mac OS
#30305: :error:build Target org.macports.build returned: shell command failed --------------------------------+------------------------------------------- Reporter: skyisred@… | Owner: breskeby@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.0.0 Keywords: | Port: groovy --------------------------------+------------------------------------------- Comment(by snc@…): org.fusesource.jansi:jansi:jar:1.6 is missing. It suggests manually downloading as a workaround: should we create a second distfile to handle this or is the host only temporarily down? -- Ticket URL: <https://trac.macports.org/ticket/30305#comment:2> MacPorts <http://www.macports.org/> Ports system for Mac OS
#30305: groovy: 1 required artifact is missing --------------------------------+------------------------------------------- Reporter: skyisred@… | Owner: breskeby@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.0.0 Keywords: | Port: groovy --------------------------------+------------------------------------------- Comment(by ryandesign@…): It built fine for me. :/ -- Ticket URL: <https://trac.macports.org/ticket/30305#comment:3> MacPorts <http://www.macports.org/> Ports system for Mac OS
#30305: groovy: 1 required artifact is missing --------------------------------+------------------------------------------- Reporter: skyisred@… | Owner: breskeby@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.0.0 Keywords: | Port: groovy --------------------------------+------------------------------------------- Comment(by skyisred@…): jansi-1.6.jar is in groovy-1.8.1/lib folder. Do I need to move it somewhere else or do anything so it sees that file? -- Ticket URL: <https://trac.macports.org/ticket/30305#comment:4> MacPorts <http://www.macports.org/> Ports system for Mac OS
#30305: groovy: 1 required artifact is missing --------------------------------+------------------------------------------- Reporter: skyisred@… | Owner: breskeby@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.0.0 Keywords: | Port: groovy --------------------------------+------------------------------------------- Comment(by breskeby@…): the groovy installation downloads some artifacts from maven repositories. I just tested the build again with an empty local maven repo and it works fine for me too. not yet sure what happened during your build. -- Ticket URL: <https://trac.macports.org/ticket/30305#comment:5> MacPorts <http://www.macports.org/> Ports system for Mac OS
#30305: groovy: 1 required artifact is missing --------------------------------+------------------------------------------- Reporter: skyisred@… | Owner: breskeby@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.0.0 Keywords: | Port: groovy --------------------------------+------------------------------------------- Comment(by breskeby@…): after having a closer look on your log file, I assume that you may have write access problems within your .m repository. can you retry the port installation with a deleted/removed ~/.m2 directory. Do you have write access to this directory? regards, René -- Ticket URL: <https://trac.macports.org/ticket/30305#comment:6> MacPorts <http://www.macports.org/> Ports system for Mac OS
#30305: groovy: 1 required artifact is missing --------------------------------+------------------------------------------- Reporter: skyisred@… | Owner: breskeby@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.0.0 Keywords: | Port: groovy --------------------------------+------------------------------------------- Comment(by skyisred@…): When I tried to delete it as a normal user, I wasn't able to. I had to use sudo bash and then deleted the .m2 directory. Tried a new install of macport and still the same main.log. -- Ticket URL: <https://trac.macports.org/ticket/30305#comment:7> MacPorts <http://www.macports.org/> Ports system for Mac OS
#30305: groovy: 1 required artifact is missing --------------------------------+------------------------------------------- Reporter: skyisred@… | Owner: breskeby@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.0.0 Keywords: | Port: groovy --------------------------------+------------------------------------------- Comment(by reid.wilbur@…): I'm seeing a similar issue. I tried removing the ~/.m2 dir, which I had to sudo to get it to work, but still see similar errors. Seems weird to me that the artifact dirs in the .m2 dir are owned by root, presumably because I'm executing "sudo port install groovy" but at the top of the build log :debug:main Privilege de-escalation not attempted as not running as root. -- Ticket URL: <https://trac.macports.org/ticket/30305#comment:8> MacPorts <http://www.macports.org/> Ports system for Mac OS
#30305: groovy: 1 required artifact is missing --------------------------------+------------------------------------------- Reporter: skyisred@… | Owner: breskeby@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.0.0 Keywords: | Port: groovy --------------------------------+------------------------------------------- Comment(by packet@…): I also encountered this bug. I was able to fix it by deleting my old .m2 directory and creating a new .m2 directory, which I then made world- writable (777). This worked. After the groovy port was successfully built, there were some new subdirectories owned by the user "macports". It would probably be best if the groovy port used its own maven .m2 directory and not the one belonging to the user executing the "port" command. -- Ticket URL: <https://trac.macports.org/ticket/30305#comment:10> MacPorts <http://www.macports.org/> Ports system for Mac OS
#30305: groovy: 1 required artifact is missing --------------------------------+------------------------------------------- Reporter: skyisred@… | Owner: breskeby@… Type: defect | Status: assigned Priority: Normal | Milestone: Component: ports | Version: 2.0.0 Keywords: | Port: groovy --------------------------------+------------------------------------------- Changes (by breskeby@…): * status: new => assigned Comment: thanks for the answers here. i have an idea how to fix this and hope to get it done this evening. thx for your patience -- Ticket URL: <https://trac.macports.org/ticket/30305#comment:12> MacPorts <http://www.macports.org/> Ports system for Mac OS
#30305: groovy: 1 required artifact is missing ---------------------------------+------------------------------------------ Reporter: skyisred@… | Owner: breskeby@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 2.0.0 Resolution: fixed | Keywords: Port: groovy | ---------------------------------+------------------------------------------ Changes (by breskeby@…): * status: assigned => closed * resolution: => fixed Comment: relocate the local m2 repo used by the groovy ant install to the working directory of this port to avoid permission problems during installation. -- Ticket URL: <https://trac.macports.org/ticket/30305#comment:13> MacPorts <http://www.macports.org/> Ports system for Mac OS
participants (1)
-
MacPorts