Opened 12 years ago

Closed 9 years ago

#34192 closed defect (fixed)

dbus: binary(pkg/mpkg) package not creating system user accounts upon install

Reported by: bitpup Owned by: MarcusCalhoun-Lopez (Marcus Calhoun-Lopez)
Priority: Normal Milestone:
Component: ports Version: 2.0.4
Keywords: installer pkg mpkg messagebus Cc:
Port: dbus

Description (last modified by ryandesign (Ryan Carsten Schmidt))

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 (7)

comment:1 Changed 12 years ago by ryandesign (Ryan Carsten Schmidt)

Description: modified (diff)
Owner: changed from macports-tickets@… to mcalhoun@…
Summary: binary(pkg/mpkg) package not creating system user accounts upon installdbus: binary(pkg/mpkg) package not creating system user accounts upon install

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.

comment:2 Changed 12 years ago by bitpup

any advice on a possible work around?

comment:3 Changed 12 years 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 12 years ago by jmroot (Joshua Root)

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 12 years ago by jmroot (Joshua Root)

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.)

comment:6 Changed 12 years ago by bitpup

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...?

comment:7 Changed 9 years ago by MarcusCalhoun-Lopez (Marcus Calhoun-Lopez)

Resolution: fixed
Status: newclosed

add_users was added to dbus in r96635.
This ticket probably should have been closed then.

Note: See TracTickets for help on using tickets.