aboutsummaryrefslogtreecommitdiffstats
path: root/archivers/rpm4
diff options
context:
space:
mode:
authorglewis <glewis@FreeBSD.org>2006-09-13 00:06:24 +0800
committerglewis <glewis@FreeBSD.org>2006-09-13 00:06:24 +0800
commit3eec321c0ab95e85726b794b96d86fee5d66d5fc (patch)
tree9cbb01194f6db518378ba5a7e41aa85824d3ccd4 /archivers/rpm4
parent8d65cc5359a67c329d6593019021f4d597b42535 (diff)
downloadfreebsd-ports-gnome-3eec321c0ab95e85726b794b96d86fee5d66d5fc.tar.gz
freebsd-ports-gnome-3eec321c0ab95e85726b794b96d86fee5d66d5fc.tar.zst
freebsd-ports-gnome-3eec321c0ab95e85726b794b96d86fee5d66d5fc.zip
. Fix the build of the Python bindings for Python 2.4. It seems like a
better version of this patch would use bsd.python.mk and PYTHON_VERSION, but I don't have time right now. PR: 103195 Submitted by: Eygene A. Ryabinkin <rea-fbsd@codelabs.ru>
Diffstat (limited to 'archivers/rpm4')
-rw-r--r--archivers/rpm4/files/patch-configure53
1 files changed, 44 insertions, 9 deletions
diff --git a/archivers/rpm4/files/patch-configure b/archivers/rpm4/files/patch-configure
index 17275f7357dd..27b2a46bbf76 100644
--- a/archivers/rpm4/files/patch-configure
+++ b/archivers/rpm4/files/patch-configure
@@ -1,5 +1,7 @@
---- configure.orig Wed Feb 13 16:03:27 2002
-+++ configure Thu Mar 4 12:55:48 2004
+$FreeBSD$
+
+--- configure.orig Thu Feb 14 02:03:27 2002
++++ configure Tue Sep 12 10:54:53 2006
@@ -186,6 +186,8 @@
ac_help="$ac_help
--with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib"
@@ -167,10 +169,41 @@
for ac_func in personality
-@@ -12512,6 +12651,37 @@
+@@ -12512,6 +12651,68 @@
WITH_PYTHON_VERSION=
if test $withval = auto ; then
++ echo $ac_n "checking for python 2.4""... $ac_c" 1>&6
++echo "configure:12517: checking for python 2.4" >&5
++ if test "$cross_compiling" = yes; then
++ withval=yes
++else
++ cat > conftest.$ac_ext <<EOF
++#line 12522 "configure"
++#include "confdefs.h"
++
++#include <python2.4/Python.h>
++main() {
++ exit(strncmp("2.4", PY_VERSION, 3));
++}
++EOF
++if { (eval echo configure:12530: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
++then
++ withval=yes
++else
++ echo "configure: failed program was:" >&5
++ cat conftest.$ac_ext >&5
++ rm -fr conftest*
++ withval=no
++fi
++rm -fr conftest*
++fi
++
++ echo "$ac_t""$withval" 1>&6
++ if test $withval = yes ; then
++ WITH_PYTHON_VERSION="2.4"
++ else
++
+ echo $ac_n "checking for python 2.3""... $ac_c" 1>&6
+echo "configure:12517: checking for python 2.3" >&5
+ if test "$cross_compiling" = yes; then
@@ -205,16 +238,18 @@
echo $ac_n "checking for python 2.2""... $ac_c" 1>&6
echo "configure:12517: checking for python 2.2" >&5
if test "$cross_compiling" = yes; then
-@@ -12577,6 +12747,8 @@
+@@ -12577,6 +12778,10 @@
fi
+fi
+
++fi
++
if test -n "$WITH_PYTHON_VERSION" ; then
WITH_PYTHON_SUBDIR=python
WITH_PYTHON_SUBPACKAGE=1
-@@ -13130,21 +13302,7 @@
+@@ -13130,21 +13335,7 @@
echo "$ac_t""$ROOT_GROUP" 1>&6
@@ -237,7 +272,7 @@
if test "x$tmpdir" = "x"; then
if test -d $varprefix/tmp; then
-@@ -13349,7 +13507,7 @@
+@@ -13349,7 +13540,7 @@
@@ -246,7 +281,7 @@
trap '' 1 2 15
-@@ -13578,6 +13736,8 @@
+@@ -13578,6 +13769,8 @@
s%@WITH_ZLIB_SUBDIR@%$WITH_ZLIB_SUBDIR%g
s%@WITH_ZLIB_INCLUDE@%$WITH_ZLIB_INCLUDE%g
s%@WITH_ZLIB_LIB@%$WITH_ZLIB_LIB%g
@@ -255,7 +290,7 @@
s%@WITH_DB_SUBDIR@%$WITH_DB_SUBDIR%g
s%@WITH_INTERNAL_DB@%$WITH_INTERNAL_DB%g
s%@DBLIBSRCS@%$DBLIBSRCS%g
-@@ -13889,7 +14049,6 @@
+@@ -13889,7 +14082,6 @@
;;
esac
done
@@ -263,7 +298,7 @@
echo timestamp > beecrypt/stamp-h.in
echo timestamp > stamp-h.in
-@@ -13925,7 +14084,7 @@
+@@ -13925,7 +14117,7 @@
esac
done