Does not apply cleanly to ubuntu linux-source-2.6.15

Bug #52189 reported by Christoph Lukas
16
Affects Status Importance Assigned to Milestone
kernel-patch-vserver (Ubuntu)
Expired
Undecided
Unassigned

Bug Description

Binary package hint: kernel-patch-vserver

Install linux-source-2.6.15 kernel-patch-vserver
Unpack kernel sources, run:

/usr/src/kernel-patches/all/apply/vserver

START applying vserver patch (Context switching virtual private servers)
Testing whether "Context switching virtual private servers" patch for 2.6.15 applies (dry run):
1 out of 2 hunks FAILED -- saving rejects to file arch/sparc64/kernel/sys_sparc.c.rej
1 out of 1 hunk FAILED -- saving rejects to file drivers/block/Makefile.rej
1 out of 1 hunk FAILED -- saving rejects to file include/asm-i386/page.h.rej
1 out of 1 hunk FAILED -- saving rejects to file init/version.c.rej
1 out of 18 hunks FAILED -- saving rejects to file kernel/sys.c.rej
"Context switching virtual private servers" patch for 2.6.15 does not apply cleanly

Revision history for this message
Christoph Lukas (christoph-lukas) wrote :

dpkg -l kernel-patch-vserver linux-source-2.6.15

Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Installed/Config-files/Unpacked/Failed-config/Half-installed
|/ Err?=(none)/Hold/Reinst-required/X=both-problems (Status,Err: uppercase=bad)
||/ Name Version Description
+++-=====================-=====================-==========================================================
ii kernel-patch-vserver 2.0.1-1 context switching virtual private servers - kernel patch
ii linux-source-2.6.15 2.6.15-25.43 Linux kernel source for version 2.6.15 with Ubuntu patches
r

Revision history for this message
Sebastien Estienne (sebest) wrote :

i can confirm this issue

Changed in kernel-patch-vserver:
status: Unconfirmed → Confirmed
Revision history for this message
Sebastien Estienne (sebest) wrote :
Revision history for this message
Gabriel Bauman (gabrielbauman) wrote :

Shouldn't an official update of this patch be pushed out to Dapper, since what's there is useless?

Revision history for this message
hmeyer (hmeyer) wrote :

The patch does not work - and I'm unable to find out why.
But I also don't want to use a prebuild kernel (or prepared sources) from a third person, so MarcelloNuccios kernel is no option for me.

Please fix it, it shouldn't be to hard....

Revision history for this message
hans_olo (stefan-linux-lunatix) wrote :

I have the same problems. An official update of kernel-patch-vserver for dapper would be greatly appreciated. I am working at the moment with the uniklu-kernel, but they stopped patching the 2.6.15 branch, so dappers release version is now equal and soon will be higher than theirs.

Please update the package, as this is the only way to stay with the dapper supported kernel-versions.

Revision history for this message
hans_olo (stefan-linux-lunatix) wrote :

I have tried to solve the rejected hunks. All but one were trivial, can someone please have a look at this, if I did the right thing:

I tried to integrate include/asm-i386/page.h.rej into include/asm-i386/page.h.orig. I ended up with include/asm-i386/page.h. I have attached these three files. I also attached the resulting patch.

Revision history for this message
hans_olo (stefan-linux-lunatix) wrote :
Revision history for this message
hans_olo (stefan-linux-lunatix) wrote :
Revision history for this message
hans_olo (stefan-linux-lunatix) wrote :

This patch is untested yet.

Revision history for this message
hans_olo (stefan-linux-lunatix) wrote :

ok. forget it. this patch is not compiling cleanly:

...
  CC kernel/sys.o
kernel/sys.c: In function 'sys_reboot':
kernel/sys.c:495: warning: implicit declaration of function 'vs_reboot'
kernel/sys.c: At top level:
kernel/sys.c:560: error: conflicting types for 'vs_reboot'
kernel/sys.c:495: error: previous implicit declaration of 'vs_reboot' was here
make[2]: *** [kernel/sys.o] Error 1
make[1]: *** [kernel] Error 2
make[1]: Leaving directory `/usr/src/linux-source-2.6.15'
make: *** [stamp-build] Error 2

I will dig into this, but I am no C-programmer or kernel-hacker...

Revision history for this message
jasonmaier (joerg-maier) wrote :

Hi,

i was able to compile kernel/sys.c when putting the function prototype of vs_reboot before the call. I will tell if the patch works.

Joerg

Revision history for this message
jasonmaier (joerg-maier) wrote :

Hi,

my patch works at least for me. I think it does things the way unijku does. It is not testet. I asked the maintainer of the package and he told me the patch was removed from debian as the patch was integrated in kernels shipped with debian etch.

I am not sure what is the intention for ubuntu. I dont know who decides if they either want to update the patch or integrate into mainline. Probably somebody who knows should take over? The patch that works is available here: http://shove-it.de/open/jcm/vserver_linux-source-2.6.15-27.50.patch
It works for me for : linux-source-2.6.15 2.6.15-27.50

Regards, Joerg

Revision history for this message
derjoerg (joerg-schoppet) wrote :

Hi,

I just tried your patch, but the kernel did not compile.

I did the following steps under /usr/src:
sudo apt-get install linux-source-2.6.15
sudo wget http://shove-it.de/open/jcm/vserver_linux-source-2.6.15-27.50.patch
sudo tar -xjvf linux-source-2.6.15.tar.bz2
cd linux-source-2.6.15
sudo patch -p1 ../vserver_linux-source-2.6.15-27.50.patch
sudo cp /boot/config-2.6.15-26-amd64-server .config
sudo vi Makefile (added "+vserver" to EXTRAVERSION)
sudo make oldconfig
sudo make
sudo make-kpkg --initrd binary

The last statement exits with the error:
dpkg-gencontrol: error: current build architecture amd64 does not appear in package's list (i386)

I use ubuntu 6.06 64bit

Any hints?

Regards
Joerg

Revision history for this message
jasonmaier (joerg-maier) wrote :

Hi Joerg,

i am just trying to build a amd64 kernel, i used a 32bit build. Could you try to run make-kpkg clean before?

One thing is to say. I spoke to the vserver folks on irc and they said the 2.01-1 version of vserver is probably security error prone and not supported. They would like to have someone to be responsible for ubuntu and vserver. Probably with the task to port the supported version to the 2.6.15 kernel-source. The kernel-patch-vserver package is an orphaned package from debian-etch.

From now on i used the 2.6.18 version of linux-vserver.org devel prepatch and vanilla sources. I think it should work as well to use the binary kernels from etch, they already contain vserver patches, but i did not try.

Maybe there is someone who finds the time to port the patches back to the official 2.06 kernel sources? I dont know if thats a lot of work, maybe not. We have to investigate =).

Regards, Joerg

Revision history for this message
derjoerg (joerg-schoppet) wrote :

Hi Joerg,

thanks for the hint. "make-kpkg clean" made it.

So, let's wait for the future of vserver in ubuntu.

Regards,

Joerg

Revision history for this message
derjoerg (joerg-schoppet) wrote :

Hi,

are there any news about this bug-report?

Regards,

Joerg

Revision history for this message
Thomas Hotz (thotz-deactivatedaccount) wrote :

Does this bug also belongs to supported Ubuntu versions like Ubuntu 12.04 LTS?

Changed in kernel-patch-vserver (Ubuntu):
status: Confirmed → Incomplete
Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for kernel-patch-vserver (Ubuntu) because there has been no activity for 60 days.]

Changed in kernel-patch-vserver (Ubuntu):
status: Incomplete → Expired
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.