[opensuse-packaging] fixing an empty RPM
Hello, A rpm I am building on opensuse build service looks like it builds the modules as i see a directory structure with files, but at the end the log says :- ... 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: An empty RPM is not allowed anymore in SuSE Linux Question: Is it the filelist that needs fixing here, if so how can it be populated ? Project -> https://build.opensuse.org/package/show?package=bugzillatest&project=home%3Adoiggl Spec -> https://build.opensuse.org/package/view_file?file=bugzillatest.spec&package=bugzillatest&project=home%3Adoiggl Last build log -> https://build.opensuse.org/package/rawlog?arch=x86_64&package=bugzillatest&project=home%3Adoiggl&repository=openSUSE_11.2 Thanks Glenn -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-packaging+help@opensuse.org
Your spec doesnt install anything to %{buildroot}, so you get empy package.
On Mon, Mar 15, 2010 at 9:39 AM,
Hello, A rpm I am building on opensuse build service looks like it builds the modules as i see a directory structure with files, but at the end the log says :-
... 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: An empty RPM is not allowed anymore in SuSE Linux
Question: Is it the filelist that needs fixing here, if so how can it be populated ?
Project -> https://build.opensuse.org/package/show?package=bugzillatest&project=home%3Adoiggl Spec -> https://build.opensuse.org/package/view_file?file=bugzillatest.spec&package=bugzillatest&project=home%3Adoiggl Last build log -> https://build.opensuse.org/package/rawlog?arch=x86_64&package=bugzillatest&project=home%3Adoiggl&repository=openSUSE_11.2
Thanks Glenn -- 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
Your spec doesnt install anything to %{buildroot}, so you get empty
Question: Which lines in the spec file do I change to get the file unpacked and processed in %{buildroot} What should the newly edited lines look like ? Spec file -> https://build.opensuse.org/package/view_file?file=bugzillatest.spec&package=bugzillatest&project=home%3Adoiggl Thanks Glenn package.
From the existing build log it shows
Your spec doesnt install anything to %{buildroot}, so you get empy
-----------------------------------------------------------------
----- building bugzillatest.spec (user abuild)
-----------------------------------------------------------------
-----------------------------------------------------------------
+ exec rpmbuild -ba --define '_srcdefattr (-,root,root)' --define 'disturl
obs://build.opensuse.org/home:doiggl/openSUSE_11.2/4b7ee3d8f2c82a437c4d600d43246158-bugzillatest'
/usr/src/packages/SOURCES/bugzillatest.spec
Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.qwjJfW
+ umask 022
+ cd /usr/src/packages/BUILD
+ cd /usr/src/packages/BUILD
+ rm -rf bugzilla-3.4.6
+ /usr/bin/gzip -dc /usr/src/packages/SOURCES/bugzilla-3.4.6.tar.gz
+ /bin/tar -xvvf -
drwxrwxr-x mkanat/mkanat 0 2010-03-08 08:04 bugzilla-3.4.6/
drwxrwxr-x mkanat/mkanat 0 2010-03-08 08:04 bugzilla-3.4.6/CVS/
-rw-rw-r-- mkanat/mkanat 51 2010-03-08 08:03 bugzilla-3.4.6/CVS/Root
-rw-rw-r-- mkanat/mkanat 26 2010-03-08 08:03
bugzilla-3.4.6/CVS/Repository
-rw-rw-r-- mkanat/mkanat 4671 2010-03-08 08:04 bugzilla-3.4.6/CVS/Entries
Project ->
https://build.opensuse.org/package/show?package=bugzillatest&project=home%3Adoiggl
Spec ->
https://build.opensuse.org/package/view_file?file=bugzillatest.spec&package=bugzillatest&project=home%3Adoiggl
Last build log ->
https://build.opensuse.org/package/rawlog?arch=x86_64&package=bugzillatest&project=home%3Adoiggl&repository=openSUSE_11.2
On Mon, 15 Mar 2010 10:48:50 +0800, Vitaliy Tomin
On Mon, Mar 15, 2010 at 9:39 AM,
wrote: Hello, A rpm I am building on opensuse build service looks like it builds the modules as i see a directory structure with files, but at the end the log says :-
... 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: An empty RPM is not allowed anymore in SuSE Linux
Question: Is it the filelist that needs fixing here, if so how can it be populated ?
Project ->
https://build.opensuse.org/package/show?package=bugzillatest&project=home%3Adoiggl
Spec ->
Last build log ->
Thanks Glenn
-- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-packaging+help@opensuse.org
On 18.3.2010 11:03, doiggl@velocitynet.com.au wrote:
Question: Which lines in the spec file do I change to get the file unpacked and processed in %{buildroot} What should the newly edited lines look like ?
Spec file -> https://build.opensuse.org/package/view_file?file=bugzillatest.spec&package=bugzillatest&project=home%3Adoiggl Thanks Glenn
Your spec doesnt install anything to %{buildroot}, so you get empty package.
IOW you need to replace this # no make: #make DESTDIR=%buildroot install with a command that installs the required files to %buildroot. Michal -- 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) [20100318 11:05]:
Question: Which lines in the spec file do I change to get the file unpacked and processed in %{buildroot} What should the newly edited lines look like ?
do %build mkdir -p %{buildroot}/srv/www/bugzilla cp -a * %{buildroot}/srv/www/bugzilla remove the file list creation and it's use and in %install do %install /srv/www/bugzilla That should do the trick. BTW, from which OBS project did you take the bugzilla package? Philipp -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-packaging+help@opensuse.org
That should do the trick. BTW, from which OBS project did you take the bugzilla package?
These locations: https://build.opensuse.org/package/view_file?file=bugzilla.spec&package=bugzilla&project=home%3Aknocte%3Abugzilla https://build.opensuse.org/package/show?package=bugzilla&project=home%3Ajwdonze This worked # cp -a * %{buildroot}/srv/www/bugzilla # /bin/ls -laR %{buildroot} In relation to:
%install /srv/www/bugzilla
I this is just a directory located at
/usr/src/packages/BUILDROOT/bugzilla-3.4.6-39.1.x86_64/srv/www/bugzilla:
total 924
drwxr-xr-x 13 abuild abuild 4096 Mar 20 10:04 .
drwxr-xr-x 3 abuild abuild 4096 Mar 20 10:04 ..
drwxr-xr-x 15 abuild abuild 4096 Mar 8 08:04 Bugzilla
-rw-r--r-- 1 abuild abuild 24333 Nov 22 22:26 Bugzilla.pm
drwxr-xr-x 2 abuild abuild 4096 Mar 8 08:04 CVS
-rw-r--r-- 1 abuild abuild 3882 Jul 29 2009 README
-rwxr-xr-x 1 abuild abuild 1664 Oct 19 2007 admin.cgi
-rwxr-xr-x 1 abuild abuild 30967 Sep 30 08:53 attachment.cgi
-rwxr-xr-x 1 abuild abuild 49718 Mar 3 21:31 buglist.cgi
-rw-r--r-- 1 abuild abuild 2835 Jan 6 2007 bugzilla.dtd
-rwxr-xr-x 1 abuild abuild 10426 Jan 15 2009 chart.cgi
-rwxr-xr-x 1 abuild abuild 16521 Jan 31 17:39 checksetup.pl
-rwxr-xr-x 1 abuild abuild 6353 Jul 14 2009 colchange.cgi
-rwxr-xr-x 1 abuild abuild 20482 Aug 31 2009 collectstats.pl
-rwxr-xr-x 1 abuild abuild 4261 Jan 25 2009 config.cgi
drwxr-xr-x 6 abuild abuild 4096 Mar 8 08:04 contrib
-rwxr-xr-x 1 abuild abuild 2582 Nov 11 2007 createaccount.cgi
-rwxr-xr-x 1 abuild abuild 3191 May 21 2009 describecomponents.cgi
-rwxr-xr-x 1 abuild abuild 1419 Jan 25 2009 describekeywords.cgi
drwxr-xr-x 5 abuild abuild 4096 Mar 8 08:04 docs
-rwxr-xr-x 1 abuild abuild 9044 Jul 7 2009 duplicates.cgi
-rwxr-xr-x 1 abuild abuild 6712 Jan 2 2009 editclassifications.cgi
-rwxr-xr-x 1 abuild abuild 7919 Jan 27 2008 editcomponents.cgi
-rwxr-xr-x 1 abuild abuild 5993 Jan 15 2009 editfields.cgi
-rwxr-xr-x 1 abuild abuild 26806 Nov 23 22:42 editflagtypes.cgi
-rwxr-xr-x 1 abuild abuild 20917 Jan 25 2009 editgroups.cgi
-rwxr-xr-x 1 abuild abuild 5040 Feb 2 2009 editkeywords.cgi
-rwxr-xr-x 1 abuild abuild 6780 Jan 27 2008 editmilestones.cgi
-rwxr-xr-x 1 abuild abuild 5578 Aug 22 2008 editparams.cgi
-rwxr-xr-x 1 abuild abuild 15321 Oct 30 01:03 editproducts.cgi
-rwxr-xr-x 1 abuild abuild 2433 Jan 27 2008 editsettings.cgi
-rwxr-xr-x 1 abuild abuild 31735 Dec 30 14:31 editusers.cgi
-rwxr-xr-x 1 abuild abuild 5852 Jun 3 2009 editvalues.cgi
-rwxr-xr-x 1 abuild abuild 6318 Jan 27 2008 editversions.cgi
-rwxr-xr-x 1 abuild abuild 18524 Aug 27 2008 editwhines.cgi
-rwxr-xr-x 1 abuild abuild 5193 Jul 2 2008 editworkflow.cgi
-rwxr-xr-x 1 abuild abuild 15085 Apr 28 2009 email_in.pl
-rwxr-xr-x 1 abuild abuild 25765 Feb 17 22:20 enter_bug.cgi
drwxr-xr-x 4 abuild abuild 4096 Mar 8 08:04 extensions
drwxr-xr-x 3 abuild abuild 4096 Mar 8 08:03 images
-rwxr-xr-x 1 abuild abuild 51819 Apr 10 2009 importxml.pl
-rwxr-xr-x 1 abuild abuild 2956 Mar 1 2009 index.cgi
-rwxr-xr-x 1 abuild abuild 4955 Sep 16 2009 install-module.pl
-rwxr-xr-x 1 abuild abuild 2881 Sep 4 2009 jobqueue.pl
drwxr-xr-x 4 abuild abuild 4096 Mar 8 08:03 js
drwxr-xr-x 3 abuild abuild 4096 Mar 8 08:03 lib
-rwxr-xr-x 1 abuild abuild 1275 Oct 19 2007 long_list.cgi
-rwxr-xr-x 1 abuild abuild 3642 Feb 12 2009 mod_perl.pl
-rwxr-xr-x 1 abuild abuild 2186 Aug 6 2009 page.cgi
-rwxr-xr-x 1 abuild abuild 8929 Sep 17 2008 post_bug.cgi
-rwxr-xr-x 1 abuild abuild 25835 Feb 1 00:21 process_bug.cgi
-rwxr-xr-x 1 abuild abuild 14593 Oct 27 16:57 query.cgi
-rwxr-xr-x 1 abuild abuild 5049 Nov 5 2008 quips.cgi
-rwxr-xr-x 1 abuild abuild 7284 Apr 15 2009 relogin.cgi
-rwxr-xr-x 1 abuild abuild 12674 Jul 7 2009 report.cgi
-rwxr-xr-x 1 abuild abuild 8885 Dec 14 2008 reports.cgi
-rwxr-xr-x 1 abuild abuild 14426 Jan 25 2009 request.cgi
-rw-r--r-- 1 abuild abuild 44 Apr 24 2002 robots.txt
-rwxr-xr-x 1 abuild abuild 1152 Oct 19 2007 runtests.pl
-rwxr-xr-x 1 abuild abuild 39821 Jul 18 2009 sanitycheck.cgi
-rwxr-xr-x 1 abuild abuild 3152 Dec 16 2008 sanitycheck.pl
-rwxr-xr-x 1 abuild abuild 1245 Dec 16 2008 search_plugin.cgi
-rwxr-xr-x 1 abuild abuild 2167 Jan 25 2009 show_activity.cgi
-rwxr-xr-x 1 abuild abuild 4450 Aug 5 2009 show_bug.cgi
-rwxr-xr-x 1 abuild abuild 1213 Oct 19 2007 showattachment.cgi
-rwxr-xr-x 1 abuild abuild 11118 Mar 8 01:06 showdependencygraph.cgi
-rwxr-xr-x 1 abuild abuild 5315 Jun 29 2008 showdependencytree.cgi
-rwxr-xr-x 1 abuild abuild 1801 Oct 19 2007 sidebar.cgi
drwxr-xr-x 5 abuild abuild 4096 Mar 8 08:03 skins
-rwxr-xr-x 1 abuild abuild 12139 Apr 12 2009 summarize_time.cgi
drwxr-xr-x 4 abuild abuild 4096 Mar 8 08:04 t
drwxr-xr-x 4 abuild abuild 4096 Mar 8 08:04 template
-rwxr-xr-x 1 abuild abuild 876 Feb 11 2007 testagent.cgi
-rwxr-xr-x 1 abuild abuild 8647 Feb 12 2009 testserver.pl
-rwxr-xr-x 1 abuild abuild 14475 Sep 11 2009 token.cgi
-rwxr-xr-x 1 abuild abuild 20472 Feb 2 2009 userprefs.cgi
-rwxr-xr-x 1 abuild abuild 13325 Jul 1 2009 votes.cgi
-rwxr-xr-x 1 abuild abuild 24390 Dec 28 01:00 whine.pl
-rwxr-xr-x 1 abuild abuild 3021 Apr 2 2008 whineatnews.pl
-rwxr-xr-x 1 abuild abuild 1299 Oct 19 2007 xml.cgi
-rwxr-xr-x 1 abuild abuild 1805 Feb 11 2009 xmlrpc.cgi
On Thu, 18 Mar 2010 17:48:34 +0100, Philipp Thomas
* doiggl@velocitynet.com.au (doiggl@velocitynet.com.au) [20100318 11:05]:
Question: Which lines in the spec file do I change to get the file unpacked and processed in %{buildroot} What should the newly edited lines look like ?
do
%build mkdir -p %{buildroot}/srv/www/bugzilla cp -a * %{buildroot}/srv/www/bugzilla
remove the file list creation and it's use and in %install do
%install /srv/www/bugzilla
That should do the trick. BTW, from which OBS project did you take the bugzilla package?
Philipp -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-packaging+help@opensuse.org
participants (4)
-
doiggl@velocitynet.com.au
-
Michal Marek
-
Philipp Thomas
-
Vitaliy Tomin