LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Hardware (https://www.linuxquestions.org/questions/linux-hardware-18/)
-   -   ACPI patch ... hunks failing (https://www.linuxquestions.org/questions/linux-hardware-18/acpi-patch-hunks-failing-88786/)

Ianed 09-03-2003 08:07 AM

ACPI patch ... hunks failing
 
Coming to you lovely people tonight from links.

Right, so I was never able to get my kernels to compile under Mandrake so I thought I'd try a different distribution (gentoo this time). Found a nice page at fearly.zapto.org/linux that said it was very simple and easy to get Toshiba 5100 laptops setup up. In anycase, the directions often times border on very vage, especially of course, the parts that I have questions on.

Well, in anycase, what I'm trying to do is patch Kernel 2.4.19 (either original kernel.org download or the gentoo-r10) but I can't find the acpi patch he's referring to
and the 2.4.19 patch that I get from memebeam.org (the actual toshiba_acpi.c's patches page that looks like what he's talking about) always gives me Hunk so and so failed!!! Can anybody instruct me on how to get it patched?

Thanks for the help...

Mad Merlin 09-03-2003 03:17 PM

If you get hunks failed on a patching, try opening up the relevant .rej .c and .orig files and looked at the lines that failed. Often times you'll be able to see just where they were actually supposted to go in. If that is the case, then just throw the lines in where they should be, and the compile should work.

Ianed 09-03-2003 08:42 PM

Thanks for the advise, but what if you can't tell by looking at the .rej files? I try comparing the Makefile.rej and Makefile as well as the Config.in.reg and Config.in but I cannot find similarities between them!

Mad Merlin 09-03-2003 09:23 PM

Oh, in the .rej file you should see a + or a - at the beginning of some of the lines, it should also list the lines that it thinks it should have gone into, which is a good place to start looking. Otherwise, you can just do a find on one of the lines it lists above or below which doesn't have a + or a - before it.

Ianed 09-04-2003 07:04 PM

Cool, thanks. I'll have to try that out!


All times are GMT -5. The time now is 03:54 AM.