Re: [gentoo-dev] [PATCH 1/1]: profiles/use.desc: add efi global use flag

2023-07-14 Thread Andrew Ammerlaan

On 14/07/2023 19:11, Mike Gilbert wrote:

On Fri, Jul 14, 2023 at 5:07 AM Sam James  wrote:



Andrew Ammerlaan  writes:


Hi all,

Currently we have 7 packages defining the efi flag and an additional 2
defining the uefi flag. These flags do the same thing, add support for
(U)EFI booting. I therefore propose we introduce efi as a new global
flag and later rename the uefi flag to efi in sys-apps/fwupd and
sys-apps/ipmicfg.

I don't have a strong preference between the efi or uefi flags, but
since a majority of the packages has chosen efi I suggest we go with
that.


Let's do USE=uefi please - UEFI is the modern name for it, and EFI is
legacy. I'd like to avoid another USE=ssl situation (where we're
stuck with it forever given we have no mechanism for USE flag renames,
despite the fact that it's really TLS now).


Any thoughts on grub_platforms_efi-32 and grub_platforms_efi-64?

If we want to rename USE flags, I would probably take the opportunity
to eliminate the GRUB_PLATFORMS USE_EXPAND altogether.



For grub specifically there is another thing to consider. Currently 
emerging grub does not actually build an efi executable, this (I think) 
is done when you 'grub-install'. This is unfortunate because that makes 
it the only bootloader that you can't conveniently sign with 
secureboot.eclass.


I briefly looked into the problem and there is 'grub-mkstandalone' which 
could be used to generate (and then sign) a grub efi executable. But how 
this would then work with 'grub-install' I do not know. I don't use grub 
myself, but maybe someone who does can look into this.


Best regards,
Andrew



Re: [gentoo-dev] [PATCH 1/1]: profiles/use.desc: add efi global use flag

2023-07-14 Thread Mike Gilbert
On Fri, Jul 14, 2023 at 5:07 AM Sam James  wrote:
>
>
> Andrew Ammerlaan  writes:
>
> > Hi all,
> >
> > Currently we have 7 packages defining the efi flag and an additional 2
> > defining the uefi flag. These flags do the same thing, add support for
> > (U)EFI booting. I therefore propose we introduce efi as a new global
> > flag and later rename the uefi flag to efi in sys-apps/fwupd and
> > sys-apps/ipmicfg.
> >
> > I don't have a strong preference between the efi or uefi flags, but
> > since a majority of the packages has chosen efi I suggest we go with
> > that.
>
> Let's do USE=uefi please - UEFI is the modern name for it, and EFI is
> legacy. I'd like to avoid another USE=ssl situation (where we're
> stuck with it forever given we have no mechanism for USE flag renames,
> despite the fact that it's really TLS now).

Any thoughts on grub_platforms_efi-32 and grub_platforms_efi-64?

If we want to rename USE flags, I would probably take the opportunity
to eliminate the GRUB_PLATFORMS USE_EXPAND altogether.



Re: [gentoo-dev] [PATCH 1/1]: profiles/use.desc: add efi global use flag

2023-07-14 Thread Andrew Ammerlaan

On 14/07/2023 11:05, David Seifert wrote:

On Thu, 1970-01-01 at 00:00 +, Andrew Ammerlaan wrote:

Hi all,

Currently we have 7 packages defining the efi flag and an additional 2
defining the uefi flag. These flags do the same thing, add support for
(U)EFI booting. I therefore propose we introduce efi as a new global
flag and later rename the uefi flag to efi in sys-apps/fwupd and
sys-apps/ipmicfg.

I don't have a strong preference between the efi or uefi flags, but
since a majority of the packages has chosen efi I suggest we go with
that.

Best regards,
Andrew


Please switch to "uefi". UEFI is the forward going name and more aligned
with how it's used commonly. It's called the "UEFI forum" that writes
the UEFI spec and it's on uefi.org. A GPU needs a UEFI GOP to
initialise.



Alright, that's fine by me. The list of packages that needs renaming of 
the use flag then becomes:

- app-emulation/xen
- sys-block/perccli
- sys-block/sas2ircu
- sys-block/sas3flash
- sys-block/sas3ircu
- sys-boot/syslinux
- sys-firmware/ipxe

From 681c82d6bc415b9d9f25077e0c32f629cd9a42ec Mon Sep 17 00:00:00 2001
From: Andrew Ammerlaan 
Date: Fri, 14 Jul 2023 10:47:55 +0200
Subject: [PATCH] profiles/use.desc: add uefi global use flag

Signed-off-by: Andrew Ammerlaan 
---
 profiles/use.desc | 1 +
 1 file changed, 1 insertion(+)

diff --git a/profiles/use.desc b/profiles/use.desc
index df2115388949..6034f3bf6fc3 100644
--- a/profiles/use.desc
+++ b/profiles/use.desc
@@ -328,6 +328,7 @@ tk - Add support for Tk GUI toolkit
 truetype - Add support for FreeType and/or FreeType2 fonts
 udev - Enable virtual/udev integration (device discovery, power and 
storage device support, etc)
 udisks - Enable storage management support (automounting, volume 
monitoring, etc)

+uefi - Enable support for the Unified Extensible Firmware Interface
 unicode - Add support for Unicode
 unwind - Add support for call stack unwinding and function name resolution
 upnp - Enable UPnP port mapping support
--
2.41.0





Re: [gentoo-dev] [PATCH 1/1]: profiles/use.desc: add efi global use flag

2023-07-14 Thread Sam James

Andrew Ammerlaan  writes:

> Hi all,
>
> Currently we have 7 packages defining the efi flag and an additional 2
> defining the uefi flag. These flags do the same thing, add support for
> (U)EFI booting. I therefore propose we introduce efi as a new global
> flag and later rename the uefi flag to efi in sys-apps/fwupd and
> sys-apps/ipmicfg.
>
> I don't have a strong preference between the efi or uefi flags, but
> since a majority of the packages has chosen efi I suggest we go with
> that.

Let's do USE=uefi please - UEFI is the modern name for it, and EFI is
legacy. I'd like to avoid another USE=ssl situation (where we're
stuck with it forever given we have no mechanism for USE flag renames,
despite the fact that it's really TLS now).

thanks,
sam


signature.asc
Description: PGP signature


Re: [gentoo-dev] [PATCH 1/1]: profiles/use.desc: add efi global use flag

2023-07-14 Thread David Seifert
On Thu, 1970-01-01 at 00:00 +, Andrew Ammerlaan wrote:
> Hi all,
> 
> Currently we have 7 packages defining the efi flag and an additional 2
> defining the uefi flag. These flags do the same thing, add support for
> (U)EFI booting. I therefore propose we introduce efi as a new global 
> flag and later rename the uefi flag to efi in sys-apps/fwupd and 
> sys-apps/ipmicfg.
> 
> I don't have a strong preference between the efi or uefi flags, but 
> since a majority of the packages has chosen efi I suggest we go with
> that.
> 
> Best regards,
> Andrew
> 
> 
>  From 737eb5d8509b088f7689d417375c00773c131042 Mon Sep 17 00:00:00
> 2001
> From: Andrew Ammerlaan 
> Date: Fri, 14 Jul 2023 10:47:55 +0200
> Subject: [PATCH 14/14] profiles/use.desc: add efi global use flag
> 
> Signed-off-by: Andrew Ammerlaan 
> ---
>   profiles/use.desc | 1 +
>   1 file changed, 1 insertion(+)
> 
> diff --git a/profiles/use.desc b/profiles/use.desc
> index df2115388949..ed600244f273 100644
> --- a/profiles/use.desc
> +++ b/profiles/use.desc
> @@ -70,6 +70,7 @@ dvb - Add support for DVB (Digital Video
> Broadcasting)
>   dvd - Add support for DVDs
>   dvdr - Add support for DVD writer hardware (e.g. in xcdroast)
>   eds - Enable support for Evolution-Data-Server (EDS)
> +efi - Enable support the (Unified) Extensible Firmware Interface
>   elogind - Enable session tracking via sys-auth/elogind
>   emacs - Add support for GNU Emacs
>   emboss - Add support for the European Molecular Biology Open
> Software 
> Suite

Please switch to "uefi". UEFI is the forward going name and more aligned
with how it's used commonly. It's called the "UEFI forum" that writes
the UEFI spec and it's on uefi.org. A GPU needs a UEFI GOP to
initialise.



[gentoo-dev] [PATCH 1/1]: profiles/use.desc: add efi global use flag

2023-07-14 Thread Andrew Ammerlaan

Hi all,

Currently we have 7 packages defining the efi flag and an additional 2 
defining the uefi flag. These flags do the same thing, add support for 
(U)EFI booting. I therefore propose we introduce efi as a new global 
flag and later rename the uefi flag to efi in sys-apps/fwupd and 
sys-apps/ipmicfg.


I don't have a strong preference between the efi or uefi flags, but 
since a majority of the packages has chosen efi I suggest we go with that.


Best regards,
Andrew


From 737eb5d8509b088f7689d417375c00773c131042 Mon Sep 17 00:00:00 2001
From: Andrew Ammerlaan 
Date: Fri, 14 Jul 2023 10:47:55 +0200
Subject: [PATCH 14/14] profiles/use.desc: add efi global use flag

Signed-off-by: Andrew Ammerlaan 
---
 profiles/use.desc | 1 +
 1 file changed, 1 insertion(+)

diff --git a/profiles/use.desc b/profiles/use.desc
index df2115388949..ed600244f273 100644
--- a/profiles/use.desc
+++ b/profiles/use.desc
@@ -70,6 +70,7 @@ dvb - Add support for DVB (Digital Video Broadcasting)
 dvd - Add support for DVDs
 dvdr - Add support for DVD writer hardware (e.g. in xcdroast)
 eds - Enable support for Evolution-Data-Server (EDS)
+efi - Enable support the (Unified) Extensible Firmware Interface
 elogind - Enable session tracking via sys-auth/elogind
 emacs - Add support for GNU Emacs
 emboss - Add support for the European Molecular Biology Open Software 
Suite

--
2.41.0