head 1.2; access; symbols pkgsrc-2026Q2:1.1.0.18 pkgsrc-2026Q2-base:1.1 pkgsrc-2026Q1:1.1.0.16 pkgsrc-2026Q1-base:1.1 pkgsrc-2025Q4:1.1.0.14 pkgsrc-2025Q4-base:1.1 pkgsrc-2025Q3:1.1.0.12 pkgsrc-2025Q3-base:1.1 pkgsrc-2025Q2:1.1.0.10 pkgsrc-2025Q2-base:1.1 pkgsrc-2025Q1:1.1.0.8 pkgsrc-2025Q1-base:1.1 pkgsrc-2024Q4:1.1.0.6 pkgsrc-2024Q4-base:1.1 pkgsrc-2024Q3:1.1.0.4 pkgsrc-2024Q3-base:1.1 pkgsrc-2024Q2:1.1.0.2 pkgsrc-2024Q2-base:1.1; locks; strict; comment @ * @; 1.2 date 2026.09.02.00.53.37; author maya; state dead; branches; next 1.1; commitid K8naUNvV4D1eZYTG; 1.1 date 2024.05.02.13.22.34; author pho; state Exp; branches; next ; commitid VKGDlW7wUteeyq8F; desc @@ 1.2 log @chezscheme: Update to 10.4.1. From Kogule Ryo in PR pkg/60416 @ text @$NetBSD: patch-c_self-exe.c,v 1.1 2024/05/02 13:22:34 pho Exp $ /proc/curproc/file is not a symlink on NetBSD. Use sysctl instead. TODO: Upstream this --- c/self-exe.c.orig 2024-05-02 12:42:04.735939925 +0000 +++ c/self-exe.c @@@@ -187,6 +187,29 @@@@ static char *get_self_path_platform() { } #endif +#if defined(__NetBSD__) +#include +#include +#include +#include +#define HAVE_GET_SELF_PATH_PLATFORM +static char *get_self_path_platform() { + const int mib[4] = { + CTL_KERN, + KERN_PROC_ARGS, + -1, /* current process */ + KERN_PROC_PATHNAME + }; + size_t path_len = PATH_MAX; + char path[path_len]; + if (sysctl(mib, sizeof(mib) / sizeof(int), path, &path_len, NULL, 0) == 0) { + path[path_len] = '\0'; + return copy_string(path); + } + return NULL; +} +#endif + #if defined(__sun__) && defined(__svr4__) #define HAVE_GET_SELF_PATH_PLATFORM static char *get_self_path_platform() { @@@@ -203,7 +226,7 @@@@ static char *get_self_path_platform() { static char *get_self_path_platform() { return copy_string("/proc/self/exe"); } #endif -#if defined(__NetBSD__) || defined(__minix) || defined(__DragonFly__) || \ +#if defined(__minix) || defined(__DragonFly__) || \ defined(__FreeBSD_kernel__) || defined(_AIX) #define HAVE_GET_SELF_PATH_PLATFORM static char *get_self_path_platform() { return copy_string("/proc/curproc/file"); } @ 1.1 log @lang/chezscheme: Update to 10.0.0 Release notes are too long to paste here: https://cisco.github.io/ChezScheme/release_notes/v10.0/release_notes.html @ text @d1 1 a1 1 $NetBSD$ @