[MacPorts] #34343: dbus: uses startupitem.install, which fails on MacPorts < 2.1
#34343: dbus: uses startupitem.install, which fails on MacPorts < 2.1 -------------------------------------+-------------------------------------- Reporter: ryandesign@… | Owner: pixilla@… Type: defect | Status: new Priority: High | Milestone: Component: ports | Version: 2.0.4 Keywords: | Port: dbus -------------------------------------+-------------------------------------- As of r92726 the dbus port already uses the startupitem.install keyword, which does not exist before MacPorts 2.1, therefore, as [http://lists.macosforge.org/pipermail/macports-users/2012-May/028790.html reported on the mailing list], users of MacPorts < 2.1 encounter an error when trying to use this port, for example: {{{ $ port info dbus Error: Unable to open port: can't read "startupitem.install": no such variable }}} If you want to use startupitem.install in the port already, you need to preface any usage of that variable with something like the following so that MacPorts 2.0.x won't fail: {{{ if {[info exists startupitem.install]} }}} -- Ticket URL: <https://trac.macports.org/ticket/34343> MacPorts <http://www.macports.org/> Ports system for Mac OS
#34343: dbus: uses startupitem.install, which fails on MacPorts < 2.1 -------------------------------------+-------------------------------------- Reporter: ryandesign@… | Owner: pixilla@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.0.4 Keywords: | Port: dbus -------------------------------------+-------------------------------------- Changes (by snc@…): * priority: High => Normal Comment: Commented out in r92741. -- Ticket URL: <https://trac.macports.org/ticket/34343#comment:6> MacPorts <http://www.macports.org/> Ports system for Mac OS
#34343: dbus: uses startupitem.install, which fails on MacPorts < 2.1 -------------------------------------+-------------------------------------- Reporter: ryandesign@… | Owner: pixilla@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.0.4 Keywords: | Port: dbus -------------------------------------+-------------------------------------- Comment(by shawn@…): So a fix has been committed, how long does it take before it propagates out to users? Is there a way we can force it? Is there a downside to applying the fix manually? -- Ticket URL: <https://trac.macports.org/ticket/34343#comment:7> MacPorts <http://www.macports.org/> Ports system for Mac OS
#34343: dbus: uses startupitem.install, which fails on MacPorts < 2.1 -------------------------------------+-------------------------------------- Reporter: ryandesign@… | Owner: pixilla@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.0.4 Keywords: | Port: dbus -------------------------------------+-------------------------------------- Comment(by mk@…): Try for now simply this: {{{ sudo port upgrade dbus +no_startupitem }}} This might solve the issue for now without any patches... (Depending on your installation, of course.) -- Ticket URL: <https://trac.macports.org/ticket/34343#comment:8> MacPorts <http://www.macports.org/> Ports system for Mac OS
#34343: dbus: uses startupitem.install, which fails on MacPorts < 2.1 -------------------------------------+-------------------------------------- Reporter: ryandesign@… | Owner: pixilla@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.0.4 Keywords: | Port: dbus -------------------------------------+-------------------------------------- Comment(by jeff.culat@…): It works for me. Thanks -- Ticket URL: <https://trac.macports.org/ticket/34343#comment:9> MacPorts <http://www.macports.org/> Ports system for Mac OS
#34343: dbus: uses startupitem.install, which fails on MacPorts < 2.1 -------------------------------------+-------------------------------------- Reporter: ryandesign@… | Owner: pixilla@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.0.4 Keywords: | Port: dbus -------------------------------------+-------------------------------------- Comment(by shawn@…): That workaround also resolves it for me. Thanks! -- Ticket URL: <https://trac.macports.org/ticket/34343#comment:10> MacPorts <http://www.macports.org/> Ports system for Mac OS
#34343: dbus: uses startupitem.install, which fails on MacPorts < 2.1 -------------------------------------+-------------------------------------- Reporter: ryandesign@… | Owner: pixilla@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.0.4 Keywords: | Port: dbus -------------------------------------+-------------------------------------- Comment(by pixilla@…): Ryan: Would a test/set before the first use of startupitem.install be a good solution? {{{ +# The startupitem.install keyword does not exist in MacPorts < 2.1. +if {![info exists ${startupitem.install}]} { + set startupitem.install yes +} pre-configure { }}} -- Ticket URL: <https://trac.macports.org/ticket/34343#comment:11> MacPorts <http://www.macports.org/> Ports system for Mac OS
#34343: dbus: uses startupitem.install, which fails on MacPorts < 2.1 -------------------------------------+-------------------------------------- Reporter: ryandesign@… | Owner: pixilla@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.0.4 Keywords: | Port: dbus -------------------------------------+-------------------------------------- Comment(by pixilla@…): Correction {{{ +# The startupitem.install keyword does not exist in MacPorts < 2.1. +if {![info exists startupitem.install]} { + set startupitem.install yes +} pre-configure { }}} -- Ticket URL: <https://trac.macports.org/ticket/34343#comment:12> MacPorts <http://www.macports.org/> Ports system for Mac OS
#34343: dbus: uses startupitem.install, which fails on MacPorts < 2.1 -------------------------------------+-------------------------------------- Reporter: ryandesign@… | Owner: pixilla@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.0.4 Keywords: | Port: dbus -------------------------------------+-------------------------------------- Comment(by pixilla@…): Has duplicate #34349 -- Ticket URL: <https://trac.macports.org/ticket/34343#comment:13> MacPorts <http://www.macports.org/> Ports system for Mac OS
#34343: dbus: uses startupitem.install, which fails on MacPorts < 2.1 -------------------------------------+-------------------------------------- Reporter: ryandesign@… | Owner: pixilla@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.0.4 Keywords: | Port: dbus -------------------------------------+-------------------------------------- Comment(by ryandesign@…): Replying to [comment:13 pixilla@…]:
Has duplicate #34349
Really? That looks like a different error message. #34348 is a duplicate, though. Yes, setting startupitem.install to a default value would be fine. -- Ticket URL: <https://trac.macports.org/ticket/34343#comment:14> MacPorts <http://www.macports.org/> Ports system for Mac OS
#34343: dbus: uses startupitem.install, which fails on MacPorts < 2.1 -------------------------------------+-------------------------------------- Reporter: ryandesign@… | Owner: pixilla@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.0.4 Keywords: | Port: dbus -------------------------------------+-------------------------------------- Comment(by pixilla@…): See r92760. I installed MacPorts 2.0.4 and dbus installed with several variant combinations. Please report success or failure. Thanks. -- Ticket URL: <https://trac.macports.org/ticket/34343#comment:16> MacPorts <http://www.macports.org/> Ports system for Mac OS
#34343: dbus: uses startupitem.install, which fails on MacPorts < 2.1 -------------------------------------+-------------------------------------- Reporter: ryandesign@… | Owner: pixilla@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.0.4 Keywords: | Port: dbus -------------------------------------+-------------------------------------- Comment(by ryandesign@…): Has duplicate #34360. -- Ticket URL: <https://trac.macports.org/ticket/34343#comment:19> MacPorts <http://www.macports.org/> Ports system for Mac OS
#34343: dbus: uses startupitem.install, which fails on MacPorts < 2.1 -------------------------------------+-------------------------------------- Reporter: ryandesign@… | Owner: pixilla@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.0.4 Keywords: | Port: dbus -------------------------------------+-------------------------------------- Comment(by pixilla@…): Replying to [comment:16 pixilla@…]:
See r92760.
I installed MacPorts 2.0.4 and dbus installed with several variant combinations.
Please report success or failure. Thanks. Any feedback? r92760 should fix this.
-- Ticket URL: <https://trac.macports.org/ticket/34343#comment:20> MacPorts <http://www.macports.org/> Ports system for Mac OS
#34343: dbus: uses startupitem.install, which fails on MacPorts < 2.1 --------------------------------------+------------------------------------- Reporter: ryandesign@… | Owner: pixilla@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 2.0.4 Resolution: fixed | Keywords: Port: dbus | --------------------------------------+------------------------------------- Changes (by ryandesign@…): * status: new => closed * resolution: => fixed Comment: dbus no longer uses startupitem.install when it's not defined, which is what I filed this ticket about. I verified the port builds fine with MacPorts 2.0.4 and 2.1 beta 1, so I'm calling it resolved. There is a remaining issue for users using the binary; see #34349. -- Ticket URL: <https://trac.macports.org/ticket/34343#comment:21> MacPorts <http://www.macports.org/> Ports system for Mac OS
participants (1)
-
MacPorts