Opened 14 years ago

Closed 14 years ago

#26114 closed defect (worksforme)

cdrtools @3.00_0 - activation failure; conflict on /etc/default/cdrecord

Reported by: tanks4dat@… Owned by: bytestorm@…
Priority: Normal Milestone:
Component: ports Version: 1.9.1
Keywords: Cc:
Port: cdrtools

Description

When I tried to install dvdrw-tools, the install process came to cdrtools dependency and cdrtools failed with an error. I searched for the error and came up with https://trac.macports.org/ticket/23035. Also https://trac.macports.org/ticket/25255 discusses similar behavior but says that it is solved.

results from terminal after failure,

--->  Activating cdrtools @3.00_0
Error: Target org.macports.activate returned: Image error: /etc/default/cdrecord already exists and does not belong to a registered port.  Unable to activate port cdrtools. Use 'port -f activate cdrtools' to force the activation.
Log for cdrtools is at: /Volumes/User/opt/local/var/macports/logs/_Volumes_Users_opt_local_var_macports_sources_rsync.macports.org_release_ports_sysutils_cdrtools/main.log
Error: The following dependencies failed to build: cdrtools
Error: Status 1 encountered during processing.
To report a bug, see <http://guide.macports.org/#project.tickets>

I tried forcing the activation, but that ended with the same error, that /etc/default/cdrecord already existed.


The cdrtools main.log read

:debug:activate activate phase started at Mon Aug 16 20:08:05 PDT 2010
:debug:activate Executing org.macports.activate (cdrtools)
:msg:activate --->  Activating cdrtools @3.00_0
:error:activate Target org.macports.activate returned: Image error: /etc/default/cdrecord already exists and does not belong to a registered port.  Unable to activate port cdrtools. Use 'port -f activate cdrtools' to force the activation.
:debug:activate Backtrace: Image error: /etc/default/cdrecord already exists and does not belong to a registered port.  Unable to activate port cdrtools. Use 'port -f activate cdrtools' to force the activation.
    invoked from within
"throw registry::image-error "Image error: $file already exists and does not belong to a registered port.  Unable to activate port [$port name]. Use 'p..."
    ("foreach" body line 47)
    invoked from within
"foreach file $imagefiles {
                    set srcfile "${imagedir}${file}"

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

                    # To be able to..."
    invoked from within
"try {
            registry::write {
                foreach file $imagefiles {
                    set srcfile "${imagedir}${file}"

                 ..."
    (procedure "_activate_contents" line 26)
    invoked from within
"_activate_contents $requested"
    (procedure "portimage::activate" line 100)
    invoked from within
"registry_activate $name "${version}_${revision}${portvariants}" [array get user_options]"
    (procedure "portactivate::activate_main" line 6)
    invoked from within
"$procedure $targetname"
:notice:activate Log for cdrtools is at: /Volumes/User/opt/local/var/macports/logs/_Volumes_User_opt_local_var_macports_sources_rsync.macports.org_release_ports_sysutils_cdrtools/main.log

I tried virgin ports install, after doing <sudo port -v selfupdate>.

I got the same errors on completion.

--->  Activating cdrtools @3.00_0
Error: Target org.macports.activate returned: Image error: /etc/default/cdrecord already exists and does not belong to a registered port.  Unable to activate port cdrtools. Use 'port -f activate cdrtools' to force the activation.
Log for cdrtools is at: /Volumes/User/opt/local/var/macports/logs/_Volumes_User_opt_local_var_macports_sources_rsync.macports.org_release_ports_sysutils_cdrtools/main.log
Error: Status 1 encountered during processing.
To report a bug, see <http://guide.macports.org/#project.tickets>
Main.log report

:debug:activate activate phase started at Mon Aug 16 21:57:43 PDT 2010
:debug:activate Executing org.macports.activate (cdrtools)
:msg:activate --->  Activating cdrtools @3.00_0
:error:activate Target org.macports.activate returned: Image error: /etc/default/cdrecord already exists and does not belong to a registered port.  Unable to activate port cdrtools. Use 'port -f activate cdrtools' to force the activation.
:debug:activate Backtrace: Image error: /etc/default/cdrecord already exists and does not belong to a registered port.  Unable to activate port cdrtools. Use 'port -f activate cdrtools' to force the activation.
    invoked from within
"throw registry::image-error "Image error: $file already exists and does not belong to a registered port.  Unable to activate port [$port name]. Use 'p..."
    ("foreach" body line 47)
    invoked from within
"foreach file $imagefiles {
                    set srcfile "${imagedir}${file}"

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

                    # To be able to..."
    invoked from within
"try {
            registry::write {
                foreach file $imagefiles {
                    set srcfile "${imagedir}${file}"

                 ..."
    (procedure "_activate_contents" line 26)
    invoked from within
"_activate_contents $requested"
    (procedure "portimage::activate" line 100)
    invoked from within
"registry_activate $name "${version}_${revision}${portvariants}" [array get user_options]"
    (procedure "portactivate::activate_main" line 6)
    invoked from within
"$procedure $targetname"
:info:activate Warning: the following items did not execute (for cdrtools): org.macports.activate
:notice:activate Log for cdrtools is at: /Volumes/User/opt/local/var/macports/logs/_Volumes_User_opt_local_var_macports_sources_rsync.macports.org_release_ports_sysutils_cdrtools/main.log

Thank you.

Change History (2)

comment:1 Changed 14 years ago by jmroot (Joshua Root)

Owner: changed from macports-tickets@… to bytestorm@…
Port: cdrtools added
Summary: "cdrtools @3.00_0 - build failure"cdrtools @3.00_0 - activation failure; conflict on /etc/default/cdrecord

Please remember to fill in the Port field and cc the maintainer.

This isn't a bug unless MacPorts created the existing /etc/default/cdrecord without recording it in the filemap. The port probably shouldn't be installing anything in /etc, but that's a different matter and is covered by #23035.

comment:2 Changed 14 years ago by jmroot (Joshua Root)

Resolution: worksforme
Status: newclosed

Closing since no evidence of a new bug has been shown.

Note: See TracTickets for help on using tickets.