Mailinglist Archive: opensuse-buildservice (262 mails)

< Previous Next >
Re: [opensuse-buildservice] Unowned directories question
  • From: Marcus Meissner <meissner@xxxxxxx>
  • Date: Thu, 13 Aug 2009 17:39:40 +0200
  • Message-id: <20090813153940.GA3284@xxxxxxx>
On Fri, Aug 14, 2009 at 01:02:47AM +1000, doiggl@xxxxxxxxxxxxxxxxxx wrote:
Hello
To get past this Warning message I have gotten a workaround for it. (see
workaround below)

Warning message:
bugzilla-3.4.1-14.1.noarch.rpm: directories not owned by a package:
- /etc/httpd
- /etc/httpd/conf.d
- /usr/share/bugzilla/extensions
- /usr/share/bugzilla/lib
bugzilla-doc-3.4.1-14.1.noarch.rpm: directories not owned by a package:
- /usr/share/bugzilla/docs
bugzilla-doc-build-3.4.1-14.1.noarch.rpm: directories not owned by a
package:
- /usr/share/bugzilla/docs
System halted.

#WORKAROUND
#----------

%if 0%{?suse_version}
# With unowned dirs /etc/httpd/, the build will fail so own them ourselves
%dir %{_sysconfdir}/etc/httpd
%dir %{_sysconfdir}/etc/httpd/conf.d
%dir %{_sysconfdir}/etc/httpd/conf.d/bugzilla.conf
%endif

Questions: Does the workaround look ok ?, and at what line should I place
the code in the .specfile ?
Specfile ->
https://build.opensuse.org/package/view_file?file=bugzilla.spec&package=Bugzilla&project=home%3Adoiggl

You can always add
%dir
entries, even for multiple packages. It does not make them automatically own
them. You only own files if listed.

So I guess your chagne is fine.

Ciao, Marcus
--
To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse-buildservice+help@xxxxxxxxxxxx

< Previous Next >
References