ClamWin Free Antivirus Forum Index
ClamWin Free Antivirus
Support and Discussion Forums
Reply to topic
patch wxPython problem
Lai_mason


Joined: 09 Mar 2007
Posts: 0
Location: Taiwan
Reply with quote
hi,
I have fininished the steps before patch wxPython described in https://wiki.clamwin.com/index.php/Building_ClamWin. But when i apply patches/wxPython-2424.maskededit.patch by cygwin, it was failed. The error message is Hunk #1 FAILED at 1659. How can i fix this problem?
btw. the other two patches were sucessfully applied.

One more question, latest Microsoft Platform SDK does not support VS 6.0 anymore. Versions that support VS 6.0 are removed from microsoft website. Does it mean that i can not build ClamWin through VS 6.0?

Thanks and have a nice day.
mason
View user's profileSend private message
alch
Site Admin

Joined: 27 Nov 2005
Posts: 0
Reply with quote
you need to examine why the patch faile by looking at .rej file.
We use VS2005 to build clamwin and VS6 is not supported, you can make it compile on VS6 with some tweaking.
View user's profileSend private message
Lai_mason


Joined: 09 Mar 2007
Posts: 0
Location: Taiwan
Reply with quote
alch wrote:
you need to examine why the patch faile by looking at .rej file.
We use VS2005 to build clamwin and VS6 is not supported, you can make it compile on VS6 with some tweaking.



here's the content in the .rej file


***************
*** 1659,1664 ****
# gather rest of any autoformat parameters:
for param, value in masktags[self._autoformat].items():
if param == 'mask': continue # (must be present; already accounted for)
constraint_kwargs[param] = value

elif autoformat and not autoformat in masktags.keys():
--- 1659,1665 ----
# gather rest of any autoformat parameters:
for param, value in masktags[self._autoformat].items():
if param == 'mask': continue # (must be present; already accounted for)
+ if param == 'formatcodes' and value: continue # preserve custom format codes (if present)
constraint_kwargs[param] = value

elif autoformat and not autoformat in masktags.keys():
View user's profileSend private message
How you make patch wxPython
nirah_pooh


Joined: 05 Nov 2009
Posts: 0
Reply with quote
hi Lai_mason,

--May i know how you make a patch wxPython using cygwin. Actually i'm already follow the https://wiki.clamwin.com/index.php/Building_ClamWin . These instruction a bit confuse.


clamwin/patches/wxPython-2424.maskededit.patch
clamwin/patches/wxPython-2424.throbber.patch
clamwin/patches/wxPython-2424.timectrl.patch


to each of the files

Python23\lib\site-packages\wxPython\lib\maskedctrl.py
Python23\lib\site-packages\wxPython\lib\throbber.py
Python23\lib\site-packages\wxPython\lib\timectrl.py


Basically this: patch -p1 -i clamwin/patches/wxPython-2424.maskededit.patch
patch -p1 -i clamwin/patches/wxPython-2424.throbber.patch
patch -p1 -i clamwin/patches/wxPython-2424.timectrl.patch


- Delete the files

rm Python23\lib\site-packages\wxPython\lib\*.pyc


--May you describes this steps

TQ
View user's profileSend private message
patch wxPython problem
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
All times are GMT  
Page 1 of 1  

  
  
 Reply to topic