[PyVault-devel] [pyvault] #175: x86_64 installation problems - Patch fails on setup.py
pyvault <PyVault Development
pyvault-devel at python.org
Mon Jun 12 20:57:49 CEST 2006
#175: x86_64 installation problems - Patch fails on setup.py
------------------------------------------+---------------------------------
Reporter: thomas.crawley at beacon-cs.com | Owner: jeff
Type: defect | Status: new
Priority: normal | Milestone:
Component: build | Version:
Severity: normal | Keywords:
------------------------------------------+---------------------------------
I am trying to install Python 2.4.2 on a x86_64 machine running Centos 4.
I am attempting to generate a binary rpm from the source as there is no
binary rpm for x86_64. I have been running into problems because the patch
python-2.4-lib64.patch fails on the file setup.py.
Here is the error message.
{{{
Installing python24-2.4.2-10.src.rpm
Executing(%prep): /bin/sh -e /home/tcrawley/rpm/tmp/rpm-tmp.24968
Patch #7 (python-2.3.4-lib64-regex.patch):
Patch #8 (python-2.4-lib64.patch):
2 out of 5 hunks FAILED -- saving rejects to file setup.py.rej
3 out of 3 hunks FAILED -- saving rejects to file Modules/Setup.dist.rej
}}}
The patch file on which is failing generates the following setup.py.rej
file
{{{
***************
*** 490,501 ****
# order you wish to search - e.g., search for db4 before db3
db_try_this = {
'db4': {'libs': ('db-4.2', 'db42', 'db-4.1', 'db41',
'db-4.0', 'db4',),
- 'libdirs': ('/usr/local/BerkeleyDB.4.2/lib',
- '/usr/local/BerkeleyDB.4.1/lib',
- '/usr/local/BerkeleyDB.4.0/lib',
- '/usr/local/lib',
'/opt/sfw',
- '/sw/lib',
),
'incdirs': ('/usr/local/BerkeleyDB.4.2/include',
'/usr/local/include/db42',
--- 490,501 ----
# order you wish to search - e.g., search for db4 before db3
db_try_this = {
'db4': {'libs': ('db-4.2', 'db42', 'db-4.1', 'db41',
'db-4.0', 'db4',),
+ 'libdirs': ('/usr/local/BerkeleyDB.4.2/lib64',
+ '/usr/local/BerkeleyDB.4.1/lib64',
+ '/usr/local/BerkeleyDB.4.0/lib64',
+ '/usr/local/lib64',
'/opt/sfw',
+ '/sw/lib64',
),
'incdirs': ('/usr/local/BerkeleyDB.4.2/include',
'/usr/local/include/db42',
***************
*** 508,518 ****
'/usr/include/db4',
)},
'db3': {'libs': ('db-3.3', 'db-3.2', 'db3',),
- 'libdirs': ('/usr/local/BerkeleyDB.3.3/lib',
- '/usr/local/BerkeleyDB.3.2/lib',
- '/usr/local/lib',
- '/opt/sfw/lib',
- '/sw/lib',
),
'incdirs': ('/usr/local/BerkeleyDB.3.3/include',
'/usr/local/BerkeleyDB.3.2/include',
--- 508,518 ----
'/usr/include/db4',
)},
'db3': {'libs': ('db-3.3', 'db-3.2', 'db3',),
+ 'libdirs': ('/usr/local/BerkeleyDB.3.3/lib64',
+ '/usr/local/BerkeleyDB.3.2/lib64',
+ '/usr/local/lib64',
+ '/opt/sfw/lib64',
+ '/sw/lib64',
),
'incdirs': ('/usr/local/BerkeleyDB.3.3/include',
'/usr/local/BerkeleyDB.3.2/include',
}}}
I have looked at setup.py and it seems quite different from the patch
file. I am not going to reproduce the setup.py file here as you already
have it :-).
Here is the Setup.dist.rej file. I haven't compared the patch to the
original.
{{{
***************
*** 325,331 ****
# *** Uncomment and edit to reflect your Tcl/Tk versions:
-ltk -ltcl \
# *** Uncomment and edit to reflect where your X11 libraries are:
- -L/usr/X11R6/lib \
# *** Or uncomment this for Solaris:
# -L/usr/openwin/lib \
# *** Uncomment these for TOGL extension only:
--- 325,331 ----
# *** Uncomment and edit to reflect your Tcl/Tk versions:
-ltk -ltcl \
# *** Uncomment and edit to reflect where your X11 libraries are:
+ -L/usr/X11R6/lib64 \
# *** Or uncomment this for Solaris:
# -L/usr/openwin/lib \
# *** Uncomment these for TOGL extension only:
***************
*** 395,401 ****
# and the subdirectory of PORT where you built it.
DBLIBVER=4.2
DBINC=/usr/include/db4
- DBLIB=/usr/lib
_bsddb _bsddb.c -I$(DBINC) -L$(DBLIB) -ldb-$(DBLIBVER)
# Historical Berkeley DB 1.85
--- 395,401 ----
# and the subdirectory of PORT where you built it.
DBLIBVER=4.2
DBINC=/usr/include/db4
+ DBLIB=/usr/lib64
_bsddb _bsddb.c -I$(DBINC) -L$(DBLIB) -ldb-$(DBLIBVER)
# Historical Berkeley DB 1.85
***************
*** 441,447 ****
# Andrew Kuchling's zlib module.
# This require zlib 1.1.3 (or later).
# See http://www.gzip.org/zlib/
- zlib zlibmodule.c -I$(prefix)/include -L$(exec_prefix)/lib -lz
# Interface to the Expat XML parser
#
--- 441,447 ----
# Andrew Kuchling's zlib module.
# This require zlib 1.1.3 (or later).
# See http://www.gzip.org/zlib/
+ zlib zlibmodule.c -I$(prefix)/include -L$(exec_prefix)/lib64 -lz
# Interface to the Expat XML parser
#
}}}
Can you please update the patches and let me know when the issue is
resolved ? I will be happy to assist you in any way I can.
Thanks
Tom
--
Ticket URL: <https://opensvn.csie.org/traccgi/pyvault/ticket/175>
pyvault <http://example.com/>
My example project
More information about the PyVault-devel
mailing list