[opensuse-packaging] Is there a way of simulating osc's checks on rpm's when using rpmbuild locally?
Hi, I'm learning packaging the hard way and am trying to build bacula and am trying to debug the %post and %pre scripts and was wondering if there was a way of simulating osc's checks on the rpms when I have built them locally using rpmbuild? Thanks Dave P -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-packaging+help@opensuse.org
Op donderdag 03 december 2009 09:08:09 schreef Dave Plater:
Hi, I'm learning packaging the hard way and am trying to build bacula and am trying to debug the %post and %pre scripts and was wondering if there was a way of simulating osc's checks on the rpms when I have built them locally using rpmbuild?
Use 'osc build'. More info with 'osc build --help' -- Richard -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-packaging+help@opensuse.org
On 12/03/2009 10:19 AM, Richard Bos wrote:
Op donderdag 03 december 2009 09:08:09 schreef Dave Plater:
Hi, I'm learning packaging the hard way and am trying to build bacula and am trying to debug the %post and %pre scripts and was wondering if there was a way of simulating osc's checks on the rpms when I have built them locally using rpmbuild?
Use 'osc build'. More info with 'osc build --help'
I was looking for a quicker way than using osc build, possibly build the rpm's with rpmbuild and run the checks on the built rpms. Unfortunately osc build doesn't have any --short-circuit capabilities. Is there a way of using rpmlint, it seems to be able to work on directories like $RPM_BUILD_ROOT/package? Then I can update the spec file and run "rpmbuild -bi --short-circuit" and run the check again. Thanks Dave P -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-packaging+help@opensuse.org
On Thursday 03 of December 2009, Dave Plater wrote:
On 12/03/2009 10:19 AM, Richard Bos wrote:
Op donderdag 03 december 2009 09:08:09 schreef Dave Plater:
Hi, I'm learning packaging the hard way and am trying to build bacula and am trying to debug the %post and %pre scripts and was wondering if there was a way of simulating osc's checks on the rpms when I have built them locally using rpmbuild?
Use 'osc build'. More info with 'osc build --help'
I was looking for a quicker way than using osc build, possibly build the rpm's with rpmbuild and run the checks on the built rpms. Unfortunately osc build doesn't have any --short-circuit capabilities. Is there a way of using rpmlint, it seems to be able to work on directories like $RPM_BUILD_ROOT/package? Then I can update the spec file and run "rpmbuild -bi --short-circuit" and run the check again.
You can use --ccache or --icecream or with osc build to speed up builds. Or you could check the build log from the full osc build and then chroot to /var/tmp/build-root and manually run the commands you want. -- Lubos Lunak KDE developer -------------------------------------------------------------- SUSE LINUX, s.r.o. e-mail: l.lunak@suse.cz , l.lunak@kde.org Lihovarska 1060/12 tel: +420 284 084 672 190 00 Prague 9 fax: +420 284 028 951 Czech Republic http://www.suse.cz -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-packaging+help@opensuse.org
On 12/03/2009 12:21 PM, Lubos Lunak wrote:
On Thursday 03 of December 2009, Dave Plater wrote:
On 12/03/2009 10:19 AM, Richard Bos wrote:
Op donderdag 03 december 2009 09:08:09 schreef Dave Plater:
Hi, I'm learning packaging the hard way and am trying to build bacula and am trying to debug the %post and %pre scripts and was wondering if there was a way of simulating osc's checks on the rpms when I have built them locally using rpmbuild?
Use 'osc build'. More info with 'osc build --help'
I was looking for a quicker way than using osc build, possibly build the rpm's with rpmbuild and run the checks on the built rpms. Unfortunately osc build doesn't have any --short-circuit capabilities. Is there a way of using rpmlint, it seems to be able to work on directories like $RPM_BUILD_ROOT/package? Then I can update the spec file and run "rpmbuild -bi --short-circuit" and run the check again.
You can use --ccache or --icecream or with osc build to speed up builds. Or you could check the build log from the full osc build and then chroot to /var/tmp/build-root and manually run the commands you want.
I already use --ccache, haven't tried --icecream what's the difference? I've got as far as using rpmlint and installing rpmlint-Factory then renaming /etc/rpmlint/Factory.config to config but it still doesn't help with the %post scripts. I've sent another mail asking for help there. Thanks Dave P -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-packaging+help@opensuse.org
Le jeudi 3 décembre 2009 11:35, Dave Plater a écrit :
I already use --ccache, haven't tried --icecream what's the difference?
ccache avoids rebuilding files you have already built in the past. icecream distributes the build amongs machines. Both try to make builds faster, but the implementations are vastly different. -- Jean Delvare Suse L3 -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-packaging+help@opensuse.org
On 12/03/2009 01:05 PM, Jean Delvare wrote:
Le jeudi 3 décembre 2009 11:35, Dave Plater a écrit :
I already use --ccache, haven't tried --icecream what's the difference?
ccache avoids rebuilding files you have already built in the past.
icecream distributes the build amongs machines.
Both try to make builds faster, but the implementations are vastly different.
Thanks for the explanation, no icecream for me today :-) Dave P -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-packaging+help@opensuse.org
participants (4)
-
Dave Plater
-
Jean Delvare
-
Lubos Lunak
-
Richard Bos