Re: with 2.4.9 can't compille

"Peter T. Breuer" <[email protected]>
Newsgroups gmane.linux.enbd.general
Message-ID <[email protected]>
"Also sprach Hegedus Gabor:"
> I try to patch 2.4.29, I got this:

Please don't - the instructions say to compile the code standalone.

> uml-rg-fw2:/usr/src/linux-2.4.29# patch -p1 < ../nbd-2.4.32/kernel/patches/enbd-2.4.22.pat 

Well, that's a problem. 

Why choose "2.4.22"? I suppose it may be the nearest to your kernel?

> patching file Documentation/Configure.help
> Hunk #1 succeeded at 854 (offset 281 lines).
> missing header for unified diff at line 73 of patch

??? Well it doesn't seem to have any problem, whatever it means. 

Oh, I see, there is a missing name in the patch header. It just has "-"
(for stdin) as one of the two file names.  Shrug.  It shouldn't make any
difference. But thank you very much for telling me. I'll correct it at
once (done - it's a triviality in vi ..)


> patching file drivers/block/Config.in
> missing header for unified diff at line 135 of patch
> patching file drivers/block/Makefile
> missing header for unified diff at line 178 of patch
> patching file drivers/block/enbd.c
> missing header for unified diff at line 7394 of patch
> patching file drivers/block/enbd_bufferwr.c
> missing header for unified diff at line 7637 of patch
> patching file drivers/block/enbd_ioctl.c
> missing header for unified diff at line 8064 of patch
> patching file include/linux/enbd.h
> missing header for unified diff at line 8518 of patch
> patching file include/linux/enbd_ioctl.h
> uml-rg-fw2:/usr/src/linux-2.4.29# 
> 
> then try to:
> 
> uml-rg-fw2:/usr/src/nbd-2.4.32# ./debian/rules binary 

It's executable? Well, that's interesting (and a relief).

> 	gzip -9fq
> debian/kernel-patch-enbd/usr/src/kernel-patches/diffs/enbd/enbd-2.4.22.pat
> Malformed kernel version: `2.6.0-test2' at /usr/bin/dh_installkpatches

Well, that's your business? Or is it The list in
kernel-patch-enbd.kpatches, which contains also

  Patch-file: kernel/patches/enbd-2.6.0-test2.pat
  Architecture: all
  Kernel-version: 2.6.0-test2

and apparently your dh_installkpatches doesn't parse that. Sorry, but
that's the name! Would it be better as

  Kernel-version: 2.6.0test2

??

> line 305.
> make[1]: *** [install-indep] Error 2
> make[1]: Leaving directory `/usr/src/nbd-2.4.32'
> make: *** [binary-indep] Error 2
> 
> 
> I don't know whats wrong. I tried 2.4.29, 2.6.10 with enbd-2.4.32pre.tgz

You have the code and are executing it, therefore you can tell much more
easily than me!  But to my eyes it looks like you are trying to (a)
patch the kernel (which you shouldn't) and (b) run a debian kernel
compile routine (which I have no experience with).

I would have said "Don't Do That Then". 

As far as I know the debian routines have been working fine until now for
all users of debian, so something must have chened either in yoru
installation or in debian.

To me it looks as thoough debian need a bug report against their
dh_installkpatches (or you need to install a new one). But there isn't
a patch for you to install anyway, so I don't see why you would want
to!

If you want a patch for your kernel, then you want to make it by hand.



Peter
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.