diff --git a/lang/janet/Makefile b/lang/janet/Makefile index b4b6ca572e74..ca8f5fe779e7 100644 --- a/lang/janet/Makefile +++ b/lang/janet/Makefile @@ -2,7 +2,7 @@ PORTNAME= janet DISTVERSIONPREFIX= v -DISTVERSION= 1.7.0 +DISTVERSION= 1.8.0 CATEGORIES= lang MAINTAINER= tobik@FreeBSD.org diff --git a/lang/janet/distinfo b/lang/janet/distinfo index 35441bd10a1b..2aac2845fa61 100644 --- a/lang/janet/distinfo +++ b/lang/janet/distinfo @@ -1,3 +1,3 @@ -TIMESTAMP = 1580655867 -SHA256 (janet-lang-janet-v1.7.0_GH0.tar.gz) = 2a119f3a79b209a858864e73ca3efda57ac044df3c89762a31480bbea386d2a3 -SIZE (janet-lang-janet-v1.7.0_GH0.tar.gz) = 968936 +TIMESTAMP = 1585565842 +SHA256 (janet-lang-janet-v1.8.0_GH0.tar.gz) = e02ae5c7b4579a23e3f30636c16d248273ed119467a076d18c9362e858eb9812 +SIZE (janet-lang-janet-v1.8.0_GH0.tar.gz) = 977758 diff --git a/lang/janet/files/patch-src_boot_boot.janet b/lang/janet/files/patch-src_boot_boot.janet new file mode 100644 index 000000000000..b820182d17a1 --- /dev/null +++ b/lang/janet/files/patch-src_boot_boot.janet @@ -0,0 +1,54 @@ +https://github.com/janet-lang/janet/issues/327 + +../src/core/os.c:492:9: warning: implicit declaration of function 'unsetenv' is invalid in C99 [-Wimplicit-function-declaration] + UNSETENV(ks); + ^ +../src/core/os.c:485:21: note: expanded from macro 'UNSETENV' +#define UNSETENV(K) unsetenv(K) + ^ +../src/core/os.c:494:9: warning: implicit declaration of function 'setenv' is invalid in C99 [-Wimplicit-function-declaration] + SETENV(ks, vs); + ^ +../src/core/os.c:484:21: note: expanded from macro 'SETENV' +#define SETENV(K,V) setenv(K, V, 1) + ^ +../src/core/os.c:539:9: error: use of undeclared identifier 'CLOCK_MONOTONIC' + if (gettime(&tv)) janet_panic("could not get time"); + ^ +../src/core/os.c:532:35: note: expanded from macro 'gettime' +#define gettime(TV) clock_gettime(CLOCK_MONOTONIC, (TV)) + ^ +../src/core/os.c:973:14: warning: implicit declaration of function 'S_ISSOCK' is invalid in C99 [-Wimplicit-function-declaration] + else if (S_ISSOCK(m)) str = "socket"; + ^ +../src/core/os.c:974:14: warning: implicit declaration of function 'S_ISLNK' is invalid in C99 [-Wimplicit-function-declaration] + else if (S_ISLNK(m)) str = "link"; + ^ +../src/core/os.c:1087:15: warning: implicit declaration of function 'lstat' is invalid in C99 [-Wimplicit-function-declaration] + res = lstat(path, &st); + ^ +../src/core/math.c:256:28: warning: implicitly declaring library function 'trunc' with type 'double (double)' [-Wimplicit-function-declaration] +JANET_DEFINE_MATHOP(trunc, trunc) + ^ +../src/core/math.c:256:28: note: include the header or explicitly provide a declaration for 'trunc' +../src/core/math.c:257:28: warning: implicitly declaring library function 'round' with type 'double (double)' [-Wimplicit-function-declaration] +JANET_DEFINE_MATHOP(round, round) + ^ +../src/core/math.c:257:28: note: include the header or explicitly provide a declaration for 'round' +../src/core/math.c:468:50: error: use of undeclared identifier 'INFINITY' + janet_def(env, "math/inf", janet_wrap_number(INFINITY), + ^ +../src/core/math.c:470:52: error: use of undeclared identifier 'INFINITY' + janet_def(env, "math/-inf", janet_wrap_number(-INFINITY), + ^ + +--- src/boot/boot.janet.orig 2020-03-30 11:49:04 UTC ++++ src/boot/boot.janet +@@ -2585,7 +2585,6 @@ + (print "#define JANET_BUILD \"" janet/build "\"") + (print ```#define JANET_AMALG```) + (print ```#define _POSIX_C_SOURCE 200112L```) +- (print ```#define _XOPEN_SOURCE 500```) + (print ```#include "janet.h"```) + + (defn do-one-flie diff --git a/lang/janet/files/patch-src_core_features.h b/lang/janet/files/patch-src_core_features.h new file mode 100644 index 000000000000..1983db85d47a --- /dev/null +++ b/lang/janet/files/patch-src_core_features.h @@ -0,0 +1,11 @@ +--- src/core/features.h.orig 2020-03-30 11:48:42 UTC ++++ src/core/features.h +@@ -29,8 +29,4 @@ + #define _POSIX_C_SOURCE 200112L + #endif + +-#ifndef _XOPEN_SOURCE +-#define _XOPEN_SOURCE 500 +-#endif +- + #endif diff --git a/lang/janet/pkg-plist b/lang/janet/pkg-plist index a726635f6b67..9275a455aebe 100644 --- a/lang/janet/pkg-plist +++ b/lang/janet/pkg-plist @@ -5,5 +5,6 @@ include/janet/janetconf.h lib/janet/.keep lib/libjanet.a lib/libjanet.so +libdata/pkgconfig/janet.pc man/man1/janet.1.gz man/man1/jpm.1.gz