[opensuse-packaging] need help with bugzilla 3.4.1 .spec file
Hello, I am trying to compile the bugzilla 3.4.1x series The last compile attempt shows these errors. 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-doc-build-3.4.1-24.1.noarch.rpm: directories not owned by a package: - /usr/share/bugzilla/docs bugzilla-doc-3.4.1-24.1.noarch.rpm: directories not owned by a package: - /usr/share/bugzilla/docs bugzilla: "/etc/httpd/conf.d/bugzilla.conf" is not allowed anymore in SuSE Linux. bugzilla-3.4.1-24.1.noarch.rpm: directories not owned by a package: - /etc/httpd - /etc/httpd/conf.d - /usr/share/bugzilla/extensions - /usr/share/bugzilla/lib System halted. So far I added in to the specfile 1. Fix warning 'warning: group apache does not exist - using root' BuildRequires: pwdutils , apache2-devel Requires: apache2 %{apache_mmn} %pre id apache >/dev/null 2>&1 if [ $? -ne 0 ]; then /usr/sbin/groupadd apache /usr/sbin/useradd -r -d %{_libdir}/%{name} -c "apache id" apache fi 2. set ownership as directories not owned by a package /usr/share/bugzilla/extensions /usr/share/bugzilla/lib /usr/share/bugzilla/docs Set to in %files section. Question: Is this the correct syntax to use ? %{buildroot}/usr/share/bugzilla/extensions %{buildroot}/usr/share/bugzilla/lib %{buildroot}/usr/share/bugzilla/docs 3. What should be done with these entries as they are directories not owned by a package ? - /etc/httpd - /etc/httpd/conf.d 4. How can this line be fixed, where should the file be moved to ? bugzilla: "/etc/httpd/conf.d/bugzilla.conf" is not allowed anymore in SuSE Linux Specfile -> https://build.opensuse.org/package/view_file?file=bugzilla.spec&package=Bugzilla&project=home%3Adoiggl Last log -> https://build.opensuse.org/package/live_build_log?arch=x86_64&package=Bugzilla&project=home%3Adoiggl&repository=openSUSE_Factory Any help appreciated. Thanks Glenn -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-packaging+help@opensuse.org
Am Donnerstag, 20. August 2009 03:14:09 schrieb doiggl@velocitynet.com.au: ...
Set to in %files section. Question: Is this the correct syntax to use ? %{buildroot}/usr/share/bugzilla/extensions %{buildroot}/usr/share/bugzilla/lib %{buildroot}/usr/share/bugzilla/docs
Don't use %buildroot in the %files section, it is anyway only taken from there.
3. What should be done with these entries as they are directories not owned by a package ? - /etc/httpd - /etc/httpd/conf.d
Usually package them via "%dir /etc/httpd" in %files section is the answer. However, I learned lately that this directory is not anymore allowed, files inside of it should moved to /etc/apache2 instead (except they are intended for a different web service). bye adrian -- Adrian Schroeter SUSE Linux Products GmbH email: adrian@suse.de -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-packaging+help@opensuse.org
On Thursday 20 August 2009 03:14:09 doiggl@velocitynet.com.au wrote:
[...] 2. set ownership as directories not owned by a package
/usr/share/bugzilla/extensions /usr/share/bugzilla/lib /usr/share/bugzilla/docs
Set to in %files section. Question: Is this the correct syntax to use ? %{buildroot}/usr/share/bugzilla/extensions %{buildroot}/usr/share/bugzilla/lib %{buildroot}/usr/share/bugzilla/docs
Don't use the buildroot in the files section, to just add a directory use: %dir /usr/share/bugzilla/docs
3. What should be done with these entries as they are directories not owned by a package ? - /etc/httpd - /etc/httpd/conf.d
I think it's /etc/apache2 nowadays, move everything there, Andreas -- Andreas Jaeger, aj@{novell.com,opensuse.org} Twitter: jaegerandi | Identica: jaegerandi SUSE LINUX Products GmbH, GF: Markus Rex, HRB 16746 (AG Nürnberg) Maxfeldstr. 5, 90409 Nürnberg, Germany GPG fingerprint = 93A3 365E CE47 B889 DF7F FED1 389A 563C C272 A126
Hello With the following error, can this be fixed by using the move (mv) command, to put the file in the correct spot ? Does the file actually exist at this point so it can be moved ? -> bugzilla: "/etc/httpd/conf.d/bugzilla.conf" is not allowed anymore in SuSE Linux If the file can be moved where does the following line go in the spec file ?, and does the mv depend on a BuildRequires ZZZ value ?. /bin/mv /etc/httpd/conf.d/bugzilla.conf /etc/apache2/bugzilla.conf Also in relation to /etc/httpd and /etc/httpd/conf.d Can I use the command in the spec file /bin/mv /etc/httpd/conf.d /etc/apache2/conf.d Specfile -> https://build.opensuse.org/package/view_file?file=bugzilla.spec&package=Bugzilla&project=home%3Adoiggl Last log -> https://build.opensuse.org/package/live_build_log?arch=x86_64&package=Bugzilla&project=home%3Adoiggl&repository=openSUSE_Factory Cheers Glenn -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-packaging+help@opensuse.org
* doiggl@velocitynet.com.au (doiggl@velocitynet.com.au) [20090820 15:59]:
If the file can be moved where does the following line go in the spec file ?, and does the mv depend on a BuildRequires ZZZ value ?. /bin/mv /etc/httpd/conf.d/bugzilla.conf /etc/apache2/bugzilla.conf
See sr 18569 I've just created. It contains all necessary changes. Philipp -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-packaging+help@opensuse.org
Thanks Philipp
I did a osc request accept 18569
Glenn
On Mon, 24 Aug 2009 15:00:14 +0200, Philipp Thomas
* doiggl@velocitynet.com.au (doiggl@velocitynet.com.au) [20090820 15:59]:
If the file can be moved where does the following line go in the spec file ?, and does the mv depend on a BuildRequires ZZZ value ?. /bin/mv /etc/httpd/conf.d/bugzilla.conf /etc/apache2/bugzilla.conf
See sr 18569 I've just created. It contains all necessary changes.
Philipp -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-packaging+help@opensuse.org -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-packaging+help@opensuse.org
Philipp wrote:
See sr 18569 I've just created. It contains all necessary changes. Philipp
Thanks Philipp I did a osc request accept 18569 and I submitted another compile. To me it looks like it created only the source rpms (bugzilla-3.4.1-35.1.src.rpm) , its missing the final compiled rpms, puzzled by that. Any clues as to how those can be generated ?. Last log -> https://build.opensuse.org/package/live_build_log?arch=x86_64&package=Bugzilla&project=home%3Adoiggl&repository=openSUSE_Factory Project -> https://build.opensuse.org/package/show?package=Bugzilla&project=home%3Adoiggl Spec file -> https://build.opensuse.org/package/view_file?file=bugzilla.spec&package=Bugzilla&project=home%3Adoiggl Cheers Glenn -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-packaging+help@opensuse.org
* doiggl@velocitynet.com.au (doiggl@velocitynet.com.au) [20090825 09:33]:
Any clues as to how those can be generated ?.
I'll build myself and see if anythings wrong. Philipp -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-packaging+help@opensuse.org
* doiggl@velocitynet.com.au (doiggl@velocitynet.com.au) [20090820 03:14]:
/usr/share/bugzilla/extensions /usr/share/bugzilla/lib /usr/share/bugzilla/docs
For all entries in the %files section I'd recommed using rpm's variables in the pathes which make it easier should either the prefix or the directories change. Something like this: %dir %{_datadir}/%{name}/extensions %dir %{_datadir}/%{name}/lib %dir %{_datadir}/%{name}/docs
Set to in %files section. Question: Is this the correct syntax to use ? %{buildroot}/usr/share/bugzilla/extensions %{buildroot}/usr/share/bugzilla/lib %{buildroot}/usr/share/bugzilla/docs
No, leave out %{buildroot}. Entries in the %files section always name the position in the destination system.
3. What should be done with these entries as they are directories not owned by a package ? - /etc/httpd - /etc/httpd/conf.d
4. How can this line be fixed, where should the file be moved to ? bugzilla: "/etc/httpd/conf.d/bugzilla.conf" is not allowed anymore in SuSE Linux
As the log tells you, /etc/httpd is not allowed anymore, use /etc/apache2. Philipp -- Anything whose specification is too complicated to explain easily probably needs to be redesigned. -- David Abrahams on boost -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-packaging+help@opensuse.org
participants (4)
-
Adrian Schröter
-
Andreas Jaeger
-
doiggl@velocitynet.com.au
-
Philipp Thomas