Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 51650 - kernel make dep is required for lots of software, aborted genkernel wipes it out
Summary: kernel make dep is required for lots of software, aborted genkernel wipes it out
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Hosted Projects
Classification: Unclassified
Component: genkernel (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Gentoo Genkernel Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-05-21 08:08 UTC by Aaron Peterson
Modified: 2004-09-20 03:27 UTC (History)
0 users

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 Aaron Peterson 2004-05-21 08:08:21 UTC
We should backup the contents of the kernel directory, and restore it if it fails...

because we'd be stuck without glibc being updated, and other software that depends on the kernel headers???

I'm especially peeved by kernel 2.6 not having a make dep command.. and being told by another software package to do a make-dep


Reproducible: Always
Steps to Reproduce:
1.
2.
3.
Comment 1 Tim Yamin (RETIRED) gentoo-dev 2004-05-21 08:37:41 UTC
Well, this is probably one of the reasons why reason genkernel does a "make mrproper"...

> because we'd be stuck without glibc being updated, and other software that depends on the kernel headers???

Headers are not sources. Headers are in sys-kernel/linux-headers which need no compilation.
Comment 2 Aaron Peterson 2004-05-21 21:32:30 UTC
not when the nptl useflag is enabled :O
I don't remember what packages require the kernel source to be made before installilng.. but there are some!

(glibc with nptl  (native posix thread libraries)

I've also been messing arround with genkernel a bit, and have it start and stop often... once the intial part is done..

So i get this worse than most people...  but it can grow to a problem for more people in the future.
Comment 3 Tim Yamin (RETIRED) gentoo-dev 2004-06-01 10:52:31 UTC
Well, patches are welcome but I don't see how aborting "genkernel" does anything special and wipes things out - it's no different to halting a normal "make dep" which would create issues as well.
Comment 4 Aaron Peterson 2004-06-08 11:00:49 UTC
well, you're right of course... 

just got an idea...

can there be a requirement for "kernel sources make deped" for some software? and some warning when we emerge something, that our kernel sources arn't make deped *before* portage gets arround to actually building the package that requires it, and fails with a cryptic message? (which might actually include make dep... so it's not that cryptic.. just unfortunate that it breaks a long update)
Comment 5 Tim Yamin (RETIRED) gentoo-dev 2004-06-08 11:27:18 UTC
Yes; modversions.h - 2.6 makes this on a build action such as bzImage and 2.4 requires a "make dep" for it.
Comment 6 Aaron Peterson 2004-06-10 02:41:36 UTC
well, you're right of course...  this is kindof extraneous... I ran into this a few times and it took me a while to understand what was going on.

Maybe genkernel can catch the abort signal and say _you will need to rerun genkernel --makedep  to make sure that all software will work, or run make dep)

It's not that hard to make a bash script catch control-c  ... portage does it.. and I mentioned how to do it in.. the bug for detecting if genkernel was already running... (Tim took care of it with a ps though)


just got an idea...

can there be a requirement for "kernel sources make deped" for some software? and some warning when we emerge something, that our kernel sources arn't make deped *before* portage gets arround to actually building the package that requires it, and fails with a cryptic message? (which might actually include make dep... so it's not that cryptic.. just unfortunate that it breaks a long update)

 
Comment 7 Tim Yamin (RETIRED) gentoo-dev 2004-09-19 02:37:55 UTC
Ok, I don't see how this is a genkernel bug; the issues you seem to be experiencing are due to a lack of modversions.h, most likely, which can be solved by running "make dep" for 2.4 or make {bzImage,modules,} for 2.6 or by just running "genkernel [args] kernel".
Comment 8 Aaron Peterson 2004-09-20 03:27:52 UTC
well, this bug basically came down to, genkernel should do enough tests before  running make mrproper and make clean, to ensure that they will be created again... so there won't be mysterious bugs

the other part of this bug is:
that the software that breaks when there is no "make dep" step, should have a very clear error message on  how to get it to work again.