pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/lang/quickjs Make some adjustments to fix the issues f...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/dfcf16e8956c
branches:  trunk
changeset: 411333:dfcf16e8956c
user:      he <he%pkgsrc.org@localhost>
date:      Mon Feb 10 13:06:08 2020 +0000

description:
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.

diffstat:

 lang/quickjs/Makefile               |  21 +++++++++++++--------
 lang/quickjs/PLIST                  |   6 ++----
 lang/quickjs/distinfo               |   4 ++--
 lang/quickjs/patches/patch-Makefile |  14 +++++++++-----
 4 files changed, 26 insertions(+), 19 deletions(-)

diffs (115 lines):

diff -r 6d262894f213 -r dfcf16e8956c lang/quickjs/Makefile
--- a/lang/quickjs/Makefile     Mon Feb 10 13:00:48 2020 +0000
+++ b/lang/quickjs/Makefile     Mon Feb 10 13:06:08 2020 +0000
@@ -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 @@
 
 .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"
diff -r 6d262894f213 -r dfcf16e8956c lang/quickjs/PLIST
--- a/lang/quickjs/PLIST        Mon Feb 10 13:00:48 2020 +0000
+++ b/lang/quickjs/PLIST        Mon Feb 10 13:06:08 2020 +0000
@@ -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
diff -r 6d262894f213 -r dfcf16e8956c lang/quickjs/distinfo
--- a/lang/quickjs/distinfo     Mon Feb 10 13:00:48 2020 +0000
+++ b/lang/quickjs/distinfo     Mon Feb 10 13:06:08 2020 +0000
@@ -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
diff -r 6d262894f213 -r dfcf16e8956c lang/quickjs/patches/patch-Makefile
--- a/lang/quickjs/patches/patch-Makefile       Mon Feb 10 13:00:48 2020 +0000
+++ b/lang/quickjs/patches/patch-Makefile       Mon Feb 10 13:06:08 2020 +0000
@@ -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 @@
  # 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 @@
  
  $(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



Home | Main Index | Thread Index | Old Index