head 1.5; access; symbols pkgsrc-2026Q1:1.5.0.6 pkgsrc-2026Q1-base:1.5 pkgsrc-2025Q4:1.5.0.4 pkgsrc-2025Q4-base:1.5 pkgsrc-2025Q3:1.5.0.2 pkgsrc-2025Q3-base:1.5 pkgsrc-2025Q2:1.3.0.14 pkgsrc-2025Q2-base:1.3 pkgsrc-2025Q1:1.3.0.12 pkgsrc-2025Q1-base:1.3 pkgsrc-2024Q4:1.3.0.10 pkgsrc-2024Q4-base:1.3 pkgsrc-2024Q3:1.3.0.8 pkgsrc-2024Q3-base:1.3 pkgsrc-2024Q2:1.3.0.6 pkgsrc-2024Q2-base:1.3 pkgsrc-2024Q1:1.3.0.4 pkgsrc-2024Q1-base:1.3 pkgsrc-2023Q4:1.3.0.2 pkgsrc-2023Q4-base:1.3 pkgsrc-2023Q3:1.2.0.14 pkgsrc-2023Q3-base:1.2 pkgsrc-2023Q2:1.2.0.12 pkgsrc-2023Q2-base:1.2 pkgsrc-2023Q1:1.2.0.10 pkgsrc-2023Q1-base:1.2 pkgsrc-2022Q4:1.2.0.8 pkgsrc-2022Q4-base:1.2 pkgsrc-2022Q3:1.2.0.6 pkgsrc-2022Q3-base:1.2 pkgsrc-2022Q2:1.2.0.4 pkgsrc-2022Q2-base:1.2 pkgsrc-2022Q1:1.2.0.2 pkgsrc-2022Q1-base:1.2 pkgsrc-2021Q4:1.1.0.2 pkgsrc-2021Q4-base:1.1; locks; strict; comment @# @; 1.5 date 2025.08.26.07.53.56; author ryoon; state Exp; branches; next 1.4; commitid OxVr3sYvTeLSgd8G; 1.4 date 2025.08.16.01.20.27; author ryoon; state Exp; branches; next 1.3; commitid TnzMGPufGmlPpT6G; 1.3 date 2023.10.11.03.41.01; author ryoon; state Exp; branches; next 1.2; commitid X8oa8LB32RHfT9IE; 1.2 date 2022.03.15.14.33.23; author wiz; state Exp; branches; next 1.1; commitid 0AHiHOdDR74PYjwD; 1.1 date 2021.12.19.13.38.56; author ryoon; state Exp; branches; next ; commitid BtodG6yxfI9IrglD; desc @@ 1.5 log @lang/wasi-libc: Fix build independently wasi-libc is already installed or not @ text @$NetBSD: patch-Makefile,v 1.4 2025/08/16 01:20:27 ryoon Exp $ * Do not depend on previously installed wasi runtime. * Workaround for rebuild in install stage. * Do not install share/ in no-check-symbols case. * Disable symbol comparison, it's fragile --- Makefile.orig 2025-08-08 15:50:22.000000000 +0000 +++ Makefile @@@@ -599,7 +599,7 @@@@ SYSTEM_BUILTINS_LIB := $(shell ${CC} ${C SYSTEM_RESOURCE_DIR := $(shell ${CC} ${CFLAGS} -print-resource-dir) BUILTINS_LIB_REL_1 := $(subst $(SYSTEM_RESOURCE_DIR),,$(SYSTEM_BUILTINS_LIB)) # Substitute '/' for '\' so Windows paths work -BUILTINS_LIB_REL := $(subst \,/,$(BUILTINS_LIB_REL_1)) +BUILTINS_LIB_REL := lib/wasi TMP_RESOURCE_DIR := $(OBJDIR)/resource-dir BUILTINS_LIB_PATH := $(TMP_RESOURCE_DIR)/$(BUILTINS_LIB_REL) BUILTINS_LIB_DIR := $(dir $(BUILTINS_LIB_PATH)) @@@@ -885,9 +885,9 @@@@ finish: check-symbols endif endif -install: finish +install: mkdir -p "$(INSTALL_DIR)" - cp -p -r "$(SYSROOT)/lib" "$(SYSROOT)/share" "$(SYSROOT)/include" "$(INSTALL_DIR)" + cp -p -r "$(SYSROOT)/lib" "$(SYSROOT)/include" "$(INSTALL_DIR)" DEFINED_SYMBOLS = $(SYSROOT_SHARE)/defined-symbols.txt UNDEFINED_SYMBOLS = $(SYSROOT_SHARE)/undefined-symbols.txt @@@@ -1018,7 +1018,7 @@@@ check-symbols: $(STARTUP_FILES) libc # Check that the computed metadata matches the expected metadata. # This ignores whitespace because on Windows the output has CRLF line endings. - diff -wur "$(EXPECTED_TARGET_DIR)" "$(SYSROOT_SHARE)" + #diff -wur "$(EXPECTED_TARGET_DIR)" "$(SYSROOT_SHARE)" ##### BINDINGS ################################################################# @ 1.4 log @lang/wasi-libc: Update to 0.0.0pre20250809 Changelog: Not available in concise form. This includes directory layout changes. @ text @d1 1 a1 1 $NetBSD: patch-Makefile,v 1.3 2023/10/11 03:41:01 ryoon Exp $ d3 1 d10 9 @ 1.3 log @wasi-libc: Update to 0.0.0pre20231007 CHangelog: Bugfixes @ text @d1 1 a1 1 $NetBSD: patch-Makefile,v 1.2 2022/03/15 14:33:23 wiz Exp $ d3 2 a5 1 * Workaround for rebuild in install stage. d7 1 a7 1 --- Makefile.orig 2023-10-07 00:10:58.000000000 +0000 d9 13 a21 1 @@@@ -790,9 +790,9 @@@@ check-symbols: startup_files libc d25 2 a26 2 - diff -wur "expected/$(TARGET_TRIPLE)" "$(SYSROOT_SHARE)" + #diff -wur "expected/$(TARGET_TRIPLE)" "$(SYSROOT_SHARE)" a27 4 -install: finish +install: mkdir -p "$(INSTALL_DIR)" cp -r "$(SYSROOT)/lib" "$(SYSROOT)/share" "$(SYSROOT)/include" "$(INSTALL_DIR)" d29 1 @ 1.2 log @wasi-libc: update to 0.0.0pre20220311. Disable symbol comparison, since it fails for a couple of people and mef's bulk build. Changes: Enable support for utimes and futimesat. more graphical code chdir: fixing a malloc'ed buffer that was not large enough @ text @d1 1 a1 1 $NetBSD: patch-Makefile,v 1.1 2021/12/19 13:38:56 ryoon Exp $ d6 1 a6 1 --- Makefile.orig 2022-03-10 22:14:40.000000000 +0000 d8 1 a8 1 @@@@ -545,9 +545,9 @@@@ check-symbols: startup_files libc d12 2 a13 2 - diff -wur "$(CURDIR)/expected/$(MULTIARCH_TRIPLE)" "$(SYSROOT_SHARE)" + #diff -wur "$(CURDIR)/expected/$(MULTIARCH_TRIPLE)" "$(SYSROOT_SHARE)" @ 1.1 log @lang/wasi-libc: import wasi-libc-0.0.0pre20210923 WASI Libc is a libc for WebAssembly programs built on top of WASI system calls. It provides a wide array of POSIX-compatible C APIs, including support for standard I/O, file I/O, filesystem manipulation, memory management, time, string, environment variables, program startup, and many other APIs. WASI Libc is sufficiently stable and usable for many purposes, as most of the POSIX-compatible APIs are stable, though it is continuing to evolve to better align with wasm and WASI. @ text @d1 1 a1 1 $NetBSD$ d3 1 d6 1 a6 1 --- Makefile.orig 2021-09-22 22:36:47.000000000 +0000 d8 3 a10 1 @@@@ -546,7 +546,7 @@@@ check-symbols: startup_files libc d12 2 a13 1 diff -wur "$(CURDIR)/expected/$(MULTIARCH_TRIPLE)" "$(SYSROOT_SHARE)" @