[00:10] sudo apt-get build-dep linux-image-$(uname -r) ---- this command wants to fetch 800 megs? [00:13] yeah [00:58] it seems to want all kinds of things that should not be related? [00:59] also, using this: https://wiki.ubuntu.com/Kernel/BuildYourOwnKernel --- where do I insert the .config that I made? [01:13] it does pull in a lot, but that is the way the packaging is set up. your not the only one who wishes that it was better about what actually gets pulled in [01:14] kristian-aalborg: put your config in the debian/build/build-XXXX/ directory [01:14] be careful about how you do it though as the build may blow it away [01:14] basically [01:14] fdr clean sets you up [01:15] fdr = alias for fakeroot debian/rules [01:15] fdr prepare-XXX eg. fdr prepare-generic [01:15] will setup the build and configs (fdr binary-XXX will do this if it doesn't find it done) [01:16] and fdr binary-XXXX will build the kernel [01:16] you can manipulate files within the build if you play with the debian/stamps/ files [01:16] there is one for prepare, and another for build [01:17] so do an fdr prepare-XXXX, then copy your config in [01:17] then fdr binary-XXXX [01:17] if you want to make a small change and not rebuild the whole kernel [01:17] jjohansen: sorry, was staring at another screen [01:17] reading your msgs now [01:18] rm the debian/stamps/stamps-build file [01:18] kristian-aalborg: np, I ignore irc to get work done all the time :) [01:19] and then reissue the fdr binary-XXXX command to rebuild, it will then to a build that only recompiles what is necessary for your changes [01:19] jjohansen: did you see my premise - this is being built on one machine, then moved to another [01:20] kristian-aalborg: yep, so the extra stuff may not be needed, but if you find you need to recompile for some reason its real nice knowing how to do an incremental build instead of waiting for the kernel to have to be fully rebuilt [01:20] basically all these steps are to be done on the machine you are building on [01:20] yes [01:21] then its just a simple copy the deb and dpkg -i [01:22] there's no debian/build? [01:25] I thought .config should reside in linux-2.6.32/ (for example)? [01:29] jjohansen: could you tell me the exact commands to use, in the order I should use them? [01:30] kristian-aalborg: is there a debian directory? [01:33] fakeroot debian/rules clean [01:33] fakeroot debain/rules prepare-generic (could use -server, -virtual) [01:33] cp .config debian/build/build-generic/ [01:33] fakeroot debian/rules binary-generic [01:33] kristian-aalborg: ^ [01:36] one second [01:37] machine is busy, installing something [01:37] yes, there is a debian dir [01:38] kristian-aalborg: okay, the debian/build dir will be created during the prepare-generic command [01:38] ah, ok [01:38] kristian-aalborg: oh also do you want your deb to have a different name? [01:39] * kristian-aalborg shudders to think how this was during the first years of linux [01:39] yes, I'd prefer that [01:39] hehe [01:39] it asks me to make mrproper [01:39] kristian-aalborg: your in a git tree right? [01:40] no [01:40] hrmm, [01:40] mrproper will blow away some of the things you need [01:40] using the apt-get method [01:40] mv the debian directory out of the kernel tree dir [01:40] do the make mrproper [01:41] and then mv the debian directory back into the kernel dir [01:41] this is debian.master? [01:42] I have a backup of everything I downloaded... would it be easier to start there? [01:43] kristian-aalborg: ooops yeah, you need the debian and debian.master directories [01:43] you can either copy them in fresh or start clean [01:43] let's start clean, this dir is probably a mess now [01:44] apt-get source linux-image-$(uname -r) <--- this is what I have [01:44] and the .config that I made, of course [02:00] jjohansen: you there? [02:01] sorry back now [02:01] no problem [02:02] I really should go to bed soon, though [02:02] I'd just love to wake up to a fresh kernel with APM support ;) [02:02] kristian-aalborg: where you building within the linux-image installed in /usr or did you copy it out [02:04] kristian-aalborg: if you were working withing the /usr package you may need to reinstall to get a clean source [02:04] if you have both the debian and debian/master directories within your dir [02:04] I would recommend just moving them out, and doing a make mrproper [02:04] it's not in /usr, it's in /home/kristian [02:05] kristian-aalborg: ah, well thats good [02:05] yup [02:05] what to do now? [02:05] you have a clean tree? [02:06] yes, I should have [02:06] the downloaded files and a .config, nothing more [02:06] cd into kernel tree [02:06] fakeroot debian/rules clean [02:06] fakeroot debain/rules prepare-generic [02:06] cp .config debian/build/build-generic/ [02:06] fakeroot debian/rules binary-generic [02:08] when should I put the .config in? [02:08] also, does this give me a kernel with a custom name as to avoid confusion? [02:08] step after prepare-generic [02:09] no, it doesn't rename - to provide a partially custom name [02:09] ... just saw it, sorry [02:09] you need to edit the changelog file [02:09] so after prepare-generic and before binary-generic (cp can come before or after) [02:10] edit your debian/changelog file [02:10] its top line will look something like [02:10] linux (2.6.35-23.36) maverick-proposed; urgency=low [02:11] edit the line to be something like [02:11] linux (2.6.35-23.36~custom) maverick-proposed; urgency=low [02:11] this will show up in the debs name [02:16] gotcha [02:17] the last command actually starts the building of the files, right? [02:20] judging from the errors I get, it looks like it... [02:21] yes [02:30] sorry, box died.... luckily not the one I'm builing [02:30] on [02:31] okay, thanks a lot for helping out... I'm looking forward to trying this baby out tomorrow [02:31] np [02:31] * jjohansen is out of here too === jjohansen is now known as jj-afk [06:47] morning [06:49] kernel building ends with "make: *** [abi-check-generic] Error 1" and no .debs to be found === yofel_ is now known as yofel === _LibertyZero is now known as LibertyZero [23:41] Hi, does anyone know, what is the maximal settable limit for number of file handlers the process can create? On 64bit?