Packaging mongo

Bug #644608 reported by Jeff Johnson
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
clefos
Confirmed
High
herrold

Bug Description

mongo is currently being installed/tested (on centos5 mongo.rpm5.org) like this:
 cvs -d ':ext:<email address hidden>:/v/rpm/cvs' get mongo
 cd mongo
 scons
 sudo scons install . --prefix=/usr/lib/rpm --nostrip --full
 sudo mkdir -p /var/lib/mongo/db
 sudo ./perftest --dbpath=/var/lib/mongo/db
 mongod --dbpath=/var/lib/mongo/db
 and in another window, straight from the Mongo DB tutorial)
 /usr/lib/rpm/bin/mongo << GO_SYSIN_DD
 use mydb;
 things = db.things;
 j = { name : "mongo" };
 t = { x : 3 };
 things.save(j);
 things.save(t);
 things.find();
 exit;
 GO_SYSIN_DD

There's a (recent 9/6/2006 or so) Fedorable package that has
some initscripts for startup (I cobbled together manually).

There's likely a new release every month or so. I haven't yet looked at
already released mongo-1.7.0.

Note that "mongo" != "mongodb" and "/var/lib/mongo/db" != "/var/lib/mongodb".
But the database path is fully negotiable as needed (the path is already wired
into @rpm5.org tests/mongo and will likely be in /usr/lib/rpm/macros shortly)

Tags: mongo packages
Jeff Johnson (n3npq)
tags: added: mongo packages
Revision history for this message
Jeff Johnson (n3npq) wrote :

This command from a cvs checkout will show changes that were needed:

    $ cvs diff -r mongo-1_6_2

Basically:
1) (minor) Sconstruct fiddle up's for --prefix=/usr/lib/rpm
2) JS changes to re-target GPSEE's specific "known good" version of -ljs

RFP for GPSEE in a moment.

Revision history for this message
herrold (herrold) wrote :

I see:

mongodb /mnt/nfs/var/ftp/pub/mirror/redhat/rawhide/SRPMS/mongodb-1.6.2-2.fc15.src.rpm

and will get that first on the way to VCS CO

Changed in clefos:
status: New → Confirmed
importance: Undecided → Medium
assignee: nobody → herrold (herrold)
Revision history for this message
herrold (herrold) wrote :

[herrold@centos-5 mongodb]$ rpmbuild -ba mongodb.spec
error: Failed build dependencies:
        scons is needed by mongodb-1.6.2-2orc.x86_64
        js-devel is needed by mongodb-1.6.2-2orc.x86_64
        unittest is needed by mongodb-1.6.2-2orc.x86_64
[herrold@centos-5 mongodb]$

Revision history for this message
herrold (herrold) wrote :

scons in in EPEL ... snagging

Revision history for this message
herrold (herrold) wrote :

unittest-0.50-62.6.fc12.src.rpm and rebuilds find on C5

Revision history for this message
herrold (herrold) wrote :

js is in EPEL and rebuilds fine (bug with some warnings ... fodder to file in the Living at Head project) under C5

I have a conflict on the local freeswitch packaging to solve to do the intall, however

Revision history for this message
herrold (herrold) wrote :

FS conflict was /usr/lib64/libjs.so

Revision history for this message
Jeff Johnson (n3npq) wrote :

Here's the cvs diff of the changes that were needed for mongo.

Revision history for this message
herrold (herrold) wrote :

just noticed: "mongo" != "mongodb" no worries -- I'll finish mongodb first

Revision history for this message
Jeff Johnson (n3npq) wrote :

Note that the Fedorable mongodb-* package was DOA for me. YMMV.

There is some silliness within the package no matter what.

Revision history for this message
herrold (herrold) wrote :
Revision history for this message
herrold (herrold) wrote :

added JBJ CO instructions to RPH local VCS

scons: Reading SConscript files ...
NameError: name 'AddOption' is not defined:
  File "/home/herrold/vcs/cvs/rpm-mongo/mongo/SConstruct", line 28:
    AddOption('--prefix',
[sudo] password for herrold:
Sorry, try again.
[sudo] password for herrold:
Sorry, try again.
[sudo] password for herrold:
Sorry, try again.
sudo: 3 incorrect password attempts
[sudo] password for herrold

herrold (herrold)
Changed in clefos:
importance: Medium → High
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.