[opensuse-buildservice] Unowned directories question
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 Thanks for the advice Glenn -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org
On Fri, Aug 14, 2009 at 01:02:47AM +1000, doiggl@velocitynet.com.au 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@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org
Am Donnerstag, 13. August 2009 17:02:47 schrieb doiggl@velocitynet.com.au:
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 ?
Why do you want to do this only for suse ? This is not a workaround, it is a bugfix, which should be fixed also for non- suse. bye adrian
Specfile -> https://build.opensuse.org/package/view_file?file=bugzilla.spec&package=Bug zilla&project=home%3Adoiggl
Thanks for the advice Glenn
-- Adrian Schroeter SUSE Linux Products GmbH email: adrian@suse.de -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org
On 8/13/2009 at 17:02, <doiggl@velocitynet.com.au> wrote: Hello To get past this Warning message I have gotten a workaround for it. (see workaround below)
%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 ?
No, that does not look ok, considering that openSUSE uses /etc/apache2/conf.d for the configuration files. Try using this small scriplet which will give you proper locations for the config files on the systems: %define apache apache2 %define apache_libexecdir %(%{apxs} -q LIBEXECDIR) %define apache_sysconfdir %(%{apxs} -q SYSCONFDIR) %define apache_includedir %(%{apxs} -q INCLUDEDIR) %define apache_serverroot %(%{apxs} -q PREFIX) %define apache_localstatedir %(%{apxs} -q LOCALSTATEDIR) %define apache_mmn %(MMN=$(%{apxs} -q LIBEXECDIR)_MMN; test -x $MMN && $MMN) This should help you out in a cleaner way, by using the proper variables. (apache_sysconfdir is probably the most interesting for you at the moment). Dominique -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org
Hello, I wanted to do something very simple at this stage to try out, so I tried the following. 1. I comment out the line (not required) %ghost %{bzinstallprefix}/bugzilla/bugzilla-req 2. Next I want to add in the next 4 lines. %{bzinstallprefix}/etc/httpd %{bzinstallprefix}/etc/httpd/conf.d %{bzinstallprefix}/usr/share/bugzilla/extensions %{bzinstallprefix}/usr/share/bugzilla/lib Question: At what section in the .specfile do I add them into ?, so the ownership can be set on them after they have been unpacked/compiled ?. Previously I tried that in the %files section but that was too early in the process, I got a 'File not found' error, so it must be set some where else later, can you help me on where to place these lines of code in the .specfile please Specfile -> https://build.opensuse.org/package/view_file?file=bugzilla.spec&package=Bugzilla&project=home%3Adoiggl Lastlog -> https://build.opensuse.org/package/live_build_log?arch=x86_64&package=Bugzilla&project=home%3Adoiggl&repository=openSUSE_Factory Thanks for the advice Glenn -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org
participants (4)
-
Adrian Schröter
-
doiggl@velocitynet.com.au
-
Dominique Leuenberger
-
Marcus Meissner