Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Kernel & Hardware
  • Search

Kernel patching: how can I process rejects?

Kernel not recognizing your hardware? Problems with power management or PCMCIA? What hardware is compatible with Gentoo? See here. (Only for kernels supported by Gentoo.)
Post Reply
Advanced search
5 posts • Page 1 of 1
Author
Message
VinzC
Watchman
Watchman
User avatar
Posts: 5100
Joined: Sat Apr 17, 2004 1:51 pm
Location: Dark side of the mood

Kernel patching: how can I process rejects?

  • Quote

Post by VinzC » Tue May 10, 2005 7:49 pm

Hi.

I'm feeling adventurous and am going to patch my vanilla sources with some patches. Especially the 4500_fbsplash-0.9.1-r2.patch is giving me errors about rejected hunks. My question is: how do I process these failed hunks in *.rej files? Should I process them manually (Oh my!) or is there an automated/scripted method?

I've googled a lot but I always fall on this article, based on older kernel versions. But I have no config.in.rej here.

Thanks for any hint.
Gentoo addict: tomorrow I quit, I promise!... Just one more emerge...
1739!
Top
NeddySeagoon
Administrator
Administrator
User avatar
Posts: 56082
Joined: Sat Jul 05, 2003 9:37 am
Location: 56N 3W

  • Quote

Post by NeddySeagoon » Tue May 10, 2005 9:44 pm

VinzC,

The automated method failed and wrote the *.rej files.
The easiest way is to find patches for the kerenk you have, or use the kerenl the patches were made against.

Other than than, use your C skills to patch by hand. How hard it is depends on the reasons for the rejections.
It may be that (some) rejected hunks are already present or the original code at the line number given for the hunk has changed so that patch cannot find any context.
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Top
VinzC
Watchman
Watchman
User avatar
Posts: 5100
Joined: Sat Apr 17, 2004 1:51 pm
Location: Dark side of the mood

  • Quote

Post by VinzC » Tue May 10, 2005 10:38 pm

Thanks NeddySeagoon.

I tried to fix rejections manually. Indeed there were too many differences between what the patch expected and the actual content. I was trying to patch vanilla sources with 4500_fbsplash-0.9.1-r2.patch. Patching resulted in too big differences. So I might have patched with the wrong diff file or whatever. The only patch (out of two attempts, which is not that bad after all ;) ) that worked is the inotify patch.

I think I'll use Gentoo sources for framebuffer consoles and bootsplash screen instead.
Gentoo addict: tomorrow I quit, I promise!... Just one more emerge...
1739!
Top
Dr. Z
n00b
n00b
Posts: 30
Joined: Fri Nov 19, 2004 2:56 am

  • Quote

Post by Dr. Z » Wed May 11, 2005 3:16 am

You may try Chris Mason's "rej" tool:
at that point Chris Mason's "rej" tool is pretty nifty:

ftp://ftp.suse.com/pub/people/mason/rej/rej-0.13.tar.gz

it gets the trivial rejects right, and is pretty powerful to quickly
cycle through the nontrivial ones too. It shows the old and new code
side by side too, etc.
http://www.kerneltrap.org/node/4982
Top
VinzC
Watchman
Watchman
User avatar
Posts: 5100
Joined: Sat Apr 17, 2004 1:51 pm
Location: Dark side of the mood

  • Quote

Post by VinzC » Wed May 11, 2005 6:55 am

Great. Thanks for the links, Dr. Z.
Gentoo addict: tomorrow I quit, I promise!... Just one more emerge...
1739!
Top
Post Reply

5 posts • Page 1 of 1

Return to “Kernel & Hardware”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic