Bug 148253 - sys-kernel/genkernel script should not write to /usr/share
Bug#: 148253 Product:  Gentoo Hosted Projects Version: unspecified Platform: All
OS/Version: Linux Status: RESOLVED Severity: enhancement Priority: P2
Resolution: FIXED Assigned To: genkernel@gentoo.org Reported By: kalium@gmx.de
Component: genkernel
URL: 
Summary: sys-kernel/genkernel script should not write to /usr/share
Keywords:  InSVN
Status Whiteboard: 
Opened: 2006-09-19 14:52 0000
Description:   Opened: 2006-09-19 14:52 0000
The script writes the initrd to /usr/share/genkernel/pkg/x86/cpio. Please put
the output in the kernel source dir or /usr/src etc.

------- Comment #1 From Salah Coronya 2006-09-19 17:02:08 0000 -------
Actually, the initramfs and all the intermediate cache files should probably be
written to /var/cache/genkernel (or some subfolder, like
/var/cache/genkerne/<arch> for LFS complicance, plus it makes it much easier to
clear the cache when genkernel is updated (as there is no switch to purge the
cache)

------- Comment #2 From Chris Gianelloni (RETIRED) 2006-09-20 06:35:33 0000 -------
There's no need to CC people that are maintainers and on the alias.

Anyway, patches are welcome.  It cannot be made to write to the kernel
directory, though, unless it also completely utilizes KBUILD_OUTPUT.  It would
probably be preferable to stick it somewhere else under /var/tmp or /var/cache,
as Salah pointed out.  Since this isn't a bug, per se, I'm changing to
enhancement.

------- Comment #3 From Chris Gianelloni (RETIRED) 2007-03-14 00:47:07 0000 -------
Well, this has actually been configurable (CACHE_DIR) in genkernel for a *very*
long time now.  That being said, I've changed the default in SVN to point to
/var/cache/genkernel/%%ARCH%% instead of /usr/share/genkernel/pkg/%%ARCH%%
where it used to be set.

------- Comment #4 From Chris Gianelloni (RETIRED) 2007-04-05 15:00:59 0000 -------
This is fixed in genkernel 3.4.7 which is now in the tree.