commit:     96c0191f19a249ff6acaaf1a91e2bced137d6dbc
Author:     Mike Gilbert <floppym <AT> gentoo <DOT> org>
AuthorDate: Thu Nov  6 20:02:51 2025 +0000
Commit:     Mike Gilbert <floppym <AT> gentoo <DOT> org>
CommitDate: Thu Nov  6 20:02:51 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=96c0191f

sys-boot/grub: add 'protect' USE flag

Signed-off-by: Mike Gilbert <floppym <AT> gentoo.org>

 sys-boot/grub/{grub-2.14_rc1.ebuild => grub-2.14_rc1-r1.ebuild} | 4 +++-
 sys-boot/grub/grub-9999.ebuild                                  | 4 +++-
 sys-boot/grub/metadata.xml                                      | 1 +
 3 files changed, 7 insertions(+), 2 deletions(-)

diff --git a/sys-boot/grub/grub-2.14_rc1.ebuild 
b/sys-boot/grub/grub-2.14_rc1-r1.ebuild
similarity index 98%
rename from sys-boot/grub/grub-2.14_rc1.ebuild
rename to sys-boot/grub/grub-2.14_rc1-r1.ebuild
index 0ba443e62ba1..6f4f991a9396 100644
--- a/sys-boot/grub/grub-2.14_rc1.ebuild
+++ b/sys-boot/grub/grub-2.14_rc1-r1.ebuild
@@ -84,7 +84,7 @@ SRC_URI+="
 # Includes licenses for dejavu and unifont
 LICENSE="GPL-3+ BSD MIT fonts? ( GPL-2-with-font-exception ) themes? ( 
CC-BY-SA-3.0 BitstreamVera )"
 SLOT="2/${PVR}"
-IUSE="+device-mapper doc efiemu +fonts mount nls sdl test +themes truetype 
libzfs"
+IUSE="+device-mapper doc efiemu +fonts mount nls protect sdl test +themes 
truetype libzfs"
 
 GRUB_ALL_PLATFORMS=( coreboot efi-32 efi-64 emu ieee1275 loongson multiboot
        qemu qemu-mips pc uboot xen xen-32 xen-pvh )
@@ -135,6 +135,7 @@ DEPEND="
        truetype? ( media-libs/freetype:2= )
        ppc? ( >=sys-apps/ibm-powerpc-utils-1.3.5 )
        ppc64? ( >=sys-apps/ibm-powerpc-utils-1.3.5 )
+       protect? ( dev-libs/libtasn1:= )
 "
 RDEPEND="${DEPEND}
        kernel_linux? (
@@ -232,6 +233,7 @@ grub_configure() {
                $(use_enable device-mapper)
                $(use_enable mount grub-mount)
                $(use_enable nls)
+               $(use_enable protect grub-protect)
                $(use_enable themes grub-themes)
                $(use_enable truetype grub-mkfont)
                $(use_enable libzfs)

diff --git a/sys-boot/grub/grub-9999.ebuild b/sys-boot/grub/grub-9999.ebuild
index 4ff9024e4726..fce01a3cf3cf 100644
--- a/sys-boot/grub/grub-9999.ebuild
+++ b/sys-boot/grub/grub-9999.ebuild
@@ -83,7 +83,7 @@ SRC_URI+="
 # Includes licenses for dejavu and unifont
 LICENSE="GPL-3+ BSD MIT fonts? ( GPL-2-with-font-exception ) themes? ( 
CC-BY-SA-3.0 BitstreamVera )"
 SLOT="2/${PVR}"
-IUSE="+device-mapper doc efiemu +fonts mount nls sdl test +themes truetype 
libzfs"
+IUSE="+device-mapper doc efiemu +fonts mount nls protect sdl test +themes 
truetype libzfs"
 
 GRUB_ALL_PLATFORMS=( coreboot efi-32 efi-64 emu ieee1275 loongson multiboot
        qemu qemu-mips pc uboot xen xen-32 xen-pvh )
@@ -134,6 +134,7 @@ DEPEND="
        truetype? ( media-libs/freetype:2= )
        ppc? ( >=sys-apps/ibm-powerpc-utils-1.3.5 )
        ppc64? ( >=sys-apps/ibm-powerpc-utils-1.3.5 )
+       protect? ( dev-libs/libtasn1:= )
 "
 RDEPEND="${DEPEND}
        kernel_linux? (
@@ -231,6 +232,7 @@ grub_configure() {
                $(use_enable device-mapper)
                $(use_enable mount grub-mount)
                $(use_enable nls)
+               $(use_enable protect grub-protect)
                $(use_enable themes grub-themes)
                $(use_enable truetype grub-mkfont)
                $(use_enable libzfs)

diff --git a/sys-boot/grub/metadata.xml b/sys-boot/grub/metadata.xml
index c8fd5827d3e5..6e62a18e99d1 100644
--- a/sys-boot/grub/metadata.xml
+++ b/sys-boot/grub/metadata.xml
@@ -23,6 +23,7 @@
        <flag name="libzfs">
                Enable support for <pkg>sys-fs/zfs</pkg>
        </flag>
+       <flag name="protect">Build and install the grub-protect utility</flag>
        <flag name="themes">Build and install GRUB themes (starfield)</flag>
        <flag name="truetype">Build and install grub-mkfont conversion 
utility</flag>
 </use>

Reply via email to