Bug List: (This bug is not in your last search results)   Show last search results      Search page      Enter new bug
Bug#: 110674
Alias:
Product:
Component:
Status: RESOLVED
Resolution: FIXED
Assigned To: SpanKY <vapier@gentoo.org>
Hardware:
OS:
Version:
Priority:
Severity:
Reporter: Ortwin Glueck <odi@odi.ch>
Add CC:
CC:
Remove selected CCs
URL:
Summary:
Status Whiteboard:
Keywords:

Filename Description Type Creator Created Size Actions
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 110674 depends on: Show dependency tree
Bug 110674 blocks:
Votes: 0    Show votes for this bug    Vote for this bug

Additional Comments: (this is where you put emerge --info)


Not eligible to see or edit group visibility for this bug.






View Bug Activity   |   Format For Printing   |   XML   |   Clone This Bug


Description:   Opened: 2005-10-28 00:58 0000
The (empty) file /var/lib/ntp/ntp.drift should not be created by the ebuild.
This is because ntpd will create this file when first started and store
information about the local clock in this file. If the file is present ntpd will
not perform this important initial calibration. See man ntpd.

Actually ntpd logs an error message when started the first time:
 Oct 28 09:46:15 gollum ntpd[3622]: Frequency format error in /var/lib/ntp/ntp.drift
because the drift file is present but empty.

Reproducible: Always
Steps to Reproduce:

------- Comment #1 From SpanKY 2005-10-28 17:56:23 0000 -------
it does it because there were reports iirc about the drift file not being able
to be created properly due to permission issues

if you remove the file and run in droproot mode, does ntpd generate the file
properly ?

------- Comment #2 From Ortwin Glueck 2005-10-29 15:21:35 0000 -------
Droproot is not enabled by default. But the drift file is created by default.
So
the behaviour is not consistent. I expect an ebuild to work out of the box if I
don't change anything, not the opposite.

------- Comment #3 From SpanKY 2005-10-29 18:26:05 0000 -------
droproot is enabled by default

USE=-nodroproot + conf.d/ntpd has NTPD_OPTS="-u ntp:ntp"

------- Comment #4 From Ortwin Glueck 2005-10-30 00:01:08 0000 -------
Oh, true. Sorry. Well, it doesn't matter anyway. The drift file is created
correctly as ntp has it's own folder in /var/lib. And an empty drift file is
invalid in any case.

------- Comment #5 From Ulrich Müller 2006-01-12 04:31:48 0000 -------
Any progress on this issue?

ntpd will create the ntp.drift file with proper ownership if it is absent, so I
believe removing the "touch" and "fowners" lines for ntp.drift from the ebuild
should be enough.

------- Comment #6 From SpanKY 2006-01-13 02:51:00 0000 -------
the other reason the touch is there is to prevent portage from being helpful
and removing the otherwise empty directory on us

ive changed the dodir to keepdir and dropped the touch/fowners

Bug List: (This bug is not in your last search results)   Show last search results      Search page      Enter new bug