pkgsrc-Changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
CVS commit: pkgsrc/textproc/libfyaml
Module Name: pkgsrc
Committed By: wiz
Date: Thu Mar 26 13:58:33 UTC 2026
Modified Files:
pkgsrc/textproc/libfyaml: Makefile PLIST distinfo
Added Files:
pkgsrc/textproc/libfyaml/patches: patch-src_lib_fy-walk.c
Log Message:
libfyaml: update to 0.9.6.
## [0.9.6] - 2026-03-15
### Major: Public Header Split
The monolithic `libfyaml.h` has been split into focused sub-headers under `include/libfyaml/`. The main header still exists and includes everything, so **existing code requires no changes**. Projects
can now include only the sub-headers they need for faster compilation:
- `libfyaml/libfyaml-core.h` — parser, emitter, document, node, path
- `libfyaml/libfyaml-composer.h` — composer interface
- `libfyaml/libfyaml-docbuild.h` — document builder
- `libfyaml/libfyaml-allocator.h` — allocator API
- `libfyaml/libfyaml-atomics.h`, `libfyaml-thread.h`, `libfyaml-util.h`, and more
All gaps in the API documentation have been filled as part of this work.
### Added
- `fy_node_sequence_sort()`: Sort a single sequence node's items using a custom comparator (mirrors `fy_node_mapping_sort()`)
### Changed
- Public API hardened against NULL arguments throughout (`fy_token_*`, `fy_emit_*`, `fy_doc_*`) — fixes #252, #254, #255
- fy-tool: Usage text cleaned up and colorized on TTYs
- Walk: Pathological YPath execution is now capped to prevent runaway resource use
- Dedup allocator: Improvements for split entries and content tags
- `indent_delta` refactored into atom layer for correctness
### Fixed
**Emitter:**
- Folded block scalar line breaks no longer get lost
- Fix comment indentation loss for block sequences inside mappings
- Fix memory leak in `fy_emit_mapping()`
**Parser:**
- Fix failure on empty merge key
- Fix `fy_parser_event_resolve_hook_merge_key_start()` error path
- Fix extent check in `fy_reader_fetch_flow_scalar_handle()`
- Use `HAVE_LLVM_C_CORE_H` to detect LLVM (portability fix)
**Walk (YPath):**
- Cap pathological YPath execution to prevent runaway resource use
- Guard numeric expression conversion against overflow
**Document API:**
- Avoid rehashing anchors during cleanup
- Fix `fy_node_copy_to_scalar()` mess
- Fix bogus condition in `fy_node_by_path_internal()`
- Keep remove-by-key lookup nodes caller-owned
**Threading:**
- Fix threading bug triggered when thread count hits 64
**Build / Portability:**
- cmake: Install canned man pages when Sphinx is not available
- cmake: Respect `DESTDIR` when creating symlinks to fy-tool
- cmake: Rework Windows CMake support for correctness
- cmake: Fix docs build after public header move
- windows: Fix compilation issues
- build: Link libm in autotools builds
- utils: Fix overflow implementations
- `.gitattributes`: Mark all text files as LF-terminated
To generate a diff of this commit:
cvs rdiff -u -r1.10 -r1.11 pkgsrc/textproc/libfyaml/Makefile
cvs rdiff -u -r1.2 -r1.3 pkgsrc/textproc/libfyaml/PLIST
cvs rdiff -u -r1.6 -r1.7 pkgsrc/textproc/libfyaml/distinfo
cvs rdiff -u -r0 -r1.1 \
pkgsrc/textproc/libfyaml/patches/patch-src_lib_fy-walk.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: pkgsrc/textproc/libfyaml/Makefile
diff -u pkgsrc/textproc/libfyaml/Makefile:1.10 pkgsrc/textproc/libfyaml/Makefile:1.11
--- pkgsrc/textproc/libfyaml/Makefile:1.10 Tue Mar 24 23:34:49 2026
+++ pkgsrc/textproc/libfyaml/Makefile Thu Mar 26 13:58:33 2026
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.10 2026/03/24 23:34:49 maya Exp $
+# $NetBSD: Makefile,v 1.11 2026/03/26 13:58:33 wiz Exp $
-DISTNAME= libfyaml-0.9.5
+DISTNAME= libfyaml-0.9.6
CATEGORIES= textproc
MASTER_SITES= ${MASTER_SITE_GITHUB:=pantoniou/}
GITHUB_RELEASE= v${PKGVERSION_NOREV}
Index: pkgsrc/textproc/libfyaml/PLIST
diff -u pkgsrc/textproc/libfyaml/PLIST:1.2 pkgsrc/textproc/libfyaml/PLIST:1.3
--- pkgsrc/textproc/libfyaml/PLIST:1.2 Sun Jan 18 10:50:26 2026
+++ pkgsrc/textproc/libfyaml/PLIST Thu Mar 26 13:58:33 2026
@@ -1,6 +1,25 @@
-@comment $NetBSD: PLIST,v 1.2 2026/01/18 10:50:26 wiz Exp $
+@comment $NetBSD: PLIST,v 1.3 2026/03/26 13:58:33 wiz Exp $
+bin/fy-compose
+bin/fy-dump
+bin/fy-filter
+bin/fy-join
+bin/fy-testsuite
bin/fy-tool
+bin/fy-ypath
include/libfyaml.h
+include/libfyaml/libfyaml-align.h
+include/libfyaml/libfyaml-allocator.h
+include/libfyaml/libfyaml-atomics.h
+include/libfyaml/libfyaml-blake3.h
+include/libfyaml/libfyaml-composer.h
+include/libfyaml/libfyaml-core.h
+include/libfyaml/libfyaml-docbuild.h
+include/libfyaml/libfyaml-dociter.h
+include/libfyaml/libfyaml-endian.h
+include/libfyaml/libfyaml-path-exec.h
+include/libfyaml/libfyaml-thread.h
+include/libfyaml/libfyaml-util.h
+include/libfyaml/libfyaml-vlsize.h
lib/cmake/libfyaml/libfyaml-config-version.cmake
lib/cmake/libfyaml/libfyaml-config.cmake
lib/cmake/libfyaml/libfyaml-targets-noconfig.cmake
@@ -9,3 +28,10 @@ lib/libfyaml.so
lib/libfyaml.so.0
lib/libfyaml.so.${PKGVERSION}
lib/pkgconfig/libfyaml.pc
+man/man1/fy-compose.1
+man/man1/fy-dump.1
+man/man1/fy-filter.1
+man/man1/fy-join.1
+man/man1/fy-testsuite.1
+man/man1/fy-tool.1
+man/man1/fy-ypath.1
Index: pkgsrc/textproc/libfyaml/distinfo
diff -u pkgsrc/textproc/libfyaml/distinfo:1.6 pkgsrc/textproc/libfyaml/distinfo:1.7
--- pkgsrc/textproc/libfyaml/distinfo:1.6 Fri Feb 27 13:47:24 2026
+++ pkgsrc/textproc/libfyaml/distinfo Thu Mar 26 13:58:33 2026
@@ -1,5 +1,6 @@
-$NetBSD: distinfo,v 1.6 2026/02/27 13:47:24 adam Exp $
+$NetBSD: distinfo,v 1.7 2026/03/26 13:58:33 wiz Exp $
-BLAKE2s (libfyaml-0.9.5.tar.gz) = 1729114ed7b88f480076493c074f6184cefbc9ce78f860229ea2020f4d76aed5
-SHA512 (libfyaml-0.9.5.tar.gz) = e4f79ceca4ff99c334d40b5afaccbdeb5200e74e2ff00140f018882cb5d21e8be7a5eb30d5e8fe8861271ab0264f03cb405f6b6a3ef76482f5cf6af9a01a4632
-Size (libfyaml-0.9.5.tar.gz) = 1047066 bytes
+BLAKE2s (libfyaml-0.9.6.tar.gz) = a5b4c5ea3dc0935b45a71345ed7bb60998a9f062887b598588034e02c2593672
+SHA512 (libfyaml-0.9.6.tar.gz) = 71f01fdbfa8a3675bdd6697929bb8ee85672befa5ed815ef30813987c2f75f8ef0959e70d1b17d02ccadabc967f1dfd5b7f46a10a83fca7b1a9ed7455c52e344
+Size (libfyaml-0.9.6.tar.gz) = 1146628 bytes
+SHA1 (patch-src_lib_fy-walk.c) = 42156d0ec45256a8434ca2c95b97bf474553c02a
Added files:
Index: pkgsrc/textproc/libfyaml/patches/patch-src_lib_fy-walk.c
diff -u /dev/null pkgsrc/textproc/libfyaml/patches/patch-src_lib_fy-walk.c:1.1
--- /dev/null Thu Mar 26 13:58:33 2026
+++ pkgsrc/textproc/libfyaml/patches/patch-src_lib_fy-walk.c Thu Mar 26 13:58:33 2026
@@ -0,0 +1,16 @@
+$NetBSD: patch-src_lib_fy-walk.c,v 1.1 2026/03/26 13:58:33 wiz Exp $
+
+Use proper variable.
+Already fixed upstream.
+
+--- src/lib/fy-walk.c.orig 2026-03-26 13:55:53.286272086 +0000
++++ src/lib/fy-walk.c
+@@ -4618,7 +4618,7 @@ fy_scalar_walk_result_to_expr(struct fy_path_exec *fyp
+ if (!isfinite(fwr->number))
+ goto err_out;
+
+- rc = asprintf(&buf, "%.*g", DBL_DECIMAL_DIG, fwr->number);
++ rc = asprintf(&buf, "%.*g", FY_DBL_DECIMAL_DIG, fwr->number);
+ if (rc == -1)
+ goto err_out;
+
Home |
Main Index |
Thread Index |
Old Index