bump(sys-boot/efibootmgr): sync with upstream

This commit is contained in:
David Michael 2018-01-07 08:38:16 -05:00
parent 07d2589fb7
commit e0f2957610
14 changed files with 96 additions and 344 deletions

View File

@ -1,12 +0,0 @@
DEFINED_PHASES=compile install unpack
DEPEND=sys-apps/pciutils virtual/pkgconfig
DESCRIPTION=Interact with the EFI Boot Manager
EAPI=0
HOMEPAGE=http://developer.intel.com/technology/efi
KEYWORDS=~amd64 ia64 ~x86
LICENSE=GPL-2
RDEPEND=sys-apps/pciutils
SLOT=0
SRC_URI=http://linux.dell.com/efibootmgr/efibootmgr-0.5.4.tar.gz
_eclasses_=epatch 8233751dc5105a6ae8fcd86ce2bb0247 estack 43ddf5aaffa7a8d0482df54d25a66a1f eutils 227b041a120d309fdefbebb3b8c1dfa9 flag-o-matic 2274fcc1e7ef6affaff5bcd636275417 ltprune 2770eed66a9b8ef944714cd0e968182e multilib 97f470f374f2e94ccab04a2fb21d811e toolchain-funcs 185a06792159ca143528e7010368e8af
_md5_=30ea85cd4fa929dc5bd723f3d49c5733

View File

@ -1,12 +0,0 @@
DEFINED_PHASES=compile configure install prepare
DEPEND=sys-apps/pciutils virtual/pkgconfig
DESCRIPTION=Interact with the EFI Boot Manager
EAPI=5
HOMEPAGE=http://developer.intel.com/technology/efi
KEYWORDS=amd64 ia64 x86
LICENSE=GPL-2
RDEPEND=sys-apps/pciutils
SLOT=0
SRC_URI=http://linux.dell.com/efibootmgr/efibootmgr-0.5.4.tar.gz
_eclasses_=epatch 8233751dc5105a6ae8fcd86ce2bb0247 estack 43ddf5aaffa7a8d0482df54d25a66a1f eutils 227b041a120d309fdefbebb3b8c1dfa9 flag-o-matic 2274fcc1e7ef6affaff5bcd636275417 ltprune 2770eed66a9b8ef944714cd0e968182e multilib 97f470f374f2e94ccab04a2fb21d811e toolchain-funcs 185a06792159ca143528e7010368e8af
_md5_=49dfc960d1556c4bed34068ca24c1712

View File

@ -1,12 +0,0 @@
DEFINED_PHASES=compile install prepare
DEPEND=sys-apps/pciutils virtual/pkgconfig
DESCRIPTION=Interact with the EFI Boot Manager
EAPI=5
HOMEPAGE=http://developer.intel.com/technology/efi
KEYWORDS=~amd64 ~ia64 ~x86
LICENSE=GPL-2
RDEPEND=sys-apps/pciutils
SLOT=0
SRC_URI=http://linux.dell.com/efibootmgr/efibootmgr-0.6.0/efibootmgr-0.6.0.tar.gz
_eclasses_=epatch 8233751dc5105a6ae8fcd86ce2bb0247 estack 43ddf5aaffa7a8d0482df54d25a66a1f eutils 227b041a120d309fdefbebb3b8c1dfa9 flag-o-matic 2274fcc1e7ef6affaff5bcd636275417 ltprune 2770eed66a9b8ef944714cd0e968182e multilib 97f470f374f2e94ccab04a2fb21d811e toolchain-funcs 185a06792159ca143528e7010368e8af
_md5_=c8d3aa6a08f7406b03bb3de8a7370d60

View File

@ -0,0 +1,12 @@
DEFINED_PHASES=configure prepare
DEPEND=sys-apps/pciutils >=sys-libs/efivar-25:=
DESCRIPTION=User-space application to modify the EFI boot manager
EAPI=6
HOMEPAGE=https://github.com/rhinstaller/efibootmgr
KEYWORDS=amd64 ~arm64 ia64 x86
LICENSE=GPL-2
RDEPEND=sys-apps/pciutils >=sys-libs/efivar-25:=
SLOT=0
SRC_URI=https://github.com/rhinstaller/efibootmgr/releases/download/14/efibootmgr-14.tar.bz2
_eclasses_=multilib 97f470f374f2e94ccab04a2fb21d811e toolchain-funcs 185a06792159ca143528e7010368e8af
_md5_=dd40e86e0ce3dec7bc31d2dd04d1fe5e

View File

@ -0,0 +1,12 @@
DEFINED_PHASES=configure prepare
DEPEND=sys-apps/pciutils >=sys-libs/efivar-25:=
DESCRIPTION=User-space application to modify the EFI boot manager
EAPI=6
HOMEPAGE=https://github.com/rhinstaller/efibootmgr
KEYWORDS=amd64 ~arm64 ~ia64 x86
LICENSE=GPL-2
RDEPEND=sys-apps/pciutils >=sys-libs/efivar-25:=
SLOT=0
SRC_URI=https://github.com/rhinstaller/efibootmgr/releases/download/15/efibootmgr-15.tar.bz2
_eclasses_=multilib 97f470f374f2e94ccab04a2fb21d811e toolchain-funcs 185a06792159ca143528e7010368e8af
_md5_=5f43cdd106b46c6245e9a17d5097005b

View File

@ -1,109 +0,0 @@
# ChangeLog for sys-boot/efibootmgr
# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
# $Header: /var/cvsroot/gentoo-x86/sys-boot/efibootmgr/ChangeLog,v 1.29 2014/01/15 09:23:37 ago Exp $
15 Jan 2014; Agostino Sarubbo <ago@gentoo.org> efibootmgr-0.5.4-r1.ebuild:
Stable for ia64, wrt bug #485596
*efibootmgr-0.6.0 (06 Nov 2013)
06 Nov 2013; Justin Lecher <jlec@gentoo.org> +efibootmgr-0.6.0.ebuild,
metadata.xml:
Version BUmp, #486062
30 Oct 2013; Mike Gilbert <floppym@gentoo.org> efibootmgr-0.5.4-r1.ebuild,
efibootmgr-0.5.4.ebuild, metadata.xml:
Update DESCRIPTION, bug 489886 by Elias Probst.
12 Oct 2013; Mike Frysinger <vapier@gentoo.org> efibootmgr-0.5.4-r1.ebuild:
Move flag/toolchain setup to src_configure.
30 Sep 2013; Agostino Sarubbo <ago@gentoo.org> efibootmgr-0.5.4-r1.ebuild:
Stable for x86, wrt bug #485596
28 Sep 2013; Agostino Sarubbo <ago@gentoo.org> efibootmgr-0.5.4-r1.ebuild:
Stable for amd64, wrt bug #485596
*efibootmgr-0.5.4-r1 (10 Jul 2013)
10 Jul 2013; Tomáš Chvátal <scarabeus@gentoo.org> +efibootmgr-0.5.4-r1.ebuild,
+files/efibootmgr-error-reporting.patch:
Revision bump with error reporting patch. Now you can see error messages, not
just return codes.
03 May 2012; Jeff Horelick <jdhore@gentoo.org> efibootmgr-0.5.4.ebuild:
dev-util/pkgconfig -> virtual/pkgconfig
13 Jan 2012; Mike Frysinger <vapier@gentoo.org> efibootmgr-0.5.4.ebuild:
Use common tc-getPKG_CONFIG helper.
03 Mar 2010; Raúl Porcel <armin76@gentoo.org> efibootmgr-0.5.4.ebuild:
Add dev-util/pkgconfig to DEPEND, bug #306125
02 Jun 2009; Raúl Porcel <armin76@gentoo.org> -efibootmgr-0.5.3.ebuild,
efibootmgr-0.5.4.ebuild:
ia64 stable, remove old
06 May 2009; Markus Meier <maekke@gentoo.org> efibootmgr-0.5.4.ebuild:
add ~amd64, bug #208639; assign RDEPEND
*efibootmgr-0.5.4 (20 Feb 2008)
20 Feb 2008; Mike Frysinger <vapier@gentoo.org> +efibootmgr-0.5.4.ebuild:
Version bump.
14 Feb 2008; Christian Faulhammer <opfer@gentoo.org>
efibootmgr-0.5.3.ebuild:
keyworded ~arch for x86, bug 208639
14 Aug 2007; Chris Gianelloni <wolf31o2@gentoo.org>
efibootmgr-0.5.3.ebuild:
Modified to use the same built_with_use logic as other ebuilds in the tree
and added --missing as reported on bug #188221.
11 Jul 2007; Raúl Porcel <armin76@gentoo.org> efibootmgr-0.5.3.ebuild:
Fix build failure if pciutils is built with zlib, thanks to Alexander
Færøy <eroyf at eroyf dot org> for the fix, bug #184005
22 Feb 2007; Markus Ullmann <jokey@gentoo.org> ChangeLog:
Redigest for Manifest2
27 Apr 2006; Alec Warner <antarus@gentoo.org>
files/digest-efibootmgr-0.4.2, files/digest-efibootmgr-0.5.0, Manifest:
Fixing SHA256 digest, pass four
01 Apr 2006; Aron Griffis <agriffis@gentoo.org> efibootmgr-0.5.3.ebuild:
Mark 0.5.3 stable on ia64
*efibootmgr-0.5.3 (10 Mar 2006)
10 Mar 2006; Aron Griffis <agriffis@gentoo.org> +efibootmgr-0.5.3.ebuild:
Bump to 0.5.3 (from 0.5.0). #120340
05 Feb 2005; <plasmaroo@gentoo.org> efibootmgr-0.5.0.ebuild:
Mark stable on IA64.
03 Feb 2005; <plasmaroo@gentoo.org> efibootmgr-0.5.0.ebuild:
0.5.0 requires sys-apps/pciutils to compile properly; adding into DEPEND.
*efibootmgr-0.5.0 (31 Oct 2004)
31 Oct 2004; Mike Frysinger <vapier@gentoo.org> +efibootmgr-0.5.0.ebuild:
Version bump #69144 by splite.
01 Jul 2004; Jeremy Huddleston <eradicator@gentoo.org>
efibootmgr-0.4.2.ebuild:
virtual/glibc -> virtual/libc
27 Apr 2004; Aron Griffis <agriffis@gentoo.org> efibootmgr-0.4.2.ebuild:
Add inherit eutils
04 Mar 2004; <agriffis@gentoo.org> efibootmgr-0.4.2.ebuild:
stable on ia64
*efibootmgr-0.4.2 (21 Jan 2004)
21 Jan 2004; <agriffis@gentoo.org> efibootmgr-0.4.2.ebuild, metadata.xml,
files/efibootmgr-0.4.1-makefile.patch:
Add efibootmgr for IA-64. This program allows you to configure the EFI boot
partition on IA-64 systems

View File

@ -1,28 +1,2 @@
-----BEGIN PGP SIGNED MESSAGE----- DIST efibootmgr-14.tar.bz2 34972 BLAKE2B 78490756c5fd449f4319b79e0818e9d80340bd487f57d0de34f79f48cc24eb7b9c7309b535d00efad4babd40904d4cfb085cca278170625a1e875961e423f5dd SHA512 97935f8752440ce236162e174ea3404e907ebddc5877d597a97813da76ad580689fc2e97044885fc860a12a473af7183242b6120e78e53243d35e569fb002baf
Hash: SHA256 DIST efibootmgr-15.tar.bz2 35476 BLAKE2B 19b7c9ce51f3b930b2d59fa4a594c7a8bf5f1c7aa3224049e88cdafe82991799b1b719ec68c80131027f70c16bd19e38157f5d0bc7761843959410c667aa4070 SHA512 d9d9eef14d373d5da88141e8105f754fea4c039755ed0a0cb9b3c9c2bb285733ad930fd912df42075fe2cf750585699307b067f594d8e65269b3b8a5a00b1cd1
AUX efibootmgr-error-reporting.patch 950 SHA256 aeaf696f933ce251f866c669b08a2e0c7b8a5d95011f17076f79041298d1861c SHA512 6f1f71e73d8168db397a2270b89900ab48fb67281ca49749bd6320aed13964fd1113a545ae1b30b6d5d7b9928588c54696d513861547ecb4054565cb498edec0 WHIRLPOOL 117e1fc0b5ad95122fd0d56b098f92d5bbfea3ba2482f6e4f08adacbc625ff8db8ee0a8e870c6b7f11732a27f8465f6c64335a8343a99a33bf834fabf8fbe743
DIST efibootmgr-0.5.4.tar.gz 59121 SHA256 b562a47a4f5327494992f2ee6ae14a75c5aeb9b4a3a78a06749d5cd2917b8e71 SHA512 1fbc3bc442e848b7f6a7e5d8851d92efe271abd090cfeda253baf7b11b9f7b9e984b9703c02ed57f718d5de5b26ec45f1eaeff55b50e4a7bc9e25cf3a958c4ad WHIRLPOOL e17d2a2ecb666eb6644794b48535d8141ee2b79470cdb8d28c927032724efd59dcfdef278d6895bf3c3ec5af91ea559a2df1c938fb406fb2a8c0256a67da05a6
DIST efibootmgr-0.6.0.tar.gz 64995 SHA256 1c9b0852df7932c410865e296a38fe66e39a26e10c9c1a7ff34fca87f3e25f53 SHA512 f06d3094e41ef100f5bad746add6cad3f3c700e5d5ebe9481533e6ec1df07b3595132f835ffcbac853e3fb48d0fd03d572c84f54394ba094b6d0aa426ff2a02c WHIRLPOOL 0352318b9350f8ae789fbeda278a55d1b28edd17fcadbaf0f9f484cac7dd9826e55243b799d512aa30e99265e7dff87142f9054908157bd9dba001981c807943
EBUILD efibootmgr-0.5.4-r1.ebuild 1020 SHA256 03a30c49b8e6116da18afb2105daaefcac8b0fb1dfc252d1aeb5ed48d703f725 SHA512 10f6e821e22368a04bea0ca990438138d14e6fe98aa1c593d9cc789340299f27155cde0ba2bbe545bf15e378be111394ebbae484a80693c636de5abcd4a3d190 WHIRLPOOL 589a8c6c5cb3913c86745f887a5d15118f532e158cffd0d01164d341838a8b3c2b0e26489dd4ae7f11f8525e8e43bf22ac4f580a745c454ef9b22f3416268ca7
EBUILD efibootmgr-0.5.4.ebuild 973 SHA256 6501ab75b87492e74f68c918e4b66568fc6e1b5b1a7c521b922bd86b71a6af82 SHA512 8d3264a26b609e9950d2461dff9dc6223e5a68f9875c1ecc82a8b3a50fb27cb0a4226d33e35c51b5f66f7b434775fd83f8740fe064e319b183149d082001b3fc WHIRLPOOL bad060694c825a5ce7c88de6e335d5aae3d44cdc5a5e60689142834e70e1318ccbc7142f07a07d1424c650f9a5f5e3229fb82f168e3bc4f0a99959f5b51ea85a
EBUILD efibootmgr-0.6.0.ebuild 1000 SHA256 3ef04ac090a386bf30ae200e45be1b72f0286c00310391614af483910af04b09 SHA512 3eb5b2015595cbec7852a61152b14afb25acb29d6a7f184de573f42b8139a7fd3eaa55173b1aee1533d56f66b201ca4e620318f33234a08e88012f2276ccbc46 WHIRLPOOL b7f6100a361ba1bdc64761053eef44a638fa4dd911a307f85a14cae86f461529f6ca5f3348c58fdf0f54f7e7628d0bba2ebe5156cdefb4dbb542d0b65fc551ab
MISC ChangeLog 3932 SHA256 9eb0f86e6a2689eff2fa5295ce1325e92bcc574e42f981fd580ec66064a1538b SHA512 0c3c210384e68d680375f7b037bb98666433d2aeb36c2c10f0989f93a543d93a4917b0c96601f299058c49d67cacd1e4a01a8bb58bca2789f8c1a825528f3794 WHIRLPOOL a32366ad80c75de93a4b394496f91890a1b1fb3d3cba333de753a1e3387a47886629d2b22230639e05bf496fb0a8d795fdf2344cc42819df2ae8dcc30c72e285
MISC metadata.xml 448 SHA256 26459ed10f99ae30f4d542d8fb8b59b614ec858adb811281f2e2c7effc4ba16a SHA512 51b9beb3099e0b70b3bed56ce041a64a0b24afd381da9dd5fff35b3e7e1078f9224ca879fdd95f6c11121734fd23122ca2d0dfc25630ff0c12ec5fb000c5bee3 WHIRLPOOL 535069d6ac48cf68fefc4d0170b6f1ed3b095a8a925eebcb0a4d1f67e4d5a7eef36f72c9ff1e8c3273b09e7ec2f38ba9a9002ef0a34118116a5e5e815dcab890
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.22 (GNU/Linux)
iQIcBAEBCAAGBQJS1lOaAAoJELp701BxlEWfm2AP/1/a5Ak7lJQaqLWeclHC9lKE
cgppWV4MXfjL52Ql5S7seI4AfIQSD3JDiC3sCQLSU5BjWqmWJpP3A3nJkhBeGNYh
mq13HePy14cxRqmG1k6ZajZpimgwomy1gwzFMzmqxzZNzCC0zWIAVkYTSIcMajo3
FOYHJe+H5bNiMGzkSx0KrKk6seliMrEySAET+fk2ML1AABm9eRPoLOdi1g/1YkSF
lj1InHo3SWn/fwkUOoqCm4nYO7dWz3I/W+Z6FH0NkFKi0QFdSXr23XCvMABBqH8D
bKr7i+KRWC25H/fCinijGVujAvJ3cEDuS4jgZPwrzmecsl5DovGbEBcnK/UTIMt7
dSmj7fX1Cg9UknpnY/65rDM6tZuZ7DjwiGccWXswiRNbg3BD0S+XaG6kLi1UVdiR
BTPMdBzBDYq/c7v2DY8dw7umuvnQ21h/n4YbCPg5M5uHA6ESP/gg/9jQnzxiSeZe
aFtfd0Joofky/i8IYsRudqLFncFvkWjSmIfrkxrYDdwhcdfJ/8YECVesNlgrURwR
QspskQJb+Q64+Mdh9fxXiAQ6ztk42JSOl702RXtCdT5NsA7p52EO7xAjGkncwzIG
b+jU6vTaIQCh6V/wlLsuRhjndXmtWNVdnBgXFDahD5K3Zi3b2v6yBvCla6nbagp8
JmwUqJuTxTHmrhNDyqex
=GLE8
-----END PGP SIGNATURE-----

View File

@ -1,44 +0,0 @@
# Copyright 1999-2014 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/sys-boot/efibootmgr/efibootmgr-0.5.4-r1.ebuild,v 1.6 2014/01/15 09:23:37 ago Exp $
EAPI=5
inherit flag-o-matic toolchain-funcs eutils
DESCRIPTION="Interact with the EFI Boot Manager"
HOMEPAGE="http://developer.intel.com/technology/efi"
SRC_URI="http://linux.dell.com/efibootmgr/${P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="amd64 ia64 x86"
IUSE=""
RDEPEND="sys-apps/pciutils"
DEPEND="${RDEPEND}
virtual/pkgconfig"
src_prepare() {
sed -i \
-e "/^LIBS/s:=.*:=$($(tc-getPKG_CONFIG) libpci --libs):" \
src/efibootmgr/module.mk || die
epatch "${FILESDIR}/${PN}-error-reporting.patch"
}
src_configure() {
strip-flags
tc-export CC
}
src_compile() {
emake EXTRA_CFLAGS="${CFLAGS}"
}
src_install() {
# build system uses perl, so just do it ourselves
dosbin src/efibootmgr/efibootmgr
doman src/man/man8/efibootmgr.8
dodoc AUTHORS README doc/ChangeLog doc/TODO
}

View File

@ -1,39 +0,0 @@
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/sys-boot/efibootmgr/efibootmgr-0.5.4.ebuild,v 1.7 2013/10/30 17:43:12 floppym Exp $
inherit flag-o-matic toolchain-funcs
DESCRIPTION="Interact with the EFI Boot Manager"
HOMEPAGE="http://developer.intel.com/technology/efi"
SRC_URI="http://linux.dell.com/efibootmgr/${P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ia64 ~x86"
IUSE=""
RDEPEND="sys-apps/pciutils"
DEPEND="${RDEPEND}
virtual/pkgconfig"
src_unpack() {
unpack ${A}
cd "${S}"
sed -i \
-e "/^LIBS/s:=.*:=$($(tc-getPKG_CONFIG) libpci --libs):" \
src/efibootmgr/module.mk || die
}
src_compile() {
strip-flags
tc-export CC
emake EXTRA_CFLAGS="${CFLAGS}" || die
}
src_install() {
# build system uses perl, so just do it ourselves
dosbin src/efibootmgr/efibootmgr || die
doman src/man/man8/efibootmgr.8
dodoc AUTHORS README doc/ChangeLog doc/TODO
}

View File

@ -1,41 +0,0 @@
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/sys-boot/efibootmgr/efibootmgr-0.6.0.ebuild,v 1.1 2013/11/06 10:41:09 jlec Exp $
EAPI=5
inherit flag-o-matic toolchain-funcs eutils
DESCRIPTION="Interact with the EFI Boot Manager"
HOMEPAGE="http://developer.intel.com/technology/efi"
SRC_URI="http://linux.dell.com/${PN}/${P}/${P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~ia64 ~x86"
IUSE=""
RDEPEND="sys-apps/pciutils"
DEPEND="${RDEPEND}
virtual/pkgconfig"
src_prepare() {
sed -i \
-e "/^LIBS/s:=.*:=$($(tc-getPKG_CONFIG) libpci --libs):" \
src/efibootmgr/module.mk || die
epatch "${FILESDIR}/${PN}-error-reporting.patch"
}
src_compile() {
strip-flags
tc-export CC
emake EXTRA_CFLAGS="${CFLAGS}"
}
src_install() {
# build system uses perl, so just do it ourselves
dosbin src/efibootmgr/efibootmgr
doman src/man/man8/efibootmgr.8
dodoc AUTHORS README doc/ChangeLog doc/TODO
}

View File

@ -0,0 +1,28 @@
# Copyright 1999-2017 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=6
inherit toolchain-funcs
DESCRIPTION="User-space application to modify the EFI boot manager"
HOMEPAGE="https://github.com/rhinstaller/efibootmgr"
SRC_URI="https://github.com/rhinstaller/efibootmgr/releases/download/${PV}/${P}.tar.bz2"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="amd64 ~arm64 ia64 x86"
IUSE=""
RDEPEND="sys-apps/pciutils
>=sys-libs/efivar-25:="
DEPEND="${RDEPEND}"
src_prepare() {
default
sed -i -e s/-Werror// Make.defaults || die
}
src_configure() {
tc-export CC
}

View File

@ -0,0 +1,29 @@
# Copyright 1999-2017 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=6
inherit toolchain-funcs
DESCRIPTION="User-space application to modify the EFI boot manager"
HOMEPAGE="https://github.com/rhinstaller/efibootmgr"
SRC_URI="https://github.com/rhinstaller/efibootmgr/releases/download/${PV}/${P}.tar.bz2"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="amd64 ~arm64 ~ia64 x86"
IUSE=""
RDEPEND="sys-apps/pciutils
>=sys-libs/efivar-25:="
DEPEND="${RDEPEND}"
src_prepare() {
default
sed -i -e s/-Werror// Make.defaults || die
}
src_configure() {
tc-export CC
export EFIDIR="Gentoo"
}

View File

@ -1,40 +0,0 @@
@@ -, +, @@
---
src/lib/efivars_sysfs.c | 16 +++++++++++++---
1 files changed, 13 insertions(+), 3 deletions(-)
--- a/src/lib/efivars_sysfs.c
+++ a/src/lib/efivars_sysfs.c
@@ -66,6 +66,7 @@ static efi_status_t
sysfs_write_variable(const char *filename, efi_variable_t *var)
{
int fd;
+ int rc = EFI_SUCCESS;
size_t writesize;
char buffer[PATH_MAX+40];
@@ -77,12 +78,21 @@ sysfs_write_variable(const char *filename, efi_variable_t *var)
return EFI_INVALID_PARAMETER;
}
writesize = write(fd, var, sizeof(*var));
+ if (writesize == -1) {
+ if (errno == -ENOSPC)
+ rc = EFI_OUT_OF_RESOURCES;
+ else
+ rc = EFI_INVALID_PARAMETER;
+ goto out;
+ }
if (writesize != sizeof(*var)) {
- close(fd);
- return EFI_INVALID_PARAMETER;
+ rc = EFI_INVALID_PARAMETER;
}
+out:
+ if (rc != EFI_SUCCESS)
+ fprintf(stderr, "Failed to write variable: %s\n", strerror(errno));
close(fd);
- return EFI_SUCCESS;
+ return rc;
}
--

View File

@ -1,11 +1,17 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> <!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata> <pkgmetadata>
<herd>ia64</herd> <maintainer type="person">
<longdescription> <email>floppym@gentoo.org</email>
This is efibootmgr, a Linux user-space application to modify the Intel <name>Mike Gilbert</name>
Extensible Firmware Interface (EFI) Boot Manager. This application </maintainer>
can create and destroy boot entries, change the boot order, change <longdescription>
the next running boot option, and more. This is efibootmgr, a Linux user-space application to modify the Intel
</longdescription> Extensible Firmware Interface (EFI) Boot Manager. This application
can create and destroy boot entries, change the boot order, change
the next running boot option, and more.
</longdescription>
<upstream>
<remote-id type="github">rhinstaller/efibootmgr</remote-id>
</upstream>
</pkgmetadata> </pkgmetadata>