Received: by mail.netbsd.org (Postfix, from userid 605) id 6E05584D79; Mon, 10 Feb 2020 13:06:10 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by mail.netbsd.org (Postfix) with ESMTP id E861584D73 for ; Mon, 10 Feb 2020 13:06:09 +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 gt-Yz7YItNGC for ; Mon, 10 Feb 2020 13:06:09 +0000 (UTC) Received: from cvs.NetBSD.org (ivanova.netbsd.org [199.233.217.197]) by mail.netbsd.org (Postfix) with ESMTP id 23C3284D28 for ; Mon, 10 Feb 2020 13:06:09 +0000 (UTC) Received: by cvs.NetBSD.org (Postfix, from userid 500) id 18A8FFBF4; Mon, 10 Feb 2020 13:06:09 +0000 (UTC) Content-Transfer-Encoding: 7bit Content-Type: multipart/mixed; boundary="_----------=_1581339969251040" MIME-Version: 1.0 Date: Mon, 10 Feb 2020 13:06:09 +0000 From: "Havard Eidnes" Subject: CVS commit: pkgsrc/lang/quickjs To: pkgsrc-changes@NetBSD.org Reply-To: he@netbsd.org X-Mailer: log_accum Message-Id: <20200210130609.18A8FFBF4@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. --_----------=_1581339969251040 Content-Disposition: inline Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="US-ASCII" Module Name: pkgsrc Committed By: he Date: Mon Feb 10 13:06:09 UTC 2020 Modified Files: pkgsrc/lang/quickjs: Makefile PLIST distinfo pkgsrc/lang/quickjs/patches: patch-Makefile Log Message: Make some adjustments to fix the issues from PR#54912: * Don't use DATE as a variable, as it's used elsewhere, use QJS_DATE instead * Don't use the "bignum" PLIST variable anymore, the "bn" variants are no longer being built * Add "lto" PLIST variable, supported by and used on Linux * Move the setting of CONFIG_BIGNUM to the pkg Makefile instead of always setting it, should support 32-bit NetBSD ports. Bump PKGREVISION. To generate a diff of this commit: cvs rdiff -u -r1.4 -r1.5 pkgsrc/lang/quickjs/Makefile \ pkgsrc/lang/quickjs/distinfo cvs rdiff -u -r1.2 -r1.3 pkgsrc/lang/quickjs/PLIST cvs rdiff -u -r1.2 -r1.3 pkgsrc/lang/quickjs/patches/patch-Makefile Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. --_----------=_1581339969251040 Content-Disposition: inline Content-Length: 4154 Content-Transfer-Encoding: binary Content-Type: text/x-diff; charset=us-ascii Modified files: Index: pkgsrc/lang/quickjs/Makefile diff -u pkgsrc/lang/quickjs/Makefile:1.4 pkgsrc/lang/quickjs/Makefile:1.5 --- pkgsrc/lang/quickjs/Makefile:1.4 Sun Jan 26 19:08:41 2020 +++ pkgsrc/lang/quickjs/Makefile Mon Feb 10 13:06:08 2020 @@ -1,10 +1,11 @@ -# $NetBSD: Makefile,v 1.4 2020/01/26 19:08:41 he Exp $ +# $NetBSD: Makefile,v 1.5 2020/02/10 13:06:08 he Exp $ NAME= quickjs -DATE= 2020-01-19 -VERSION= ${DATE:S/-//g} -DISTNAME= ${NAME}-${DATE} +QJS_DATE= 2020-01-19 +VERSION= ${QJS_DATE:S/-//g} +DISTNAME= ${NAME}-${QJS_DATE} PKGNAME= ${NAME}-${VERSION} +PKGREVISION= 1 CATEGORIES= lang MASTER_SITES= https://bellard.org/quickjs/ EXTRACT_SUFX= .tar.xz @@ -20,14 +21,18 @@ TEST_TARGET= test .include "../../mk/bsd.prefs.mk" -PLIST_VARS+= bignum +PLIST_VARS+= lto + .if ${OPSYS} == "NetBSD" HAS_ATOMIC_64!= ${CC} -E files/netbsd-has-atomic64.c | tail -1 .if (${HAS_ATOMIC_64} == "YES") -PLIST.bignum=yes +MAKE_ENV+= CONFIG_BIGNUM=yes .endif -.else # Not NetBSD -PLIST.bignum=yes +.elif ${OPSYS} == "Linux" +PLIST.lto=yes +.else # Not NetBSD && not Linux +# Presumed to be supported +MAKE_ENV+= CONFIG_BIGNUM=yes .endif .include "../../mk/bsd.pkg.mk" Index: pkgsrc/lang/quickjs/distinfo diff -u pkgsrc/lang/quickjs/distinfo:1.4 pkgsrc/lang/quickjs/distinfo:1.5 --- pkgsrc/lang/quickjs/distinfo:1.4 Sun Jan 26 18:37:49 2020 +++ pkgsrc/lang/quickjs/distinfo Mon Feb 10 13:06:08 2020 @@ -1,10 +1,10 @@ -$NetBSD: distinfo,v 1.4 2020/01/26 18:37:49 he Exp $ +$NetBSD: distinfo,v 1.5 2020/02/10 13:06:08 he Exp $ SHA1 (quickjs-2020-01-19.tar.xz) = a33a7abb4471d566da39df90d0b688d120a8a2c4 RMD160 (quickjs-2020-01-19.tar.xz) = 0de6489bf915c3e3d558c39bf5e7b264249b57a5 SHA512 (quickjs-2020-01-19.tar.xz) = 6bbd271a3a3adfd612c9723f98d04c7a62b9f8c44ca5ae2134d34baa077f6fdba3ac65d43f8c573fdc5af23309cde7ada8cc12caf73236d2a9286fecdf677cf2 Size (quickjs-2020-01-19.tar.xz) = 735868 bytes -SHA1 (patch-Makefile) = 73dd794bd79bc54ec17f94cc059f598da0af9cfe +SHA1 (patch-Makefile) = c31015842b53368344e07eb39873fa496e5f79f1 SHA1 (patch-cutils.h) = db3fad2bd422d2886538819ef778d13a391d6935 SHA1 (patch-qjs.c) = 2a2d778bb43540dc5289f84cd9df43162c1ce291 SHA1 (patch-qjsc.c) = 9a70bde5e19b65942d9f23c10d0b7b3e2741bfaa Index: pkgsrc/lang/quickjs/PLIST diff -u pkgsrc/lang/quickjs/PLIST:1.2 pkgsrc/lang/quickjs/PLIST:1.3 --- pkgsrc/lang/quickjs/PLIST:1.2 Sun Jan 26 19:04:43 2020 +++ pkgsrc/lang/quickjs/PLIST Mon Feb 10 13:06:08 2020 @@ -1,10 +1,8 @@ -@comment $NetBSD: PLIST,v 1.2 2020/01/26 19:04:43 he Exp $ +@comment $NetBSD: PLIST,v 1.3 2020/02/10 13:06:08 he Exp $ bin/qjs -${PLIST.bignum}bin/qjsbn -${PLIST.bignum}bin/qjsbnc bin/qjsc bin/qjscalc include/quickjs/quickjs-libc.h include/quickjs/quickjs.h lib/quickjs/libquickjs.a -${PLIST.bignum}lib/quickjs/libquickjs.bn.a +${PLIST.lto}lib/quickjs/libquickjs.lto.a Index: pkgsrc/lang/quickjs/patches/patch-Makefile diff -u pkgsrc/lang/quickjs/patches/patch-Makefile:1.2 pkgsrc/lang/quickjs/patches/patch-Makefile:1.3 --- pkgsrc/lang/quickjs/patches/patch-Makefile:1.2 Sun Jan 26 18:37:49 2020 +++ pkgsrc/lang/quickjs/patches/patch-Makefile Mon Feb 10 13:06:08 2020 @@ -1,4 +1,4 @@ -$NetBSD: patch-Makefile,v 1.2 2020/01/26 18:37:49 he Exp $ +$NetBSD: patch-Makefile,v 1.3 2020/02/10 13:06:08 he Exp $ Portability patch for NetBSD. @@ -36,15 +36,19 @@ Portability patch for NetBSD. # installation directory prefix=/usr/local -@@ -47,6 +57,7 @@ prefix=/usr/local +@@ -47,8 +57,10 @@ prefix=/usr/local #CONFIG_PROFILE=y # use address sanitizer #CONFIG_ASAN=y + # include the code for BigInt/BigFloat/BigDecimal and math mode - CONFIG_BIGNUM=y +-CONFIG_BIGNUM=y ++# Set via environment in pkg Makefile if supported: ++# CONFIG_BIGNUM=y -@@ -168,8 +179,10 @@ endif + OBJDIR=.obj + +@@ -168,8 +180,10 @@ endif LIBS=-lm ifndef CONFIG_WIN32 @@ -55,7 +59,7 @@ Portability patch for NetBSD. $(OBJDIR): mkdir -p $(OBJDIR) $(OBJDIR)/examples $(OBJDIR)/tests -@@ -195,6 +208,9 @@ QJSC_DEFINES:=-DCONFIG_CC=\"$(QJSC_CC)\" +@@ -195,6 +209,9 @@ QJSC_DEFINES:=-DCONFIG_CC=\"$(QJSC_CC)\" ifdef CONFIG_LTO QJSC_DEFINES+=-DCONFIG_LTO endif --_----------=_1581339969251040--