Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 778431 - sys-boot/grub-2.06_rc1: keyword ~riscv
Summary: sys-boot/grub-2.06_rc1: keyword ~riscv
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Keywording (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Mike Gilbert
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-03-26 14:01 UTC by David Michael
Modified: 2021-03-26 17:45 UTC (History)
2 users (show)

See Also:
Package list:
sys-boot/grub-2.06_rc1 ~riscv
Runtime testing required: ---
nattka: sanity-check-


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description David Michael 2021-03-26 14:01:20 UTC
Please keyword GRUB for use on RISC-V systems.  I've been using it for about a year with no issues.
Comment 1 NATTkA bot gentoo-dev 2021-03-26 14:04:55 UTC
Sanity check failed:

> sys-boot/grub-2.06_rc1
>   depend ~riscv stable profile default/linux/riscv/17.0/rv64gc/lp64 (4 total)
>     media-libs/libsdl
>   rdepend ~riscv stable profile default/linux/riscv/17.0/rv64gc/lp64 (4 total)
>     media-libs/libsdl
>     sys-boot/efibootmgr
Comment 2 Mike Gilbert gentoo-dev 2021-03-26 15:04:46 UTC
Do libsdl and efibootmgr work for you as well?
Comment 3 David Michael 2021-03-26 15:41:49 UTC
I haven't tried SDL with it, since it is only a dependency when GRUB_PLATFORMS="emu" is used.  It all builds successfully, though.

I am using UEFI, but I forgot my setup was skipping efibootmgr.  I built it before, but it had to use live ebuilds, and there are a couple pending failures upstream that I don't recall now (like https://github.com/rhboot/efivar/pull/169 ).

Another thing about my environment that should probably be addressed: GRUB must set BUILD_PKG_CONFIG=pkg-config in the environment to cross-compile with USE=themes.  (Maybe add it to the "tc-export BUILD_CC" line.)

Sorry if keywording this isn't possible due to efibootmgr.  I opened this request since I was accepting testing GRUB ebuilds everywhere due to needing recent fixes, and I'd like to drop that since the RC is being stabilized, but that would leave riscv behind.  I can just keep accepting specific GRUB ebuilds for riscv if that's a blocker.  (Or I can go back to pestering all the EFI-related upstream packages to supporting RISC-V properly, but that will take a long time if not forever.)
Comment 4 David Michael 2021-03-26 17:38:24 UTC
A message on grub-devel just reminded me of another point: the Linux loader patches aren't applied upstream yet.  GRUB can still boot UEFI kernels with the "chainloader" command, but the "linux" command says it's not supported, in case that is a requirement for keywording.
Comment 5 Mike Gilbert gentoo-dev 2021-03-26 17:45:05 UTC
An alternative would be to package.use.mask the sdl USE flag on riscv, and move the efibootmgr dependency behind a "!riscv ( )" condition.

However, since there is still a bit of work happening on this upstream, I think I would prefer not to keyword this on riscv at the moment.