Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 385581 - sys-boot/grub-1.99-r2 only installs grub2-install for one platform
Summary: sys-boot/grub-1.99-r2 only installs grub2-install for one platform
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-10-04 07:30 UTC by Chris Mayo
Modified: 2012-02-29 02:07 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
patch to ebuild (grub-1.99-r2.ebuild-platform.patch,731 bytes, text/plain)
2011-10-04 07:30 UTC, Chris Mayo
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Chris Mayo 2011-10-04 07:30:19 UTC
Created attachment 288743 [details]
patch to ebuild

grub2-install (and apparently grub2-mkrescue and grub2-mknetdir although I haven't used them) are platform, and for efi target cpu dependent. The current ebuild installs only the version for one of the platforms listed in GRUB_PLATFORMS.

Attached is a patch that installs one version per platform of these scripts (and an elog improvement - but not one for grub2-install message which I guess would be needed with this patch).

Inspired by Arch Linux who create grub_bios-install, grub_efi_x86_64-install, grub_efi_i386-install. Of course this is not needed if only one platform is listed in GRUB_PLATFORMS.
Comment 1 Tomáš Chvátal (RETIRED) gentoo-dev 2011-10-05 11:30:07 UTC
I will look to it in next 14 days...
Comment 2 Tomáš Chvátal (RETIRED) gentoo-dev 2011-11-11 12:10:30 UTC
The problem is that the binaries are simple sh scripts that have no common.sh code that could be easy included based on what platform you want.

So one has to detect all the scripts that define the platform stuff and duplicate them...
Comment 3 Mike Gilbert gentoo-dev 2012-02-29 02:07:20 UTC
This should be fixed via --program-transform-name in grub-2.00_beta0.