Bug 289732 - [Change request]: devel/mongo-c-driver: Enable SRV by default
Summary: [Change request]: devel/mongo-c-driver: Enable SRV by default
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Jason W. Bacon
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-09-20 23:49 UTC by Jason W. Bacon
Modified: 2025-09-21 23:26 UTC (History)
2 users (show)

See Also:
ports: maintainer-feedback+


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jason W. Bacon freebsd_committer freebsd_triage 2025-09-20 23:49:37 UTC
We are deploying an application utilizing mongodb+srv:// uris, and it would be nice to be able to use the default binary package for this.

--- a/devel/mongo-c-driver/Makefile
+++ b/devel/mongo-c-driver/Makefile
@@ -33,7 +33,7 @@ CMAKE_OFF=    BUILD_TESTING \
 
 OPTIONS_DEFINE=                CRYPTOPROFILE DOCS ICU MONGODBAWS RDTSCP SASL SNAPPY \
                        SRV SSL ZSTD
-OPTIONS_DEFAULT=       SSL
+OPTIONS_DEFAULT=       SRV SSL
 OPTIONS_SUB=           yes
 
 CRYPTOPROFILE_DESC=    Use system crypto profile (requires OpenSSL)
Comment 1 Krzysztof 2025-09-21 20:32:21 UTC
It is OK for me :-))) As I understand you have patch which covers this new knob?
Comment 2 Jason W. Bacon freebsd_committer freebsd_triage 2025-09-21 22:49:26 UTC
(In reply to Krzysztof from comment #1)

Just the OPTIONS_DEFAULT change shown above.  Do you believe something more is necessary?  I didn't bother with an attachment since it's so trivial, if that's what you're getting at.  Thanks...
Comment 3 commit-hook freebsd_committer freebsd_triage 2025-09-21 23:26:02 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=ef680967ddb686418f7936a08ff518184fdc1fc7

commit ef680967ddb686418f7936a08ff518184fdc1fc7
Author:     Jason W. Bacon <jwb@FreeBSD.org>
AuthorDate: 2025-09-21 23:23:16 +0000
Commit:     Jason W. Bacon <jwb@FreeBSD.org>
CommitDate: 2025-09-21 23:25:35 +0000

    devel/mongo-c-driver: Enable SRV option by default

    Adds support for mongodb+srv:// uris

    PR:             289732
    Approved by:    ports@bsdserwis.com

 devel/mongo-c-driver/Makefile | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)