From 31d3585a49ad3ac4c037b7b3798a4235794830cf Mon Sep 17 00:00:00 2001 From: lyn1001 Date: Mon, 21 Aug 2023 10:43:30 +0800 Subject: [PATCH] Fix compilation failure caused by tar upgrade --- Fix-compilation-failure-caused-by-tar-upgrade.patch | 12 ++++++++++++ microcode_ctl.spec | 6 +++++- 2 files changed, 17 insertions(+), 1 deletion(-) create mode 100644 Fix-compilation-failure-caused-by-tar-upgrade.patch diff --git a/Fix-compilation-failure-caused-by-tar-upgrade.patch b/Fix-compilation-failure-caused-by-tar-upgrade.patch new file mode 100644 index 0000000..4959ea3 --- /dev/null +++ b/Fix-compilation-failure-caused-by-tar-upgrade.patch @@ -0,0 +1,12 @@ +diff -Nur a/Makefile b/Makefile +--- a/Makefile 2022-08-10 02:27:01.000000000 +0800 ++++ b/Makefile 2023-08-21 10:23:19.374614142 +0800 +@@ -21,7 +21,7 @@ + MICDIRINTEL = $(MICDIR)/intel-ucode + + all: +- tar xf $(MICROCODE_INTEL) --strip 1 */intel-ucode/* */intel-ucode-with-caveats/* \ ++ tar xf $(MICROCODE_INTEL) --wildcards --strip 1 */intel-ucode/* */intel-ucode-with-caveats/* \ + --one-top-level=intel-ucode --strip-components=2 --backup=simple + + clean: diff --git a/microcode_ctl.spec b/microcode_ctl.spec index 395c57b..a992df7 100644 --- a/microcode_ctl.spec +++ b/microcode_ctl.spec @@ -4,11 +4,12 @@ Name: microcode_ctl Summary: Microcode update for CPU Version: 2.1 -Release: 38 +Release: 39 License: GPLv2+ and Redistributable, no modification permitted URL: https://pagure.io/microcode_ctl ExclusiveArch: %{ix86} x86_64 loongarch64 Source0: https://releases.pagure.org/microcode_ctl/%{name}-%{upstream_version}.tar.xz +Patch0: Fix-compilation-failure-caused-by-tar-upgrade.patch %description This is a tool to transform and deploy microcode update for x86 CPUs. @@ -27,6 +28,9 @@ make DESTDIR=%{buildroot} PREFIX=%{_prefix} INSDIR=/usr/sbin install clean %doc /usr/share/doc/microcode_ctl/* %changelog +* Mon Aug 21 2023 liyanan - 2.1-39 +- Fix compilation failure caused by tar upgrade + * Mon Nov 14 2022 zhaozhen - 2.1-38 - add loongarch support -- Gitee