[opensuse-kernel] How csn I build a kernel with a specific patch which is applied to it, [obs]

Hello,
From build log [1] what change to spec [2] fixes following error. The reiser4-for-4.11.0.patch applies to kernel ok[3]. Help appreciated for build steps. Thanks --Glenn
full log: [1]https://build.opensuse.org/package/live_build_log/home:doiggl/kernel-vanilla... [ 46s] + /bin/cat [ 46s] + echo '##try 1' [ 46s] ##try 1 [ 46s] + /usr/bin/make oldconfig --output-sync -j6 [ 46s] make: *** No rule to make target 'oldconfig'. Stop. [ 46s] error: Bad exit status from /var/tmp/rpm-tmp.15koql (%prep) [ 46s] [ 46s] [ 46s] RPM build errors: [ 46s] Bad exit status from /var/tmp/rpm-tmp.15koql (%prep) [ 46s] [ 46s] lamb77 failed "build kernel-vanilla.spec" at Sun Jul 30 05:56:08 UTC 2017. [ 46s] [ 46s] ### VM INTERACTION START ### [ 49s] [ 36.557432] sysrq: SysRq : Power Off [ 49s] [ 36.562105] reboot: Power down [ 50s] ### VM INTERACTION END ### [ 50s] [ 50s] lamb77 failed "build kernel-vanilla.spec" at Sun Jul 30 05:56:13 UTC 2017. [ 50s] [2] https://build.opensuse.org/package/view_file/home:doiggl/kernel-vanilla/seri... series.conf ######################################################## # latest standard kernel patches # DO NOT MODIFY THEM! # Send separate patches upstream if you find a problem... ######################################################## patches.kernel.org/patch-4.12.1 patches.kernel.org/patch-4.12.1-2 patches.kernel.org/patch-4.12.2-3 patches.kernel.org/patch-4.12.3-4 ######################################################## # Reiser4 patch ######################################################## patches.rpmify/reiser4-for-4.11.0.patch [1]build log: https://build.opensuse.org/build/home:doiggl/openSUSE_Factory/x86_64/kernel-... [ 45s] + /home/abuild/rpmbuild/SOURCES/apply-patches --vanilla /home/abuild/rpmbuild/SOURCES/series.conf .. [ 45s] + patch -s -F0 -E -p1 --no-backup-if-mismatch -i ../patches.kernel.org/patch-4.12.1 [ 45s] + patch -s -F0 -E -p1 --no-backup-if-mismatch -i ../patches.kernel.org/patch-4.12.1-2 [ 45s] + patch -s -F0 -E -p1 --no-backup-if-mismatch -i ../patches.kernel.org/patch-4.12.2-3 [ 45s] + patch -s -F0 -E -p1 --no-backup-if-mismatch -i ../patches.kernel.org/patch-4.12.3-4 [ 45s] + patch -s -F0 -E -p1 --no-backup-if-mismatch -i ../patches.rpmify/reiser4-for-4.11.0.patch [ 45s] + patch -s -F0 -E -p1 --no-backup-if-mismatch -i ../patches.rpmify/firmware-path [ 45s] + patch -s -F0 -E -p1 --no-backup-if-mismatch -i ../patches.rpmify/cloneconfig.diff [ 45s] + cd /home/abuild/rpmbuild/BUILD/kernel-vanilla-4.12.4/linux-4.12/linux-obj [2] spec https://build.opensuse.org/package/view_file/home:doiggl/kernel-vanilla/kern... https://build.opensuse.org/package/show/home:doiggl/kernel-vanilla [3]series.conf https://build.opensuse.org/package/view_file/home:doiggl/kernel-vanilla/seri... reiser4-for-4.11.0.patch applies ok -- To unsubscribe, e-mail: opensuse-kernel+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-kernel+owner@opensuse.org

On Sunday, 30 July 2017 9:34 doiggl@velocitynet.com.au wrote:
full log: [1]https://build.opensuse.org/package/live_build_log/home:doiggl/kerne l-vanilla/openSUSE_13.1/x86_64
The failures seem to be caused by your own modifications of kernel-vanilla.spec In general, if you want to build an openSUSE kernel with an additional patch, the recommended way is: 1. unpack patches.fixes.tar.bz2 2. add your patch to patches.fixes/ 3. pack patches.fixes.tar.bz2 again 4. add the patch to series.conf (if you are only building a kernel for yourself, add it simply at the end of the file) If you want to modify the config file as well (looks like you do), 5. unpack config.tar.bz2 6. do your modifications to relevant file 7. pack config.tar.bz2 You shouldn't need to touch *.spec unless you have very unusual needs. Michal Kubeček -- To unsubscribe, e-mail: opensuse-kernel+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-kernel+owner@opensuse.org
participants (2)
-
doiggl@velocitynet.com.au
-
Michal Kubecek