Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 619118 - net-misc/openntpd chroot directory not created on fresh installs
Summary: net-misc/openntpd chroot directory not created on fresh installs
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Paul B. Henson
URL:
Whiteboard:
Keywords: InVCS, PATCH
Depends on:
Blocks:
 
Reported: 2017-05-20 20:31 UTC by Michael Morak
Modified: 2017-05-21 19:08 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Patch ebuild so as to create the $NTP_HOME directory during install. (openntpd.patch,403 bytes, patch)
2017-05-20 20:31 UTC, Michael Morak
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Morak 2017-05-20 20:31:29 UTC
Created attachment 473550 [details, diff]
Patch ebuild so as to create the $NTP_HOME directory during install.

When setting up a new system from scratch, emerging openntpd for the first time fails to create the $NTP_HOME directory. This prevents openntpd to start, unless $NTP_HOME is created by hand. Another side effect is that, if $NTP_HOME does not exist during the post-install ebuild phase, the chown command there fails, and portage reports a corresponding error.

I suggest to fix this by creating the $NTP_HOME directory in the ebuild's install phase, see the attached patch.
Comment 1 Christoph Junghans (RETIRED) gentoo-dev 2017-05-21 19:08:04 UTC
commit 131da34ecc8dd592b191470897a7be7eb266eb7c (HEAD -> master, origin/master, origin/HEAD)
Author: Christoph Junghans <junghans@gentoo.org>
Date:   Sun May 21 13:04:50 2017 -0600

    net-misc/openntpd: create chroot (bug #619118)

    Package-Manager: Portage-2.3.5, Repoman-2.3.1