On Nov 16, 2012, at 12:32, Bradley Giesbrecht <[email protected]> wrote:

> On Nov 16, 2012, at 9:45 AM, [email protected] wrote:
> 
>> The Buildbot has detected a failed build on builder buildports-lion-x86_64 
>> while building MacPorts.
>> Full details are available at:
>> http://build.macports.org/builders/buildports-lion-x86_64/builds/5901
>> 
>> Buildbot URL: http://build.macports.org/
>> 
>> Buildslave for this Build: apple-lion-x86_64-ports
>> 
>> Build Reason: scheduler
>> Build Source Stamp: [branch trunk] 99758
>> Blamelist: [email protected]
>> 
>> BUILD FAILED: failed status
> 
> The mythtv-core.25 port triggered this build but the failure is for dbus not 
> being able to set the group of a file to a non-existent group.
> 
> The dbus Portfile has this:
> ...
> set dbus_user     messagebus
> set dbus_group    messagebus
> add_users         ${dbus_user} group=${dbus_group} realname=Message\ Bus
> ...
> post-activate {
>    file attributes ${prefix}/var/run/dbus -group ${dbus_group} -owner 
> ${dbus_user}
>    file attributes ${prefix}/libexec/dbus-daemon-launch-helper -group 
> ${dbus_group}
> ...
> 
> 
> Shouldn't this work on the buildbots?  If needed, shouldn't the group 
> "message" be created by "add_users"; before post-activate?

The Snow Leopard and Lion buildbots were just reinstalled (yesterday?) on new 
(virtual) hardware. So they probably have no users created by MacPorts ports 
now and will be getting them recreated as ports are reinstalled.

The dbus port used to use adduser and addgroup in a pre-activate block. In 
r96635 this was changed to use add_users, but the port's revision was not 
increased, so the package the buildbot fetched did not contain this, and was 
still trying to use adduser and addgroup. I would have thought this should 
still have worked...

...except in the case of the no_root variant. Note how the comment in the 
pre-configure block says "Value must be set in pre-configure because dbus_user 
may change in variant." The add_users directive being called from r96635 does 
not take this variant into consideration. Not relevant in the buildbot's case 
since the buildbot isn't requesting that variant, but I thought I'd mention it.

I wanted to quickly updated dbus to 1.4.24 to see if the buildbot would build 
that, but I can't even build it on my system. There's a ticket for updating to 
1.6.8 which just needs a better patch attached; hopefully that will work.

_______________________________________________
macports-dev mailing list
[email protected]
http://lists.macosforge.org/mailman/listinfo/macports-dev

Reply via email to