Opened 7 months ago

Closed 7 months ago

#68605 closed defect (fixed)

opencc @1.1.7 conflicts with marisa-trie @0.2.4

Reported by: cooljeanius (Eric Gallager) Owned by: ryandesign (Ryan Carsten Schmidt)
Priority: Normal Milestone:
Component: ports Version: 2.8.1
Keywords: Cc:
Port: opencc marisa-trie

Description (last modified by cooljeanius (Eric Gallager))

They both try to install a libmarisa.a static library:

Error: Failed to activate opencc: Image error: /opt/local/lib/libmarisa.a is being used by the active marisa-trie port.  Please deactivate this port first, or use 'port -f activate opencc' to force the activation.
    while executing
"throw registry::image-error $msg"
    ("foreach" body line 47)
    invoked from within
"foreach file $imagefiles {
                set srcfile "${extracted_dir}${file}"

                # To be able to install links, we test if we can lst..."
    invoked from within
"registry::write {
            foreach file $imagefiles {
                set srcfile "${extracted_dir}${file}"

                # To be able to instal..."
DEBUG: Error code: registry::image-error
DEBUG: Backtrace: Image error: /opt/local/lib/libmarisa.a is being used by the active marisa-trie port.  Please deactivate this port first, or use 'port -f activate opencc' to force the activation.
    while executing
"throw registry::image-error $msg"
    ("foreach" body line 47)
    invoked from within
"foreach file $imagefiles {
                set srcfile "${extracted_dir}${file}"

                # To be able to install links, we test if we can lst..."
    invoked from within
"registry::write {
            foreach file $imagefiles {
                set srcfile "${extracted_dir}${file}"

                # To be able to instal..."
    while executing
"throw [dict get $eOptions -errorcode] [dict get $eOptions -errorinfo]"
    (procedure "_activate_contents" line 200)
    invoked from within
"_activate_contents $requested $rename_list"
    (procedure "portimage::activate" line 70)
    invoked from within
"registry_activate $subport $_inregistry_version $_inregistry_revision $_inregistry_variants $optionlist"
    (procedure "portactivate::activate_main" line 20)
    invoked from within
"$procedure $targetname"

This conflict should either be marked, or fixed.

(I'm on x86_64 Big Sur with Xcode 13)

(also I ran into this while trying to upgrade squirrel-ime, which depends on opencc via its dependency on librime-devel)

Attachments (1)

opencc-main.log (10.3 KB) - added by cooljeanius (Eric Gallager) 7 months ago.
main.log for opencc

Download all attachments as: .zip

Change History (6)

Changed 7 months ago by cooljeanius (Eric Gallager)

Attachment: opencc-main.log added

main.log for opencc

comment:1 Changed 7 months ago by cooljeanius (Eric Gallager)

Description: modified (diff)

comment:2 Changed 7 months ago by cooljeanius (Eric Gallager)

Description: modified (diff)

comment:3 Changed 7 months ago by ryandesign (Ryan Carsten Schmidt)

Cc: ryandesign removed
Owner: set to ryandesign
Status: newaccepted

Thanks. I didn't realize opencc was using bundled versions of marisa-trie and other dependencies. I'll try to sort it out. I am working on updating the marisa-trie port first.

comment:4 Changed 7 months ago by ryandesign (Ryan Carsten Schmidt)

In 6dff9d34fc0d3db8b9a370da24603a453e196b25/macports-ports (master):

marisa-trie: Update to 0.2.6

See: #68605

comment:5 Changed 7 months ago by ryandesign (Ryan Carsten Schmidt)

Resolution: fixed
Status: acceptedclosed

In 76f4c4db65f2d651f60a1072903c9038da990eb5/macports-ports (master):

opencc: Use MacPorts marisa-trie

Closes: #68605

Note: See TracTickets for help on using tickets.