From 7a68e494ff596861e2b68d43437e52ac45345fd12dabbf41b7ff637e06a6859b Mon Sep 17 00:00:00 2001 From: Olaf Hering Date: Fri, 28 May 2021 10:52:28 +0000 Subject: [PATCH] - For unknown reasons the appliance build fails randomly Workaround it by retrying the build once OBS-URL: https://build.opensuse.org/package/show/Virtualization/libguestfs?expand=0&rev=472 --- libguestfs.changes | 6 ++++++ libguestfs.spec | 6 +++++- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/libguestfs.changes b/libguestfs.changes index 8eeed3f..d9a0f16 100644 --- a/libguestfs.changes +++ b/libguestfs.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Fri May 28 10:20:30 UTC 2021 - ohering@suse.de + +- For unknown reasons the appliance build fails randomly + Workaround it by retrying the build once + ------------------------------------------------------------------- Tue Apr 13 13:13:13 UTC 2021 - ohering@suse.de diff --git a/libguestfs.spec b/libguestfs.spec index f055868..88f4b94 100644 --- a/libguestfs.spec +++ b/libguestfs.spec @@ -608,10 +608,14 @@ export HAVE_PACMAN_FALSE="#" #Workaround an autotools bug make -j1 -C builder index-parse.c # 'INSTALLDIRS' ensures that perl libs are installed in the vendor dir instead of the site dir +build_it() { make \ INSTALLDIRS=vendor \ LD_RUN_PATH= \ - %{?_smp_mflags} + "$@" +} + +build_it %{?_smp_mflags} || build_it %install %makeinstall \