Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 31 Jan 2026 09:28:44 +0000
From:      Yuri Victorovich <yuri@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Cc:        Gleb Popov <arrowd@FreeBSD.org>
Subject:   git: 743fa2f9ebc0 - main - textproc/libfyaml: update=?utf-8?Q? 0.9 =E2=86=92?= 0.9.3
Message-ID:  <697dcb4c.39981.7c563fc3@gitrepo.freebsd.org>

index | next in thread | raw e-mail

The branch main has been updated by yuri:

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

commit 743fa2f9ebc09c4517a5a8d5090c380d7989266a
Author:     Gleb Popov <arrowd@FreeBSD.org>
AuthorDate: 2026-01-31 09:28:19 +0000
Commit:     Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2026-01-31 09:28:37 +0000

    textproc/libfyaml: update 0.9 → 0.9.3
    
    PR:     292833
---
 textproc/libfyaml/Makefile                     |  8 ++----
 textproc/libfyaml/distinfo                     |  6 ++--
 textproc/libfyaml/files/patch-src_lib_fy-doc.c | 38 ++++++++++++++++++++++++++
 3 files changed, 44 insertions(+), 8 deletions(-)

diff --git a/textproc/libfyaml/Makefile b/textproc/libfyaml/Makefile
index ff9eedfaa47f..3f49ee6909db 100644
--- a/textproc/libfyaml/Makefile
+++ b/textproc/libfyaml/Makefile
@@ -1,6 +1,5 @@
 PORTNAME=	libfyaml
-DISTVERSION=	0.9
-PORTREVISION=	1
+DISTVERSION=	0.9.3
 CATEGORIES=	textproc
 MASTER_SITES=	https://github.com/pantoniou/libfyaml/releases/download/v${DISTVERSION}/
 
@@ -20,13 +19,12 @@ USE_LDCONFIG=	yes
 SHEBANG_FILES=	test/testemitter.test
 
 GNU_CONFIGURE=	yes
-GNU_CONFIGURE_MANPREFIX=	${PREFIX}/share
 
 INSTALL_TARGET=	install-strip
 
-TEST_TARGET=	check # one test fails, see https://github.com/pantoniou/libfyaml/issues/103
+TEST_TARGET=	check
 
 post-patch:
-	@${GREP} -rl "#include <alloca\\.h>" ${WRKSRC} | ${XARGS} ${REINPLACE_CMD} -E "s|#include <alloca\\.h>|#include <stdlib.h>|"
+	${GREP} -rl "#include <alloca\\.h>" ${WRKSRC} | ${XARGS} ${REINPLACE_CMD} -E "s|#include <alloca\\.h>|#include <stdlib.h>|"
 
 .include <bsd.port.mk>
diff --git a/textproc/libfyaml/distinfo b/textproc/libfyaml/distinfo
index 1f364c1380b1..156b077e9bbe 100644
--- a/textproc/libfyaml/distinfo
+++ b/textproc/libfyaml/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1704445564
-SHA256 (libfyaml-0.9.tar.gz) = 7731edc5dfcc345d5c5c9f6ce597133991a689dabede393cd77bae89b327cd6d
-SIZE (libfyaml-0.9.tar.gz) = 875608
+TIMESTAMP = 1769785450
+SHA256 (libfyaml-0.9.3.tar.gz) = d4541c36ae726f51e9df22dd8ac1a19d122666060daf3806e37b848d4c73a8ed
+SIZE (libfyaml-0.9.3.tar.gz) = 1076446
diff --git a/textproc/libfyaml/files/patch-src_lib_fy-doc.c b/textproc/libfyaml/files/patch-src_lib_fy-doc.c
new file mode 100644
index 000000000000..2686afa55e4e
--- /dev/null
+++ b/textproc/libfyaml/files/patch-src_lib_fy-doc.c
@@ -0,0 +1,38 @@
+--- src/lib/fy-doc.c.orig	2026-01-13 20:43:43 UTC
++++ src/lib/fy-doc.c
+@@ -9,6 +9,8 @@
+ #include "config.h"
+ #endif
+ 
++#include <sys/param.h>
++
+ #include <stdio.h>
+ #include <string.h>
+ #include <assert.h>
+@@ -5753,7 +5755,7 @@ static int fy_node_mapping_sort_cmp(
+ }
+ 
+ static int fy_node_mapping_sort_cmp(
+-#ifdef __APPLE__
++#if defined(__APPLE__) || __FreeBSD_version < 1400000
+ void *arg, const void *a, const void *b
+ #else
+ const void *a, const void *b, void *arg
+@@ -5775,7 +5777,7 @@ static int fy_node_mapping_sort_cmp_no_qsort_r(const v
+ 
+ static int fy_node_mapping_sort_cmp_no_qsort_r(const void *a, const void *b)
+ {
+-#ifdef __APPLE__
++#if defined(__APPLE__) || __FreeBSD_version < 1400000
+ 	return fy_node_mapping_sort_cmp(
+ 			fy_node_mapping_sort_ctx_no_qsort_r,
+ 			a, b);
+@@ -5892,7 +5894,7 @@ void fy_node_mapping_perform_sort(struct fy_node *fyn_
+ 	ctx.fynpp = fynpp;
+ 	ctx.count = count;
+ #if defined(HAVE_QSORT_R) && HAVE_QSORT_R && !defined(__EMSCRIPTEN__)
+-#ifdef __APPLE__
++#if defined(__APPLE__) || __FreeBSD_version < 1400000
+ 	qsort_r(fynpp, count, sizeof(*fynpp), &ctx, fy_node_mapping_sort_cmp);
+ #else
+ 	qsort_r(fynpp, count, sizeof(*fynpp), fy_node_mapping_sort_cmp, &ctx);


home | help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?697dcb4c.39981.7c563fc3>