Discussion:
directories not owned by a package
d***@velocitynet.com.au
2010-05-12 03:42:27 UTC
Permalink
Hello,
I get this error in the build process

Preparing packages for installation...
bugzilla-contrib-3.6-15.1
bugzilla-3.6-15.1
warning: user apache does not exist - using root
warning: group apache does not exist - using root
... running 01-check-debuginfo
... testing for empty debuginfo packages
... running 02-check-gcc-output
... testing for serious compiler warnings
(using /usr/lib/build/checks-data/check_gcc_output)
(using //.build.log)
... running 03-check-binary-kernel-log
... running 04-check-filelist
... checking filelist
bugzilla-3.6-15.1.noarch.rpm: directories not owned by a package:
- /etc/apache2
- /etc/apache2/conf.d
System halted.


- What is a way to fix it ?
Can the following be used

%files
%defattr(-,root,root)
.
.
%exclude %{_datadir}/%{name}/etc/apache2
%exclude %{_datadir}/%{name}/etc/apache2/conf.d

Spec file ->
https://build.opensuse.org/package/view_file?file=bugzilla3-6.spec&package=bugzilla3-6&project=home%3Adoiggl
log file ->
https://build.opensuse.org/package/live_build_log?arch=x86_64&package=bugzilla3-6&project=home%3Adoiggl&repository=openSUSE_11.2
Thanks Glenn
Marcus Meissner
2010-05-12 05:36:27 UTC
Permalink
Post by d***@velocitynet.com.au
Hello,
I get this error in the build process
Preparing packages for installation...
bugzilla-contrib-3.6-15.1
bugzilla-3.6-15.1
warning: user apache does not exist - using root
warning: group apache does not exist - using root
... running 01-check-debuginfo
... testing for empty debuginfo packages
... running 02-check-gcc-output
... testing for serious compiler warnings
(using /usr/lib/build/checks-data/check_gcc_output)
(using //.build.log)
... running 03-check-binary-kernel-log
... running 04-check-filelist
... checking filelist
- /etc/apache2
- /etc/apache2/conf.d
System halted.
- What is a way to fix it ?
Requires: apache2
Post by d***@velocitynet.com.au
Can the following be used
%files
%defattr(-,root,root)
.
.
%exclude %{_datadir}/%{name}/etc/apache2
%exclude %{_datadir}/%{name}/etc/apache2/conf.d
No.

You could add
%dir %{_datadir}/%{name}/etc/apache2
%dir %{_datadir}/%{name}/etc/apache2/conf.d

as directories can be owned by multiple packages.

Ciao, Marcus

Continue reading on narkive:
Loading...