Bug 31345 - Broken qemu binfmt.d qemu-*-static.conf since 7.2.0-1.mga9
Summary: Broken qemu binfmt.d qemu-*-static.conf since 7.2.0-1.mga9
Status: RESOLVED FIXED
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: Cauldron
Hardware: aarch64 Linux
Priority: Normal normal
Target Milestone: ---
Assignee: Thierry Vignaud
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-12-31 17:40 CET by Jani Välimaa
Modified: 2023-01-01 19:51 CET (History)
0 users

See Also:
Source RPM: qemu-7.2.0-2.mga9.src.rpm
CVE:
Status comment:


Attachments

Description Jani Välimaa 2022-12-31 17:40:00 CET
When building aarch64 pkgs with mock on x86_64 machine the following error is shown:

Running scriptlet: glibc-6:2.36-28.mga9.aarch64                          25/186 
error: lua script failed: [string "%post(glibc-6:2.36-28.mga9.aarch64)"]:15: assertion failed!
error: No exec() called after fork() in lua scriptlet
Comment 1 Jani Välimaa 2022-12-31 17:49:14 CET
Might be related to qemu:

https://github.com/rpm-software-management/mock/issues/277
Comment 2 Jani Välimaa 2022-12-31 21:37:23 CET
Downgrading to qemu-user-static-aarch64-7.1.0-4.1.mga9 makes things to work again.

Steps to reproduce:
1. # urpmi qemu-user-static-aarch64
2. $ mock -r mageia-cauldron-aarch64 --forcearch aarch64 --scrub=all
3. $ mock -r mageia-cauldron-aarch64 --forcearch aarch64 --shell

Source RPM: glibc-2.36-28.mga9 => qemu-7.2.0-2.mga9.src.rpm
Assignee: bugsquad => thierry.vignaud

Comment 3 Jani Välimaa 2022-12-31 22:58:45 CET
Config file /usr/lib/binfmt.d/qemu-aarch64-static.conf is broken since 7.2.0-1.mga9.

https://svnweb.mageia.org/packages/cauldron/qemu/current/SPECS/qemu.spec?view=patch&r1=1915884&r2=1922775&pathrev=1922775

$staticfmt is written twice and the second one overwrites the first one.
Jani Välimaa 2023-01-01 11:13:40 CET

Summary: glibc-2.36-28.mga9 lua %post scriptlet fails when using mock to build aarch64 pkgs on x86_64 => Broken qemu binfmt.d qemu-*-static.conf since 7.2.0-1.mga9

Comment 4 Jani Välimaa 2023-01-01 19:51:17 CET
Fixed with qemu-7.2.0-3.mga9.

Status: NEW => RESOLVED
Resolution: (none) => FIXED


Note You need to log in before you can comment on or make changes to this bug.