Received: by mail.netbsd.org (Postfix, from userid 605) id 5886E84D71; Thu, 3 Sep 2020 07:39:41 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by mail.netbsd.org (Postfix) with ESMTP id D569C84D2D for ; Thu, 3 Sep 2020 07:39:40 +0000 (UTC) X-Virus-Scanned: amavisd-new at netbsd.org Received: from mail.netbsd.org ([IPv6:::1]) by localhost (mail.netbsd.org [IPv6:::1]) (amavisd-new, port 10025) with ESMTP id cm39qfdms8g4 for ; Thu, 3 Sep 2020 07:39:40 +0000 (UTC) Received: from cvs.NetBSD.org (ivanova.netbsd.org [199.233.217.197]) by mail.netbsd.org (Postfix) with ESMTP id 62B4284CDA for ; Thu, 3 Sep 2020 07:39:40 +0000 (UTC) Received: by cvs.NetBSD.org (Postfix, from userid 500) id 5BEDAFB28; Thu, 3 Sep 2020 07:39:40 +0000 (UTC) Content-Transfer-Encoding: 7bit Content-Type: multipart/mixed; boundary="_----------=_1599118780110730" MIME-Version: 1.0 Date: Thu, 3 Sep 2020 07:39:40 +0000 From: "Nia Alarie" Subject: CVS commit: pkgsrc/www/lua-http To: pkgsrc-changes@NetBSD.org Reply-To: nia@netbsd.org X-Mailer: log_accum Message-Id: <20200903073940.5BEDAFB28@cvs.NetBSD.org> Sender: pkgsrc-changes-owner@NetBSD.org List-Id: pkgsrc-changes.NetBSD.org Precedence: bulk List-Unsubscribe: This is a multi-part message in MIME format. --_----------=_1599118780110730 Content-Disposition: inline Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="US-ASCII" Module Name: pkgsrc Committed By: nia Date: Thu Sep 3 07:39:40 UTC 2020 Modified Files: pkgsrc/www/lua-http: Makefile Added Files: pkgsrc/www/lua-http/patches: patch-http_bit.lua Log Message: lua-http: Recognize Lua 5.4's bit library To generate a diff of this commit: cvs rdiff -u -r1.2 -r1.3 pkgsrc/www/lua-http/Makefile cvs rdiff -u -r0 -r1.1 pkgsrc/www/lua-http/patches/patch-http_bit.lua Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. --_----------=_1599118780110730 Content-Disposition: inline Content-Length: 1404 Content-Transfer-Encoding: binary Content-Type: text/x-diff; charset=us-ascii Modified files: Index: pkgsrc/www/lua-http/Makefile diff -u pkgsrc/www/lua-http/Makefile:1.2 pkgsrc/www/lua-http/Makefile:1.3 --- pkgsrc/www/lua-http/Makefile:1.2 Thu Sep 3 07:34:59 2020 +++ pkgsrc/www/lua-http/Makefile Thu Sep 3 07:39:40 2020 @@ -1,7 +1,8 @@ -# $NetBSD: Makefile,v 1.2 2020/09/03 07:34:59 nia Exp $ +# $NetBSD: Makefile,v 1.3 2020/09/03 07:39:40 nia Exp $ DISTNAME= lua-http-0.3 PKGNAME= ${LUA_PKGPREFIX}-${DISTNAME:S/lua-//1} +PKGREVISION= 1 CATEGORIES= www lua MASTER_SITES= ${MASTER_SITE_GITHUB:=daurnimator/} GITHUB_PROJECT= lua-http Added files: Index: pkgsrc/www/lua-http/patches/patch-http_bit.lua diff -u /dev/null pkgsrc/www/lua-http/patches/patch-http_bit.lua:1.1 --- /dev/null Thu Sep 3 07:39:40 2020 +++ pkgsrc/www/lua-http/patches/patch-http_bit.lua Thu Sep 3 07:39:40 2020 @@ -0,0 +1,15 @@ +$NetBSD: patch-http_bit.lua,v 1.1 2020/09/03 07:39:40 nia Exp $ + +Recognize Lua 5.4. + +--- http/bit.lua.orig 2019-02-13 11:43:45.000000000 +0000 ++++ http/bit.lua +@@ -8,7 +8,7 @@ This means we can ignore the differences + ]] + + -- Lua 5.3 has built-in bit operators, wrap them in a function. +-if _VERSION == "Lua 5.3" then ++if _VERSION == "Lua 5.3" or _VERSION == "Lua 5.4" then + -- Use debug.getinfo to get correct file+line numbers for loaded snippet + local info = debug.getinfo(1, "Sl") + return assert(load(("\n"):rep(info.currentline+1)..[[return { --_----------=_1599118780110730--