]> git.pld-linux.org Git - packages/rpm.git/blob - rpm-python_2_3.patch
- sync X/non-X: added Applications/Science
[packages/rpm.git] / rpm-python_2_3.patch
1 --- rpm-4.2/configure.ac.orig   2003-05-15 10:53:44.000000000 +0200
2 +++ rpm-4.2/configure.ac        2003-05-17 13:00:00.000000000 +0200
3 @@ -897,6 +897,18 @@
4      AC_MSG_RESULT($withval)
5      if test $withval = yes ; then
6        WITH_PYTHON_VERSION="1.5"
7 +    else
8 +         AC_MSG_CHECKING(for python 2.3)
9 +    AC_TRY_RUN([
10 +       #include <python2.3/Python.h>
11 +       main() {
12 +        exit(strncmp("2.3", PY_VERSION, 3));
13 +        } ],
14 +       withval=yes, withval=no, withval=yes)
15 +       AC_MSG_RESULT($withval)
16 +       if test $withval = yes ; then
17 +       WITH_PYTHON_VERSION="2.3"
18 +       fi
19      fi
20    fi
21  
22 --- rpm-4.2/python/Makefile.am.orig     2003-05-15 10:49:57.000000000 +0200
23 +++ rpm-4.2/python/Makefile.am  2003-05-17 13:04:14.000000000 +0200
24 @@ -6,7 +6,7 @@
25  
26  PYVER= @WITH_PYTHON_VERSION@
27  
28 -pylibdir = $(shell python -c 'import sys; print sys.path[1]')
29 +pylibdir = $(prefix)/lib/python${PYVER}
30  pyincdir = $(prefix)/include/python${PYVER}
31  
32  SUBDIRS = rpmdb test
33 --- rpm-4.2/python/rpmdb/Makefile.am~   2003-01-09 00:21:38.000000000 +0100
34 +++ rpm-4.2/python/rpmdb/Makefile.am    2003-05-17 13:03:53.000000000 +0200
35 @@ -4,7 +4,7 @@
36  
37  PYVER= @WITH_PYTHON_VERSION@
38  
39 -pylibdir = $(shell python -c 'import sys; print sys.path[1]')
40 +pylibdir = $(prefix)/lib/python${PYVER}
41  
42  EXTRA_DIST = \
43         __init__.py dbobj.py db.py dbrecio.py dbshelve.py dbtables.py dbutils.py
This page took 0.029324 seconds and 3 git commands to generate.