Page 1 of 1

can't find file to patch at input line 5 - rev13034

Posted: Thu Feb 10, 2011 9:56 am
by Tahvok
Hi there,

I'm new to the game, though I knew the game existed a lot of time ago..
Recently I decided to try the game again, and when straight to the subversion.
I'm using openSuse, so I checked out the vegastrike folder and data folder like mentioned here: http://vegastrike.sourceforge.net/wiki/ ... eckout_SVN
Went here to install all requirements: http://vegastrike.sourceforge.net/wiki/ ... e_from_SVN
Then like was said, run these commands:
./bootstrap-sh
./configure --enable-flags='-O3 -g'

all was good, but after I run 'make' I get this:

patch -N -p0 < boost_gcc44.patch || true
can't find file to patch at input line 5
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|Index: boost/1_35/boost/mpl/aux_/numeric_op.hpp
|===================================================================
|--- boost/1_35/boost/mpl/aux_/numeric_op.hpp (revision 54830)
|+++ boost/1_35/boost/mpl/aux_/numeric_op.hpp (working copy)
--------------------------
File to patch:
if i continue it goes the same with some other files.
and then fails:
albert@TahvokLinux:~/vegastrike/vegastrike> make
patch -N -p0 < boost_gcc44.patch || true
can't find file to patch at input line 5
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|Index: boost/1_35/boost/mpl/aux_/numeric_op.hpp
|===================================================================
|--- boost/1_35/boost/mpl/aux_/numeric_op.hpp (revision 54830)
|+++ boost/1_35/boost/mpl/aux_/numeric_op.hpp (working copy)
--------------------------
File to patch:
Skip this patch? [y]
Skipping patch.
2 out of 2 hunks ignored
can't find file to patch at input line 25
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|Index: boost/1_35/boost/mpl/aux_/advance_backward.hpp
|===================================================================
|--- boost/1_35/boost/mpl/aux_/advance_backward.hpp (revision 54830)
|+++ boost/1_35/boost/mpl/aux_/advance_backward.hpp (working copy)
--------------------------
File to patch:
Skip this patch? [y]
Skipping patch.
2 out of 2 hunks ignored
can't find file to patch at input line 45
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|Index: boost/1_35/boost/mpl/aux_/full_lambda.hpp
|===================================================================
|--- boost/1_35/boost/mpl/aux_/full_lambda.hpp (revision 54830)
|+++ boost/1_35/boost/mpl/aux_/full_lambda.hpp (working copy)
--------------------------
File to patch:
Skip this patch? [y]
Skipping patch.
2 out of 2 hunks ignored
can't find file to patch at input line 65
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|Index: boost/1_35/boost/mpl/aux_/advance_forward.hpp
|===================================================================
|--- boost/1_35/boost/mpl/aux_/advance_forward.hpp (revision 54830)
|+++ boost/1_35/boost/mpl/aux_/advance_forward.hpp (working copy)
--------------------------
File to patch:
Skip this patch? [y]
Skipping patch.
2 out of 2 hunks ignored
can't find file to patch at input line 85
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|Index: boost/1_35/boost/mpl/bind.hpp
|===================================================================
|--- boost/1_35/boost/mpl/bind.hpp (revision 54830)
|+++ boost/1_35/boost/mpl/bind.hpp (working copy)
--------------------------
File to patch:
Skip this patch? [y]
Skipping patch.
3 out of 3 hunks ignored
can't find file to patch at input line 117
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|Index: boost/1_35/boost/mpl/apply.hpp
|===================================================================
|--- boost/1_35/boost/mpl/apply.hpp (revision 54830)
|+++ boost/1_35/boost/mpl/apply.hpp (working copy)
--------------------------
File to patch:
Skip this patch? [y]
Skipping patch.
2 out of 2 hunks ignored
can't find file to patch at input line 138
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|Index: boost/1_35/boost/mpl/apply_wrap.hpp
|===================================================================
|--- boost/1_35/boost/mpl/apply_wrap.hpp (revision 54830)
|+++ boost/1_35/boost/mpl/apply_wrap.hpp (working copy)
--------------------------
File to patch:
Skip this patch? [y]
Skipping patch.
2 out of 2 hunks ignored
patching file boost_patched_gcc44
make all-am
make[1]: Entering directory `/home/albert/vegastrike/vegastrike'
depbase=`echo src/networking/lowlevel/netbuffer.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
g++ -DHAVE_CONFIG_H -I. -DBOOST_PYTHON_NO_PY_SIGNATURES -DBOOST_PYTHON_STATIC_LIB -I./boost/1_35 -DHAVE_AL=1 -DNV_CUBE_MAP=1 -I/usr/include/python -DHAVE_PYTHON=1 -I./src -pipe -DNV_CUBE_MAP -O3 -g -pthread -MT src/networking/lowlevel/netbuffer.o -MD -MP -MF $depbase.Tpo -c -o src/networking/lowlevel/netbuffer.o src/networking/lowlevel/netbuffer.cpp &&\
mv -f $depbase.Tpo $depbase.Po
depbase=`echo src/networking/lowlevel/netui.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
g++ -DHAVE_CONFIG_H -I. -DBOOST_PYTHON_NO_PY_SIGNATURES -DBOOST_PYTHON_STATIC_LIB -I./boost/1_35 -DHAVE_AL=1 -DNV_CUBE_MAP=1 -I/usr/include/python -DHAVE_PYTHON=1 -I./src -pipe -DNV_CUBE_MAP -O3 -g -pthread -MT src/networking/lowlevel/netui.o -MD -MP -MF $depbase.Tpo -c -o src/networking/lowlevel/netui.o src/networking/lowlevel/netui.cpp &&\
mv -f $depbase.Tpo $depbase.Po
In file included from src/networking/lowlevel/netui.h:25:0,
from src/networking/lowlevel/netui.cpp:5:
src/networking/lowlevel/vsnet_socket.h:22:32: fatal error: boost/shared_ptr.hpp: No such file or directory
compilation terminated.
make[1]: *** [src/networking/lowlevel/netui.o] Error 1
make[1]: Leaving directory `/home/albert/vegastrike/vegastrike'
make: *** [all] Error 2
so i checked this folder, and the folder boost/1_35/boost/ did not exist, only 1_35 was there with 'src' folder and 'CMakeLists.txt'
I went to the svn with a browser and this folder was neither in there...
Am I doing something wrong?

Re: can't find file to patch at input line 5 - rev13034

Posted: Thu Feb 10, 2011 2:46 pm
by CLoneWolf
Not "wrong", just "not right enough" ;)
Ignore the boost shipped with VS, install the one included with your distro, and add this parameter

--with-boost=system

to your configure call; this is the currently considered best practice to compile VS on Linux.

If your distro is up to date, a welcome side effect will also be to get a more recent version of boost than the VS one.

Re: can't find file to patch at input line 5 - rev13034

Posted: Sun Nov 20, 2011 3:19 am
by TBeholder
CLoneWolf wrote:Ignore the boost shipped with VS, install the one included with your distro, and add this parameter

--with-boost=system

to your configure call; this is the currently considered best practice to compile VS on Linux.
This causes it to ask the file for patch. Removing (svn delete) the patch causes
make: *** No rule to make target `boost_gcc44.patch', needed by `boost_patched_gcc44'. Stop.
Thus, diff of my fix:

Code: Select all

Index: vegastrike/Makefile.am
===================================================================
--- vegastrike/Makefile.am	(revision 13239)
+++ vegastrike/Makefile.am	(working copy)
@@ -1259,10 +1259,14 @@
 done
 endif
 
-all: boost_patched_gcc44
+all: 
 
+if !BOOSTSYSTEM
+boost_patched_gcc44
+
 boost_patched_gcc44: boost_gcc44.patch
 	patch -N -p0 < boost_gcc44.patch || true
+endif
 
 %.h.gch: %.h
 	$(CXXCOMPILE) -o $@ $<