Panu Matilainen 033b63
From 095502dc0933731eb5a8e877e1c383b8c5e7af44 Mon Sep 17 00:00:00 2001
Panu Matilainen 033b63
Message-ID: <095502dc0933731eb5a8e877e1c383b8c5e7af44.1692703597.git.pmatilai@redhat.com>
Panu Matilainen 033b63
In-Reply-To: <bbb289e303d8c72b9e35410e593b8d92b006bec1.1692703597.git.pmatilai@redhat.com>
Panu Matilainen 033b63
References: <bbb289e303d8c72b9e35410e593b8d92b006bec1.1692703597.git.pmatilai@redhat.com>
Panu Matilainen 033b63
From: Panu Matilainen <pmatilai@redhat.com>
Panu Matilainen 033b63
Date: Wed, 16 Aug 2023 10:18:20 +0300
Panu Matilainen 033b63
Subject: [PATCH 3/3] Stop looking for apparently non-existent 7zip command
Panu Matilainen 033b63
Panu Matilainen 033b63
Since the initial commit 185596818f763af1249f19161f38134ee93092d2, we've
Panu Matilainen 033b63
primarily looked for a command named "7zip" but defaulted to 7za when
Panu Matilainen 033b63
not found. Looking closer it seems that there never was any command
Panu Matilainen 033b63
called 7zip at all, at least in the OSS landscape. So don't default to
Panu Matilainen 033b63
something that doesn't even exist, which also means we'll land on an
Panu Matilainen 033b63
actually working value if/when 7z[a] doesn't happen to be present at
Panu Matilainen 033b63
build-time (there's no other reason for it to be there).
Panu Matilainen 033b63
Panu Matilainen 033b63
Related to #2608
Panu Matilainen 033b63
---
Panu Matilainen 033b63
 CMakeLists.txt | 2 +-
Panu Matilainen 033b63
 1 file changed, 1 insertion(+), 1 deletion(-)
Panu Matilainen 033b63
Panu Matilainen 033b63
diff --git a/CMakeLists.txt b/CMakeLists.txt
Panu Matilainen 033b63
index 55c1d2169..e40e889f6 100644
Panu Matilainen 033b63
--- a/CMakeLists.txt
Panu Matilainen 033b63
+++ b/CMakeLists.txt
Panu Matilainen 033b63
@@ -88,7 +88,7 @@ function(makemacros)
Panu Matilainen 033b63
 	set(rundir /run)
Panu Matilainen 033b63
 	set(root_prefix /usr)
Panu Matilainen 033b63
 
Panu Matilainen 033b63
-	findutil(__7ZIP "7zip;7za;7z")
Panu Matilainen 033b63
+	findutil(__7ZIP "7za;7z")
Panu Matilainen 033b63
 	findutil(__BZIP2 bzip2)
Panu Matilainen 033b63
 	findutil(__CAT cat)
Panu Matilainen 033b63
 	findutil(__CHMOD chmod)
Panu Matilainen 033b63
-- 
Panu Matilainen 033b63
2.41.0
Panu Matilainen 033b63