|
|
8dd33d |
Summary: EFI Boot Manager
|
|
|
8dd33d |
Name: efibootmgr
|
|
|
5fb29d |
Version: 0.8.0
|
|
|
c9eda1 |
Release: 7%{?dist}
|
|
|
8dd33d |
Group: System Environment/Base
|
|
|
8dd33d |
License: GPLv2+
|
|
|
5fb29d |
URL: http://github.com/vathpela/%{name}/
|
|
|
8dd33d |
BuildRequires: pciutils-devel, zlib-devel, git
|
|
|
5fb29d |
BuildRequires: efivar-libs, efivar-devel
|
|
|
8dd33d |
BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXXXX)
|
|
|
8dd33d |
# EFI/UEFI don't exist on PPC
|
|
|
5fb29d |
ExclusiveArch: x86_64 aarch64
|
|
|
8dd33d |
|
|
|
8dd33d |
# for RHEL / Fedora when efibootmgr was part of the elilo package
|
|
|
5fb29d |
Conflicts: elilo <= 3.6-6
|
|
|
5fb29d |
Obsoletes: elilo <= 3.6-6
|
|
|
5fb29d |
|
|
|
5fb29d |
Source0: https://github.com/vathpela/%{name}/releases/download/%{name}-%{version}/%{name}-%{version}.tar.bz2
|
|
|
5fb29d |
Patch0000: 0001-Make-EFI-redhat-shim.efi-the-default-bootloader-1036.patch
|
|
|
5fb29d |
Patch0001: 0001-Fix-a-bad-allocation-size.patch
|
|
|
5fb29d |
Patch0002: 0002-Make-the-return-path-something-coverity-can-actually.patch
|
|
|
5fb29d |
Patch0003: 0003-Don-t-leak-our-socket-s-fd-when-determining-network-.patch
|
|
|
5fb29d |
Patch0004: 0004-Fix-another-leaked-fd.patch
|
|
|
5fb29d |
Patch0005: 0005-Fix-some-minor-memory-leaks.patch
|
|
|
5fb29d |
Patch0006: 0006-Make-sure-data-created-for-load-options-is-freed.patch
|
|
|
5fb29d |
Patch0007: 0007-Fix-an-error-path-not-checking-the-return-right-in-m.patch
|
|
|
5fb29d |
Patch0008: 0008-Try-to-avoid-covscan-freaking-out-about-sscanf-with-.patch
|
|
|
5fb29d |
Patch0009: 0009-Get-rid-of-an-invalid-comparison.patch
|
|
|
5fb29d |
Patch0010: 0010-Covscan-can-t-tell-that-we-re-not-filling-a-buffer.patch
|
|
|
5fb29d |
Patch0011: 0011-Don-t-free-something-that-shouldn-t-ever-be-non-NULL.patch
|
|
|
5fb29d |
Patch0012: 0012-Don-t-reuse-a-pointer-to-static-data-and-free-condit.patch
|
|
|
5fb29d |
Patch0013: 0013-Handle-the-case-where-there-are-no-EFI-variables.patch
|
|
|
5fb29d |
Patch0014: 0014-Make-a-free-non-conditional-since-the-condition-can-.patch
|
|
|
5fb29d |
Patch0015: 0015-Check-malloc-return.patch
|
|
|
5fb29d |
Patch0016: 0016-Check-open-s-return-correctly.patch
|
|
|
5fb29d |
Patch0017: 0017-Check-lseek-for-errors.patch
|
|
|
5fb29d |
Patch0018: 0018-Don-t-leak-our-partition-table-structures.patch
|
|
|
5fb29d |
Patch0019: 0001-Don-t-error-on-unset-BootOrder-when-we-re-trying-to-.patch
|
|
|
5fb29d |
Patch0020: 0001-Fix-buffer-overflow-when-remove_from_boot_order-remo.patch
|
|
|
5fb29d |
Patch0021: 0001-Make-sure-BootOrder-gets-shortened-while-deleting.patch
|
|
|
c9eda1 |
Patch0022: 0001-Make-o-s-behavior-actually-match-the-documented-beha.patch
|
|
|
c9eda1 |
Patch0023: 0002-Make-all-the-other-places-we-re-parsing-XXXX-also-do.patch
|
|
|
c9eda1 |
Patch0024: 0001-Set-guid-when-reading-boot-entries-in-read_vars.patch
|
|
|
c9eda1 |
Patch0025: 0001-Don-t-check-for-bootnext-existing-until-we-ve-read-t.patch
|
|
|
c9eda1 |
Patch0026: 0001-Actually-set-the-values-we-re-using-to-the-results-o.patch
|
|
|
c9eda1 |
|
|
|
8dd33d |
|
|
|
8dd33d |
%description
|
|
|
8dd33d |
%{name} displays and allows the user to edit the Intel Extensible
|
|
|
8dd33d |
Firmware Interface (EFI) Boot Manager variables. Additional
|
|
|
8dd33d |
information about EFI can be found at
|
|
|
8dd33d |
http://developer.intel.com/technology/efi/efi.htm and http://uefi.org/.
|
|
|
8dd33d |
|
|
|
8dd33d |
%prep
|
|
|
8dd33d |
%setup -q
|
|
|
8dd33d |
git init
|
|
|
5fb29d |
git config user.email "example@example.com"
|
|
|
5fb29d |
git config user.name "RHEL Ninjas"
|
|
|
8dd33d |
git add .
|
|
|
8dd33d |
git commit -a -q -m "%{version} baseline."
|
|
|
5fb29d |
git am %{patches}
|
|
|
5fb29d |
git config --unset user.email
|
|
|
5fb29d |
git config --unset user.name
|
|
|
8dd33d |
|
|
|
8dd33d |
%build
|
|
|
8dd33d |
make %{?_smp_mflags} EXTRA_CFLAGS='%{optflags}'
|
|
|
8dd33d |
|
|
|
8dd33d |
%install
|
|
|
8dd33d |
rm -rf %{buildroot}
|
|
|
8dd33d |
mkdir -p %{buildroot}%{_sbindir} %{buildroot}%{_mandir}/man8
|
|
|
8dd33d |
install -p --mode 755 src/%{name}/%{name} %{buildroot}%{_sbindir}
|
|
|
8dd33d |
gzip -9 -c src/man/man8/%{name}.8 > src/man/man8/%{name}.8.gz
|
|
|
8dd33d |
touch -r src/man/man8/%{name}.8 src/man/man8/%{name}.8.gz
|
|
|
8dd33d |
install -p --mode 644 src/man/man8/%{name}.8.gz %{buildroot}%{_mandir}/man8
|
|
|
8dd33d |
|
|
|
8dd33d |
%clean
|
|
|
8dd33d |
rm -rf %{buildroot}
|
|
|
8dd33d |
|
|
|
8dd33d |
%files
|
|
|
8dd33d |
%defattr(-,root,root,-)
|
|
|
8dd33d |
%{_sbindir}/%{name}
|
|
|
8dd33d |
%{_mandir}/man8/%{name}.8.gz
|
|
|
8dd33d |
%doc README INSTALL COPYING
|
|
|
bbe12c |
|
|
|
8dd33d |
%changelog
|
|
|
c9eda1 |
* Thu Jul 09 2015 Peter Jones <pjones@redhat.com> - 0.8.0-7
|
|
|
c9eda1 |
- Fix a couple of problems parsing command line options QA is seeing.
|
|
|
c9eda1 |
Resolves: rhbz#1241411
|
|
|
c9eda1 |
|
|
|
c9eda1 |
* Tue Jun 30 2015 Peter Jones <pjones@redhat.com> - 0.8.0-6
|
|
|
c9eda1 |
- Handle -b and -o parsing in a way that matches the documentation.
|
|
|
c9eda1 |
Resolves: rhbz#1174964
|
|
|
c9eda1 |
- Use the right GUID when setting boot entries active/inactive
|
|
|
c9eda1 |
Resolves: rhbz#1221771
|
|
|
c9eda1 |
|
|
|
5fb29d |
* Mon Feb 02 2015 Peter Jones <pjones@redhat.com> - 0.8.0-5
|
|
|
5fb29d |
- Fix patch merge error from -4
|
|
|
5fb29d |
Resolves: rhbz#1188313
|
|
|
8dd33d |
|
|
|
5fb29d |
* Thu Jan 08 2015 Peter Jones <pjones@redhat.com> - 0.8.0-4
|
|
|
5fb29d |
- Fix buffer overflow when remove_from_boot_order removes nothing (lennysz)
|
|
|
5fb29d |
Resolves: rhbz#1168019
|
|
|
8dd33d |
|
|
|
5fb29d |
* Wed Oct 15 2014 Peter Jones <pjones@redhat.com> - 0.8.0-3
|
|
|
5fb29d |
- Don't error when BootOrder is unset and we're trying to add to it.
|
|
|
5fb29d |
Related:rhbz#967969
|
|
|
8dd33d |
|
|
|
5fb29d |
* Wed Sep 10 2014 Peter Jones <pjones@redhat.com> - 0.8.0-2
|
|
|
5fb29d |
- Fix some covscan related errors.
|
|
|
5fb29d |
Related: rhbz#1129435
|
|
|
8dd33d |
|
|
|
5fb29d |
* Fri Sep 05 2014 Peter Jones <pjones@redhat.com> - 0.8.0-1
|
|
|
5fb29d |
- Rebase to 0.8.0
|
|
|
5fb29d |
Resolves: rhbz#1129435
|