Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pbuild qemu dependency resolution #1052

Open
bmwiedemann opened this issue Jan 20, 2025 · 0 comments
Open

pbuild qemu dependency resolution #1052

bmwiedemann opened this issue Jan 20, 2025 · 0 comments

Comments

@bmwiedemann
Copy link
Member

While working on my R-B-OS, I found that qemu fails to build in pbuild,
even though it works fine in OBS and osc build.

This is using
https://build.opensuse.org/project/show/home:bmwiedemann:reproducible:distribution:ring1

_build.standard.x86_64/qemu/_log shows

Compressed qemu-9.0.2.tar to qemu-9.0.2.tar.xz
syntax error in expression
spec file parser line 539: can't expand %(...)
syntax error in expression
syntax error in expression
syntax error in expression
syntax error in expression
syntax error in expression
-----------------------------------------------------------------
I have the following modifications for qemu.spec:
86c86
< Release:        0    
---
> Release:        1.1  
102c102
< BuildRequires:  glibc-devel-32bit
---
> BuildRequires:  glibc-devel-32bit glibc-32bit
1968c1968
< Release:        0    
---
> Release:        1.1  
1989c1989
< Release:        0    
---
> Release:        1.1  
2015c2015
< Release:        0    
---
> Release:        1.1  
-----------------------------------------------------------------
----- building qemu.spec (user abuild)
-----------------------------------------------------------------
-----------------------------------------------------------------
setting SOURCE_DATE_EPOCH_MTIME to 1721815255
+ exec rpmbuild -ba --define '_srcdefattr (-,root,root)' --nocheck --nosignature --define '_build_create_debug 1' /home/abuild/rpmbuild/SOURCES/qemu.spec
using SOURCE_DATE_EPOCH with value 1721815254 as build time
error: Failed build dependencies:
       canokey-qemu-devel is needed by qemu-9.0.2-1.1.x86_64
       libxdp-devel is needed by qemu-9.0.2-1.1.x86_64
       pkgconfig(spice-protocol) >= 0.12.3 is needed by qemu-9.0.2-1.1.x86_64
       pkgconfig(spice-server) >= 0.12.5 is needed by qemu-9.0.2-1.1.x86_64
       xen-devel >= 4.2 is needed by qemu-9.0.2-1.1.x86_64
### VM INTERACTION START ###
Powering off.^M
[   77.409037][ T3297] reboot: Power down
### VM INTERACTION END ###

The problem is that the required packages were not installed into the build-VM.

There seem to be different interpretations of

%if %{with_xen}
and
%if 0%{with spice}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant