Skip to content

Commit 9b95278

Browse files
authored
Upgrade: efi-rpm-macros version to 5 (#10928)
1 parent 5b8e197 commit 9b95278

5 files changed

Lines changed: 78 additions & 15 deletions
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
2+
From: Peter Jones <pjones@redhat.com>
3+
Date: Tue, 31 Aug 2021 16:33:07 -0400
4+
Subject: [PATCH] Don't have arm as an alt arch of aarch64
5+
6+
The compiler isn't actually set up in a way that lets us do this without
7+
a cross compiler, so we shouldn't do this this way.
8+
9+
Signed-off-by: Peter Jones <pjones@redhat.com>
10+
---
11+
macros.efi-srpm.in | 2 --
12+
1 file changed, 2 deletions(-)
13+
14+
diff --git a/macros.efi-srpm.in b/macros.efi-srpm.in
15+
index 4d7b019..00503f1 100644
16+
--- a/macros.efi-srpm.in
17+
+++ b/macros.efi-srpm.in
18+
@@ -45,8 +45,6 @@
19+
local function getaltarch()
20+
if arch("x86_64") then
21+
return("ia32")
22+
- elseif arch("aarch64") then
23+
- return("arm")
24+
else
25+
return("none")
26+
end
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
From 110b9c24200ff90c5d09cc2bf41df728810a0e0e Mon Sep 17 00:00:00 2001
2+
From: Sandro Bonazzola <sbonazzo@redhat.com>
3+
Date: Wed, 3 May 2023 11:20:36 +0200
4+
Subject: [PATCH] Makefile: fix permission on /boot/efi/EFI
5+
6+
Ensure /boot/efi/EFI is created with 0700 mode.
7+
8+
Bug-Url: https://bugzilla.redhat.com/show_bug.cgi?id=2144459
9+
10+
Signed-off-by: Sandro Bonazzola <sbonazzo@redhat.com>
11+
---
12+
Makefile | 1 +
13+
1 file changed, 1 insertion(+)
14+
15+
diff --git a/Makefile b/Makefile
16+
index 7d56eae..37e97a5 100644
17+
--- a/Makefile
18+
+++ b/Makefile
19+
@@ -65,6 +65,7 @@ install : $(TARGETS)
20+
install -d -m 0755 $(DESTDIR)/boot ; \
21+
fi
22+
install -d -m 0700 $(DESTDIR)/$(EFI_ESP_ROOT)
23+
+ install -d -m 0700 $(DESTDIR)/$(EFI_ESP_ROOT)/EFI
24+
install -d -m 0700 $(DESTDIR)/$(EFI_ESP_ROOT)/EFI/BOOT
25+
install -d -m 0700 $(DESTDIR)/$(EFI_ESP_ROOT)/EFI/$(EFI_VENDOR)
26+
27+
--
28+
2.40.1
29+
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
22
"Signatures": {
3-
"efi-rpm-macros-4.tar.gz": "896865fd477441f74c0cbbc971f4622a91c1605041fd5a9127b02cc329b778ac"
3+
"efi-rpm-macros-5.tar.bz2": "d313f5f9ff33990692e22c88df63e21f5a26146a96454cb47a7b267465702a8f"
44
}
5-
}
5+
}

SPECS-EXTENDED/efi-rpm-macros/efi-rpm-macros.spec

Lines changed: 19 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -3,54 +3,59 @@
33

44
Summary: Common RPM Macros for building EFI-related packages
55
Name: efi-rpm-macros
6-
Version: 4
7-
Release: 6%{?dist}
8-
License: GPLv3
6+
Version: 5
7+
Release: 1%{?dist}
8+
License: GPL-3.0-or-later
99
Vendor: Microsoft Corporation
1010
Distribution: Azure Linux
1111
URL: https://github.com/rhboot/%{name}/
12-
Source0: https://github.com/rhboot/%{name}/archive/refs/tags/%{version}.tar.gz#/%{name}-%{version}.tar.gz
12+
Source0: https://github.com/rhboot/%{name}/releases/download/%{version}/%{name}-5.tar.bz2
13+
14+
Patch0001: 0001-Don-t-have-arm-as-an-alt-arch-of-aarch64.patch
15+
Patch0002: 0002-Makefile-fix-permission-on-boot-efi-EFI.patch
1316

1417
BuildArch: noarch
1518

1619
BuildRequires: %{_sysconfdir}/os-release
1720
BuildRequires: bash
1821
BuildRequires: git
1922
BuildRequires: sed
23+
BuildRequires: make
2024

2125
%description
2226
%{name} provides a set of RPM macros for use in EFI-related packages.
2327

2428
%package -n efi-srpm-macros
2529
Summary: Common SRPM Macros for building EFI-related packages
26-
27-
Requires: rpm
30+
BuildArch: noarch
31+
Requires: rpm
2832

2933
%description -n efi-srpm-macros
3034
efi-srpm-macros provides a set of SRPM macros for use in EFI-related packages.
3135

3236
%package -n efi-filesystem
3337
Summary: The basic directory layout for EFI machines
34-
35-
Requires: filesystem
38+
BuildArch: noarch
39+
Requires: filesystem
3640

3741
%description -n efi-filesystem
3842
The efi-filesystem package contains the basic directory layout for EFI
3943
machine bootloaders and tools.
4044

4145
%prep
42-
%autosetup -S git
46+
%autosetup -S git_am -n %{name}-5
4347
git config --local --add efi.vendor "%{_efi_vendor_}"
4448
git config --local --add efi.esp-root /boot/efi
4549
git config --local --add efi.arches "x86_64 aarch64 %{arm} %{ix86}"
4650

4751
%build
48-
%make_build SHELL=/bin/bash clean all
52+
%make_build clean all
4953

5054
%install
51-
%make_install SHELL=/bin/bash
55+
%make_install
5256

5357
%files -n efi-srpm-macros
58+
%{!?_licensedir:%global license %%doc}
5459
%license LICENSE
5560
%doc README
5661
%{_rpmmacrodir}/macros.efi-srpm
@@ -64,6 +69,9 @@ git config --local --add efi.arches "x86_64 aarch64 %{arm} %{ix86}"
6469
%dir /boot/efi/EFI/%{_efi_vendor_}
6570

6671
%changelog
72+
* Mon Nov 04 2024 Sumit Jena <v-sumtjena@microsoft.com> - 5-1
73+
- Update to version 5.
74+
6775
* Wed May 25 2022 Pawel Winogrodzki <pawelwi@microsoft.com> - 4-6
6876
- Fixing package build by adding an explicit BR on '/etc/os-release'.
6977
- License verified.

cgmanifest.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3188,8 +3188,8 @@
31883188
"type": "other",
31893189
"other": {
31903190
"name": "efi-rpm-macros",
3191-
"version": "4",
3192-
"downloadUrl": "https://github.com/rhboot/efi-rpm-macros/archive/refs/tags/4.tar.gz"
3191+
"version": "5",
3192+
"downloadUrl": "https://github.com/rhboot/efi-rpm-macros/releases/download/5/efi-rpm-macros-5.tar.bz2"
31933193
}
31943194
}
31953195
},

0 commit comments

Comments
 (0)