[SERVER-4591] MongoDB 2.0.2 fails to build: 'str' object has no attribute 'rpartition' Created: 01/Jan/12  Updated: 11/Jul/16  Resolved: 23/Jan/12

Status: Closed
Project: Core Server
Component/s: Build
Affects Version/s: 2.0.2
Fix Version/s: 2.0.3, 2.1.0

Type: Bug Priority: Major - P3
Reporter: Vladimir Rusinov Assignee: Daniel Crosta
Resolution: Done Votes: 0
Labels: build
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

RHEL 5, Python 2.4


Attachments: File mongodb-2.0.2-scons-python24.patch     File mongodb-fix-oldpython.patch    
Operating System: Linux
Participants:

 Description   

2.0.2 fails to build on RHEL5 with python 2.4 due to missing str.rpartition on python < 2.5:

+ scons -j3 --extralib=ncurses,termcap --sharedclient .
scons: Reading SConscript files ...
AttributeError: 'str' object has no attribute 'rpartition':
File "/home/vrusinov/muranorepo/BUILD/mongodb-src-r2.0.2/SConstruct", line 185:
for shortName in getThirdPartyShortNames():
File "/home/vrusinov/muranorepo/BUILD/mongodb-src-r2.0.2/SConstruct", line 41:
lst.append( x.rpartition( "." )[0] )



 Comments   
Comment by Daniel Crosta [ 23/Jan/12 ]

This is fixed on the v2.0 branch and master. Version 2.0.3 and 2.1 should build cleanly with python 2.4

Comment by auto [ 23/Jan/12 ]

Author:

{u'login': u'dcrosta', u'name': u'Dan Crosta', u'email': u'dcrosta@late.am'}

Message: SERVER-4591: python-2.4 compatible version of rpartition
Branch: master
https://github.com/mongodb/mongo/commit/ff87e84c3e8f881b163cd709f5d9c6046d23772a

Comment by auto [ 21/Jan/12 ]

Author:

{u'login': u'dcrosta', u'name': u'Dan Crosta', u'email': u'dcrosta@late.am'}

Message: SERVER-4591: python-2.4 compatible version of rpartition
Branch: v2.0
https://github.com/mongodb/mongo/commit/c3449caf1a69c0954647a6a421764e3ad59cccbe

Comment by Nathaniel McCallum [ 17/Jan/12 ]

This is the patch we are using in Fedora

Comment by Eliot Horowitz (Inactive) [ 02/Jan/12 ]

There are some large changes to the file pending - once those are done - will get this change in.

Comment by Vladimir Rusinov [ 01/Jan/12 ]

Patch to allow mongodb build with python 2.4. Would not work with <2.4 (due to rsplit was added on 2.4).

Comment by Eliot Horowitz (Inactive) [ 01/Jan/12 ]

Before we resolve this - might be good to have a buildbot machine with python 2.4

Generated at Thu Feb 08 03:06:26 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.