Opened 5 years ago

Closed 2 years ago

Last modified 2 years ago

#58787 closed defect (fixed)

apache-ant-1.9 +source fails to install

Reported by: chrstphrchvz (Christopher Chavez) Owned by: mascguy (Christopher Nielsen)
Priority: Normal Milestone:
Component: ports Version: 2.5.4
Keywords: Cc:
Port: apache-ant apache-ant-1.9

Description

Default binary install works, but +source install doesn't:

Error: Failed to destroot apache-ant-1.9: error copying "/opt/local/var/macports/build/_opt_local_var_macports_sources_github.com_macports_macports-ports_devel_apache-ant-1.9/apache-ant-1.9/work/apache-ant-1.9.13/apache-ant": no such file or directory

I wonder if the build phase isn't doing anything (i.e. running ./build.sh).

Attachments (1)

main.log (35.3 KB) - added by chrstphrchvz (Christopher Chavez) 5 years ago.

Download all attachments as: .zip

Change History (9)

Changed 5 years ago by chrstphrchvz (Christopher Chavez)

Attachment: main.log added

comment:1 Changed 5 years ago by chrstphrchvz (Christopher Chavez)

I have opened a PR to update to 1.9.14, but it does not address this issue: https://github.com/macports/macports-ports/pull/4934

comment:2 Changed 2 years ago by chrstphrchvz (Christopher Chavez)

Port: apache-ant added

apache-ant (1.10.x) is also affected.

The +source variants have been broken since [acdc5b35d465/macports-ports]: build.cmd true (which the +source variant overrides) was replaced with build {}. So although fix is easy, I am in favor of removing the source variants since they have more specific JDK version requirements (e.g. ant 1.9 cannot be built using JDK 9 or later) and because no one else reported this issue or subscribed themselves to this ticket.

Version 0, edited 2 years ago by chrstphrchvz (Christopher Chavez) (next)

comment:3 Changed 2 years ago by chrstphrchvz (Christopher Chavez)

comment:4 Changed 2 years ago by mascguy (Christopher Nielsen)

Cc: mascguy added

comment:5 Changed 2 years ago by mascguy (Christopher Nielsen)

Developers typically don't build pure-Java components like Ant from source - there's no benefit, as all optimization occurs at runtime via the JVM - so we might as well remove the source variant.

comment:6 Changed 2 years ago by mascguy (Christopher Nielsen)

Cc: mascguy removed
Owner: set to mascguy
Status: newassigned

comment:7 Changed 2 years ago by chrstphrchvz (Christopher Chavez)

Resolution: fixed
Status: assignedclosed

In daa64fb09b2506b8aca984e41cd1caf86ba7d9e7/macports-ports (master):

apache-ant-1.9: update to 1.9.16; remove source variant
Fixes: #58787

comment:8 Changed 2 years ago by chrstphrchvz (Christopher Chavez)

In a6986d454a3be31a0d7c46a3a878a868d1636376/macports-ports (master):

apache-ant: remove source variant

See: #58787

Note: See TracTickets for help on using tickets.