Quantcast

Fwd: Re: How to install patch?

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Fwd: Re: How to install patch?

Josip-3
forget to reply to list :-)

-------- Original Message --------
Subject: Re: [Gramps-windows] How to install patch?
Date: Sun, 09 Jan 2011 19:06:44 +0100
From: Josip <[hidden email]>
To: Olaf <[hidden email]>

On 09.01.2011 16:48, Olaf wrote:

>
> Hi,
>
> it's my first post here with a question:
>
> I just installed GrampsAIO 3.2.5-5
>
> Now I'd like to install the
> http://www.gramps-project.org/bugs/view.php?id=3490
> DescendReport.py-marriage.patch  (0003490: Add marriage date option to
> descendant report), but my try did not work.
>
> Could anyone give me a step-by-step solution how to install a patch in my
> gramps?
>

This patch seems to need another patch.
This solution use patch util as used in linux world.

Lets say you install AIO in: "C:\Program Files (x86)\GrampsAIO"

Download patch util from
http://sourceforge.net/projects/gnuwin32/files/patch/2.5.9-7/patch-2.5.9-7-bin.zip/download

Unzip patch.exe from him and put in AIO bin folder ("C:\Program Files
(x86)\GrampsAIO\bin)"

download first patch:
http://www.gramps-project.org/bugs/file_download.php?file_id=2231&type=bug

and second patch:
http://www.gramps-project.org/bugs/file_download.php?file_id=2233&type=bug
to for example C:\TEMP

open up console and go to bin folder:
cd "C:\Program Files (x86)\GrampsAIO\bin"

when in bin folder type this two command:

patch -p0 --binary --verbose
..\share\gramps\plugins\textreport\DescendReport.py
C:\TEMP\DescendReport.py-numbering.patch-b

patch -p0 --binary --verbose ..\share\gramps\plugins\textreport
\DescendReport.py C:\TEMP\DescendReport.py-marriage.patch


Those "--verbose" switch is to see what is happening,
"--binary" serve to avoid problem with different line endings
If outputs looks like "Hunk #* succeeded at *" everything is going fine.
For example output in second command is:

Hmm...  Looks like a unified diff to me...
The text leading up to this was:
--------------------------
|--- DescendReport.py-presente  2010-02-23 19:57:29.000000000 +0000
|+++ DescendReport.py   2010-02-23 20:11:17.000000000 +0000
--------------------------
Patching file ..\share\gramps\plugins\textreport\DescendReport.py using
Plan A...
Hunk #1 succeeded at 40.
Hunk #2 succeeded at 77.
Hunk #3 succeeded at 88.
Hunk #4 succeeded at 158.
Hunk #5 succeeded at 198.
Hunk #6 succeeded at 230.
Hunk #7 succeeded at 275.
Hunk #8 succeeded at 320.
done



--
Josip

------------------------------------------------------------------------------
Gaining the trust of online customers is vital for the success of any company
that requires sensitive data to be transmitted over the Web.   Learn how to
best implement a security strategy that keeps consumers' information secure
and instills the confidence they need to proceed with transactions.
http://p.sf.net/sfu/oracle-sfdevnl 
_______________________________________________
Gramps-windows mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gramps-windows
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Fwd: Re: How to install patch?

Olaf
Hi Josip,

thanks a lot for your quick help!

But when I start "GrampsAIO Console" I only came till ...
> open up console and go to bin folder:
> cd "C:\Program Files (x86)\GrampsAIO\bin"

It opened the console-window an the Gramps program. In the console-window is nothing shown and it's not possible to type anything ...

Now, what's wrong?

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Fwd: Re: How to install patch?

Josip-3
On 09.01.2011 22:13, Olaf wrote:

>
> Hi Josip,
>
> thanks a lot for your quick help!
>
> But when I start "GrampsAIO Console" I only came till ...
>> open up console and go to bin folder:
>> cd "C:\Program Files (x86)\GrampsAIO\bin"
>
> It opened the console-window an the Gramps program. In the console-window is
> nothing shown and it's not possible to type anything ...
>
> Now, what's wrong?
>
>

Do not start Gramps, start only console :-)
In menu "START" --> "Run" --> type "cmd" and press "OK" for example of
one way to start console, then in opened window type those three command


--
Josip

------------------------------------------------------------------------------
Gaining the trust of online customers is vital for the success of any company
that requires sensitive data to be transmitted over the Web.   Learn how to
best implement a security strategy that keeps consumers' information secure
and instills the confidence they need to proceed with transactions.
http://p.sf.net/sfu/oracle-sfdevnl 
_______________________________________________
Gramps-windows mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gramps-windows
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Fwd: Re: How to install patch?

Olaf
Josip,

 I'm not a programmer as you can see ;-)

 You did a wonderful job ... It actually works now!

 Thanks again for your help!

regards
Olaf
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Fwd: Re: How to install patch?

Josip-3
On 09.01.2011 23:06, Olaf wrote:
>
> Josip,
>
>   I'm not a programmer as you can see ;-)
>

Now when you are, how about registering on Gramps Wiki and writing
article about "how to patch gramps on windows"

>   You did a wonderful job ... It actually works now!
>
>   Thanks again for your help!
>
> regards
> Olaf


--
Josip

------------------------------------------------------------------------------
Gaining the trust of online customers is vital for the success of any company
that requires sensitive data to be transmitted over the Web.   Learn how to
best implement a security strategy that keeps consumers' information secure
and instills the confidence they need to proceed with transactions.
http://p.sf.net/sfu/oracle-sfdevnl 
_______________________________________________
Gramps-windows mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gramps-windows
Loading...