!31 [sync] PR-30: Fix compilation failure caused by tar upgrade

From: @openeuler-sync-bot 
Reviewed-by: @wang--ge 
Signed-off-by: @wang--ge
This commit is contained in:
openeuler-ci-bot 2023-08-21 03:23:49 +00:00 committed by Gitee
commit 9eddbc6a09
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
2 changed files with 17 additions and 1 deletions

View File

@ -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:

View File

@ -4,11 +4,12 @@
Name: microcode_ctl Name: microcode_ctl
Summary: Microcode update for CPU Summary: Microcode update for CPU
Version: 2.1 Version: 2.1
Release: 38 Release: 39
License: GPLv2+ and Redistributable, no modification permitted License: GPLv2+ and Redistributable, no modification permitted
URL: https://pagure.io/microcode_ctl URL: https://pagure.io/microcode_ctl
ExclusiveArch: %{ix86} x86_64 loongarch64 ExclusiveArch: %{ix86} x86_64 loongarch64
Source0: https://releases.pagure.org/microcode_ctl/%{name}-%{upstream_version}.tar.xz Source0: https://releases.pagure.org/microcode_ctl/%{name}-%{upstream_version}.tar.xz
Patch0: Fix-compilation-failure-caused-by-tar-upgrade.patch
%description %description
This is a tool to transform and deploy microcode update for x86 CPUs. 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/* %doc /usr/share/doc/microcode_ctl/*
%changelog %changelog
* Mon Aug 21 2023 liyanan <thistleslyn@163.com> - 2.1-39
- Fix compilation failure caused by tar upgrade
* Mon Nov 14 2022 zhaozhen <zhaozhen@loongson.cn> - 2.1-38 * Mon Nov 14 2022 zhaozhen <zhaozhen@loongson.cn> - 2.1-38
- add loongarch support - add loongarch support