From 7c12e140a7aba74dd6da45f5135511677a45279b9a9c9cc8745de274b8624538 Mon Sep 17 00:00:00 2001 From: Fabian Vogt Date: Wed, 7 Dec 2022 08:57:40 +0000 Subject: [PATCH] Accepting request 1040881 from home:dimstar:Factory - Do not ever use "%setup -n .": rpm 4.18 tries to be cleaner and remove stuff it extraced, which would lead to 'rm -rf .', which rm does not like. Use "%setup -c" instead, which creates the appropriate %{name}-%{version} directory expected. OBS-URL: https://build.opensuse.org/request/show/1040881 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Tools/obs-service-kiwi_metainfo_helper?expand=0&rev=32 --- obs-service-kiwi_metainfo_helper.changes | 8 ++++++++ obs-service-kiwi_metainfo_helper.spec | 2 +- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/obs-service-kiwi_metainfo_helper.changes b/obs-service-kiwi_metainfo_helper.changes index 2d96931..24578f8 100644 --- a/obs-service-kiwi_metainfo_helper.changes +++ b/obs-service-kiwi_metainfo_helper.changes @@ -1,3 +1,11 @@ +------------------------------------------------------------------- +Tue Dec 6 17:10:20 UTC 2022 - Dominique Leuenberger + +- Do not ever use "%setup -n .": rpm 4.18 tries to be cleaner and + remove stuff it extraced, which would lead to 'rm -rf .', which + rm does not like. Use "%setup -c" instead, which creates the + appropriate %{name}-%{version} directory expected. + ------------------------------------------------------------------- Tue Feb 15 11:03:50 UTC 2022 - Frederic Crozat diff --git a/obs-service-kiwi_metainfo_helper.spec b/obs-service-kiwi_metainfo_helper.spec index bafa6d5..6f97a7b 100644 --- a/obs-service-kiwi_metainfo_helper.spec +++ b/obs-service-kiwi_metainfo_helper.spec @@ -40,7 +40,7 @@ This service can be used during buildtime to gain access to various variables in build recipes. %prep -%setup -q -D -T -n . +%setup -q -D -T -c cp %{SOURCE2} . %build