Up to [cvs.NetBSD.org] / pkgsrc / textproc / libfyaml
Request diff between arbitrary revisions
Keyword substitution: kv
Default branch: MAIN
libfyaml: try to fix 32-bit build & bump The prior update is very broken on 32 bit targets. This patchset rolls up the 32-bit fixes that looked most relevant in the upstream repo committed after the release.
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
libfyaml: disable optimizations on i386, fixes build for NetBSD. This includes code that seems to be written for x86-64. Switching to the "portable" version is a quick working way to avoid that code. Note that the meaning of "portable" here means "compiling with some Windows compiler that doesn't like the syntax". This package does appear to do run-time detection of features before it is used, and most users wouldn't want to use the portable flag.
libfyaml: updated to 0.9.5 0.9.5 A robustness and correctness release with major emitter comment improvements, new APIs, new emitter options, and extensive fuzz-driven bug fixes across all subsystems.
textproc/libfyaml: Do not build tests to fix build failure
libfyaml: update to 0.9.4. ## [0.9.4] - 2026-02-03 ### Major: Full Windows Support This release adds **full native Windows support**. libfyaml now builds and runs natively on Windows with MSVC, clang-cl, and Clang compilers. **Native Windows builds:** - Full support for building on Windows using MSVC, clang-cl, or GCC - Works with Visual Studio, VSCode, and other Windows development tools - All tests pass on Windows **Cross-compilation from Linux:** - Support for msvc-wine to install MSVC redistributables on Linux - Compile using `cl.exe` via Wine - Compile using `clang-cl` without Wine - Compile using Clang cross-compilation triplet ### Major: Comment Support Now Stable Comment parsing and emission has been moved out of experimental status. Comments can now be reliably preserved and manipulated through the API. ### Added - `fy_node_set_style()`: Set the style of a node (block, flow, plain, etc.) - Fixes #78 - `fy_token_set_comment()`: Attach comments to tokens programmatically - `fy_event_to_string()`: Convert events to string representation - `fy_diag_get_collect_errors()`: Query if error collection is enabled - `fy_atom_lines_containing()`: Get lines containing an atom (for diagnostics) - `fy_memstream`: Portable `open_memstream` alternative for cross-platform support - CMake-based CI workflow with improved matrix coverage - Emscripten platform detection for `endian.h` ### Changed - libclang now defaults to OFF (will be enabled when reflection features are ready) - Document start token is now preserved (may contain comments) - Walk methods now handle error paths more systematically - Removed non-existent experimental function declarations from `libfyaml.h` ### Fixed - **#193**: Token creation now properly clears memory to avoid undefined behavior on invalid input - **#186**: Reference loop nesting now respected when checking link validity - **#185**: Fixed crash when setting document root to NULL; also fixed input size clamping for corrupted input - **#184**: Walk memory leak fix with improved debugging infrastructure - **#183, #191**: Error out early on `FYECF_EXTENDED_CFG` with helper emit methods (prevents crash) - **#182**: Walk expression unref bug fix with debug infrastructure - **#181**: Walk double-free on node delete - **#178, #177**: Walk methods now handle error paths systematically (recursive alias resolution) - **#176**: Off-by-one error in `fy_accel_grow` - **#175**: Parser crash on corrupted UTF-8 at end of file - **#174**: Superfluous document end marker with explicit version/tag directives - **#173, #172**: Depth limit for node copy (prevents stack overflow under fuzzing) - **#143**: Document root now correctly marked as attached - Emit state now properly reset at end of document (fixes multi-document stream markers) - Flow quoting error on ANY style (test was backwards) - Empty file `fdopen` issue on some platforms - Empty stream `realloc(0)` undefined behavior - Removed jarring notice when alias is declared multiple times (valid YAML) ### Platform Support **Supported platforms**: Linux, macOS, FreeBSD, OpenBSD, NetBSD, and **Windows**. **Windows-specific:** - Full native MSVC support (32-bit and 64-bit) - clang-cl and Clang cross-compilation support - msvc-wine support for Linux-based Windows cross-compilation - Proper CRLF (DOS line ending) handling - Fixed 32-bit MSVC intrinsics (`_BitScanForward64`, `_BitScanReverse64`, `__popcnt64`) **Portability fixes:** - Fixed void pointer arithmetic (GCC extension) for strict C compliance - Fixed GCC ternary operator extension (`x ? : y` -> `x ? x : y`) - Fixed `\e` escape sequence (GCC/clang extension) -> `\x1b` - Fixed enum comparison warnings across platforms - Align mremap initial size to page boundary (fixes BSD crashes) **macOS:** - Fixed ASAN support (requires `-fsanitize=address` at link time) - Added extra ASAN flags for Apple's clang (alloca poisoning disabled) **CI/Build:** - New CMake-based GitHub Actions workflow - Improved build matrix coverage - Fixed distcheck breakage ### Internal - Walk expression debug infrastructure for easier debugging - Portable `fy_memstream` wrapper for `open_memstream` - Use `fy_align_alloc/free` wrappers in allocator - Fixed allocator `get_caps` return type (enum, not int) - Atomic counter function instead of macro - General warning cleanup pass ### Statistics - 58 commits since v0.9.3 - 18 bug fix issues closed - Full Windows platform support added
libfyaml: update to 0.9.3. 0.9.3 A maintenance release focused on platform support, memory leak fixes, and emitter improvements. 0.9.2 Addressing a couple of build related problems with v0.9.1 No functionality changes. 0.9.1 This is libfyaml v0.9.1, a significant maintenance release focused on licensing clarity, performance, stability, and build system modernization.
libfyaml: Fix build on i386 and !bsd.
libfyaml: needs m4
libfyaml: updated to 0.9 0.9 libclang/blake3 integrated but not yet used.
libfyaml: use proper distfile avoids dependency on autotools, and fixes build since pkg-config m4 file was not depended on.
libfyaml: import version 0.7.12 libfyaml is a fancy 1.2 YAML and JSON parser/writer. Fully feature complete YAML parser and emitter, supporting the latest YAML spec and passing the full YAML testsuite. It is designed to be very efficient, avoiding copies of data, and has no artificial limits like the 1024 character limit for implicit keys. libfyaml is using https://github.com/yaml/yaml-test-suite as a core part of its testsuite.