Bug 280507 - file /var/log/ntp is not owned by any package
Summary: file /var/log/ntp is not owned by any package
Status: RESOLVED FIXED
Alias: None
Product: openSUSE 10.3
Classification: openSUSE
Component: Network (show other bugs)
Version: Alpha 4plus
Hardware: All openSUSE 10.3
: P5 - None : Minor (vote)
Target Milestone: ---
Assignee: Michael Skibbe
QA Contact: E-mail List
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 280493
  Show dependency treegraph
 
Reported: 2007-06-04 13:12 UTC by Lars Vogdt
Modified: 2007-06-05 08:55 UTC (History)
0 users

See Also:
Found By: Development
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Lars Vogdt 2007-06-04 13:12:17 UTC
The logfile should be owned by the package xntp as the scripts of this package
create it.

Using something like
%ghost %config(noreplace) /var/log/ntp
in the %files list should aviod verify-errors from RPM or security scanners.
Comment 1 Michael Skibbe 2007-06-05 07:17:39 UTC
mbuild report an error if I insert this line:
/work/built/mbuild/boris-mskibbe-1/ppc/Logfile.xntp.spec

[...]
Requires(rpmlib): rpmlib(PayloadFilesHavePrefix) <= 4.0-1 rpmlib(CompressedFileNames) <= 3.0.4-1
Obsoletes: xntpdoc
Checking for unpackaged file(s): /usr/lib/rpm/check-files /var/tmp/xntp-4.2.4-build


RPM build errors:
    File not found: /var/tmp/xntp-4.2.4-build/var/log/ntp
[...]


an idea how to avoid this error?

I see an entry in the changlog. looks like the ghost option is bad.
-------------------------------------------------------------------
Tue Sep  9 18:09:20 CEST 2003 - pthomas@suse.de

- Don't include files possibly created at runtime, not even as ghost.
Comment 2 Lars Vogdt 2007-06-05 08:05:08 UTC
See Bug #280493 Comment #0 - you have to touch the file in %install bevore you can use it in %files.

...and yes: sometimes even S.u.S.E. packagers are wrong ;-)
Comment 3 Michael Skibbe 2007-06-05 08:08:12 UTC
:-)

ok - i thought ghost do some magic and i do not need to touch the file.
Comment 4 Michael Skibbe 2007-06-05 08:55:23 UTC
package checked into stable