Go Back   ZeroC Forums > Help Center

Reply
 
LinkBack Thread Tools Rate Thread Display Modes
  #1 (permalink)  
Old 09-05-2008
joelihn joelihn is offline
Registered User
 
Name: lijun zhou
Organization: precision imaing system
Project: pisys
 
Join Date: Sep 2008
Posts: 2
Cannot patch protobuf.patch

OS: Windows XP
ICE: 3.3.0

I have a problem about how to patch the protobuf.patch file?


1.I have extracted the Ice source distribution into C:\Ice-3.3.0
2.The patch is located in C:\protobuf.patch
3.The patch utility is in my PATH


# Change to the Ice source directory:

> cd \Ice-3.3.0

# Apply the patch:

> patch -p0 --binary < C:\protobuf.patch


But patching seems not succeed
The following is the response:

..........
bash-3.2$ !patch
patch.exe -p0 --binary < C:/protobuf.patch
(Stripping trailing CRs from patch.)
patching file ./cpp/demo/Ice/protobuf/Client.cpp
(Stripping trailing CRs from patch.)
patching file ./cpp/demo/Ice/protobuf/config.client
(Stripping trailing CRs from patch.)
patching file ./cpp/demo/Ice/protobuf/config.server
(Stripping trailing CRs from patch.)
patching file ./cpp/demo/Ice/protobuf/.depend
(Stripping trailing CRs from patch.)
patching file ./cpp/demo/Ice/protobuf/Hello.ice
(Stripping trailing CRs from patch.)
patching file ./cpp/demo/Ice/protobuf/HelloI.cpp
(Stripping trailing CRs from patch.)
patching file ./cpp/demo/Ice/protobuf/HelloI.h
(Stripping trailing CRs from patch.)
patching file ./cpp/demo/Ice/protobuf/Makefile
(Stripping trailing CRs from patch.)
patching file ./cpp/demo/Ice/protobuf/Makefile.mak
(Stripping trailing CRs from patch.)
patching file ./cpp/demo/Ice/protobuf/Person.proto
(Stripping trailing CRs from patch.)
patching file ./cpp/demo/Ice/protobuf/README
(Stripping trailing CRs from patch.)
patching file ./cpp/demo/Ice/protobuf/Server.cpp
(Stripping trailing CRs from patch.)
can't find file to patch at input line 588
Perhaps you used the wrong -p or --strip option?

The text leading up to this was:
--------------------------
|diff -c -r -N ../Ice-3.3.0/cpp/include/Slice/CPlusPlusUtil.h ./cpp/include/Slic
e/CPlusPlusUtil.h
|*** ../Ice-3.3.0/cpp/include/Slice/CPlusPlusUtil.h 2008-05-17 01:24:00.0000
00000 +0800
|--- ./cpp/include/Slice/CPlusPlusUtil.h 2008-07-19 03:29:13.000000000 +0
800
--------------------------
File to patch:
...........

And i have converted the protobuf.patch file to a DOS file.

Thanks in advance!
Reply With Quote
  #2 (permalink)  
Old 09-05-2008
matthew's Avatar
matthew matthew is offline
ZeroC Staff
 
Name: Matthew Newhook
Organization: ZeroC, Inc.
Project: Internet Communications Engine
 
Join Date: Feb 2003
Location: NL, Canada
Posts: 1,088
What patch utility are you using?
Reply With Quote
  #3 (permalink)  
Old 09-06-2008
joelihn joelihn is offline
Registered User
 
Name: lijun zhou
Organization: precision imaing system
Project: pisys
 
Join Date: Sep 2008
Posts: 2
Quote:
Originally Posted by matthew View Post
What patch utility are you using?
I download from
Patch for Windows

patch.exe -v:
patch 2.5.9
Copyright (C) 1988 Larry Wall
Copyright (C) 2003 Free Software Foundation, Inc.

This program comes with NO WARRANTY, to the extent permitted by law.
You may redistribute copies of this program
under the terms of the GNU General Public License.
For more information about these matters, see the file named COPYING.

written by Larry Wall and Paul Eggert
Reply With Quote
  #4 (permalink)  
Old 09-08-2008
matthew's Avatar
matthew matthew is offline
ZeroC Staff
 
Name: Matthew Newhook
Organization: ZeroC, Inc.
Project: Internet Communications Engine
 
Join Date: Feb 2003
Location: NL, Canada
Posts: 1,088
I'm not sure what you are doing wrong, but I just tried this utility and as long as the .patch file is converted to DOS mode it worked fine for me. If the mode of the file is not converted, I ended up with an assert when running the patch utility.

Here is what I did:
- Unzip Ice-3.3.0.zip
- Converted the patch file to dos mode.
- In the Ice-3.3.0 directory:

Code:
C:\Users\matthew\test\Ice-3.3.0>..\patch\bin\patch.exe -p0 < ..\protobuf.patch
patching file ./cpp/demo/Ice/protobuf/Client.cpp
patching file ./cpp/demo/Ice/protobuf/config.client
patching file ./cpp/demo/Ice/protobuf/config.server
patching file ./cpp/demo/Ice/protobuf/.depend
patching file ./cpp/demo/Ice/protobuf/Hello.ice
patching file ./cpp/demo/Ice/protobuf/HelloI.cpp
patching file ./cpp/demo/Ice/protobuf/HelloI.h
patching file ./cpp/demo/Ice/protobuf/Makefile
patching file ./cpp/demo/Ice/protobuf/Makefile.mak
patching file ./cpp/demo/Ice/protobuf/Person.proto
patching file ./cpp/demo/Ice/protobuf/README
patching file ./cpp/demo/Ice/protobuf/Server.cpp
patching file ./cpp/include/Slice/CPlusPlusUtil.h
patching file ./cpp/include/Slice/JavaUtil.h
patching file ./cpp/src/Slice/CPlusPlusUtil.cpp
patching file ./cpp/src/Slice/JavaUtil.cpp
patching file ./cpp/src/Slice/PythonUtil.cpp
patching file ./cpp/src/slice2cpp/Gen.cpp
patching file ./java/demo/Ice/protobuf/ant/ProtocTask.java
patching file ./java/demo/Ice/protobuf/build.xml
patching file ./java/demo/Ice/protobuf/Client.java
patching file ./java/demo/Ice/protobuf/config.client
patching file ./java/demo/Ice/protobuf/config.server
patching file ./java/demo/Ice/protobuf/Hello.ice
patching file ./java/demo/Ice/protobuf/HelloI.java
patching file ./java/demo/Ice/protobuf/Person.proto
patching file ./java/demo/Ice/protobuf/README
patching file ./java/demo/Ice/protobuf/Server.java
patching file ./py/demo/Ice/protobuf/Client.py
patching file ./py/demo/Ice/protobuf/config.client
patching file ./py/demo/Ice/protobuf/config.server
patching file ./py/demo/Ice/protobuf/Hello.ice
patching file ./py/demo/Ice/protobuf/Person.proto
patching file ./py/demo/Ice/protobuf/README
patching file ./py/demo/Ice/protobuf/Server.py
patching file ./py/modules/IcePy/Init.cpp
patching file ./py/modules/IcePy/Types.cpp
patching file ./py/modules/IcePy/Types.h
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Ice.Patch.Application and Ice.Patch.Server richardma Help Center 1 11-15-2007 10:52 AM
how to patch? fengxb Help Center 4 06-21-2007 05:16 AM
Patch for Ice-3.1.0: icegridadmin application patch bug fix mpugach Patches 1 08-01-2006 07:26 AM
Patch #2 for Ice for C++, 2.0.0 michi Patches 0 12-07-2004 09:50 PM
Patch #1 for Ice for C++, 2.0.0 michi Patches 0 12-01-2004 03:28 AM


All times are GMT -4. The time now is 12:36 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.0.0
(c) 2008 ZeroC, Inc.