Opened 13 years ago

Closed 13 years ago

#30305 closed defect (fixed)

groovy: 1 required artifact is missing

Reported by: skyisred@… Owned by: breskeby@…
Priority: Normal Milestone:
Component: ports Version: 2.0.0
Keywords: Cc: reid.wilbur@…, packet@…
Port: groovy

Description

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
 

Attachments (2)

main.log (13.1 KB) - added by skyisred@… 13 years ago.
main.log
main.2.log (56.5 KB) - added by reid.wilbur@… 13 years ago.
failed build log

Download all attachments as: .zip

Change History (15)

comment:1 Changed 13 years ago by ryandesign (Ryan Carsten Schmidt)

Owner: changed from macports-tickets@… to breskeby@…
Port: groovy added

Please attach the main.log.

Changed 13 years ago by skyisred@…

Attachment: main.log added

main.log

comment:2 Changed 13 years ago by nerdling (Jeremy Lavergne)

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?

comment:3 Changed 13 years ago by ryandesign (Ryan Carsten Schmidt)

Summary: :error:build Target org.macports.build returned: shell command failedgroovy: 1 required artifact is missing

It built fine for me. :/

comment:4 Changed 13 years ago 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?

comment:5 Changed 13 years ago 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.

comment:6 Changed 13 years ago 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é

comment:7 Changed 13 years ago 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.

comment:8 Changed 13 years ago 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.

Changed 13 years ago by reid.wilbur@…

Attachment: main.2.log added

failed build log

comment:9 Changed 13 years ago by reid.wilbur@…

Cc: reid.wilbur@… added

Cc Me!

comment:10 Changed 13 years ago 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.

comment:11 Changed 13 years ago by packet@…

Cc: packet@… added

Cc Me!

comment:12 Changed 13 years ago by breskeby@…

Status: newassigned

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

comment:13 Changed 13 years ago by breskeby@…

Resolution: fixed
Status: assignedclosed

relocate the local m2 repo used by the groovy ant install to the working directory of this port to avoid permission problems during installation.

Note: See TracTickets for help on using tickets.