From 4a6d9a7c7447cda8782f9c995decf1f996c70f03 Mon Sep 17 00:00:00 2001 From: Laszlo Ersek Date: Thu, 1 Jun 2023 05:57:38 +0200 Subject: [PATCH] fix "osci.brew-build.rpminspect.static-analysis" gating test Perl's ExtUtils::Install installs "Guestfs.so" read-only; that prevents objcopy from adding the ".gdb_index" section for the sake of the debuginfo file. See . Lack of ".gdb_index" is then flagged as an error by rpminspect. Restore write permission for the user, on "Guestfs.so". https://dashboard.osci.redhat.com/#/artifact/brew-build/aid/52967012 https://bugzilla.redhat.com/show_bug.cgi?id=2209279#c24 https://lists.corp.redhat.com/archives/rhel-devel/2023-May/005059.html (This has nothing to do with RHBZ 2209279 BTW, but the bots don't let us commit maintenance-only patches.) resolves: rhbz#2209279 Signed-off-by: Laszlo Ersek --- libguestfs.spec | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/libguestfs.spec b/libguestfs.spec index f5518d0..1e944ec 100644 --- a/libguestfs.spec +++ b/libguestfs.spec @@ -45,7 +45,7 @@ Summary: Access and modify virtual machine disk images Name: libguestfs Epoch: 1 Version: 1.50.1 -Release: 5%{?dist} +Release: 6%{?dist} License: LGPLv2+ # Build only for architectures that have a kernel @@ -805,6 +805,13 @@ find $RPM_BUILD_ROOT -name .packlist -delete find $RPM_BUILD_ROOT -name '*.bs' -delete find $RPM_BUILD_ROOT -name 'bindtests.pl' -delete +# Perl's ExtUtils::Install installs "Guestfs.so" read-only; that +# prevents objcopy from adding the ".gdb_index" section for the sake of +# the debuginfo file. See +# . Restore write +# permission for the file owner. +find $RPM_BUILD_ROOT -name Guestfs.so -exec chmod u+w '{}' + + # golang: Ignore what libguestfs upstream installs, and just copy the # source files to %%{_datadir}/gocode/src. %ifarch %{golang_arches} @@ -1099,6 +1106,10 @@ rm ocaml/html/.gitignore %changelog +* Wed Jun 07 2023 Laszlo Ersek - 1:1.50.1-6 +- enable the ".gdb_index" section in the Perl bindings debug info + resolves: rhbz#2209279 + * Tue May 23 2023 Laszlo Ersek - 1:1.50.1-5 - let "guestfish -i" recognize "--key /dev/mapper/VG-LV:key:password" - reenable quickcheck; we now use "-cpu max" (upstream 30f74f38bd6e)