Mailinglist Archive: opensuse-buildservice (177 mails)

< Previous Next >
Re: [opensuse-buildservice] Re: A non operating suse_version macro?
  • From: Hans-Peter Jansen <hpj@xxxxxxxxx>
  • Date: Tue, 06 Dec 2016 10:56:09 +0100
  • Message-id: <2890814.X0zLYgWl42@xrated>
On Montag, 5. Dezember 2016 16:09:00 Adrian Schröter wrote:
On Montag, 5. Dezember 2016, 15:41:09 CET wrote Andreas Schwab:
On Dez 05 2016, Hans-Peter Jansen <hpj@xxxxxxxxx> wrote:
While at it, I tried to build the package locally with --vm-type=kvm in
order to get the build behaving even more like the BS builds, but that
fails due to OOM. How can I get the osc kvm build respect the
_constraints of this package?>
It's the other way round, you need to provide enough resources to
fulfill the constraints.

I noticed lately that the default config of qemu for memory is not enough
anymore to load a linux kernel.

So, you need to specify

build-memory = 1024

eg. in your ~/.oscrc. I added also an

osc build --vm-memory

switch for next osc.

But this reminds me that we should also increase the default in build script
maybe ... or even in qemu.

Thank you, Andreas and Adrian for the valuable information.

Giving kvm enough memory is not enough to build Qt 5.7.1, because it runs out
of filesystem space. I tried to adopt some hints, e.g.:

dd if=/dev/zero of=/var/tmp/build-root/img bs=1M count=16384
mkfs.ext3 /var/tmp/build-root/img

but this preparation is reverted by build:

Running build
VM_IMAGE: /var/tmp/build-root/img, VM_SWAP: /var/tmp/build-root/swap
Resizing /var/tmp/build-root/img (4096M)
0+0 records in
0+0 records out
0 bytes (0 B) copied, 1.7819e-05 s, 0.0 kB/s
Creating ext3 filesystem on /var/tmp/build-root/img
tune2fs 1.43.3 (04-Sep-2016)
Setting maximal mount count to -1
0+0 records in
0+0 records out
0 bytes (0 B) copied, 1.8552e-05 s, 0.0 kB/s

BTW, I would rather go for qcow2 images of this size, if I'm allowed to..

May I kindly ask you to have a look into the source of the issue?
Why is BS ignoring this expression for 13.2:

%if 0%{?suse_version} != 1320

It might be a PEBKAC, but I begin to doubt it...

To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@xxxxxxxxxxxx
To contact the owner, e-mail: opensuse-buildservice+owner@xxxxxxxxxxxx

< Previous Next >
Follow Ups