diff --git a/libguestfs.changes b/libguestfs.changes index 1d0f922..52ee25f 100644 --- a/libguestfs.changes +++ b/libguestfs.changes @@ -1,3 +1,12 @@ +------------------------------------------------------------------- +Fri Dec 16 09:08:08 UTC 2022 - Dominique Leuenberger + +- Fix build with RPM 4.18: rpm wants to do a proper cleanup, and + fails on the design choice to have /usr/lib65 without write + permission. As we already tar'ed the content up, we can simply + change the permissions of winsupport's content to allow proper + erasing. + ------------------------------------------------------------------- Wed Nov 30 14:34:58 UTC 2022 - Andreas Schwab diff --git a/libguestfs.spec b/libguestfs.spec index c1481ca..a59eaa4 100644 --- a/libguestfs.spec +++ b/libguestfs.spec @@ -259,6 +259,10 @@ libfuse2 hwinfo EOF +# do some cleanup so that rpm can properly empty directories without permission denie +# The winsupport directory has already been tar'ed up, so we don't care much +find winsupport -type d -exec chmod 755 {} \; + mkdir -p %{buildroot}/tmp/usr/bin cp %{S:100} %{buildroot}/tmp/usr/bin chmod a+x %{buildroot}/tmp/usr/bin/*