Main index > Installation problems > how do i apply a patch? [SOLVED]

By jaguarrh (User), on Tue May 1 09:21:17 2007: how do i apply a patch? [SOLVED].

thanks syfou for your quick response to my email and for setting up my account.

ok, so i need to apply this patch to my adesklets core
http://repo.or.cz/w/adesklets.git?p=adesklets.git;a=commitdiff_plain;h=bcff137f866fcb05141cc07c82c2e2be3b671213;hp=bb3971f9dd86443fa03475e74d9100d3ed35c2ca

unfortunately, i have never done a patch before so am at a loss as to how to proceed.

i have read the man page for patch, but it is a bit out of my depth atm.

so here is what i have tried so far...

the link above goes to a plain html page (which i am thinking is the 'diff' output of the old and new files. so i cut and pasted the body of the above page and saved it as a text file called "adesklets.patch"

i then tried a number of combinations of 'patch' commands at the terminal but i am clearly getting the syntax all wrong, and probably the whole concept for that matter.

does anyone have a good link for a simple guide for idiots using patch???

thanks

By syfou (Core Developer & Desklet Author), on Tue May 1 12:05:23 2007.

Hi jaguarrh,

wikipedia page for patch is both pretty concise and informative: reading it should prove enough.

jaguarrh wrote:


the link above goes to a plain html page (which i am thinking is the 'diff' output of the old and new files. so i cut and pasted the body of the above page and saved it as a text file called "adesklets.patch"

Technically, the link points right to the patch, in plain text (no html here); cutting and pasting is really bug prone: manual mistakes, editor doing tab/whitespace transformations, etc... Here is what the complete patching operation should look like:

Code:


cd /path/to/adesklets-0.6.1 && \
wget 'http://url/to/patch' -O fc.diff && \ # Save patch to fc.diff
patch -p1 < fc.diff && \                   # Apply it
autoreconf && \                            # Regen. configure script
touch scripting/enums scripting/prototypes


Once this is done, your should be ready to perform the installation as usual (configure, make, make install). Yours,

By jaguarrh (User), on Wed May 2 05:54:12 2007.

many thanks again sylvain,

your advice helped me to understand, and i now have a working adesklets including yab and mounter.

i have other questions (ofc) but i will post them in the relevant forum.

cheers


adesklets is proud to be hosted on:

SourceForge.net Logo

Back to adesklets.sf.net.