Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 30 Mar 2020 12:01:38 +0000 (UTC)
From:      Tobias Kortkamp <tobik@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r529877 - in head/lang/janet: . files
Message-ID:  <202003301201.02UC1cie067695@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: tobik
Date: Mon Mar 30 12:01:38 2020
New Revision: 529877
URL: https://svnweb.freebsd.org/changeset/ports/529877

Log:
  lang/janet: Update to v1.8.0
  
  Changes:	https://github.com/janet-lang/janet/releases/tag/v1.8.0

Added:
  head/lang/janet/files/
  head/lang/janet/files/patch-src_boot_boot.janet   (contents, props changed)
  head/lang/janet/files/patch-src_core_features.h   (contents, props changed)
Modified:
  head/lang/janet/Makefile
  head/lang/janet/distinfo
  head/lang/janet/pkg-plist

Modified: head/lang/janet/Makefile
==============================================================================
--- head/lang/janet/Makefile	Mon Mar 30 11:41:29 2020	(r529876)
+++ head/lang/janet/Makefile	Mon Mar 30 12:01:38 2020	(r529877)
@@ -2,7 +2,7 @@
 
 PORTNAME=	janet
 DISTVERSIONPREFIX=	v
-DISTVERSION=	1.7.0
+DISTVERSION=	1.8.0
 CATEGORIES=	lang
 
 MAINTAINER=	tobik@FreeBSD.org

Modified: head/lang/janet/distinfo
==============================================================================
--- head/lang/janet/distinfo	Mon Mar 30 11:41:29 2020	(r529876)
+++ head/lang/janet/distinfo	Mon Mar 30 12:01:38 2020	(r529877)
@@ -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

Added: head/lang/janet/files/patch-src_boot_boot.janet
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/lang/janet/files/patch-src_boot_boot.janet	Mon Mar 30 12:01:38 2020	(r529877)
@@ -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

Added: head/lang/janet/files/patch-src_core_features.h
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/lang/janet/files/patch-src_core_features.h	Mon Mar 30 12:01:38 2020	(r529877)
@@ -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

Modified: head/lang/janet/pkg-plist
==============================================================================
--- head/lang/janet/pkg-plist	Mon Mar 30 11:41:29 2020	(r529876)
+++ head/lang/janet/pkg-plist	Mon Mar 30 12:01:38 2020	(r529877)
@@ -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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202003301201.02UC1cie067695>