File 0002-Don-t-assume-we-are-building-from-git-checkout.patch of Package magic

From f46c9b10c33c5c2624f8d73ba42775354fabad30 Mon Sep 17 00:00:00 2001
From: Staf Verhaegen <staf@fibraservi.eu>
Date: Tue, 21 Mar 2023 16:52:53 +0100
Subject: [PATCH 2/2] Don't assume we are building from git checkout.

---
 scripts/defs.mak.in | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/scripts/defs.mak.in b/scripts/defs.mak.in
index 3679fd52..7797c80e 100755
--- a/scripts/defs.mak.in
+++ b/scripts/defs.mak.in
@@ -82,7 +82,7 @@ TCL_LIB_DIR	       = @TCL_LIB_DIR@
 
 MAGIC_VERSION	       ?= $(shell cat ${MAGICDIR}/VERSION | cut -d. -f1-2)
 MAGIC_REVISION	       ?= $(shell cat ${MAGICDIR}/VERSION | cut -d. -f3)
-MAGIC_COMMIT	       ?= $(shell git rev-parse HEAD)
+MAGIC_COMMIT	       = d24d52e40396ef504323279637b9436c29027a21
 MAGIC_BUILDDATE	       ?= $(shell date | tr -d '\r\n')
 
 # This allow inheritence of the values from toplevel Makefile
-- 
2.47.3

openSUSE Build Service is sponsored by