Bug 2045945

Summary: Can't build nbdkit packages from src nbdkit-1.24.0-3.module+el8.6.0 package
Product: Red Hat Enterprise Linux 8 Reporter: mxie <mxie>
Component: nbdkitAssignee: Virtualization Maintenance <virt-maint>
Status: CLOSED ERRATA QA Contact: mxie <mxie>
Severity: medium Docs Contact:
Priority: medium    
Version: 8.6CC: chhu, eblake, hongzliu, juzhou, kkiwi, mzhan, rjones, tyan, tzheng, virt-maint, vwu, xiaodwan
Target Milestone: rc   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard:
Fixed In Version: nbdkit-1.24.0-4.el8 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-05-10 13:25:26 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description mxie@redhat.com 2022-01-26 02:27:37 UTC
Description of problem:
Can't build nbdkit packages from src nbdkit-1.24.0-3.module+el8.6.0 package

Version-Release number of selected component (if applicable):
nbdkit-1.24.0-3.module+el8.6.0+12861+13975d62.src.rpm 


How reproducible:
100%

Steps to Reproduce:
1. Build nbdkit packages from src package.

1.1 Download nbdkit src package and create .rpmmacros file 
$ cat .rpmmacros
%_topdir  %(echo $HOME)/rpmbuild
%_smp_mflags -j5

1.2 Resolve the dependence problem before rebuilding,then build nbdkit rpm packages from src package
$ rpmbuild --rebuild nbdkit-1.24.0-3.module+el8.6.0+12861+13975d62.src.rpm 
.....
+ requires test x86_64 = i686
+ echo '/home/mxie/rpmbuild/BUILD/nbdkit-1.24.0/tests/test-old-plugins.sh: ‘test x86_64 = i686’ failed with error code 1'
/home/mxie/rpmbuild/BUILD/nbdkit-1.24.0/tests/test-old-plugins.sh: ‘test x86_64 = i686’ failed with error code 1
+ echo '/home/mxie/rpmbuild/BUILD/nbdkit-1.24.0/tests/test-old-plugins.sh: test prerequisite is missing or not working'
/home/mxie/rpmbuild/BUILD/nbdkit-1.24.0/tests/test-old-plugins.sh: test prerequisite is missing or not working
+ exit 77
+ _run_cleanup_hooks
+ local _status=77 _i
+ set +e
+ trap '' INT QUIT TERM EXIT ERR
+ echo /home/mxie/rpmbuild/BUILD/nbdkit-1.24.0/tests/test-old-plugins.sh: run cleanup hooks: exit code 77
/home/mxie/rpmbuild/BUILD/nbdkit-1.24.0/tests/test-old-plugins.sh: run cleanup hooks: exit code 77
+ (( _i = 0 ))
+ (( _i < 0 ))
+ exit 77
SKIP test-old-plugins-i686-Linux-v1.18.4.sh (exit status: 77)

+ exit 1
error: Bad exit status from /var/tmp/rpm-tmp.WCKCDc (%check)


Actual results:
As description

Expected results:
Can build nbdkit packages from src nbdkit-1.24.0-3.module+el8.6.0 package successfully

Additional info:

Comment 2 Richard W.M. Jones 2022-01-26 10:55:43 UTC
The failure is:

nbdkit: qemu-img: cow-diff.qcow2: Backing file specified without backing format

This is caused by qemu 6.2.  It is fixed upstream by:

commit 618290ef33ce13b75c1a79fea1f1ffb327b5ba07
Author: Richard W.M. Jones <rjones>
Date:   Tue Aug 31 11:23:27 2021 +0100

    cow: Fix for qemu 6.1 which requires backing format

https://gitlab.com/nbdkit/nbdkit/-/commit/618290ef33ce13b75c1a79fea1f1ffb327b5ba07

Comment 5 mxie@redhat.com 2022-01-27 03:37:03 UTC
Verify the bug with nbdkit-1.24.0-4.module+el8.6.0+14028+61a29763.src.rpm

Steps:
1. Build nbdkit packages from src package.

1.1 Download nbdkit src package and create .rpmmacros file 
$ cat .rpmmacros
%_topdir  %(echo $HOME)/rpmbuild
%_smp_mflags -j5

1.2 Resolve the dependence problem before rebuilding,then build nbdkit rpm packages from src package
$ rpmbuild --rebuild nbdkit-1.24.0-4.module+el8.6.0+14028+61a29763.src.rpm
.....
Wrote: /home/mxie/rpmbuild/RPMS/x86_64/nbdkit-tar-filter-debuginfo-1.24.0-4.el8.x86_64.rpm
Wrote: /home/mxie/rpmbuild/RPMS/x86_64/nbdkit-xz-filter-debuginfo-1.24.0-4.el8.x86_64.rpm
Executing(%clean): /bin/sh -e /var/tmp/rpm-tmp.DTKXRR
+ umask 022
+ cd /home/mxie/rpmbuild/BUILD
+ cd nbdkit-1.24.0
+ /usr/bin/rm -rf /home/mxie/rpmbuild/BUILDROOT/nbdkit-1.24.0-4.el8.x86_64
+ exit 0
Executing(--clean): /bin/sh -e /var/tmp/rpm-tmp.pVGYbR
+ umask 022
+ cd /home/mxie/rpmbuild/BUILD
+ rm -rf nbdkit-1.24.0
+ exit 0


Result:
   Bug has been fixed, move the bug from ON_QA to VERIFIED

Comment 7 errata-xmlrpc 2022-05-10 13:25:26 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (Moderate: virt:rhel and virt-devel:rhel security, bug fix, and enhancement update), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHSA-2022:1759