Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 508462 - kde-misc/kcm-grub2-0.6.4 with >=sys-boot/grub-2.00_p5107-r2 needs configure changes
Summary: kde-misc/kcm-grub2-0.6.4 with >=sys-boot/grub-2.00_p5107-r2 needs configure c...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] KDE (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Ian Whyman (thev00d00) (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-04-23 00:16 UTC by Fitzcarraldo
Modified: 2014-05-03 10:37 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Fitzcarraldo 2014-04-23 00:16:15 UTC
Gentoo's ebuild for kcm-grub2-0.6.4 does not work with GRUB 2 as installed by ebuild grub-2.00_p5107-r1 and later, as the latter ebuild has changed the GRUB 2 directory structure used in Gentoo from /boot/grub2/ to /boot/grub/. The problem is explained in more detail the kcm-grub2 developer's comment no. 1619 (https://ksmanis.wordpress.com/projects/grub2-editor/#comment-1619) on his blog page GRUB2 Editor (https://ksmanis.wordpress.com/projects/grub2-editor/).

However, in a recent commit of the source code of kcm-grub2 Version 0.6.4, the developer added the ability to specify the GRUB 2 directories during the compilation of kcm-grub2. So it is now easier to accommodate the different directory structures used by different distributions. Another non-standard directory used in Gentoo, for example, is /etc/grub.d/39_memtest86+/ instead of /etc/grub.d/20_memtest+/ (by the way, the directory is created in Gentoo if you install the package sys-apps/memtest86+).

So, to enable use of kcm-grub2 with GRUB 2 Version 2.00_p5107-r2 and later, the current kcm-grub2-0.6.4.ebuild in the Portage main tree needs to change as shown below:

# # Here is the end of the ebuild in the Portage main tree:
# tail /usr/portage/kde-misc/kcm-grub2/kcm-grub2-0.6.4.ebuild

src_configure() {
local mycmakeargs=(
“-DWITHQApt=OFF”
$(cmake-utils_use_with packagekit QPackageKit)
$(cmake-utils_use_with imagemagick ImageMagick)
$(cmake-utils_use_with hwinfo HD)
)
cmake-utils_src_configure
}


# # Here is the end of the ebuild in my local overlay that works correctly:
# tail -n 18 /usr/local/portage/kde-misc/kcm-grub2/kcm-grub2-0.6.4-r1.ebuild

src_configure() {
local mycmakeargs=(
-DWITHQApt=OFF
-DGRUB_INSTALL_EXE=/usr/sbin/grub2-install
-DGRUB_MKCONFIG_EXE=/usr/sbin/grub2-mkconfig
-DGRUB_PROBE_EXE=/usr/sbin/grub2-probe
-DGRUB_SET_DEFAULT_EXE=/usr/sbin/grub2-set-default
-DGRUB_MENU=/boot/grub/grub.cfg
-DGRUB_CONFIG=/etc/default/grub
-DGRUB_ENV=/boot/grub/grubenv
-DGRUB_MEMTEST=/etc/grub.d/39_memtest86+
$(cmake-utils_use_with packagekit QPackageKit)
$(cmake-utils_use_with imagemagick ImageMagick)
$(cmake-utils_use_with hwinfo HD)
)
cmake-utils_src_configure
}


Reproducible: Always
Comment 1 Ian Whyman (thev00d00) (RETIRED) gentoo-dev 2014-05-03 10:37:21 UTC
Thanks Fitzcarraldo.

+*kcm-grub2-0.6.4-r1 (03 May 2014)
+
+  03 May 2014; Ian Whyman <thev00d00@gentoo.org> +kcm-grub2-0.6.4-r1.ebuild,
+  metadata.xml:
+  Correctly set paths for Gentoo's Grub2, thanks to Fitzcarraldo in #508462
+