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:   maya
Date:           Tue Mar 24 23:34:50 UTC 2026

Modified Files:
        pkgsrc/textproc/libfyaml: Makefile

Log Message:
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.


To generate a diff of this commit:
cvs rdiff -u -r1.9 -r1.10 pkgsrc/textproc/libfyaml/Makefile

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.9 pkgsrc/textproc/libfyaml/Makefile:1.10
--- pkgsrc/textproc/libfyaml/Makefile:1.9       Fri Feb 27 13:47:24 2026
+++ pkgsrc/textproc/libfyaml/Makefile   Tue Mar 24 23:34:49 2026
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.9 2026/02/27 13:47:24 adam Exp $
+# $NetBSD: Makefile,v 1.10 2026/03/24 23:34:49 maya Exp $
 
 DISTNAME=      libfyaml-0.9.5
 CATEGORIES=    textproc
@@ -14,6 +14,14 @@ PKGCONFIG_OVERRIDE+= cmake/libfyaml.pc.i
 
 CMAKE_CONFIGURE_ARGS+= -DBUILD_TESTING=OFF
 
+.if ${MACHINE_ARCH} == "i386"
+# This package seems to be confused by i386 + AVX2/AVX512,
+# and tries to use 64-bit assembly. This is a quick working fix.
+# Note: "portable" here seems to mean "windows compiler friendly
+# assembly syntax".
+CMAKE_CONFIGURE_ARGS+= -DENABLE_PORTABLE_TARGET=ON
+.endif
+
 .include "../../devel/cmake/build.mk"
 .include "../../mk/atomic64.mk"
 .include "../../mk/bsd.pkg.mk"



Home | Main Index | Thread Index | Old Index