Created attachment 249308 [details] Fix for the JSON and YAML emitter The attached patch fixes a regression in libucl 0.9.0 for which no upstream fix has been released yet. It restores the ability to emit valid JSON and YAML output rather than the invalid output seen in #277666 (incorrectly blamed at uclcmd instead of libucl).
Here is an equivalent upstream commit fixing the issue (not yet part of a tagged release): https://github.com/vstakhov/libucl/commit/da7aacb3d46fbc206ec6f2431f503eed843a3039
I am fixing this but this is not the way of submitting patches in the ports tree. For future references use `make makepatch` in the tree and submit a git diff of the ports tree itself. As an example for this case this would have been something like this: # cd /usr/ports/textproc/libucl # make patch # cp work/libucl-0.9.0/src/ucl_emitter.c{,.orig} # edit work/libucl-0.9.0/src/ucl_emitter.c # make makepatch # git add . # git commit # git format-patch -1 HEAD However when there are upstream patches this is also not required at all.
A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/ports/commit/?id=c75ee5343b9fbe38dd8aeea90a3cf3c9f9801a91 commit c75ee5343b9fbe38dd8aeea90a3cf3c9f9801a91 Author: Muhammad Moinur Rahman <bofh@FreeBSD.org> AuthorDate: 2024-03-19 19:26:19 +0000 Commit: Muhammad Moinur Rahman <bofh@FreeBSD.org> CommitDate: 2024-03-19 19:26:19 +0000 textproc/libucl: Fix non streamlined json emitter See for more information: https://github.com/vstakhov/libucl/commit/da7aacb3d46fbc206ec6f2431f503eed843a3039 PR: 277812 Reported by: crest@rlwinm.de textproc/libucl/Makefile | 16 ++++++++-------- textproc/libucl/distinfo | 4 +++- 2 files changed, 11 insertions(+), 9 deletions(-)