Skip to content

Commit 488ea4b

Browse files
committed
Don't fail so hard the second time you compile.
1 parent 5fa6124 commit 488ea4b

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

recipes/c_igraph/recipe.sh

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -32,15 +32,15 @@ function build_c_igraph() {
3232
cd $BUILD_c_igraph
3333

3434
push_arm
35-
try patch $BUILD_c_igraph/src/Makefile.am $RECIPE_c_igraph/Makefile.am.patch
35+
patch -Nr - $BUILD_c_igraph/src/Makefile.am $RECIPE_c_igraph/Makefile.am.patch
3636
export OLD_CPPFLAGS="$CPPFLAGS"
3737
export CPPFLAGS="$CPPFLAGS -I$ANDROIDNDK/sources/cxx-stl/gnu-libstdc++/4.4.3/include -I$ANDROIDNDK/sources/cxx-stl/gnu-libstdc++/4.4.3/libs/armeabi/include -L$ANDROIDNDK/platforms/android-$ANDROIDAPI/arch-arm/usr/lib"
3838
try ./configure --prefix="$BUILD_PATH/python-install" --build=i686-pc-linux-gnu --host=arm-linux-eabi
3939
export CPPFLAGS="$OLD_CPPFLAGS"
40-
try cp -f $RECIPE_c_igraph/arith.h $BUILD_c_igraph/src/f2c/arith.h
41-
try patch $BUILD_c_igraph/src/f2c/sysdep1.h $RECIPE_c_igraph/sysdep1.h.patch
42-
try patch $BUILD_c_igraph/src/f2c/uninit.c $RECIPE_c_igraph/uninit.c.patch
43-
try patch $BUILD_c_igraph/config.h $RECIPE_c_igraph/config.h.patch
40+
cp -f $RECIPE_c_igraph/arith.h $BUILD_c_igraph/src/f2c/arith.h
41+
patch -Nr - $BUILD_c_igraph/src/f2c/sysdep1.h $RECIPE_c_igraph/sysdep1.h.patch
42+
patch -Nr - $BUILD_c_igraph/src/f2c/uninit.c $RECIPE_c_igraph/uninit.c.patch
43+
patch -N $BUILD_c_igraph/config.h $RECIPE_c_igraph/config.h.patch
4444
try $MAKE
4545
try $MAKE install
4646

recipes/igraph/recipe.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ RECIPE_igraph=$RECIPES_PATH/igraph
1818

1919

2020
function prebuild_igraph() {
21-
try patch $BUILD_igraph/setup.py $RECIPE_igraph/setup.py.patch
22-
try patch $BUILD_igraph/setup.cfg $RECIPE_igraph/setup.cfg.patch
21+
patch -Nr - $BUILD_igraph/setup.py $RECIPE_igraph/setup.py.patch
22+
patch -Nr - $BUILD_igraph/setup.cfg $RECIPE_igraph/setup.cfg.patch
2323
}
2424

2525
function shouldbuild_igraph() {

0 commit comments

Comments
 (0)