Opened 6 years ago

Closed 3 years ago

#53939 closed defect (fixed)

commons-collections @3.2.1: remove(Object,Object) in MultiHashMap cannot implement remove(Object,Object) in Map

Reported by: nlpcall Owned by: chrstphrchvz (Christopher Chavez)
Priority: Normal Milestone:
Component: ports Version: 2.4.1
Keywords: Cc: doushichao (doushichao), chrstphrchvz (Christopher Chavez)
Port: commons-collections

Description

I am trying to install tomcat6, and the commons-collections dependency fails to install. There seem to be multiple problems.

The first error was:

Error: Failed to build commons-collections: command execution failed
Error: See /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_java_commons-collections/commons-collections/main.log for details.
Error: Follow https://guide.macports.org/#project.tickets to report a bug.
Error: Processing of port tomcat6 failed

...and a look in the log revealed that it was trying to use lbzip2, which I had not installed, and which was not listed as a dependency of tomcat6. So, I installed lbzip2 manually, and then tried to install again. This time, the error has something to do with java errors. See attached log.

I have run port selfupdate and port upgrade outdated.

Attachments (1)

main.log (23.4 KB) - added by nlpcall 6 years ago.

Download all attachments as: .zip

Change History (11)

Changed 6 years ago by nlpcall

Attachment: main.log added

comment:1 Changed 6 years ago by nlpcall

I tried installing this on a colleague's computer, and received the same errors.

comment:2 Changed 6 years ago by mf2k (Frank Schima)

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

comment:3 Changed 6 years ago by nlpcall

Any progress on this?

comment:4 Changed 6 years ago by rodaddy (Rico)

I am also having this issue. It's killing my ability to do an upgrade outdated

comment:5 Changed 6 years ago by kencu (Ken)

Java ports are not my thing, but a quick search

<https://www.google.ca/?gws_rd=ssl#q=commons+collections+%22return+type+Object+is+not+compatible+with+boolean%22>

shows a number of reports regarding errors with common collections 3.2.1 not building with newer versions of jdk like jdk8.

See: <https://issues.apache.org/jira/browse/COLLECTIONS-527>

<https://bugs.gentoo.org/show_bug.cgi?id=508056>

<https://forums.gentoo.org/viewtopic-t-988970-start-0.html>

comment:6 Changed 6 years ago by ryandesign (Ryan Schmidt)

Cc: doushichao added
Summary: commons-collections 3.2.1: cannot installcommons-collections @3.2.1: remove(Object,Object) in MultiHashMap cannot implement remove(Object,Object) in Map

Has duplicate #54582.

comment:7 Changed 4 years ago by mf2k (Frank Schima)

Owner: blair deleted

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

Cc: chrstphrchvz added

comment:9 in reply to:  5 Changed 3 years ago by chrstphrchvz (Christopher Chavez)

This port (and likely others) either needs to incorporate a third-party patch for Java 8+ compilation, be rewritten to use the binary distribution, or be removed entirely. This port was mainly needed by tomcat5, tomcat6, and struts, which have all been removed.

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

Owner: set to chrstphrchvz
Resolution: fixed
Status: assignedclosed

In ef8c2c5ad6e919ddc1ae641e7d2dbeadac502675/macports-ports (master):

commons-collections: delete port

Was needed primarily for tomcat5, tomcat6, and struts, which were removed.
Was never updated to 3.2.2 (released 2015).

Closes: #53939

Has fallback dependency on kaffe
See: #60206

Note: See TracTickets for help on using tickets.