Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-4591

MongoDB 2.0.2 fails to build: 'str' object has no attribute 'rpartition'

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Major - P3
    • Resolution: Fixed
    • 2.0.2
    • 2.0.3, 2.1.0
    • Build
    • RHEL 5, Python 2.4
    • Linux

    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] )

      Attachments

        1. mongodb-2.0.2-scons-python24.patch
          2 kB
          Vladimir Rusinov
        2. mongodb-fix-oldpython.patch
          3 kB
          Nathaniel McCallum

        Activity

          People

            dcrosta Daniel Crosta
            vrusinov Vladimir Rusinov
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: