Summary: | linux-headers doesn't unset KBUILD_OUTPUT... again | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Max Loparev <laplandersan> |
Component: | Eclasses | Assignee: | Gentoo Kernel Bug Wranglers and Kernel Maintainers <kernel> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | avuton, johnm, peper |
Priority: | High | ||
Version: | 2005.1 | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: |
set KBUILD_OUTPUT=<NULL> in xmakeopts
unset KBUILD_OUTPUT in unpack_2_6 and compile_manpages unset KBUILD_OUTPUT in install_manpages unset KBUILD_OUTPUT early in kernel-2.eclass kernel-2.eclass.patch |
Description
Max Loparev
2005-11-26 03:05:25 UTC
*** Bug 114766 has been marked as a duplicate of this bug. *** For sure it concerns linux-headers-2.6.11-r3 and hardened-sources-2.6.14-r1, but i think that all pacakages using unpack_2_6 function are concerned. Created attachment 76808 [details, diff]
set KBUILD_OUTPUT=<NULL> in xmakeopts
I can see no harmful side-effects, since xmakeopts is used nowhere else, and setting KBUILD_OUTPUT to <NULL> is equivalent to unsetting it, according to the linux Makefile.
Yes! That patch works, please commit asap if that patch is found acceptable, thanks. I don't suppose you've had a chance to look into where the problem lies? The compile_headers() function handles that ok, but I gather that the problem happens in unpack somewhere. Any idea where? unpack_2_6 would be my suspect, since it executes some make commands. Can you test that? Is there any way to get more attention on this, please? I get daily emerge failures due to this bug. Created attachment 80710 [details, diff] unset KBUILD_OUTPUT in unpack_2_6 and compile_manpages This patch applies cleanly from within the portage directory with -p0 (In reply to comment #5) > I don't suppose you've had a chance to look into where the problem lies? emerge =sys-kernel/linux-headers-2.6* fails on the first make in eclass/kernel-2.eclass#unpack_2_6 rm: cannot remove `arch/i386/boot/compressed/vmlinux': Permission denied rm: cannot remove `arch/i386/boot/compressed/vmlinux.bin': Permission denied rm: cannot remove `arch/i386/boot/compressed/vmlinux.bin.gz': Permission denied rm: cannot remove `arch/i386/boot/compressed/head.o': Permission denied rm: cannot remove `arch/i386/boot/compressed/misc.o': Permission denied rm: cannot remove `arch/i386/boot/compressed/piggy.o': Permission denied make[3]: *** [__clean] Error 1 make[2]: *** [arch/i386/boot/compressed] Error 2 make[1]: *** [archclean] Error 2 make: *** [mrproper] Error 2 !!! ERROR: sys-kernel/linux-headers-2.6.11-r2 failed. !!! Function unpack_2_6, Line 332, Exitcode 2 !!! make mrproper failed !!! If you need support, post the topmost build error, NOT this status message. linux-2.4.* does not use KBUILD_OUTPUT, and thus is not affected by this. emerge =sys-kernel/gentoo-sources-2.6* fails on the first make in eclass/kernel-2.eclass#unpack_2_6 rm: cannot remove `arch/i386/boot/compressed/vmlinux': Permission denied rm: cannot remove `arch/i386/boot/compressed/vmlinux.bin': Permission denied rm: cannot remove `arch/i386/boot/compressed/vmlinux.bin.gz': Permission denied rm: cannot remove `arch/i386/boot/compressed/head.o': Permission denied rm: cannot remove `arch/i386/boot/compressed/misc.o': Permission denied rm: cannot remove `arch/i386/boot/compressed/piggy.o': Permission denied make[3]: *** [__clean] Error 1 make[2]: *** [arch/i386/boot/compressed] Error 2 make[1]: *** [archclean] Error 2 make: *** [mrproper] Error 2 !!! ERROR: sys-kernel/gentoo-sources-2.6.15-r1 failed. !!! Function unpack_2_6, Line 332, Exitcode 2 !!! make mrproper failed !!! If you need support, post the topmost build error, NOT this status message. or on the make in eclass/kernel-2.eclass#compile_manpages * Making manpages ... HOSTCC scripts/basic/fixdep cc1: Permission denied: opening dependency file scripts/basic/.fixdep.d make[2]: *** [scripts/basic/fixdep] Error 1 make[1]: *** [scripts_basic] Error 2 make: *** [mandocs] Error 2 I'm quite happy with that patch. Many thanks for everyones efforts. Thanks Ben. This is now in CVS. I'm quite happy with that patch. Many thanks for everyones efforts. Thanks Ben. This is now in CVS. Created attachment 86143 [details, diff]
unset KBUILD_OUTPUT in install_manpages
I forgot something - install_manpages
I've moved the unset to early on in the global scope now and as such this should be resolved. Please emerge sync, test and repoen if this still causes a problem. Created attachment 87066 [details, diff] unset KBUILD_OUTPUT early in kernel-2.eclass (In reply to comment #11) > I've moved the unset to early on in the global scope now and as such this > should be resolved. > > Please emerge sync, test and repoen if this still causes a problem. > Your fix worked - and then someone went and moved your fix into an "elif [[ ${ETYPE} == headers ]]" clause on May 9, which nullified your fix. I hope this will be a more permanent fix. >>> Install gentoo-sources-2.6.16-r7 into /var/tmp/portage/gentoo-sources-2.6.16-r7/image/ category sys-kernel >>> Copying sources ... * Installing manpages ... HOSTCC scripts/basic/fixdep ACCESS DENIED open_wr: /usr/src/linux-2.6.16-gentoo-r3/build/scripts/basic/.fixdep.d cc1: Permission denied: opening dependency file scripts/basic/.fixdep.d make[2]: *** [scripts/basic/fixdep] Error 1 make[1]: *** [scripts_basic] Error 2 make: *** [installmandocs] Error 2 [ !! ] reopening this will actually be resolved now that linux-doc is introduced regardless of eclass changes in future, I'll CC in brix for this reason. No need to CC: me on kernel@ assigned bugs. Created attachment 92314 [details, diff] kernel-2.eclass.patch ooops, made a duplicate(bug #141171). This simple patch fixes the still current manpages_install() problem. *** Bug 141171 has been marked as a duplicate of this bug. *** fixed: doc code removed |