[MacPorts] #19234: dbus upgrade fails on macOS (during port upgrade gnucash)
#19234: dbus upgrade fails on macOS (during port upgrade gnucash) ----------------------------------+----------------------------------------- Reporter: kadorken@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Port Bugs Component: ports | Version: 1.7.1 Keywords: dbus machine-id | Port: gnucash ----------------------------------+----------------------------------------- after doing 'sudo port selfupdate' to 1.7.1, I proceeded to try 'sudo port upgrade gnucash' to 2.2.9. I previously had gnucash 2.2.8 installed (quartz version) on MACOS 10.5.6 When the installation got to dbus, the activation of dbus failed, possibly due to an earlier installation ? See the log excerpt that follows: {{{ ---> Building gtk2 ---> Staging gtk2 into destroot ---> Deactivating gtk2 @2.14.7_1+no_x11+quartz ---> Installing gtk2 @2.14.7_2+no_x11+quartz ---> Activating gtk2 @2.14.7_2+no_x11+quartz ---> Cleaning gtk2 ---> Fetching dbus ---> Verifying checksum(s) for dbus ---> Extracting dbus ---> Applying patches to dbus ---> Configuring dbus ---> Building dbus ---> Staging dbus into destroot ---> Deactivating dbus @1.2.12_4 ---> Installing dbus @1.2.12_5 ---> Activating dbus @1.2.12_5 Error: Target org.macports.activate returned: Image error: /opt/local/var/lib/dbus/machine-id already exists and does not belong to a registered port. Unable to activate port dbus. ---> Activating dbus @1.2.12_5 Error: Target org.macports.activate returned: Image error: /opt/local/var/lib/dbus/machine-id already exists and does not belong to a registered port. Unable to activate port dbus. Error: The following dependencies failed to build: dbus Error: Unable to upgrade port: 1 }}} The port upgrade of gnucash proceeded to plug along, with period errors on other dependencies related to dbus not being properly installed. -- Ticket URL: <http://trac.macports.org/ticket/19234> MacPorts <http://www.macports.org/> Ports system for Mac OS
#19234: dbus upgrade fails on macOS (during port upgrade gnucash) ----------------------------------+----------------------------------------- Reporter: kadorken@… | Owner: mcalhoun@… Type: defect | Status: new Priority: Normal | Milestone: Port Bugs Component: ports | Version: 1.7.1 Keywords: gnucash machine-id | Port: dbus ----------------------------------+----------------------------------------- Changes (by blb@…): * keywords: dbus machine-id => gnucash machine-id * owner: macports-tickets@… => mcalhoun@… * port: gnucash => dbus Comment: Since that file is created by dbus during runtime, perhaps it can be deleted in a post-destroot phase (I have a copy of that file as well, and it wasn't installed by the port itself)? -- Ticket URL: <http://trac.macports.org/ticket/19234#comment:1> MacPorts <http://www.macports.org/> Ports system for Mac OS
#19234: dbus upgrade fails on macOS (during port upgrade gnucash) ----------------------------------+----------------------------------------- Reporter: kadorken@… | Owner: mcalhoun@… Type: defect | Status: assigned Priority: Normal | Milestone: Port Bugs Component: ports | Version: 1.7.1 Keywords: gnucash machine-id | Port: dbus ----------------------------------+----------------------------------------- Changes (by mcalhoun@…): * status: new => assigned Comment: This file is created by calling dbus-uuidgen.[[BR]] Prior to r49300, machine-id was created during post-activate and left in ${prefix}/var/lib/dbus/.[[BR]] I thought it was better to create machine-id during post-destroot so it would be removed if[[BR]] ever the user wanted to uninstall dbus.[[BR]] I forgot that upgrading would be a problem. The solution is to simply remove the old file in ${prefix}/var/lib/dbus/.[[BR]] Everything should then proceed. I will try to add some code to give a better error message. -- Ticket URL: <http://trac.macports.org/ticket/19234#comment:2> MacPorts <http://www.macports.org/> Ports system for Mac OS
#19234: dbus upgrade fails on macOS (during port upgrade gnucash) ----------------------------------+----------------------------------------- Reporter: kadorken@… | Owner: mcalhoun@… Type: defect | Status: assigned Priority: Normal | Milestone: Port Bugs Component: ports | Version: 1.7.1 Keywords: gnucash machine-id | Port: dbus ----------------------------------+----------------------------------------- Comment(by jmr@…): Why not add a pre-activate to delete that file from $prefix? -- Ticket URL: <http://trac.macports.org/ticket/19234#comment:3> MacPorts <http://www.macports.org/> Ports system for Mac OS
#19234: dbus upgrade fails on macOS (during port upgrade gnucash) ----------------------------------+----------------------------------------- Reporter: kadorken@… | Owner: mcalhoun@… Type: defect | Status: assigned Priority: Normal | Milestone: Port Bugs Component: ports | Version: 1.7.1 Keywords: gnucash machine-id | Port: dbus ----------------------------------+----------------------------------------- Changes (by mcalhoun@…): * cc: russel.winder@… (added) Comment: Adding reporter of duplicate #19236. -- Ticket URL: <http://trac.macports.org/ticket/19234#comment:4> MacPorts <http://www.macports.org/> Ports system for Mac OS
#19234: dbus upgrade fails on macOS (during port upgrade gnucash) -----------------------------------+---------------------------------------- Reporter: kadorken@… | Owner: mcalhoun@… Type: defect | Status: closed Priority: Normal | Milestone: Port Bugs Component: ports | Version: 1.7.1 Resolution: fixed | Keywords: gnucash machine-id Port: dbus | -----------------------------------+---------------------------------------- Changes (by mcalhoun@…): * status: assigned => closed * resolution: => fixed Comment: Fixed in r49389. -- Ticket URL: <http://trac.macports.org/ticket/19234#comment:5> MacPorts <http://www.macports.org/> Ports system for Mac OS
#19234: dbus upgrade fails on macOS (during port upgrade gnucash) -----------------------------------+---------------------------------------- Reporter: kadorken@… | Owner: mcalhoun@… Type: defect | Status: closed Priority: Normal | Milestone: Port Bugs Component: ports | Version: 1.7.1 Resolution: fixed | Keywords: gnucash machine-id Port: dbus | -----------------------------------+---------------------------------------- Comment(by jmr@…): Hadn't you better check that the file exists first, so new installs don't fail? -- Ticket URL: <http://trac.macports.org/ticket/19234#comment:6> MacPorts <http://www.macports.org/> Ports system for Mac OS
#19234: dbus upgrade fails on macOS (during port upgrade gnucash) -----------------------------------+---------------------------------------- Reporter: kadorken@… | Owner: mcalhoun@… Type: defect | Status: closed Priority: Normal | Milestone: Port Bugs Component: ports | Version: 1.7.1 Resolution: fixed | Keywords: gnucash machine-id Port: dbus | -----------------------------------+---------------------------------------- Comment(by mcalhoun@…): Replying to [comment:6 jmr@…]:
Hadn't you better check that the file exists first, so new installs don't fail? Thank you for catching this.[[BR]] The fix is fixed in r49391.
-- Ticket URL: <http://trac.macports.org/ticket/19234#comment:7> MacPorts <http://www.macports.org/> Ports system for Mac OS
participants (1)
-
MacPorts