FreeBSD Bugzilla – Attachment 218470 Details for
Bug 250049
lang/luajit-openresty: does not build under Poudriere version: 3.3.4 / freebsd 11.4 (freebsd 12.1 host)
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
[patch] fall back to /dev/urandom for 11.x (no getentropy(3))
pr-luajit-openresty-fix-no-getentropy.diff (text/plain), 1.42 KB, created by
John Hein
on 2020-10-02 17:42:25 UTC
(
hide
)
Description:
[patch] fall back to /dev/urandom for 11.x (no getentropy(3))
Filename:
MIME Type:
Creator:
John Hein
Created:
2020-10-02 17:42:25 UTC
Size:
1.42 KB
patch
obsolete
>Index: Makefile >=================================================================== >--- Makefile (revision 551171) >+++ Makefile (working copy) >@@ -44,3 +44,7 @@ > ${INSTALL_MAN} ${WRKSRC}/etc/luajit.1 ${STAGEDIR}${MAN1PREFIX}/man/man1 > > .include <bsd.port.mk> >+ >+.if ${OPSYS} == FreeBSD && ${OSVERSION} < 1200000 >+MAKE_ARGS+= XCFLAGS=-DLJ_TARGET_HAS_GETENTROPY=0 Q= >+.endif >Index: files/patch-src-lj_prng.c >=================================================================== >--- files/patch-src-lj_prng.c (nonexistent) >+++ files/patch-src-lj_prng.c (working copy) >@@ -0,0 +1,18 @@ >+--- src/lj_prng.c 2020-10-02 05:52:18 UTC >++++ src/lj_prng.c >+@@ -109,6 +109,7 @@ static PRGR libfunc_rgr; >+ #include <sys/syscall.h> >+ #else >+ >++#ifndef LJ_TARGET_HAS_GETENTROPY >+ #if LJ_TARGET_OSX >+ #include <Availability.h> >+ #if __MAC_OS_X_VERSION_MIN_REQUIRED >= 101200 || \ >+@@ -118,6 +119,7 @@ static PRGR libfunc_rgr; >+ #elif LJ_TARGET_BSD || LJ_TARGET_SOLARIS || LJ_TARGET_CYGWIN >+ #define LJ_TARGET_HAS_GETENTROPY 1 >+ #endif >++#endif >+ >+ #if LJ_TARGET_HAS_GETENTROPY >+ extern int getentropy(void *buf, size_t len); > >Property changes on: files/patch-src-lj_prng.c >___________________________________________________________________ >Added: fbsd:nokeywords >## -0,0 +1 ## >+yes >\ No newline at end of property >Added: svn:eol-style >## -0,0 +1 ## >+native >\ No newline at end of property >Added: svn:mime-type >## -0,0 +1 ## >+text/plain >\ No newline at end of property
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Flags:
jcfyecrayz
:
maintainer-approval?
(
mm
)
Actions:
View
|
Diff
Attachments on
bug 250049
:
218466
| 218470