Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 252769 - Grub2 SVN Ebuild
Summary: Grub2 SVN Ebuild
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-12-28 02:39 UTC by Roger
Modified: 2008-12-30 04:40 UTC (History)
0 users

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


Attachments
Grub2 SVN ebuild (grub-9999.ebuild,932 bytes, text/plain)
2008-12-28 02:43 UTC, Roger
Details
grub-9999.ebuild (grub-9999.ebuild,1009 bytes, text/plain)
2008-12-28 20:30 UTC, Roger
Details
grub-9999.ebuild (grub-9999.ebuild,1.26 KB, text/plain)
2008-12-28 22:23 UTC, Roger
Details
grub-9999.ebuild (grub-9999.ebuild,1.10 KB, text/plain)
2008-12-29 11:15 UTC, Roger
Details
grub-9999.ebuild (grub-9999.ebuild,1.10 KB, text/plain)
2008-12-29 11:21 UTC, Roger
Details
grub-9999.ebuild (grub-9999.ebuild,1.15 KB, text/plain)
2008-12-29 23:35 UTC, Roger
Details
grub-9999.ebuild (grub-9999.ebuild,1.12 KB, text/plain)
2008-12-29 23:43 UTC, Roger
Details
grub-9999.ebuild (grub-9999.ebuild,1.31 KB, text/plain)
2008-12-30 00:45 UTC, Roger
Details
grub-9999.ebuild (grub-9999.ebuild,1.31 KB, text/plain)
2008-12-30 04:40 UTC, Roger
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Roger 2008-12-28 02:39:41 UTC
This ebuild provides access to SVN version of Grub2

Reproducible: Always



Expected Results:  
This should satisfy the Ext4 FS depend of Grub2 for booting an ext4 /boot partition.

I have yet to test this.  But from what I hear, others are using Grub2 SVN in conjunction with Ext4 FS successfully.

This might also be a better solution compared to a patched outdated grub-1.96 (02/03/08).  I've also emailed the Grub mailing list in hopes for an updated snapshot being published.  (I'm sure there's going to be a lot of demand for Grub2 as Ext4 is now in kernel-2.6.28.)
Comment 1 Roger 2008-12-28 02:43:18 UTC
Created attachment 176558 [details]
Grub2 SVN ebuild

Builds Grub2 from svn
Comment 2 Roger 2008-12-28 07:09:15 UTC
FYI: Grub2 seems to have a new config file (& layout??).  As such, need to
reconfigure before rebooting or you'll get a nice command grub prompt! ;-)

Comment 3 Roger 2008-12-28 20:30:21 UTC
Created attachment 176660 [details]
grub-9999.ebuild

Defines KEYWORDS
Comment 4 Roger 2008-12-28 22:23:28 UTC
Created attachment 176696 [details]
grub-9999.ebuild

Adds elog info.
Comment 5 Roger 2008-12-28 22:24:56 UTC
I still can't get grub2 to boot here on x86.
Comment 6 Jeremy Olexa (darkside) (RETIRED) archtester gentoo-dev Security 2008-12-29 02:58:39 UTC
svn ebuilds should not have any KEYWORDS in them.

Assigning to maintainers.
Comment 7 Roger 2008-12-29 04:00:22 UTC
However, I want to be able to add to package.unmask/package.keywords to easily build here rather then calling the ebuild directly.

On the flip, maybe the reason I'm having trouble unmasking without KEYWORDS, is because I'm using portage-2.2*.
Comment 8 SpanKY gentoo-dev 2008-12-29 09:13:53 UTC
Comment on attachment 176696 [details]
grub-9999.ebuild

the RESTRICT=strip is wrong, see Bug 231935

the ebuild should be unified with the existing grub-1.x ebuild ... key off of PV

KEYWORDS being set is wrong like Jeremy said

ESVN_REPO_URI should be above the inherit

drop the reference to this bug ... new issues means new bugs
Comment 9 Roger 2008-12-29 11:15:46 UTC
Created attachment 176731 [details]
grub-9999.ebuild

1) "key off of PV" means use the KEYWORDS specified in grub-1.96.ebuild?  Or I'll remove them as it's SVN if you wish.

2) In other ebuilds, ESVN_REPO_URI is below SRC_URI as well.  It seems easier read.  But I moved it anyways to above inherit as you stated.

(RESTRICT fixed with your suggestion && dropped reference to this bug.)
Comment 10 Roger 2008-12-29 11:21:00 UTC
Created attachment 176733 [details]
grub-9999.ebuild

Fixed syntax error.
Comment 11 SpanKY gentoo-dev 2008-12-29 11:22:16 UTC
look at this ebuild to see what i mean about PV:
/usr/portage/x11-terms/eterm/eterm-9999.ebuild

otherwise, drop the empty elog lines and i think the ebuild should be OK ...
Comment 12 Roger 2008-12-29 22:22:20 UTC
Ah!  Unify grub-1.96 & grub-9999 and use if/then/else with $PV.  And doing so, will provide the ability to simply copy svn ebuilds (ie. grub-9999.ebuild) over to regular version ebuilds without having to mess with also defining package soure urls, etc.

I think & work at it today... hopefully get a finalized one up tonight.

Thanks for the tips Spanky.  Cheers!

Comment 13 SpanKY gentoo-dev 2008-12-29 22:36:24 UTC
FIXED means the ebuild has been committed to the tree ;)
Comment 14 Roger 2008-12-29 23:35:26 UTC
Created attachment 176809 [details]
grub-9999.ebuild

- Adds if/then for svn $PV

- Removes KEYWORDS definitions

- Removes empty elog statements

(Ah.  See why no keywords for svn now.  Prevents those with ACCEPT_KEYWORDS="~x86" from building SVN unless explicitly declared as "sys-boot/grub **" within package.keywords.)
Comment 15 Roger 2008-12-29 23:43:33 UTC
Created attachment 176810 [details]
grub-9999.ebuild

- Trivial fix (removed redundant definition)
Comment 16 Roger 2008-12-29 23:54:11 UTC
I'll have grub-9999 & a grub-1.96-r1 unified & submitted shortly.
Comment 17 SpanKY gentoo-dev 2008-12-30 00:11:54 UTC
i dont see any problem with that, so ive committed.  thanks for your work!

Comment 18 Roger 2008-12-30 00:45:34 UTC
Created attachment 176812 [details]
grub-9999.ebuild

- Unifies with grub-1.96-r1 SVN ebuild

Please note, although both grub-1.96-r1 & grub-9999 seems to compile and install here, I still do not have an actively working grub2 install (probably due to the lack of configuration documents, or it lacks ext3 support?).

Anyways, I've posted a few inquiries to the grub2 mailing list/bugzilla and hopefully I'll be able to add a few more hints to elog so users aren't so blindly stumbling into configuring grub2 as I am!

Again, these changes are trivial, the only execution related problems might be in the additional "*.mod leave unstripped" fix.

Thanks Spanky for your time!  ... hopefully, onward to ext4/grub2 soon.
Comment 19 SpanKY gentoo-dev 2008-12-30 02:17:47 UTC
we arent adding KEYWORDS to grub2 yet, so that part isnt needed ... grub2 will stay unkeyworded until it supports all the filesystems that grub1 supports
Comment 20 Roger 2008-12-30 04:40:15 UTC
Created attachment 176828 [details]
grub-9999.ebuild

- Removed KEYWORD definition from other then 9999 versions.