[opensuse-kernel] Retrieving patch rejects file from OBS
All, re: Adding ext4+ snapshots capability to a branched 2.6.38 kernel I branched 2.6.38.5 from Tumbleweed. home:next4 : next4-devel > kernel-source I've attempted to add a large patch to my project, but it is not applying: == from the build log + patch -s -F0 -E -p1 --no-backup-if-mismatch -i /usr/src/packages/BUILD/kernel-source-2.6.38.5/patches.ext4+/ext4_snapshot.patch 1 out of 74 hunks FAILED -- saving rejects to file fs/ext4/inode.c.rej 1 out of 33 hunks FAILED -- saving rejects to file fs/ext4/super.c.rej == Is there an easy way to get those to rej files out of OBS. Or do I have to figure out how to do a full local kernel build? (Since the source package is not building, that doesn't seem trivial.) Thanks Greg -- To unsubscribe, e-mail: opensuse-kernel+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-kernel+help@opensuse.org
On Wed, May 11, 2011 at 04:27:35PM -0400, Greg Freemyer wrote:
All,
re: Adding ext4+ snapshots capability to a branched 2.6.38 kernel
I branched 2.6.38.5 from Tumbleweed.
home:next4 : next4-devel > kernel-source
I've attempted to add a large patch to my project, but it is not applying:
== from the build log + patch -s -F0 -E -p1 --no-backup-if-mismatch -i /usr/src/packages/BUILD/kernel-source-2.6.38.5/patches.ext4+/ext4_snapshot.patch 1 out of 74 hunks FAILED -- saving rejects to file fs/ext4/inode.c.rej 1 out of 33 hunks FAILED -- saving rejects to file fs/ext4/super.c.rej ==
Is there an easy way to get those to rej files out of OBS.
No.
Or do I have to figure out how to do a full local kernel build?
osc build SPECFILE
(Since the source package is not building, that doesn't seem trivial.)
Do the above and you should get your rejects quite easily. Or just use the kernel git tree, that's even easier to use than the obs package (hint, no kernel developer at SUSE uses the obs package directly to develop from, that's why we have the git tree...) thanks, greg k-h -- To unsubscribe, e-mail: opensuse-kernel+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-kernel+help@opensuse.org
On Wed, May 11, 2011 at 4:33 PM, Greg KH <gregkh@suse.de> wrote:
On Wed, May 11, 2011 at 04:27:35PM -0400, Greg Freemyer wrote:
All,
re: Adding ext4+ snapshots capability to a branched 2.6.38 kernel
I branched 2.6.38.5 from Tumbleweed.
home:next4 : next4-devel > kernel-source
I've attempted to add a large patch to my project, but it is not applying:
== from the build log + patch -s -F0 -E -p1 --no-backup-if-mismatch -i /usr/src/packages/BUILD/kernel-source-2.6.38.5/patches.ext4+/ext4_snapshot.patch 1 out of 74 hunks FAILED -- saving rejects to file fs/ext4/inode.c.rej 1 out of 33 hunks FAILED -- saving rejects to file fs/ext4/super.c.rej ==
Is there an easy way to get those to rej files out of OBS.
No.
Or do I have to figure out how to do a full local kernel build?
osc build SPECFILE
Thanks, that was almost trivial. Note it did pull in lots of Factory packages (~110) event though I was compiling a Tumbleweed branched kernel.
(Since the source package is not building, that doesn't seem trivial.)
Do the above and you should get your rejects quite easily.
Got em.
Or just use the kernel git tree, that's even easier to use than the obs package (hint, no kernel developer at SUSE uses the obs package directly to develop from, that's why we have the git tree...)
I'll be a dilettante and only pretend to be kernel hacker. I'll leave pulling a git tree with tons of add-on patches to the real experts like you! Greg -- To unsubscribe, e-mail: opensuse-kernel+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-kernel+help@opensuse.org
On Wed, May 11, 2011 at 05:09:15PM -0400, Greg Freemyer wrote:
On Wed, May 11, 2011 at 4:33 PM, Greg KH <gregkh@suse.de> wrote:
On Wed, May 11, 2011 at 04:27:35PM -0400, Greg Freemyer wrote:
All,
re: Adding ext4+ snapshots capability to a branched 2.6.38 kernel
I branched 2.6.38.5 from Tumbleweed.
home:next4 : next4-devel > kernel-source
I've attempted to add a large patch to my project, but it is not applying:
== from the build log + patch -s -F0 -E -p1 --no-backup-if-mismatch -i /usr/src/packages/BUILD/kernel-source-2.6.38.5/patches.ext4+/ext4_snapshot.patch 1 out of 74 hunks FAILED -- saving rejects to file fs/ext4/inode.c.rej 1 out of 33 hunks FAILED -- saving rejects to file fs/ext4/super.c.rej ==
Is there an easy way to get those to rej files out of OBS.
No.
Or do I have to figure out how to do a full local kernel build?
osc build SPECFILE
Thanks, that was almost trivial. Note it did pull in lots of Factory packages (~110) event though I was compiling a Tumbleweed branched kernel.
You could point it to build against tumbleweed instead: osc build openSUSE:Tumbleweed i586 SPECFILE is what I think you need to do for the i586 build.
(Since the source package is not building, that doesn't seem trivial.)
Do the above and you should get your rejects quite easily.
Got em.
Or just use the kernel git tree, that's even easier to use than the obs package (hint, no kernel developer at SUSE uses the obs package directly to develop from, that's why we have the git tree...)
I'll be a dilettante and only pretend to be kernel hacker. I'll leave pulling a git tree with tons of add-on patches to the real experts like you!
Hey, we'll get you converted over to being a kernel developer one of these days, can't fault me for trying... thanks, greg k-h -- To unsubscribe, e-mail: opensuse-kernel+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-kernel+help@opensuse.org
On Wed, May 11, 2011 at 5:16 PM, Greg KH <gregkh@suse.de> wrote:
Thanks, that was almost trivial. Note it did pull in lots of Factory packages (~110) event though I was compiling a Tumbleweed branched kernel.
You could point it to build against tumbleweed instead: osc build openSUSE:Tumbleweed i586 SPECFILE is what I think you need to do for the i586 build.
Greg, I note there is a file config.sh which looks like you should update it the main Tumbleweed kernel package. === config.sh # The version of the main tarball to use SRCVERSION=2.6.38 # variant of the kernel-source package, either empty or "-rt" VARIANT= # buildservice projects to build the kernel against OBS_PROJECT=openSUSE:Factory IBS_PROJECT=SUSE:Factory:Head === I'd do it, but I don't know what to set IBS_PROJECT to. Greg -- To unsubscribe, e-mail: opensuse-kernel+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-kernel+help@opensuse.org
On Thu, May 12, 2011 at 05:57:04PM -0400, Greg Freemyer wrote:
On Wed, May 11, 2011 at 5:16 PM, Greg KH <gregkh@suse.de> wrote:
Thanks, that was almost trivial. Note it did pull in lots of Factory packages (~110) event though I was compiling a Tumbleweed branched kernel.
You could point it to build against tumbleweed instead: osc build openSUSE:Tumbleweed i586 SPECFILE is what I think you need to do for the i586 build.
Greg,
I note there is a file config.sh which looks like you should update it the main Tumbleweed kernel package.
=== config.sh # The version of the main tarball to use SRCVERSION=2.6.38 # variant of the kernel-source package, either empty or "-rt" VARIANT= # buildservice projects to build the kernel against OBS_PROJECT=openSUSE:Factory IBS_PROJECT=SUSE:Factory:Head ===
I'd do it, but I don't know what to set IBS_PROJECT to.
IBS is the "Internal Build Service" we use here at SUSE for building distro packages like SLE and the like. This variable is only needed if you use the "scripts/osc_wrapper" script to build your modified package, which I don't think you are doing, right? In Tumbleweed we don't need to worry about this at all from what I can tell. thanks, greg k-h -- To unsubscribe, e-mail: opensuse-kernel+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-kernel+help@opensuse.org
On Thu, May 12, 2011 at 6:26 PM, Greg KH <gregkh@suse.de> wrote:
On Thu, May 12, 2011 at 05:57:04PM -0400, Greg Freemyer wrote:
On Wed, May 11, 2011 at 5:16 PM, Greg KH <gregkh@suse.de> wrote:
Thanks, that was almost trivial. Note it did pull in lots of Factory packages (~110) event though I was compiling a Tumbleweed branched kernel.
You could point it to build against tumbleweed instead: osc build openSUSE:Tumbleweed i586 SPECFILE is what I think you need to do for the i586 build.
Greg,
I note there is a file config.sh which looks like you should update it the main Tumbleweed kernel package.
=== config.sh # The version of the main tarball to use SRCVERSION=2.6.38 # variant of the kernel-source package, either empty or "-rt" VARIANT= # buildservice projects to build the kernel against OBS_PROJECT=openSUSE:Factory IBS_PROJECT=SUSE:Factory:Head ===
I'd do it, but I don't know what to set IBS_PROJECT to.
IBS is the "Internal Build Service" we use here at SUSE for building distro packages like SLE and the like.
This variable is only needed if you use the "scripts/osc_wrapper" script to build your modified package, which I don't think you are doing, right?
In Tumbleweed we don't need to worry about this at all from what I can tell.
thanks,
greg k-h
Greg, On my local build of my branch of the Tumbleweed kernel: I'm seeing gcc 4.6 in use. I can't say I like that given 4.6 was just rolled to factory in the last 24 hours or so. I assume the same would happen if you rebuilt the Tumbleweed kernel with those references to factory. I assume you want to stick to gcc 4.5 for Tumbleweed for now. I "assume" those 2 lines from config.sh will control that:
OBS_PROJECT=openSUSE:Factory IBS_PROJECT=SUSE:Factory:Head
I know lots of "assumes" in there, so I could be all wet. Greg -- To unsubscribe, e-mail: opensuse-kernel+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-kernel+help@opensuse.org
On Thu, May 12, 2011 at 06:33:42PM -0400, Greg Freemyer wrote:
On Thu, May 12, 2011 at 6:26 PM, Greg KH <gregkh@suse.de> wrote:
On Thu, May 12, 2011 at 05:57:04PM -0400, Greg Freemyer wrote:
On Wed, May 11, 2011 at 5:16 PM, Greg KH <gregkh@suse.de> wrote:
Thanks, that was almost trivial. Note it did pull in lots of Factory packages (~110) event though I was compiling a Tumbleweed branched kernel.
You could point it to build against tumbleweed instead: osc build openSUSE:Tumbleweed i586 SPECFILE is what I think you need to do for the i586 build.
Greg,
I note there is a file config.sh which looks like you should update it the main Tumbleweed kernel package.
=== config.sh # The version of the main tarball to use SRCVERSION=2.6.38 # variant of the kernel-source package, either empty or "-rt" VARIANT= # buildservice projects to build the kernel against OBS_PROJECT=openSUSE:Factory IBS_PROJECT=SUSE:Factory:Head ===
I'd do it, but I don't know what to set IBS_PROJECT to.
IBS is the "Internal Build Service" we use here at SUSE for building distro packages like SLE and the like.
This variable is only needed if you use the "scripts/osc_wrapper" script to build your modified package, which I don't think you are doing, right?
In Tumbleweed we don't need to worry about this at all from what I can tell.
thanks,
greg k-h
Greg,
On my local build of my branch of the Tumbleweed kernel:
I'm seeing gcc 4.6 in use. I can't say I like that given 4.6 was just rolled to factory in the last 24 hours or so.
That's because you are building against Factory, don't do that, build against Tumblweed, or against 11.4. See the obs build command man page section for how to do that properly.
I assume the same would happen if you rebuilt the Tumbleweed kernel with those references to factory.
I assume you want to stick to gcc 4.5 for Tumbleweed for now.
I "assume" those 2 lines from config.sh will control that:
OBS_PROJECT=openSUSE:Factory IBS_PROJECT=SUSE:Factory:Head
I know lots of "assumes" in there, so I could be all wet.
The kernels in the tumblweed build system are working just fine against the correct version of gcc. Again, the config.sh file is only if you want to build things locally from the expanded kernel git tree, not from the rpm packages. Hope this helps, greg k-h -- To unsubscribe, e-mail: opensuse-kernel+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-kernel+help@opensuse.org
On Thu, May 12, 2011 at 6:37 PM, Greg KH <gregkh@suse.de> wrote:
On Thu, May 12, 2011 at 06:33:42PM -0400, Greg Freemyer wrote:
On Thu, May 12, 2011 at 6:26 PM, Greg KH <gregkh@suse.de> wrote:
On Thu, May 12, 2011 at 05:57:04PM -0400, Greg Freemyer wrote:
On Wed, May 11, 2011 at 5:16 PM, Greg KH <gregkh@suse.de> wrote:
Thanks, that was almost trivial. Note it did pull in lots of Factory packages (~110) event though I was compiling a Tumbleweed branched kernel.
You could point it to build against tumbleweed instead: osc build openSUSE:Tumbleweed i586 SPECFILE is what I think you need to do for the i586 build.
Greg,
I note there is a file config.sh which looks like you should update it the main Tumbleweed kernel package.
=== config.sh # The version of the main tarball to use SRCVERSION=2.6.38 # variant of the kernel-source package, either empty or "-rt" VARIANT= # buildservice projects to build the kernel against OBS_PROJECT=openSUSE:Factory IBS_PROJECT=SUSE:Factory:Head ===
I'd do it, but I don't know what to set IBS_PROJECT to.
IBS is the "Internal Build Service" we use here at SUSE for building distro packages like SLE and the like.
This variable is only needed if you use the "scripts/osc_wrapper" script to build your modified package, which I don't think you are doing, right?
In Tumbleweed we don't need to worry about this at all from what I can tell.
thanks,
greg k-h
Greg,
On my local build of my branch of the Tumbleweed kernel:
I'm seeing gcc 4.6 in use. I can't say I like that given 4.6 was just rolled to factory in the last 24 hours or so.
That's because you are building against Factory, don't do that, build against Tumblweed, or against 11.4. See the obs build command man page section for how to do that properly.
I assume the same would happen if you rebuilt the Tumbleweed kernel with those references to factory.
I assume you want to stick to gcc 4.5 for Tumbleweed for now.
I "assume" those 2 lines from config.sh will control that:
OBS_PROJECT=openSUSE:Factory IBS_PROJECT=SUSE:Factory:Head
I know lots of "assumes" in there, so I could be all wet.
The kernels in the tumblweed build system are working just fine against the correct version of gcc.
Again, the config.sh file is only if you want to build things locally from the expanded kernel git tree, not from the rpm packages.
Hope this helps,
greg k-h
Greg, I'm an idiot, I had the wrong repository selected in OBS. I just changed it to Tumbleweed like I thought it was all along. And I'm getting gcc 4.5 as desired. Sorry for the noise. Greg -- To unsubscribe, e-mail: opensuse-kernel+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-kernel+help@opensuse.org
participants (2)
-
Greg Freemyer
-
Greg KH