Date: Tue, 4 Sep 2018 07:37:57 +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: r478932 - in head/lang/chicken5: . files Message-ID: <201809040737.w847bvLc009462@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: tobik Date: Tue Sep 4 07:37:56 2018 New Revision: 478932 URL: https://svnweb.freebsd.org/changeset/ports/478932 Log: lang/chicken5: Obtain entropy via arc4random_buf on FreeBSD too Also fix parallel build while here Added: head/lang/chicken5/files/ head/lang/chicken5/files/patch-rules.make (contents, props changed) head/lang/chicken5/files/patch-runtime.c (contents, props changed) Modified: head/lang/chicken5/Makefile Modified: head/lang/chicken5/Makefile ============================================================================== --- head/lang/chicken5/Makefile Tue Sep 4 07:26:02 2018 (r478931) +++ head/lang/chicken5/Makefile Tue Sep 4 07:37:56 2018 (r478932) @@ -3,6 +3,7 @@ PORTNAME= chicken DISTVERSION= 5.0.0rc1 +PORTREVISION= 1 CATEGORIES= lang scheme MASTER_SITES= https://code.call-cc.org/dev-snapshots/2018/08/11/ PKGNAMESUFFIX= 5 @@ -27,7 +28,6 @@ MAKE_ARGS= PLATFORM=bsd \ C_COMPILER_OPTIMIZATION_OPTIONS="${CFLAGS}" \ LINKER_OPTIONS="${LDFLAGS}" \ PROGRAM_SUFFIX="${PKGNAMESUFFIX}" -MAKE_JOBS_UNSAFE= yes PLIST_SUB= SUFFIX=${PKGNAMESUFFIX} TEST_TARGET= check Added: head/lang/chicken5/files/patch-rules.make ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/lang/chicken5/files/patch-rules.make Tue Sep 4 07:37:56 2018 (r478932) @@ -0,0 +1,11 @@ +--- rules.make.orig 2018-09-03 08:22:31 UTC ++++ rules.make +@@ -252,7 +252,7 @@ $(eval $(call declare-program-from-object,$(CSI_STATIC + + # "chicken-do" + +-$(CHICKEN_DO_PROGRAM)$(EXE): $(SRCDIR)chicken-do.c ++$(CHICKEN_DO_PROGRAM)$(EXE): $(SRCDIR)chicken-do.c $(CHICKEN_CONFIG_H) + $(C_COMPILER) $(C_COMPILER_OPTIONS) $< -o $@ + + # scripts Added: head/lang/chicken5/files/patch-runtime.c ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/lang/chicken5/files/patch-runtime.c Tue Sep 4 07:37:56 2018 (r478932) @@ -0,0 +1,11 @@ +--- runtime.c.orig 2018-09-02 13:30:07 UTC ++++ runtime.c +@@ -12577,7 +12577,7 @@ C_word C_random_bytes(C_word buf, C_word size) + int r = 0; + int off = 0; + +-#ifdef __OpenBSD__ ++#if defined(__OpenBSD__) || defined(__FreeBSD__) + arc4random_buf(C_data_pointer(buf), count); + #elif defined(SYS_getrandom) && defined(__NR_getrandom) + static int use_urandom = 0;
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201809040737.w847bvLc009462>