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