Bug 705432

Summary: zypp or libzypp needs to own /etc/zypp
Product: [openSUSE] openSUSE 11.4 Reporter: P Linnell <plinnell>
Component: libzyppAssignee: E-mail List <zypp-maintainers>
Status: RESOLVED INVALID QA Contact: E-mail List <qa-bugs>
Severity: Normal    
Priority: P5 - None    
Version: Final   
Target Milestone: ---   
Hardware: Other   
OS: openSUSE 11.4   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description P Linnell 2011-07-13 13:06:19 UTC
User-Agent:       Mozilla/5.0 (X11; Linux x86_64; rv:5.0) Gecko/20100101 Firefox/5.0

In building a package on our private OBS for creating repos and gpg keys for our Linux repos at Cloudera, we get the following failure on SLES/openSUSE 11.4:

cdh-repository-3-7.1.noarch.rpm: directories not owned by a package:
 - /etc/zypp
 - /etc/zypp/repos.d

If the maintainers let me know which exact package should own these for the system, I'll forward an SR with the fix. 

Reproducible: Always

Steps to Reproduce:
1.  package a .repo file 
2.  build fails on OBS on SLES/openSUSE
3.
Comment 1 Michael Andres 2011-07-18 08:10:07 UTC
 $ rpm -qpl libzypp-9.8.6-1.1.x86_64.rpm | grep /etc
 /etc/logrotate.d/zypp-history.lr
 /etc/zypp
 /etc/zypp/repos.d
 /etc/zypp/services.d
 /etc/zypp/systemCheck
 /etc/zypp/zypp.conf

It's 'libzypp' which owns these directories. You probably just need to add it to the packages BuildRequires, so it gets installed and can claim the ownership.