Opened 3 months ago

Closed 2 months ago

#70335 closed defect (fixed)

x86_64-dragonfly-binutils @2.41_0 conflicts with x86_64-binutils @2.41_0

Reported by: cooljeanius (Eric Gallager) Owned by:
Priority: Normal Milestone:
Component: ports Version: 2.9.3
Keywords: Cc: kamischi (Karl-Michael Schindler)
Port: x86_64-binutils x86_64-dragonfly-binutils

Description

They both try to install the same license file:

x ./opt/local/bin/x86_64-dragonfly-size
Error: Failed to activate x86_64-dragonfly-binutils: Image error: /opt/local/share/doc/x86_64-binutils/COPYING is being used by the active x86_64-binutils port.  Please deactivate this port first, or use 'port -f activate x86_64-dragonfly-binutils' 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/share/doc/x86_64-binutils/COPYING is being used by the active x86_64-binutils port.  Please deactivate this port first, or use 'port -f activate x86_64-dragonfly-binutils' 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"
DEBUG: dropping privileges: euid changed to 502, egid changed to 20.

This seems to be a common issue with a lot of the cross-binutils ports; each one should probably have its own separate docdir.

Change History (3)

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

Confirming that this also happens with x86_64-embedded-binutils, x86_64-freebsd-binutils, x86_64-linux-binutils, x86_64-netbsd-binutils, and x86_64-openbsd-binutils.

comment:2 Changed 2 months ago by kamischi (Karl-Michael Schindler)

In a77616708e14587a8abe90bc30a52420276102e7/macports-ports (master):

x86_64-binutils: update to 2.42 and fix

Also fixes clash of doc files #70335

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

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.