SHA256
1
0
forked from pool/libguestfs

Accepting request 1043309 from home:dimstar:Factory

- 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.

OBS-URL: https://build.opensuse.org/request/show/1043309
OBS-URL: https://build.opensuse.org/package/show/Virtualization/libguestfs?expand=0&rev=533
This commit is contained in:
Charles Arnold 2022-12-16 16:34:17 +00:00 committed by Git OBS Bridge
parent 8327a03b19
commit 371394c089
2 changed files with 13 additions and 0 deletions

View File

@ -1,3 +1,12 @@
-------------------------------------------------------------------
Fri Dec 16 09:08:08 UTC 2022 - Dominique Leuenberger <dimstar@opensuse.org>
- 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 <schwab@suse.de> Wed Nov 30 14:34:58 UTC 2022 - Andreas Schwab <schwab@suse.de>

View File

@ -259,6 +259,10 @@ libfuse2
hwinfo hwinfo
EOF 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 mkdir -p %{buildroot}/tmp/usr/bin
cp %{S:100} %{buildroot}/tmp/usr/bin cp %{S:100} %{buildroot}/tmp/usr/bin
chmod a+x %{buildroot}/tmp/usr/bin/* chmod a+x %{buildroot}/tmp/usr/bin/*