lang/janet: Update to v1.8.0

Changes:	https://github.com/janet-lang/janet/releases/tag/v1.8.0
This commit is contained in:
Tobias Kortkamp 2020-03-30 12:01:38 +00:00
parent 111b230772
commit 1f147c40dd
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=529877
5 changed files with 70 additions and 4 deletions

View file

@ -2,7 +2,7 @@
PORTNAME= janet
DISTVERSIONPREFIX= v
DISTVERSION= 1.7.0
DISTVERSION= 1.8.0
CATEGORIES= lang
MAINTAINER= tobik@FreeBSD.org

View file

@ -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

View file

@ -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 <math.h> 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 <math.h> 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

View file

@ -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

View file

@ -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