[MacPorts] #34192: binary(pkg/mpkg) package not creating system user accounts upon install
#34192: binary(pkg/mpkg) package not creating system user accounts upon install -------------------------------------------+-------------------------------- Reporter: wheeltong@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.0.4 Keywords: installer pkg mpkg messagebus | Port: dbus -------------------------------------------+-------------------------------- when using 'port mpkg dbus' to create the binary package. and installing on the target system with sudo installer -pkg dbus-1.4.18.mpkg -target / I find the corresponding system account 'messagebus' for this package is not created. The same may also be true for other packages requiring system accounts, e.g. avahi Assuming the packages are created successfully, is it correct to expect this behaviour? -- Ticket URL: <https://trac.macports.org/ticket/34192> MacPorts <http://www.macports.org/> Ports system for Mac OS
#34192: dbus: binary(pkg/mpkg) package not creating system user accounts upon install -------------------------------------------+-------------------------------- Reporter: wheeltong@… | Owner: mcalhoun@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.0.4 Keywords: installer pkg mpkg messagebus | Port: dbus -------------------------------------------+-------------------------------- Changes (by ryandesign@…): * owner: macports-tickets@… => mcalhoun@… Old description:
when using 'port mpkg dbus' to create the binary package.
and installing on the target system with
sudo installer -pkg dbus-1.4.18.mpkg -target /
I find the corresponding system account 'messagebus' for this package is not created.
The same may also be true for other packages requiring system accounts, e.g. avahi
Assuming the packages are created successfully, is it correct to expect this behaviour?
New description: when using '`port mpkg dbus`' to create the binary package. and installing on the target system with {{{ sudo installer -pkg dbus-1.4.18.mpkg -target / }}} I find the corresponding system account 'messagebus' for this package is not created. The same may also be true for other packages requiring system accounts, e.g. avahi Assuming the packages are created successfully, is it correct to expect this behaviour? -- Comment: This is because the dbus port is using the old adduser and addgroup procedures. It needs to instead use the new add_users option. Please file additional tickets for any additional ports you discover that need to be similarly updated. -- Ticket URL: <https://trac.macports.org/ticket/34192#comment:1> MacPorts <http://www.macports.org/> Ports system for Mac OS
#34192: dbus: binary(pkg/mpkg) package not creating system user accounts upon install -------------------------------------------+-------------------------------- Reporter: wheeltong@… | Owner: mcalhoun@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.0.4 Keywords: installer pkg mpkg messagebus | Port: dbus -------------------------------------------+-------------------------------- Comment(by wheeltong@…): any advice on a possible work around? -- Ticket URL: <https://trac.macports.org/ticket/34192#comment:2> MacPorts <http://www.macports.org/> Ports system for Mac OS
#34192: dbus: binary(pkg/mpkg) package not creating system user accounts upon install -------------------------------------------+-------------------------------- Reporter: wheeltong@… | Owner: mcalhoun@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.0.4 Keywords: installer pkg mpkg messagebus | Port: dbus -------------------------------------------+-------------------------------- Comment(by bobrien@…): If there is no work around how is this package uninstalled? Pardon my knowledge of MacPorts this is my first day here. I have this issue and I am reluctant to add the user manually myself to every computer in my office. I presume there is a sudo uninstall -pkd dbus command of some sort. -- Ticket URL: <https://trac.macports.org/ticket/34192#comment:3> MacPorts <http://www.macports.org/> Ports system for Mac OS
#34192: dbus: binary(pkg/mpkg) package not creating system user accounts upon install -------------------------------------------+-------------------------------- Reporter: wheeltong@… | Owner: mcalhoun@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.0.4 Keywords: installer pkg mpkg messagebus | Port: dbus -------------------------------------------+-------------------------------- Comment(by jmr@…): The pkg generation in MacPorts is very basic; it just gives you an installer for the files. None of the pre- or post-install/activate code in the portfile is included, because that requires MacPorts to run. A pkg can contain scripts, which could create a user, but such a script would have to be specifically added. -- Ticket URL: <https://trac.macports.org/ticket/34192#comment:4> MacPorts <http://www.macports.org/> Ports system for Mac OS
#34192: dbus: binary(pkg/mpkg) package not creating system user accounts upon install -------------------------------------------+-------------------------------- Reporter: wheeltong@… | Owner: mcalhoun@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.0.4 Keywords: installer pkg mpkg messagebus | Port: dbus -------------------------------------------+-------------------------------- Comment(by jmr@…): Replying to [comment:3 bobrien@…]:
I presume there is a sudo uninstall -pkd dbus command of some sort. There is no officially supported way to uninstall a pkg installed with Apple's Installer. A number of third party apps will do so, with varying degrees of success. (There is no dependency information recorded for pkgs, so getting uninstall right in the general case is impossible.)
-- Ticket URL: <https://trac.macports.org/ticket/34192#comment:5> MacPorts <http://www.macports.org/> Ports system for Mac OS
#34192: dbus: binary(pkg/mpkg) package not creating system user accounts upon install -------------------------------------------+-------------------------------- Reporter: wheeltong@… | Owner: mcalhoun@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.0.4 Keywords: installer pkg mpkg messagebus | Port: dbus -------------------------------------------+-------------------------------- Comment(by wheeltong@…): Just throwing this out there. Considering most of the ports I use come from the GNU/Linux bent...... why was BSD ports chosen over APT or others to (re)manage all of these dependencies. inaptitude...? -- Ticket URL: <https://trac.macports.org/ticket/34192#comment:6> MacPorts <http://www.macports.org/> Ports system for Mac OS
participants (1)
-
MacPorts