Bug 297570 - devel/jsoncpp: Update to 1.9.8
Summary: devel/jsoncpp: Update to 1.9.8
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: Daniel Engberg
URL: https://github.com/open-source-parser...
Keywords:
Depends on:
Blocks:
 
Reported: 2026-08-16 03:31 UTC by Daniel Engberg
Modified: 2026-09-01 22:59 UTC (History)
2 users (show)

See Also:
bugzilla: maintainer-feedback? (yuri)


Attachments
Patch for jsoncpp (3.22 KB, patch)
2026-08-16 03:31 UTC, Daniel Engberg
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Daniel Engberg freebsd_committer freebsd_triage 2026-08-16 03:31:34 UTC
Created attachment 273809 [details]
Patch for jsoncpp

* Change install dir to match other major (Linux) distros
* Some small adjustments port Makefile to closer follow Porters Handbook

Compile and runtime tested on FreeBSD 15.1-RELEASE (amd64) (make, make check-plist)

Poudriere testport OK 15.1-RELEASE (amd64)
Poudriere testport OK 14.4-RELEASE (i386)
Poudriere testport OK 14.4-RELEASE (amd64)

Mini-exp run looks fine
Comment 1 commit-hook freebsd_committer freebsd_triage 2026-08-30 20:55:54 UTC
A commit in branch main references this bug:

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

commit 9d1b7732976723160adfd2c6c4240e34555ac30c
Author:     Daniel Engberg <diizzy@FreeBSD.org>
AuthorDate: 2026-08-30 20:49:55 +0000
Commit:     Daniel Engberg <diizzy@FreeBSD.org>
CommitDate: 2026-08-30 20:54:35 +0000

    devel/jsoncpp: Update to 1.9.8

    * Change install dir to match other major (Linux) distros
    * Some small adjustments port Makefile to closer follow Porters Handbook
    * Import patch from Debian, prefer shared library over static

    Changelog:
    https://github.com/open-source-parsers/jsoncpp/releases/tag/1.9.8

    Reference:
    https://sources.debian.org/patches/libjsoncpp/1.9.8-2/0001-Prefer-shared-library-for-namespaced-target.patch/

    PR:             297570
    Approved by:    maintainer timeout, 2+ weeks

 devel/jsoncpp/Makefile                             | 12 ++++++-----
 devel/jsoncpp/distinfo                             |  6 +++---
 .../patch-jsoncpp-namespaced-targets.cmake (new)   | 18 +++++++++++++++++
 .../patch-jsoncppConfig.cmake.meson.in (gone)      | 23 ----------------------
 devel/jsoncpp/pkg-plist                            | 22 ++++++++++-----------
 5 files changed, 39 insertions(+), 42 deletions(-)
Comment 2 Tomoaki AOKI 2026-09-01 09:35:34 UTC
(In reply to commit-hook from comment #1)
Please bump consumer ports as pointed out by sunpoet@
at dev-commits-ports-main ML.
  https://lists.freebsd.org/archives/dev-commits-ports-main/2026-August/208660.html

This upgrade bumps shlib version of libjsoncpp.so from lib/libjsoncpp.so.26
to lib/libjsoncpp.so.27, causing poudriere builds with -S optionto fail.

At the same time, upgrades with any bare-metal upgrading tools that doesn't
preserve old libraries by default should cause runtime breakages.
Comment 3 Vladimir Druzenko freebsd_committer freebsd_triage 2026-09-01 11:58:10 UTC
patch-jsoncpp-namespaced-targets.cmake broke graphics/openxr:
https://pkg-status.freebsd.org/beefy22/data/144amd64-default/c3d47bb8f5ff/logs/openxr-1.1.62.log
graphics/openxr build fine without this patch.
Comment 4 Daniel Engberg freebsd_committer freebsd_triage 2026-09-01 16:09:13 UTC
(In reply to Vladimir Druzenko from comment #3)
I'll have a look, thanks for reporting
Comment 5 Vladimir Druzenko freebsd_committer freebsd_triage 2026-09-01 18:57:12 UTC
(In reply to Daniel Engberg from comment #4)
I suppose the best option would be to force graphics/openxr to dynamically link with libjsoncpp.so instead of statically with libjsoncpp.a, but I don't understand how to do that…
Comment 6 Daniel Engberg freebsd_committer freebsd_triage 2026-09-01 19:17:41 UTC
(In reply to Vladimir Druzenko from comment #5)
Please give https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=298099 a try