FreeBSD Bugzilla – Attachment 195662 Details for
Bug 230205
devel/lua-bitop: fix for 5.3+
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch
bitop.patch (text/plain), 1.96 KB, created by
Andrew "RhodiumToad" Gierth
on 2018-07-30 23:20:13 UTC
(
hide
)
Description:
Patch
Filename:
MIME Type:
Creator:
Andrew "RhodiumToad" Gierth
Created:
2018-07-30 23:20:13 UTC
Size:
1.96 KB
patch
obsolete
>Index: Makefile >=================================================================== >--- Makefile (revision 475861) >+++ Makefile (working copy) >@@ -1,28 +1,36 @@ > # Created by: Sunpoet Po-Chuan Hsieh <sunpoet@FreeBSD.org> > # $FreeBSD$ > > PORTNAME= bitop > PORTVERSION= 1.0.2 >+PORTREVISION= 1 > CATEGORIES= devel > MASTER_SITES= http://bitop.luajit.org/download/ \ > LOCAL/sunpoet >+PKGNAMEPREFIX= ${LUA_PKGNAMEPREFIX} > DISTNAME= LuaBitOp-${PORTVERSION} >-PKGNAMEPREFIX= ${LUA_PKGNAMEPREFIX} > > MAINTAINER= sunpoet@FreeBSD.org > COMMENT= Bitwise operations on numbers > > LICENSE= MIT > >-CFLAGS+= -DLUA_NUMBER_LONG_LONG -I${LUA_INCDIR} >+LUA53_CFLAGS= -DLUA_NUMBER_DOUBLE >+ >+CFLAGS+= ${${LUA_VER_STR} >= 53:?${LUA53_CFLAGS}:} >+CFLAGS+= -I${LUA_INCDIR} > MAKE_ARGS= CC=${CC} LUA=${LUA_CMD} > TEST_TARGET= test > USES?= gmake lua > >-PLIST_FILES= %%LUA_MODLIBDIR%%/bit.so >+LUA53_PATCHES= ${PATCHDIR}/lua53-patch-bittest.lua > >+EXTRA_PATCHES= ${${LUA_VER_STR} >= 53:?${LUA53_PATCHES}:} >+ >+PLIST_FILES= ${LUA_MODLIBDIR}/bit.so >+ > do-install: > ${MKDIR} ${STAGEDIR}${LUA_MODLIBDIR}/ > ${INSTALL_LIB} ${WRKSRC}/bit.so ${STAGEDIR}${LUA_MODLIBDIR}/ > > .include <bsd.port.mk> >Index: files/lua53-patch-bittest.lua >=================================================================== >--- files/lua53-patch-bittest.lua (nonexistent) >+++ files/lua53-patch-bittest.lua (working copy) >@@ -0,0 +1,13 @@ >+--- bittest.lua.orig 2018-07-30 22:45:21 UTC >++++ bittest.lua >+@@ -8,6 +8,10 @@ local vb = { >+ 0x7fffffff, 0x80000000, 0xffffffff >+ } >+ >++local function tostring(n) >++ return type(n)=="string" and n or string.format("%.11g",n) >++end >++ >+ local function cksum(name, s, r) >+ local z = 0 >+ for i=1,#s do z = (z + string.byte(s, i)*i) % 2147483629 end > >Property changes on: files/lua53-patch-bittest.lua >___________________________________________________________________ >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
Actions:
View
|
Diff
Attachments on
bug 230205
: 195662