How to apply a patch on windows?

This is an archive of the phpBB 2.0.x support forum. Support for phpBB2 has now ended.
Forum rules
Following phpBB2's EoL, this forum is now archived for reference purposes only.
Please see the following announcement for more information: viewtopic.php?f=14&t=1385785

How to apply a patch on windows?

Postby makc » Tue Nov 30, 2004 9:08 am

If anyone knows of patch.exe for windows?
User avatar
makc
Registered User
 
Posts: 231
Joined: Fri Oct 15, 2004 7:29 am

Postby makc » Tue Nov 30, 2004 9:13 am

trying http://unxutils.sourceforge.net/ at the moment...
User avatar
makc
Registered User
 
Posts: 231
Joined: Fri Oct 15, 2004 7:29 am

Postby makc » Tue Nov 30, 2004 9:28 am

I'm getting patch error: **** malformed patch at line 13: ---- with phpBB-2.0.10_to_2.0.11.patch... any thoughts?
User avatar
makc
Registered User
 
Posts: 231
Joined: Fri Oct 15, 2004 7:29 am

Postby makc » Tue Nov 30, 2004 11:42 am

Anybody :?:
User avatar
makc
Registered User
 
Posts: 231
Joined: Fri Oct 15, 2004 7:29 am

Postby makc » Thu Dec 02, 2004 9:26 am

F*(king nobody. So much for support :( ...
User avatar
makc
Registered User
 
Posts: 231
Joined: Fri Oct 15, 2004 7:29 am

Postby jason_ » Mon Dec 06, 2004 4:32 pm

I'm getting the same error. I'm using the same patch program you are also. I wonder if the patch program isn't compatible with this patch.


Edit: I found a solution, sort of. Check out this thread

http://www.phpbb.com/phpBB/viewtopic.php?t=126015

I opened the patch file in Wordpad, then saved it as a MS-DOS .txt file type. Now the patch will execute, but I get a couple of hunk messages...

C:\phpbb2>patch -cl -p1 < phpbb2011.txt
patching file `admin/admin_board.php'
patching file `common.php'
patching file `groupcp.php'
patching file `includes/constants.php'
Hunk #2 succeeded at 151 (offset 3 lines).
patching file `includes/functions.php'
patching file `includes/functions_post.php'
patching file `includes/functions_search.php'
patching file `includes/topic_review.php'
patching file `includes/usercp_confirm.php'
patching file `includes/usercp_register.php'
patching file `includes/usercp_sendpasswd.php'
patching file `includes/usercp_viewprofile.php'
Hunk #3 succeeded at 232 with fuzz 2.
patching file `login.php'
patching file `privmsg.php'
patching file `profile.php'
patching file `search.php'
patching file `templates/subSilver/admin/board_config_body.tpl'
patching file `viewtopic.php'

It says hunk succeeded, is that OK?

Sorry if that is a stupid questions, this is my first time running a Unix type patch.
Last edited by jason_ on Mon Dec 06, 2004 4:56 pm, edited 2 times in total.
jason_
Registered User
 
Posts: 1
Joined: Mon Dec 06, 2004 4:23 pm

Postby Techie-Micheal » Mon Dec 06, 2004 4:38 pm

jason_ wrote:I'm getting the same error. I'm using the same patch program you are also. I wonder if the patch program isn't compatible with this patch.
That's possible. The patch works with *nix systems, so it probably is the patch.exe

makc: I suggest you read the rules. Excessive bumping. Circumventing the bad word filter. Tsk Tsk.
"PHP?!?! What are you, sick?" - Professor when I said I wanted to write a forensics app in PHP
User avatar
Techie-Micheal
Consultant
 
Posts: 19221
Joined: Sun Oct 14, 2001 12:11 am
Location: ::1

Postby makc » Tue Dec 07, 2004 7:06 am

jason_ wrote:I opened the patch file in Wordpad, then saved it as a MS-DOS .txt file type. Now the patch will execute...


So, that must be END-OF-LINE problem ;)
User avatar
makc
Registered User
 
Posts: 231
Joined: Fri Oct 15, 2004 7:29 am

Postby nnick » Thu Jan 06, 2005 7:22 pm

I apologize if this question is stupid but I'm at the page you say to download the patch.exe (http://unxutils.sourceforge.net/) but I can't find it anywhere for downloading it!!

Any suggestions?

Thank you

Nick
nnick
Registered User
 
Posts: 45
Joined: Thu Feb 13, 2003 8:37 am
Location: Greece

Postby makc » Mon Jan 10, 2005 7:11 am

User avatar
makc
Registered User
 
Posts: 231
Joined: Fri Oct 15, 2004 7:29 am

Postby Ragnus » Wed Mar 02, 2005 6:17 am

I found this when looking for the same thing about the error.

Worked perfect afterwards.

http://www.phpbb.com/phpBB/viewtopic.php?t=126015
Ragnus
Registered User
 
Posts: 2
Joined: Sat Feb 26, 2005 2:37 am

Postby gschan » Fri May 12, 2006 3:35 pm

I have uploaded all of the necessary files to my online forum directory but don't know where to enter the patch command line? I downloaded the patch .exe program but how do I run it on my online directory?
gschan
Registered User
 
Posts: 3
Joined: Wed Dec 21, 2005 6:22 am

Postby Warpcore » Sat Aug 12, 2006 11:51 am

Yeah same question here everything is uploaded but how do i get the patch.exe,to remote to my host server to run the command??
User avatar
Warpcore
Registered User
 
Posts: 15
Joined: Sat Aug 12, 2006 11:47 am

Postby Warpcore » Sat Aug 12, 2006 12:44 pm

Warpcore wrote:Yeah same question here everything is uploaded but how do i get the patch.exe,to remote to my host server to run the command??


nvm
User avatar
Warpcore
Registered User
 
Posts: 15
Joined: Sat Aug 12, 2006 11:47 am

Postby stevefree » Tue Dec 26, 2006 9:28 pm

jason_ wrote:I'm getting the same error. I'm using the same patch program you are also. I wonder if the patch program isn't compatible with this patch.


Edit: I found a solution, sort of. Check out this thread

http://www.phpbb.com/phpBB/viewtopic.php?t=126015

I opened the patch file in Wordpad, then saved it as a MS-DOS .txt file type. Now the patch will execute, but I get a couple of hunk messages...

C:\phpbb2>patch -cl -p1 < phpbb2011.txt
patching file `admin/admin_board.php'
patching file `common.php'
patching file `groupcp.php'
patching file `includes/constants.php'
Hunk #2 succeeded at 151 (offset 3 lines).
patching file `includes/functions.php'
patching file `includes/functions_post.php'
patching file `includes/functions_search.php'
patching file `includes/topic_review.php'
patching file `includes/usercp_confirm.php'
patching file `includes/usercp_register.php'
patching file `includes/usercp_sendpasswd.php'
patching file `includes/usercp_viewprofile.php'
Hunk #3 succeeded at 232 with fuzz 2.
patching file `login.php'
patching file `privmsg.php'
patching file `profile.php'
patching file `search.php'
patching file `templates/subSilver/admin/board_config_body.tpl'
patching file `viewtopic.php'

It says hunk succeeded, is that OK?

Sorry if that is a stupid questions, this is my first time running a Unix type patch.


Hi Jason,

I received the same thing. A bunch of HUNK Offset errors. I think this is ok however being that when I looked at the files everything seem to have been modified correctly.

BUMP

Can anyone speak to this? Is this a good assumption?

-SteveFree

Microsoftpost.com
Dogs4Sale.net
stevefree
Registered User
 
Posts: 51
Joined: Tue Apr 27, 2004 8:21 pm
Location: http://www.petpost.org

Next

Return to 2.0.x Support Forum

Who is online

Users browsing this forum: No registered users and 6 guests