Bug 248234 - devel/py-buildbot home directory environment incorrect
Summary: devel/py-buildbot home directory environment incorrect
Status: New
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Many People
Assignee: Kubilay Kocak
Depends on:
Reported: 2020-07-24 03:05 UTC by ari
Modified: 2020-07-24 03:05 UTC (History)
0 users

See Also:
bugzilla: maintainer-feedback? (koobs)


Note You need to log in before you can comment on or make changes to this bug.
Description ari 2020-07-24 03:05:47 UTC
After installing the port in a new FreeBSD 12.1 jail, and starting it with the default 'buildbot' user, the buildbot environment contains a HOME pointing to /root instead of /home/buildbot.

Passing --uid to twistd isn't setting the home directory to the correct place.

A more FreeBSD approach to running with the correct user is to set the variable:


buildbot_worker_uid isn't the best way to do it, since that doesn't cause rc.subr to properly su to the correct user and twistd is itself launched as root.

My workaround now is to set:

buildbot_worker_env="HOME=/home/buildbot USER=buildbot"