maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Maemo 5 / Fremantle (https://talk.maemo.org/forumdisplay.php?f=40)
-   -   How to apply a patch (https://talk.maemo.org/showthread.php?t=40299)

GiGi. 2010-01-13 09:27

How to apply a patch
 
Dear forum members,

I recently filed the following feature request on bugzilla; https://bugs.maemo.org/show_bug.cgi?id=6995#c3
As you can see, Ralph replied with a solution in the form of a patch which i would like to test for him, but, i can't find a way to apply the patch.

Can someone please inform me how to do that?

Kind regards

Rob1n 2010-01-13 09:43

Re: How to apply a patch
 
No offense meant, but if you don't already know how to apply a patch then you probably shouldn't be looking at doing so. Having said that, here's a brief rundown.

The patch is applied to the source code, so you'll need a full SDK setup. The patch is then applied using GNU patch:
Code:

patch -p1 < file.patch
You can then build a patched version of the package to install.

ruskie 2010-01-13 10:17

Re: How to apply a patch
 
and of course the -p# can differ as well :)

GiGi. 2010-01-13 10:34

Re: How to apply a patch
 
Quote:

Originally Posted by Rob1n (Post 467949)
No offense meant, but if you don't already know how to apply a patch then you probably shouldn't be looking at doing so.

How so, statements like these are all over the forum. How can one learn if he shouldn't be looking at doing so...

Rob1n 2010-01-13 10:53

Re: How to apply a patch
 
Quote:

Originally Posted by GiGi. (Post 468033)
How so, statements like these are all over the forum. How can one learn if he shouldn't be looking at doing so...

I'm not saying that you shouldn't learn - it's just that patch is a long way along the learning process, and by the time you get to that stage you should also know how to find the documentation for this sort of thing (if it's not maemo specific then you're better off looking at general Linux documentation anyway).

GiGi. 2010-01-13 12:03

Re: How to apply a patch
 
Quote:

Originally Posted by Rob1n (Post 468070)
I'm not saying that you shouldn't learn - it's just that patch is a long way along the learning process, and by the time you get to that stage you should also know how to find the documentation for this sort of thing (if it's not maemo specific then you're better off looking at general Linux documentation anyway).


You are probably right, but then again, i am trying to help with the development of maemo by submitting bugs and thinking of additional features and learn about it in the process. When someone asks if i could try the patch he made in response to MY feature request it would be kind of lame not to do so :D

Well thanks for your small summary of how to apply a patch anyway!


All times are GMT. The time now is 22:30.

vBulletin® Version 3.8.8