Bug 200338 - devel/mongo-c-driver: Update to 1.1.9; Add new port devel/libbson
Summary: devel/mongo-c-driver: Update to 1.1.9; Add new port devel/libbson
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Some People
Assignee: Kurt Jaeger
URL:
Keywords: needs-patch, needs-qa
Depends on:
Blocks:
 
Reported: 2015-05-19 21:53 UTC by Tom Pusateri
Modified: 2015-10-18 19:36 UTC (History)
4 users (show)

See Also:
linimon: maintainer-feedback? (waitman)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Tom Pusateri 2015-05-19 21:53:51 UTC
The port for mongo-c-driver is out of date. I've created an update to the latest version (1.1.6) here: https://github.com/pusateri/ports/tree/master/devel

libbson has been broken out into a different package and so there is a new port for libbson there as well.

I can submit it in a different format if desired.
Comment 1 Mark Linimon freebsd_committer freebsd_triage 2015-05-20 16:24:09 UTC
Reformat Summary and notify maintainer of existing port.
Comment 2 Tom Pusateri 2015-06-02 01:25:50 UTC
I just updated https://github.com/pusateri/ports/tree/master/devel with some minor edits to remove portlint warnings.
Comment 3 commit-hook freebsd_committer freebsd_triage 2015-07-03 04:13:34 UTC
A commit references this bug:

Author: wen
Date: Fri Jul  3 04:12:59 UTC 2015
New revision: 391214
URL: https://svnweb.freebsd.org/changeset/ports/391214

Log:
  libbson is a library providing useful routines related to building,
  parsing, and iterating BSON documents. It is a useful base for those
  wanting to write high-performance C extensions to higher level
  languages such as python, ruby, or perl.

  https://github.com/mongodb/libbson

  PR:		200338
  Submitted by:	pusateri@bangj.com

Changes:
  head/devel/Makefile
  head/devel/libbson/
  head/devel/libbson/Makefile
  head/devel/libbson/distinfo
  head/devel/libbson/pkg-descr
  head/devel/libbson/pkg-plist
Comment 4 Wen Heping freebsd_committer freebsd_triage 2015-07-03 04:23:49 UTC
Hi,

  Is the email of maintainer and creator another of your mail ?

wen
Comment 5 Kubilay Kocak freebsd_committer freebsd_triage 2015-07-03 05:14:08 UTC
Thanks for your submission Tom.

Could you please include, as attachments:

 * Changes as a unified diff against ports head
 * QA results for:

    portlint -AC
    poudriere testport (or bulk -t)
Comment 6 Tom Pusateri 2015-07-03 09:41:54 UTC
(In reply to Wen Heping from comment #4)

No, I am not the maintainer, just someone interested in getting the port updated.
Comment 7 Wen Heping freebsd_committer freebsd_triage 2015-07-04 00:19:08 UTC
(In reply to Tom Pusateri from comment #6)
I mean libbson.

Because the email of libbson's maintainer and creator is waitman@waitman.net, is it another of your email ?

wen
Comment 8 Tom Pusateri 2015-09-15 22:18:44 UTC
This is not fixed. mongo-c-driver is still at 0.7.1. I am not the maintainer. I have been trying to get this port updated for over a year and the maintainer appears to be inactive. I think a new maintainer is needed.
Comment 9 Kurt Jaeger freebsd_committer freebsd_triage 2015-10-17 17:58:08 UTC
I took your port from 

https://github.com/pusateri/ports/tree/master/devel/mongo-c-driver

and tried to build it on 11amd64. It failed with:

/bin/sh ./libtool  --tag=CC   --mode=link cc -I./src/mongoc -I./src/mongoc -I/usr/local/include/libbson-1.0   -O2 -pipe  -fstack-protector -fno-strict-aliasing -Wall -Waggregate-return -Wcast-align -Wdeclaration-after-statement -Wempty-body -Wformat -Wformat-nonliteral -Wformat-security -Winit-self -Winline -Wmissing-include-dirs -Wno-strict-aliasing -Wno-uninitialized -Wredundant-decls -Wreturn-type -Wshadow -Wswitch-default -Wswitch-enum -Wundef -Wuninitialized -O2  -fstack-protector -o filter-bsondump examples/filter_bsondump-filter-bsondump.o libmongoc-1.0.la -L/usr/local/lib -lbson-1.0   
/usr/bin/ld: undefined reference to symbol `pthread_create@@FBSD_1.0' (try adding -lthr)
//lib/libthr.so.3: could not read symbols: Bad value
cc: error: linker command failed with exit code 1 (use -v to see invocation)
Makefile:2047: recipe for target 'test-libmongoc' failed
gmake[2]: *** [test-libmongoc] Error 1

Any ideas ?
Comment 10 Tom Pusateri 2015-10-18 18:25:38 UTC
(In reply to Kurt Jaeger from comment #9)

My port tree on github is for version 1.1.6 and you are building it against libbson 1.1.9 that is already in the ports tree. These two libraries must be kept in sync. If you try to build my port of mongo-c-driver 1.1.6 against my version of libbson 1.1.6, it builds fine. So something changed between 1.1.6 and 1.1.9. I will update my github tree to 1.1.9 so that it will build agains the libbson 1.1.9 already in the tree. Then I can update my tree to the latest version that is 1.2.0.
Comment 11 Kurt Jaeger freebsd_committer freebsd_triage 2015-10-18 18:46:06 UTC
Tested as mongo-c-driver 1.1.9, same problem ?
Comment 12 Tom Pusateri 2015-10-18 18:50:14 UTC
(In reply to Kurt Jaeger from comment #11)

Right, I think the issue was created by changes in 1.1.7 which tried to fix concurrency issues in sasl2. I will update my tree for 1.1.9 if you give me a day or so.
Comment 13 Tom Pusateri 2015-10-18 19:00:18 UTC
(In reply to Tom Pusateri from comment #12)

Ok, it was easier than I thought. I just update my tree:
https://github.com/pusateri/ports/tree/master/devel/mongo-c-driver

It needed an explicit LDFLAG (-pthread)
Comment 14 Kurt Jaeger freebsd_committer freebsd_triage 2015-10-18 19:19:24 UTC
Test-builds on 11cur, 10.2a+i, 9.3 look good.

Those two ports depend on this:

net-mgmt/collectd5
net-mgmt/pmacct
Comment 15 Tom Pusateri 2015-10-18 19:27:36 UTC
(In reply to Tom Pusateri from comment #13)

I just updated my github tree for mongo-c-driver to use newer ports infrastructure for autoreconf to match libbson port. I also removed the static libraries since they don't build anymore.
Comment 16 commit-hook freebsd_committer freebsd_triage 2015-10-18 19:33:40 UTC
A commit references this bug:

Author: pi
Date: Sun Oct 18 19:33:03 UTC 2015
New revision: 399627
URL: https://svnweb.freebsd.org/changeset/ports/399627

Log:
  devel/mongo-c-driver: 0.7.1 -> 1.1.9

  Changes:
    https://github.com/mongodb/mongo-c-driver/releases

  PR:		200338
  Submitted by:	Tom Pusateri <pusateri@bangj.com>
  Approved by:	maintainer timeout

Changes:
  head/devel/mongo-c-driver/Makefile
  head/devel/mongo-c-driver/distinfo
  head/devel/mongo-c-driver/files/
  head/devel/mongo-c-driver/pkg-descr
  head/devel/mongo-c-driver/pkg-plist
Comment 17 Kurt Jaeger freebsd_committer freebsd_triage 2015-10-18 19:36:44 UTC
Committed, thanks!