Bug 280507

Summary: file /var/log/ntp is not owned by any package
Product: [openSUSE] openSUSE 10.3 Reporter: Lars Vogdt <lars.vogdt>
Component: NetworkAssignee: Michael Skibbe <mskibbe>
Status: RESOLVED FIXED QA Contact: E-mail List <qa-bugs>
Severity: Minor    
Priority: P5 - None    
Version: Alpha 4plus   
Target Milestone: ---   
Hardware: All   
OS: openSUSE 10.3   
Whiteboard:
Found By: Development Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---
Bug Depends on:    
Bug Blocks: 280493    

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