http://bugzilla.novell.com/show_bug.cgi?id=498388 Summary: kernel/linux-k-headers: remove misleading instructions Classification: openSUSE Product: openSUSE 11.2 Version: Alpha 0 Platform: All OS/Version: Linux Status: NEW Severity: Normal Priority: P5 - None Component: Development AssignedTo: pth@novell.com ReportedBy: jengelh@medozas.de QAContact: qa@suse.de Found By: --- User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.8) Gecko/2009032600 u(n)buntuSUCKS/GetOriginalDebian /usr/include/linux/version.h, generated by linux-kernel-headers.spec, contains: #error " o Have the kernel sources installed" #error "" #error " o Make sure that the symbolic link" #error " /lib/modules/\`uname -r\`/build exists and points to" #error " the matching kernel source directory" #error "" #error " o Configure kernel sources:" #error " - cd /usr/src/linux" #error " - make mrproper" #error " - make cloneconfig" #error " - make prepare" /usr/src/packages/kernel-source/README.SUSE says: [...] The kernel sources are found in the kernel-source.$ARCH.rpm package. The recommended way to produce a binary kernel is: (1) Install kernel-source.$ARCH.rpm. Change to the /usr/src/linux directory. (2) Configure the kernel (for example, ``make oldconfig'' or ``make cloneconfig'', see HOW TO CONFIGURE THE KERNEL SOURCES). [...] Reproducible: Always Actual Results: The problem with cloneconfig is that this trashes the build environment for the existing default kernel (i.e. kernel-default/kernel-pae). As such, these instructions need to be reworded. When the user runs cloneconfig in /usr/src/linux, but then wants to compile /lib/modules/$foo/build, the resulting error will be something like "your kernel is (un)configured", because both /usr/src/linux and /usr/src/linux-obj/$arch/$flavor contain .o files. Expected Results: Compilation of an own kernel should not break compilation for RPM-installed kernels. Since there are always some users who don't know, these instructions are bound to cause problems and should be reworded: For linux-kernel-headers, REMOVE this part: #error " o Configure kernel sources:" #error " - cd /usr/src/linux" #error " - make mrproper" #error " - make cloneconfig" #error " - make prepare" The resulting version.h is still informative and correct. (-> SUSE kernels _are_ already configured!!) As for kernel-source README.SUSE: (1) Install kernel-source.$ARCH.rpm. (2) Copy /usr/src/linux-$VERSION to another directory (the former must be kept to ensure continued build success for existing kernels) (3) Configure the just-copied kernel (for example, `make oldconfig` or `make cloneconfig`, see HOW TO CONFIGURE THE KERNEL SOURCES). [...] -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.