The openntpd-5.7_p4-r1 ebuild is missing the pkg_config() step that sets root:root ownership on $NTP_HOME (default /var/lib/openntpd/chroot), the result of which is ntp:root ownership of the $NTP_HOME which prevents it to start with the error "fatal: bad privsep dir /var/lib/openntpd/chroot permissions: 40755". Upgrading openntpd from openntpd-4.0_pre20080406 to 5.7_p4-r1 does not suffer from this issue because installing 4.0 first sets proper $NTP_HOME ownership (root:root). Reproducible: Always Steps to Reproduce: 1. make sure there's no user "ntp" with home dir /var/lib/openntpd/chroot from a previous installation 2. install openntpd-5.7_p4-r1 3. run /etc/init.d/ntpd start Actual Results: ntpd fails to start, logs error "fatal: bad privsep dir /var/lib/openntpd/chroot permissions: 40755" Expected Results: Service running.
I can confirm this bug. ntpd requires /var/lib/openntpd/chroot to be owned by root.
Hmm, yep, when I ripped pkg_config out to get rid of the timezone handling it did indeed lose the chown of the home directory. I know I tested installing earlier versions from scratch but must have forgotten on this one, sorry :(. It actually belongs in pkg_postinst, not pkg_config, I think. Patch attached to bump to -r2 and fix this issue. Man, I was just about to go back and reopen the stable bug :), guess I'll mark another month off on my calendar.
Created attachment 410382 [details, diff] patch ebuild from 5.7_p4-r1 to 5.7_p4-r2
https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9707d9a39d23383579a965eced0d12b8c6ff3cde