[opensuse-kernel] building a vanilla 2.6.34.x kernel that will be patched with reiser4-for-2.6.34
The patches in the kernel-source package are packaged in the
controlled by the series.conf file. There is a special tarball called
Hello I am trying to compile a vanilla 2.6.34.x kernel that will be patched with reiser4-for-2.6.34.patch.bz2 and use obs to to compile it to generate a .rpm of the kernel which has reiser4 enabled and I need some assistance. Here is some history so which got me this point [1] patches.xx.tar.bz2 tarballs, the order in which they are applied is patches.addon.tar.bz2 and this is where you put patch.
Create a tarballlike this:
$ tar tf patches.addon.tar.bz2 patches.addon/foobar.patch patches.addon/series
And add it to your kernel-source package. If you need to apply more
where the series file contains this line: patches.addon/foobar.patch patches, simply list them all in the series file, in the order you want to apply them. So far I have done the following - 1. created patches.addon/series file # echo patches.addon/reiser4-for-2.6.34.patch > patches.addon/series 2. created patches.addon.tar.bz2 # tar -cvf patches.addon.tar patches.addon patches.addon/ patches.addon/series patches.addon/reiser4-for-2.6.34.patch # bzip2 -v patches.addon.tar patches.addon.tar: 5.330:1, 1.501 bits/byte, 81.24% saved, 2406400 in, 451444 out. Remaining items How do i set up a project to link to the 2.6.34 kernel vanilla. 3. Have you a .spec file I could use to do the following items. - unpack the vanilla 2.6.34 kernel - apply the reiser4-for-2.6.34.patch to the vanilla kernel - build the new reiser4 patched/enabled kernel [1] http://lists.opensuse.org/opensuse-packaging/2010-03/msg00125.html Thanks Glenn -- To unsubscribe, e-mail: opensuse-kernel+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-kernel+help@opensuse.org
On 3.7.2010 07:27, doiggl@velocitynet.com.au wrote:
So far I have done the following - 1. created patches.addon/series file # echo patches.addon/reiser4-for-2.6.34.patch > patches.addon/series
2. created patches.addon.tar.bz2 # tar -cvf patches.addon.tar patches.addon patches.addon/ patches.addon/series patches.addon/reiser4-for-2.6.34.patch
# bzip2 -v patches.addon.tar patches.addon.tar: 5.330:1, 1.501 bits/byte, 81.24% saved, 2406400 in, 451444 out.
Remaining items How do i set up a project to link to the 2.6.34 kernel vanilla.
osc linkpac openSUSE:11.3 kernel-source home:$login for p in kernel-{default,desktop,pae,xen,vanilla,syms}; do osc linkpac -C copy home:$login kernel-source home:$login $p done and add the patches.addon.tar.bz2 file to the kernel-source package. Michal -- To unsubscribe, e-mail: opensuse-kernel+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-kernel+help@opensuse.org
On Wed, 07 Jul 2010 17:15:10 +0200, Michal Marek <mmarek@suse.cz> wrote:
On 3.7.2010 07:27, doiggl@velocitynet.com.au wrote:
So far I have done the following - 1. created patches.addon/series file # echo patches.addon/reiser4-for-2.6.34.patch > patches.addon/series
2. created patches.addon.tar.bz2 # tar -cvf patches.addon.tar patches.addon patches.addon/ patches.addon/series patches.addon/reiser4-for-2.6.34.patch
# bzip2 -v patches.addon.tar patches.addon.tar: 5.330:1, 1.501 bits/byte, 81.24% saved, 2406400 in, 451444 out.
Remaining items How do i set up a project to link to the 2.6.34 kernel vanilla.
osc linkpac openSUSE:11.3 kernel-source home:$login for p in kernel-{default,desktop,pae,xen,vanilla,syms}; do osc linkpac -C copy home:$login kernel-source home:$login $p done
and add the patches.addon.tar.bz2 file to the kernel-source package.
Michal
I created a project [1] with a linkage to [2] so the linkages are in place for the 11.3 kernel-source [1] https://build.opensuse.org/package/show?package=reiser4latest&project=home%3Adoiggl [2] https://build.opensuse.org/package/files?package=kernel-source&project=openSUSE%3A11.3 My project has these files in it so far _link patches.addon.tar.bz2 The content listed as:
patches.addon.tar.bz2 # tar -cvf patches.addon.tar patches.addon patches.addon/ patches.addon/series patches.addon/reiser4-for-2.6.34.patch
# bzip2 -v patches.addon.tar patches.addon.tar: 5.330:1, 1.501 bits/byte, 81.24% saved, I have no .spec file as yet for patching the kernel with this patch. So , could anyone supply with a spec file that can do the following. - apply the patch to the kernel - build the kernel rpms with reiser4 enabled Thanks Glenn -- To unsubscribe, e-mail: opensuse-kernel+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-kernel+help@opensuse.org
On 24.7.2010 10:41, doiggl@velocitynet.com.au wrote:
On Wed, 07 Jul 2010 17:15:10 +0200, Michal Marek <mmarek@suse.cz> wrote:
osc linkpac openSUSE:11.3 kernel-source home:$login for p in kernel-{default,desktop,pae,xen,vanilla,syms}; do osc linkpac -C copy home:$login kernel-source home:$login $p done
...
I created a project [1] with a linkage to [2] so the linkages are in place for the 11.3 kernel-source [1] https://build.opensuse.org/package/show?package=reiser4latest&project=home%3Adoiggl
That's wrong, the package needs to be named "kernel-source", otherwise it won't build anything. Just follow the instructions and it will work. Michal -- To unsubscribe, e-mail: opensuse-kernel+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-kernel+help@opensuse.org
On Wed, 07 Jul 2010 17:15:10 +0200, Michal Marek <mmarek@suse.cz> wrote:
On 3.7.2010 07:27, doiggl@velocitynet.com.au wrote:
So far I have done the following - 1. created patches.addon/series file # echo patches.addon/reiser4-for-2.6.34.patch > patches.addon/series
2. created patches.addon.tar.bz2 # tar -cvf patches.addon.tar patches.addon patches.addon/ patches.addon/series patches.addon/reiser4-for-2.6.34.patch
# bzip2 -v patches.addon.tar patches.addon.tar: 5.330:1, 1.501 bits/byte, 81.24% saved, 2406400 in, 451444 out.
Remaining items How do i set up a project to link to the 2.6.34 kernel vanilla.
osc linkpac openSUSE:11.3 kernel-source home:$login for p in kernel-{default,desktop,pae,xen,vanilla,syms}; do osc linkpac -C copy home:$login kernel-source home:$login $p done
and add the patches.addon.tar.bz2 file to the kernel-source package.
Michal
Progress so far:- # osc linkpac openSUSE:11.3 kernel-source home:doiggl Sending meta data... Done. Creating _link... Done. # Under Build Service > Projects > home:doiggl > kernel-source project now exists. Under the files tab there is a _link file which references 'the package kernel-source of project openSUSE:11.3' see [1] Next I run the script. The errors were as was as follows. # for p in kernel-{default,desktop,pae,xen,vanilla,syms}; do
osc linkpac -C copy home:$login kernel-source home:$login $p
done
Server returned an error: HTTP Error 404: Not Found Error getting meta for project 'home:' package 'kernel-source' Unknown project 'home:' Server returned an error: HTTP Error 404: Not Found Error getting meta for project 'home:' package 'kernel-source' Unknown project 'home:' Server returned an error: HTTP Error 404: Not Found Error getting meta for project 'home:' package 'kernel-source' Unknown project 'home:' Server returned an error: HTTP Error 404: Not Found Error getting meta for project 'home:' package 'kernel-source' Unknown project 'home:' Server returned an error: HTTP Error 404: Not Found Error getting meta for project 'home:' package 'kernel-source' Unknown project 'home:' Server returned an error: HTTP Error 404: Not Found Error getting meta for project 'home:' package 'kernel-source' Unknown project 'home:' What have I got wrong in the script ? Thanks Glenn references [1] https://build.opensuse.org/package/show?package=kernel-source&project=home%3Adoiggl -- To unsubscribe, e-mail: opensuse-kernel+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-kernel+help@opensuse.org
On 1.8.2010 16:01, doiggl@velocitynet.com.au wrote:
Progress so far:- # osc linkpac openSUSE:11.3 kernel-source home:doiggl Sending meta data... [...] Next I run the script. The errors were as was as follows. # for p in kernel-{default,desktop,pae,xen,vanilla,syms}; do
osc linkpac -C copy home:$login kernel-source home:$login $p
done
Server returned an error: HTTP Error 404: Not Found
Error getting meta for project 'home:' package 'kernel-source'
You need to replace home:$login with the name of your home project, like you did in the first command. Michal -- To unsubscribe, e-mail: opensuse-kernel+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-kernel+help@opensuse.org
On Mon, 02 Aug 2010 13:49:18 +0200, Michal Marek <mmarek@suse.cz> wrote:
On 1.8.2010 16:01, doiggl@velocitynet.com.au wrote:
Progress so far:- # osc linkpac openSUSE:11.3 kernel-source home:doiggl Sending meta data...
[...] Next I run the script. The errors were as was as follows. # for p in kernel-{default,desktop,pae,xen,vanilla,syms}; do
osc linkpac -C copy home:$login kernel-source home:$login $p
done
Server returned an error: HTTP Error 404: Not Found
Error getting meta for project 'home:' package 'kernel-source'
You need to replace home:$login with the name of your home project, like you did in the first command.
Michal
Tried again with this and the result was as follows # for p in kernel-{default,desktop,pae,xen,vanilla,syms}; do
osc linkpac -C copy home:doiggl kernel-source home:doiggl $p done home:doiggl
_link file already exists...! Aborting home:doiggl _link file already exists...! Aborting Sending meta data... Done. Creating _link... Done. Sending meta data... Done. Creating _link... Done. Sending meta data... Done. Creating _link... Done. Sending meta data... Done. Creating _link... Done. in the osc help i see
linkpac "Link" a package to another package
I note in Build Service > Projects > home:doiggl > Packages I now have these extra pachages kernel-default | kernel-desktop | kernel-pae | kernel-source | kernel-syms | kernel-vanilla | kernel-xen. Next step is to add the patches.addon.tar.bz2 file to the kernel-source package. How do I do this step ? Thanks Glenn -- To unsubscribe, e-mail: opensuse-kernel+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-kernel+help@opensuse.org
participants (2)
-
doiggl@velocitynet.com.au
-
Michal Marek