Ticket #34192 (new defect)
dbus: binary(pkg/mpkg) package not creating system user accounts upon install
| Reported by: | wheeltong@… | Owned by: | mcalhoun@… |
|---|---|---|---|
| Priority: | Normal | Milestone: | |
| Component: | ports | Version: | 2.0.4 |
| Keywords: | installer pkg mpkg messagebus | Cc: | |
| Port: | dbus |
Description (last modified by ryandesign@…) (diff)
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?
Change History
comment:1 Changed 13 months ago by ryandesign@…
- Owner changed from macports-tickets@… to mcalhoun@…
- Description modified (diff)
- Summary changed from binary(pkg/mpkg) package not creating system user accounts upon install to dbus: binary(pkg/mpkg) package not creating system user accounts upon install
comment:3 follow-up: ↓ 5 Changed 12 months ago 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.
comment:4 Changed 9 months ago 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.
comment:5 in reply to: ↑ 3 Changed 9 months ago by jmr@…
Replying to 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.)


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.