Mailinglist Archive: opensuse-packaging (129 mails)

< Previous Next >
Re: [opensuse-packaging] directories not owned by a package.

On Thursday 2015-04-02 09:20, Mathias Homann wrote:

Am Donnerstag, 2. April 2015, 17:54:57 schrieb doiggl@xxxxxxxxxxxxxxxxxx:
Hello,

How are these errors fixed. ?
What is the syntax to own directories ?

The proper way to fix this would be to check in an installed system which
packages do own those directories, and add the one that "makes the most sense"
as BuildRequires, for example for /etc/apache2/conf.d you'd add a line:
BuildRequires: apache2

This is hardly "proper". It is one way, but not the preferred one.
Besides BuildRequires: apache2, you then also want Requires: apache2 so
that the ownership also holds *outside* the build environment.

However, adding both of these tags is stupid. It pulls in extra packages
for no benefit. Just because you happen to ship a gratitious apache
config does not mean the thing depends on apache, so you really really
do not want to add such artificial dependencies unless the directory has
non-default permissions or ownership. As that is seems to be not the
case for apache, just add /etc/apache2 to the filelist.
--
To unsubscribe, e-mail: opensuse-packaging+unsubscribe@xxxxxxxxxxxx
To contact the owner, e-mail: opensuse-packaging+owner@xxxxxxxxxxxx

< Previous Next >
References