FreeBSD Bugzilla – Attachment 164875 Details for
Bug 199480
lang/lua52, lang/lua53: Use 'arc4random()' instead of 'time()' for string hash seed
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
lua-arc4random.diff
lua-arc4random.diff (text/plain), 1.71 KB, created by
Vitaly Magerya
on 2015-12-30 20:08:10 UTC
(
hide
)
Description:
lua-arc4random.diff
Filename:
MIME Type:
Creator:
Vitaly Magerya
Created:
2015-12-30 20:08:10 UTC
Size:
1.71 KB
patch
obsolete
>diff -ruN lua52.orig/Makefile lua52/Makefile >--- lua52.orig/Makefile 2015-12-16 23:44:17.000000000 +0200 >+++ lua52/Makefile 2015-12-30 21:44:42.000000000 +0200 >@@ -28,7 +28,9 @@ > CPPFLAGS+= -I${LOCALBASE}/include > LDFLAGS+= -lm -pthread > BUILD_WRKSRC= ${WRKSRC}/src >-MAKE_ARGS+= MYCFLAGS="${CFLAGS} ${CPPFLAGS} -DLUA_USE_LINUX" \ >+MAKE_ARGS+= MYCFLAGS="${CFLAGS} ${CPPFLAGS} -DLUA_USE_LINUX \ >+ -DLUA_USER_H='<stdlib.h>' \ >+ -D'luai_makeseed()=cast(unsigned int, arc4random())'" \ > MYLDFLAGS="${LDFLAGS}" \ > MYLIBS="-Wl,-E -L${LOCALBASE}/lib -ledit" \ > CC="${CC}" \ >diff -ruN lua53.orig/Makefile lua53/Makefile >--- lua53.orig/Makefile 2015-12-25 14:04:23.000000000 +0200 >+++ lua53/Makefile 2015-12-30 21:51:39.000000000 +0200 >@@ -28,7 +28,10 @@ > CPPFLAGS+= -I${LOCALBASE}/include > LDFLAGS+= -lm -pthread > BUILD_WRKSRC= ${WRKSRC}/src >-MAKE_ARGS+= MYCFLAGS="${CFLAGS} ${CPPFLAGS} -DLUA_USE_LINUX" \ >+MAKE_ARGS+= MYCFLAGS="${CFLAGS} ${CPPFLAGS} -DLUA_USE_LINUX \ >+ -D__BSD_VISIBLE \ >+ -DLUA_USER_H='<stdlib.h>' \ >+ -D'luai_makeseed()=cast(unsigned int, arc4random())'" \ > MYLDFLAGS="${LDFLAGS}" \ > MYLIBS="-Wl,-E -L${LOCALBASE}/lib -ledit" \ > CC="${CC}" \ >diff -ruN lua53.orig/files/patch-src__Makefile lua53/files/patch-src__Makefile >--- lua53.orig/files/patch-src__Makefile 2015-12-25 14:04:23.000000000 +0200 >+++ lua53/files/patch-src__Makefile 2015-12-30 21:50:47.000000000 +0200 >@@ -7,7 +7,7 @@ > -CC= gcc -std=gnu99 > -CFLAGS= -O2 -Wall -Wextra -DLUA_COMPAT_5_2 $(SYSCFLAGS) $(MYCFLAGS) > +CC?= gcc -std=gnu99 >-+CFLAGS?= -O2 -Wall -Wextra -DLUA_COMPAT_5_2 $(SYSCFLAGS) $(MYCFLAGS) >++CFLAGS= -O2 -Wall -Wextra -DLUA_COMPAT_5_2 $(SYSCFLAGS) $(MYCFLAGS) > LDFLAGS= $(SYSLDFLAGS) $(MYLDFLAGS) > LIBS= -lm $(SYSLIBS) $(MYLIBS) >
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
Actions:
View
|
Diff
Attachments on
bug 199480
:
155642
| 164875