Bug List: (This bug is not in your last search results)   Show last search results      Search page      Enter new bug
Bug#: 201159
Alias:
Product:
Component:
Status: RESOLVED
Resolution: FIXED
Assigned To: Gentoo Genkernel Maintainers <genkernel@gentoo.org>
Hardware:
OS:
Version:
Priority:
Severity:
Reporter: Robert Trace <gentoobugs@farcaster.org>
Add CC:
CC:
Remove selected CCs
URL:
Summary:
Status Whiteboard:
Keywords:

Filename Description Type Creator Created Size Actions
genkernel-3.4.9_pre9-kerneldir.patch Fix --kerneldir on genkernel-3.4.9_pre9-r1 patch Robert Trace 2007-12-04 01:00 0000 953 bytes Details | Diff
genkernel-3.4.9_pre9-kerneldir2.patch Version of above that is (slightly) more consistent with the rest of the code. patch John R. Graham 2007-12-05 02:50 0000 489 bytes Details | Diff
Create a New Attachment (proposed patch, testcase, etc.) View All

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

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


Not eligible to see or edit group visibility for this bug.






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


Description:   Opened: 2007-12-04 00:59 0000
The --kerneldir argument isn't working.

The culprit is either gen_cmdline.sh or gen_determineargs.sh, depending on the
author's personal preference.

gen_cmdline.sh:413 says:
 --kerneldir=*)
   CMD_KERNELDIR=....

and gen_determineargs.sh:73 says:
  set_config_with_override 2 KERNEL_DIR   CMD_KERNEL_DIR 
"${DEFAULT_KERNEL_SOURCE}"

So, they're out of sync.  They need to agree on which of CMD_KERNELDIR or
CMD_KERNEL_DIR is correct.

As the attached patch will demonstrate, changing CMD_KERNEL_DIR to
CMD_KERNELDIR in gen_determineargs.sh will do the job.


Reproducible: Always

Steps to Reproduce:
1.  rm $DEFAULT_KERNEL_SOURCE (defined according to /etc/genkernel.conf)
2.  genkernel --kerneldir=/path/to/kernel all
3.  SPLAT

Actual Results:  
* Gentoo Linux Genkernel; Version 3.4.9_pre9
* Running with options: --kerneldir=/usr/src/linux-2.6.23-gentoo-r3 --no-clean
--lvm all

* ERROR: kernel source directory "/usr/src/linux" was not found!



Expected Results:  
Find directory specified by --kerneldir override and attempt to build.

------- Comment #1 From Robert Trace 2007-12-04 01:00:34 0000 -------
Created an attachment (id=137664) [details]
Fix --kerneldir on genkernel-3.4.9_pre9-r1

------- Comment #2 From Andrew Gaffney 2007-12-04 16:58:19 0000 -------
Bah, couldn't you have filed this 30 minutes earlier? We just did a release for
another trivial fix :)

------- Comment #3 From John R. Graham 2007-12-05 02:50:38 0000 -------
Created an attachment (id=137767) [details]
Version of above that is (slightly) more consistent with the rest of the code.

Actually, although this isn't the only remaining inconsistency, most of the
variables adhere to the following standard:
Arch default:  DEFAULT_X
Config file override:  X
Command variable:  CMD_X

The attached patch, which is a proposed replacement for the previous patch,
stays closer to that convention.  Thanks for finding and fixing one of my bugs.

- John

------- Comment #4 From Andrew Gaffney 2007-12-06 04:04:26 0000 -------
I've applied the second patch in SVN. Thanks.

------- Comment #5 From Chris Gianelloni (RETIRED) 2007-12-27 19:11:16 0000 -------
This is fixed in 3.4.9_pre12, so please try it out and report back any
problems.

Bug List: (This bug is not in your last search results)   Show last search results      Search page      Enter new bug