[opensuse-packaging] directories not owned by a package.
Hello, How are these errors fixed. ? What is the syntax to own directories ? Thanks --Glenn Spec: https://build.opensuse.org/package/view_file/home:doiggl/bugzilla/bugzilla.s... Log: https://build.opensuse.org/package/live_build_log/home:doiggl/bugzilla/openS... [ 74s] Provides: bugzilla-contrib = 4.4.8-77.1 perl(Bugzilla) [ 74s] Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 [ 74s] Requires: /bin/bash /bin/sh /usr/bin/env /usr/bin/perl /usr/bin/python [ 74s] Checking for unpackaged file(s): /usr/lib/rpm/check-files /home/abuild/rpmbuild/BUILDROOT/bugzilla-4.4.8-77.1.x86_64 [ 74s] Wrote: /home/abuild/rpmbuild/SRPMS/bugzilla-4.4.8-77.1.src.rpm [ 81s] Wrote: /home/abuild/rpmbuild/RPMS/noarch/bugzilla-4.4.8-77.1.noarch.rpm [ 81s] Wrote: /home/abuild/rpmbuild/RPMS/noarch/bugzilla-debugsource-4.4.8-77.1.noarch.rpm [ 83s] Wrote: /home/abuild/rpmbuild/RPMS/noarch/bugzilla-doc-4.4.8-77.1.noarch.rpm [ 84s] Wrote: /home/abuild/rpmbuild/RPMS/noarch/bugzilla-doc-build-4.4.8-77.1.noarch.rpm [ 84s] Wrote: /home/abuild/rpmbuild/RPMS/noarch/bugzilla-contrib-4.4.8-77.1.noarch.rpm [ 84s] Executing(%clean): /bin/sh -e /var/tmp/rpm-tmp.EMerRX [ 84s] + umask 022 [ 84s] + cd /home/abuild/rpmbuild/BUILD [ 84s] + cd bugzilla-4.4.8 [ 84s] + /usr/bin/rm -rf /home/abuild/rpmbuild/BUILDROOT/bugzilla-4.4.8-77.1.x86_64 [ 84s] + exit 0 [ 84s] ... checking for files with abuild user/group [ 84s] ... running 00-check-install-rpms [ 84s] ... installing all built rpms [ 84s] Preparing packages... [ 84s] bugzilla-doc-build-4.4.8-77.1.noarch [ 84s] bugzilla-contrib-4.4.8-77.1.noarch [ 84s] bugzilla-doc-4.4.8-77.1.noarch [ 84s] bugzilla-4.4.8-77.1.noarch [ 84s] warning: group apache does not exist - using root [ 85s] CGI will be removed from the Perl core distribution in the next major release. Please install it from CPAN. It is being used at (eval 10), line 1. [ 85s] CGI::Util will be removed from the Perl core distribution in the next major release. Please install it from CPAN. It is being used at /usr/lib/perl5/5.20.1/CGI.pm, line 29. [ 85s] bugzilla-debugsource-4.4.8-77.1.noarch [ 85s] ... running 01-check-debuginfo [ 85s] ... testing for empty debuginfo packages [ 85s] ! [ 85s] ! //.build.packages/RPMS/noarch/bugzilla-debugsource-4.4.8-77.1.noarch.rpm: empty debuginfo/debugsource package, deleting [ 85s] ! [ 85s] ... running 02-check-gcc-output [ 85s] ... testing for serious compiler warnings [ 85s] (using /usr/lib/build/checks-data/check_gcc_output) [ 85s] (using //.build.log) [ 85s] ... running 03-check-binary-kernel-log [ 85s] ... running 04-check-filelist [ 85s] ... checking filelist [ 85s] bugzilla-4.4.8-77.1.noarch.rpm: directories not owned by a package: [ 85s] - /etc/httpd [ 85s] - /etc/httpd/conf.d [ 85s] - /usr/share/bugzilla/contrib [ 85s] bugzilla-doc-4.4.8-77.1.noarch.rpm: directories not owned by a package: [ 85s] - /usr/share/bugzilla/docs [ 85s] - /usr/share/bugzilla/docs/en [ 85s] - /usr/share/bugzilla/docs/xsl [ 85s] bugzilla-contrib-4.4.8-77.1.noarch.rpm: directories not owned by a package: [ 85s] - /usr/share/bugzilla/contrib [ 85s] bugzilla-doc-build-4.4.8-77.1.noarch.rpm: directories not owned by a package: [ 85s] - /usr/share/bugzilla/docs [ 85s] - /usr/share/bugzilla/docs/en [ 86s] ### WATCHDOG MARKER START ### [ 89s] [ 73.425153] SysRq : Power Off -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org
Am Donnerstag, 2. April 2015, 17:54:57 schrieb doiggl@velocitynet.com.au:
Hello,
How are these errors fixed. ? What is the syntax to own directories ?
Hi, 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 Only for directories that are really not owned by anything you'd add a line to your %files section: %dir /path/to/folder Keep in mind: Your package seems to be a bit off regarding openSUSE folder layout, I see /etc/httpd/conf.d but that folder is not used in OSS. We use /etc/apache2/conf.d for that. Cheers MH
Thanks --Glenn
Spec: https://build.opensuse.org/package/view_file/home:doiggl/bugzilla/bugzilla.s pec?expand=1
Log: https://build.opensuse.org/package/live_build_log/home:doiggl/bugzilla/openS USE_13.1/x86_64
[ 74s] Provides: bugzilla-contrib = 4.4.8-77.1 perl(Bugzilla) [ 74s] Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 [ 74s] Requires: /bin/bash /bin/sh /usr/bin/env /usr/bin/perl /usr/bin/python [ 74s] Checking for unpackaged file(s): /usr/lib/rpm/check-files /home/abuild/rpmbuild/BUILDROOT/bugzilla-4.4.8-77.1.x86_64 [ 74s] Wrote: /home/abuild/rpmbuild/SRPMS/bugzilla-4.4.8-77.1.src.rpm [ 81s] Wrote: /home/abuild/rpmbuild/RPMS/noarch/bugzilla-4.4.8-77.1.noarch.rpm [ 81s] Wrote: /home/abuild/rpmbuild/RPMS/noarch/bugzilla-debugsource-4.4.8-77.1.noarch.rpm [ 83s] Wrote: /home/abuild/rpmbuild/RPMS/noarch/bugzilla-doc-4.4.8-77.1.noarch.rpm [ 84s] Wrote: /home/abuild/rpmbuild/RPMS/noarch/bugzilla-doc-build-4.4.8-77.1.noarch.rpm [ 84s] Wrote: /home/abuild/rpmbuild/RPMS/noarch/bugzilla-contrib-4.4.8-77.1.noarch.rpm [ 84s] Executing(%clean): /bin/sh -e /var/tmp/rpm-tmp.EMerRX [ 84s] + umask 022 [ 84s] + cd /home/abuild/rpmbuild/BUILD [ 84s] + cd bugzilla-4.4.8 [ 84s] + /usr/bin/rm -rf /home/abuild/rpmbuild/BUILDROOT/bugzilla-4.4.8-77.1.x86_64 [ 84s] + exit 0 [ 84s] ... checking for files with abuild user/group [ 84s] ... running 00-check-install-rpms [ 84s] ... installing all built rpms [ 84s] Preparing packages... [ 84s] bugzilla-doc-build-4.4.8-77.1.noarch [ 84s] bugzilla-contrib-4.4.8-77.1.noarch [ 84s] bugzilla-doc-4.4.8-77.1.noarch [ 84s] bugzilla-4.4.8-77.1.noarch [ 84s] warning: group apache does not exist - using root [ 85s] CGI will be removed from the Perl core distribution in the next major release. Please install it from CPAN. It is being used at (eval 10), line 1. [ 85s] CGI::Util will be removed from the Perl core distribution in the next major release. Please install it from CPAN. It is being used at /usr/lib/perl5/5.20.1/CGI.pm, line 29. [ 85s] bugzilla-debugsource-4.4.8-77.1.noarch [ 85s] ... running 01-check-debuginfo [ 85s] ... testing for empty debuginfo packages [ 85s] ! [ 85s] ! //.build.packages/RPMS/noarch/bugzilla-debugsource-4.4.8-77.1.noarch.rpm: empty debuginfo/debugsource package, deleting [ 85s] ! [ 85s] ... running 02-check-gcc-output [ 85s] ... testing for serious compiler warnings [ 85s] (using /usr/lib/build/checks-data/check_gcc_output) [ 85s] (using //.build.log) [ 85s] ... running 03-check-binary-kernel-log [ 85s] ... running 04-check-filelist [ 85s] ... checking filelist [ 85s] bugzilla-4.4.8-77.1.noarch.rpm: directories not owned by a package: [ 85s] - /etc/httpd [ 85s] - /etc/httpd/conf.d [ 85s] - /usr/share/bugzilla/contrib [ 85s] bugzilla-doc-4.4.8-77.1.noarch.rpm: directories not owned by a package: [ 85s] - /usr/share/bugzilla/docs [ 85s] - /usr/share/bugzilla/docs/en [ 85s] - /usr/share/bugzilla/docs/xsl [ 85s] bugzilla-contrib-4.4.8-77.1.noarch.rpm: directories not owned by a package: [ 85s] - /usr/share/bugzilla/contrib [ 85s] bugzilla-doc-build-4.4.8-77.1.noarch.rpm: directories not owned by a package: [ 85s] - /usr/share/bugzilla/docs [ 85s] - /usr/share/bugzilla/docs/en [ 86s] ### WATCHDOG MARKER START ### [ 89s] [ 73.425153] SysRq : Power Off
-- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org
On Thursday 2015-04-02 09:20, Mathias Homann wrote:
Am Donnerstag, 2. April 2015, 17:54:57 schrieb doiggl@velocitynet.com.au:
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@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org
Am 2015-04-02 08:54, schrieb doiggl@velocitynet.com.au:
Hello,
How are these errors fixed. ? What is the syntax to own directories ? Thanks
Why do you not use official repo? https://build.opensuse.org/package/show?project=devel%3Atools%3Ascm&package=bugzilla Regards Eric -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org
Am 2015-04-02 08:54, schrieb doiggl@velocitynet.com.au:
Hello,
How are these errors fixed. ? What is the syntax to own directories ? Thanks --Glenn
Spec:
Why do you not use official repo? https://build.opensuse.org/package/show?project=devel%3Atools%3Ascm&package=bugzilla Regards Eric -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org
On Thursday 2015-04-02 11:39, Eric Schirra wrote:
Am 2015-04-02 08:54, schrieb doiggl@velocitynet.com.au:
Hello,
How are these errors fixed. ? What is the syntax to own directories ? Thanks --Glenn
Spec:
Why do you not use official repo?
https://build.opensuse.org/package/show?project=devel%3Atools%3Ascm&package=bugzilla
What does that have to do with it? -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org
Am 2015-04-02 12:02, schrieb Jan Engelhardt:
On Thursday 2015-04-02 11:39, Eric Schirra wrote:
Am 2015-04-02 08:54, schrieb doiggl@velocitynet.com.au:
Hello,
How are these errors fixed. ? What is the syntax to own directories ? Thanks --Glenn
Spec:
Why do you not use official repo?
https://build.opensuse.org/package/show?project=devel%3Atools%3Ascm&package=bugzilla
What does that have to do with it? Beacause i want to know if there is a problem with package from devel:tools:scm.
-- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org
On Thursday 2015-04-02 13:53, Eric Schirra wrote:
Why do you not use official repo?
https://build.opensuse.org/package/show?project=devel%3Atools%3Ascm&package=bugzilla
What does that have to do with it? Beacause i want to know if there is a problem with package from devel:tools:scm.
No, devel:tools:scm/bugzilla does not ship an apache config. But doiggl might be preparing an update where a new one might have sprung into existence, and as such, asking to use devel:tools:scm/bugzilla is sort of irrelevant. -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org
Am 2015-04-02 13:54, schrieb Jan Engelhardt:
On Thursday 2015-04-02 13:53, Eric Schirra wrote:
Why do you not use official repo?
https://build.opensuse.org/package/show?project=devel%3Atools%3Ascm&package=bugzilla
What does that have to do with it? Beacause i want to know if there is a problem with package from devel:tools:scm.
No, devel:tools:scm/bugzilla does not ship an apache config. But doiggl might be preparing an update where a new one might have sprung into existence, and as such, asking to use devel:tools:scm/bugzilla is sort of irrelevant.
This is not right. There is an apache-conf in devel:tools:scm/bugzilla. And please, use another tone. It's not what you say, but how you say it. Regards Eric -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org
participants (5)
-
doiggl@velocitynet.com.au
-
Eric Schirra
-
Eric Schirra
-
Jan Engelhardt
-
Mathias Homann