libdnf/0001-Set-arch-as-x86_64_v2.patch

37 lines
865 B
Diff
Raw Permalink Normal View History

2024-09-12 12:32:29 +00:00
From 7027f2276e0839584727e462d64b5cd4896d3ba7 Mon Sep 17 00:00:00 2001
From: eabdullin <ed.abdullin.1@gmail.com>
Date: Thu, 12 Sep 2024 15:30:28 +0300
Subject: [PATCH] Set arch as x86_64_v2
---
libdnf/hy-util.cpp | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/libdnf/hy-util.cpp b/libdnf/hy-util.cpp
index 9978c8e..2c7c73d 100644
--- a/libdnf/hy-util.cpp
+++ b/libdnf/hy-util.cpp
@@ -108,6 +108,7 @@ hy_chksum_str(const unsigned char *chksum, int type)
}
#define MAX_ARCH_LENGTH 64
+#define ALMALINUX_X86_64_V2
int
hy_detect_arch(char **arch)
@@ -141,6 +142,11 @@ hy_detect_arch(char **arch)
strcpy(un.machine, "mips64el");
#endif
*arch = g_strdup(un.machine);
+#if defined(ALMALINUX_X86_64_V2)
+ *arch = g_strdup("x86_64_v2");
+#else
+ *arch = g_strdup(un.machine);
+#endif
return 0;
}
--
2.39.3 (Apple Git-146)