First Last Prev Next    No search results available      Search page      Enter new bug
Bug#: 182616
Alias:
Product:
Component:
Status: RESOLVED
Resolution: FIXED
Assigned To: Gentoo Genkernel Maintainers <genkernel@gentoo.org>
Hardware:
OS:
Version:
Priority:
Severity:
Reporter: Daniel Glaser <daniel.glaser@chaintronics.com>
Add CC:
CC:
Remove selected CCs
URL:
Summary:
Status Whiteboard:
Keywords:

Filename Description Type Creator Created Size Actions
genkernel-3.4.9_pre3-with-conf-defaults-r1.patch Patch against genkernel-3.4.9_pre3 that implements complete config file defaulting of all command line options. patch John R. Graham 2007-10-08 02:19 0000 35.50 KB Details | Diff
patch Patch as applied to genkernel SVN patch Chris Gianelloni (RETIRED) 2007-11-07 21:37 0000 34.29 KB Details | Diff
genkernel-3.4.9_pre8-mdadm.patch Patch adds --mdadm to the configuration infrastructure. patch John R. Graham 2007-11-09 04:55 0000 1.28 KB Details | Diff
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 182616 depends on: Show dependency tree
Show dependency graph
Bug 182616 blocks:
Votes: 0    Show votes for this bug    Vote for this bug

Additional Comments: (this is where you put emerge --info)







View Bug Activity   |   Format For Printing   |   XML   |   Clone This Bug


Description:   Opened: 2007-06-19 22:41 0000
I miss some really often used options in genkernel.conf. I have to set makeopts
and kernel-cc every time I use genkernel. Would it be possible, to make some
more options, especially this, available through e.g. MAKEOPTS="-j6" and
KERNEL-CC="distcc". Like it is handled in make.conf?

Reproducible: Always

Steps to Reproduce:



Expected Results:  
Every option is available through it's upper case pendant in genkernel.conf and
is overwritten by the command-line option.

------- Comment #1 From Chris Gianelloni (RETIRED) 2007-06-23 13:44:07 0000 -------
Absolutely.  I would love for all genkernel options to be configurable within
the genkernel.conf file.  After all, it doesn't make sense to not have
configuration in the configuration file, right?

As far as your expected results, they're spot on.  I want genkernel.conf to be
able to control all aspects of the build, yet still be capable of being
overwritten on the command line.

Would you be willing to help add this sort of thing to genkernel?  Don't worry,
you wouldn't be on your own for it.  You would have help.  This was actually
one of my milestones that I would like to see implemented for genkernel 3.5,
which will be the next important update.

------- Comment #2 From Daniel Glaser 2007-06-25 00:45:18 0000 -------
Hi Chris,

sure I'm willing to help. If there is time for it beside dealing with gentoo on
some floating-point unit-less PowerPC, I will do. Planning this to do for the
next 2 weeks.

greets

------- Comment #3 From John R. Graham 2007-10-08 02:19:04 0000 -------
Created an attachment (id=132877) [edit]
Patch against genkernel-3.4.9_pre3 that implements complete config file
defaulting of all command line options.

Chris,

I couldn't resist.  I've implemented the request, refactoring the argument
processing code to more naturally support configuration file overriding and
architecture defaults.  Let me know if you think I'm on the right track.

- John 

------- Comment #4 From John R. Graham 2007-10-08 02:32:02 0000 -------
I should add that this change is rather sweeping and, although I've done a fair
amount of testing, it needs more.  Also, I would like to improve the internal
comments documenting the code in determine_real_args() that creates intelligent
interaction between different command line arguments (e.g., --no-clean implies
--no-mrproper).

- John

------- Comment #5 From Chris Gianelloni (RETIRED) 2007-11-07 21:35:49 0000 -------
OK.  I've updated this in SVN.  For any further enhancements, let's file a new
bug.

------- Comment #6 From Chris Gianelloni (RETIRED) 2007-11-07 21:37:34 0000 -------
Created an attachment (id=135452) [edit]
Patch as applied to genkernel SVN

Here's the patch that I ended up applying.  I'm putting it here for you to
check out and also so I have it somewhere in case I need to back this out.  As
such, I'm rolling a genkernel 3.4.9_pre8 with this patch in it so we can test
genkernel without introducing a bunch more changes.

------- Comment #7 From Chris Gianelloni (RETIRED) 2007-11-07 21:58:19 0000 -------
This is in 3.4.9_pre8 and we'll be testing it shortly.

------- Comment #8 From John R. Graham 2007-11-09 04:02:34 0000 -------
To echo kumba, you rock!  Testing now.

Thanks, Chris.

------- Comment #9 From John R. Graham 2007-11-09 04:55:05 0000 -------
Created an attachment (id=135544) [edit]
Patch adds --mdadm to the configuration infrastructure.

Chris, forgive me if I'm doing this wrong, but since this was a correction
specifically on this topic and not a *new* enhancement, it appeared appropriate
to add it to this bug.

Between 3.4.9_pre3, on which I based my config default enhancements, and
3.4.9_pre8, a new command line option (--mdadm) was introduced which was not
covered by the new mechanism.  This patch, which is against 3.4.9_pre8, adds
that command line option to the config default mechanism.

- John

------- Comment #10 From John R. Graham 2007-11-10 15:04:57 0000 -------
(From update of attachment 135544 [edit])
Change of heart.  Created new bug per Chris Gianelloni's wishes.  See
bug#198694.

First Last Prev Next    No search results available      Search page      Enter new bug