Opened 6 years ago

Closed 6 years ago

#56725 closed defect (fixed)

fetch-crl-launchd fails to activate

Reported by: wyuenho (Jimmy Yuen Ho Wong) Owned by: petrrr
Priority: Normal Milestone:
Component: ports Version: 2.5.2
Keywords: haspatch Cc: dennisvd@…, jmroot (Joshua Root)
Port: fetch-crl-launchd

Description

The error message is Failed to activate fetch-crl-launchd: /opt/local/etc/LaunchDaemons/org.macports.fetch-crl.plist is being used by another port, but there's nothing else in /opt/local/etc/LaunchDaemons. The way the Portfile sets up startupitems is kinds weird and non-standard and I don't understand what's happening.

Log file:

debug:activate activating directory: /
:debug:activate activating directory: /Library
:debug:activate activating directory: /Library/LaunchDaemons
:debug:activate activating file: /Library/LaunchDaemons/org.macports.fetch-crl.plist
:debug:activate activating directory: /opt
:debug:activate activating directory: /opt/local
:debug:activate activating directory: /opt/local/etc
:debug:activate activating directory: /opt/local/etc/LaunchDaemons
:debug:activate Activation failed, rolling back.
:debug:activate deactivating link: /Library/LaunchDaemons/org.macports.fetch-crl.plist
:debug:activate /Library/LaunchDaemons is not empty
:debug:activate /Library is not empty
:debug:activate / is not empty
:error:activate Failed to activate fetch-crl-launchd: /opt/local/etc/LaunchDaemons/org.macports.fetch-crl.plist is being used by another port
:debug:activate Error code: registry::already-active
:debug:activate Backtrace: /opt/local/etc/LaunchDaemons/org.macports.fetch-crl.plist is being used by another port
:debug:activate     while executing
:debug:activate "$port activate [list $src] [list $dest]"
:debug:activate     ("foreach" body line 3)
:debug:activate     invoked from within
:debug:activate "foreach {src dest} $confirmed_rename_list {
:debug:activate                     $port deactivate [list $src]
:debug:activate                     $port activate [list $src] [list $des..."
:debug:activate     invoked from within
:debug:activate "try {
:debug:activate                 $port activate $imagefiles
:debug:activate                 foreach file $files {
:debug:activate                     if {[_activate_file "${extracted_dir}${file..."
:debug:activate     invoked from within
:debug:activate "registry::write {
:debug:activate             # Activate it, and catch errors so we can roll-back
:debug:activate             try {
:debug:activate                 $port activate $imagefiles
:debug:activate        ..."
:debug:activate     invoked from within
:debug:activate "try {
:debug:activate         registry::write {
:debug:activate             foreach file $imagefiles {
:debug:activate                 set srcfile "${extracted_dir}${file}"
:debug:activate 
:debug:activate                 # To be ..."
:debug:activate     (procedure "_activate_contents" line 20)
:debug:activate     invoked from within
:debug:activate "_activate_contents $requested $rename_list"
:debug:activate     (procedure "portimage::activate" line 61)
:debug:activate     invoked from within
:debug:activate "registry_activate $subport $version $revision $portvariants $optionlist"
:debug:activate     (procedure "portactivate::activate_main" line 15)
:debug:activate     invoked from within
:debug:activate "$procedure $targetname"
:error:activate See /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_security_fetch-crl/fetch-crl-launchd/main.log for details.

Tested on: macOS 10.13.5 xcode 9.4.1

Attachments (1)

fetch-crl-Portfile.diff (2.7 KB) - added by jmroot (Joshua Root) 6 years ago.

Download all attachments as: .zip

Change History (4)

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

Cc: dennisvd@… added
Owner: set to petrrr
Status: newassigned

Changed 6 years ago by jmroot (Joshua Root)

Attachment: fetch-crl-Portfile.diff added

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

Cc: jmroot added
Keywords: haspatch added

comment:3 Changed 6 years ago by wyuenho (Jimmy Yuen Ho Wong)

Resolution: fixed
Status: assignedclosed

In 81592e3c24926c1e6ea2b4bcacc44cb34f7c0bc6/macports-ports (master):

fetch-crl-launchd: fix startup item installation

Note: See TracTickets for help on using tickets.