From nobody Fri Jan 3 14:38:15 2025 X-Original-To: dev-commits-ports-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4YPmQb4R9Zz5k3sH; Fri, 03 Jan 2025 14:38:15 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4YPmQb3fx0z4Pnl; Fri, 3 Jan 2025 14:38:15 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1735915095; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=oIrHgY5bYit0JewN+cj5ctYQ2YBbDcPoN2Ri8qHNemM=; b=S9HiCfAU46DJ2Nk+wfwisDKUqVRoxzRKmPiGLuC8iIdXfXHwEqTBgzpHD92UQil8hv3Rvq fY1dVGp+ZntJ1ZCnFjOHmIOgjZERLXHggsUxcOfau3drDxw9gF4uemzXr5ezkxu3sn8Yi5 C/+4mAoLw31Ed08xNbEEMhXT+RpKGsypS0waQ7+BJxZs58CRELYWUo2pgBjwdO2bKmU0Qt Lw26AZnbSW54SyTaC3dvaJHjhMhryXniZy98ascKRAU1xhicXInAtqpJuwBQXuS5VyFp8G CfshdIu4PJsZHpT/Q67dsX5IHwow91epMUHMy2oxeUGZMLkAiFi9UyGNSQKvHg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1735915095; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=oIrHgY5bYit0JewN+cj5ctYQ2YBbDcPoN2Ri8qHNemM=; b=F6YDC3AqjK9SzdMoRpsrO2V+I/iBY1vhE6gZX3+s8flcTGhmGK/64cceF9cT7lUu0WqSjj z3lzDJROj+d+2GCF1QYAR2snJV/OKSdm7KRTix7/hCca9F9Rma6eEaYTaUBFM/1ca8ORbL XR+HK8v3yYVgMn5K3e/CSykQXk/FftsN71Vrrtk7hnV8i8qWpfwLrVbLs1vdQQoKClQlUR /S7CjPj0Efbu9UR2bBqx/Ys6a7igUv9iiAQgQZu+T+emvmZ9cqUS34nNoglT6mLaWpWNl7 4lL2gtorGlprryL6w6EgtDqvTAX7+msbTlXtahbbv+OnD77muhbuDm8XJ/SLiA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1735915095; a=rsa-sha256; cv=none; b=sAlnPK/CZ9Ooj4qDDBNqCBkW3VBq9JldGhM9P3vxG6UFqFuPF+l/JW7ZW/5rpgOb/Jlysw uiLO6nGzFejqL1uY6S0AVCftpdX6hLr3Np1oAd72AIW1o0DjIc/1Nx3Xd7C1NvRTtCbpFL 8UW5HcUgSBfIJg0zsB9nY68xA23WVOoKds363ObipKWhPGu8UZwBehtSNReNxTYcyZNBpO M4qtgQipnN2LqefLJubGmewZ5acKYiV4Sf5BBOWk1xKg/jZI286VWk07sIG8to0/QIe/vj 4+dxWAa1KWVH7MtctoZdWaK0BckYf83uSmVMfb4CWv0wW0wCgff1a4PXb/efCQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4YPmQb2RFkz1P72; Fri, 03 Jan 2025 14:38:15 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 503EcFXv029728; Fri, 3 Jan 2025 14:38:15 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 503EcFWs029725; Fri, 3 Jan 2025 14:38:15 GMT (envelope-from git) Date: Fri, 3 Jan 2025 14:38:15 GMT Message-Id: <202501031438.503EcFWs029725@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Nuno Teixeira Subject: git: 2a132052a967 - main - devel/R-cran-data.table: Update to 1.16.4 List-Id: Commit messages for all branches of the ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-ports-all@freebsd.org Sender: owner-dev-commits-ports-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: eduardo X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 2a132052a96744d4032b6bd8e707e13f87de9e7d Auto-Submitted: auto-generated The branch main has been updated by eduardo: URL: https://cgit.FreeBSD.org/ports/commit/?id=2a132052a96744d4032b6bd8e707e13f87de9e7d commit 2a132052a96744d4032b6bd8e707e13f87de9e7d Author: Nuno Teixeira AuthorDate: 2025-01-03 14:31:00 +0000 Commit: Nuno Teixeira CommitDate: 2025-01-03 14:38:03 +0000 devel/R-cran-data.table: Update to 1.16.4 - Use openmp by default - Fix tests with upstream patch ChangeLog: https://cran.r-project.org/web/packages/data.table/news/news.html --- devel/R-cran-data.table/Makefile | 15 +++++++++----- devel/R-cran-data.table/distinfo | 6 +++--- devel/R-cran-data.table/files/extra-patch-test | 27 ++++++++++++++++++++++++++ devel/R-cran-data.table/files/patch-configure | 16 +++++++++++++++ 4 files changed, 56 insertions(+), 8 deletions(-) diff --git a/devel/R-cran-data.table/Makefile b/devel/R-cran-data.table/Makefile index 100dbe683927..5c41fed0ba59 100644 --- a/devel/R-cran-data.table/Makefile +++ b/devel/R-cran-data.table/Makefile @@ -1,5 +1,5 @@ PORTNAME= data.table -DISTVERSION= 1.15.4 +DISTVERSION= 1.16.4 CATEGORIES= devel DISTNAME= ${PORTNAME}_${DISTVERSION} @@ -10,14 +10,19 @@ WWW= https://cran.r-project.org/web/packages/data.table/ LICENSE= MPL20 LICENSE_FILE= ${WRKSRC}/LICENSE +TEST_DEPENDS= R-cran-bit64>0:devel/R-cran-bit64 \ + R-cran-knitr>0:print/R-cran-knitr +# Tests fail if no /etc/locatime symlink defined + USES= cran:auto-plist,compiles pkgconfig -NO_ARCH_IGNORE= data_table.so +EXTRA_PATCHES= ${FILESDIR}/extra-patch-test:-p1 -OPTIONS_DEFINE= OPENMP -OPTIONS_DEFAULT= OPENMP +NO_ARCH_IGNORE= data_table.so -OPENMP_CONFIGURE_ENABLE= openmp +# Decompress so patch could be applied. Tests will run from uncompressed file. +pre-patch: + ${BZIP2_CMD} -d ${WRKSRC}/inst/tests/tests.Rraw.bz2 post-install: ${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/R/library/data.table/libs/data_table.so diff --git a/devel/R-cran-data.table/distinfo b/devel/R-cran-data.table/distinfo index 497612d9aa61..4ec9c30412cb 100644 --- a/devel/R-cran-data.table/distinfo +++ b/devel/R-cran-data.table/distinfo @@ -1,3 +1,3 @@ -TIMESTAMP = 1711960872 -SHA256 (data.table_1.15.4.tar.gz) = ab8065ff946d59ecaaf5eaf91a975495c07c30caad97a71205c72e41a740cb53 -SIZE (data.table_1.15.4.tar.gz) = 5387593 +TIMESTAMP = 1735906834 +SHA256 (data.table_1.16.4.tar.gz) = 72764bb3aebc111de60223cfb32b6111a47081e3a1e7f6d20c78eb7f30269cdf +SIZE (data.table_1.16.4.tar.gz) = 5490632 diff --git a/devel/R-cran-data.table/files/extra-patch-test b/devel/R-cran-data.table/files/extra-patch-test new file mode 100644 index 000000000000..f96280f75fc1 --- /dev/null +++ b/devel/R-cran-data.table/files/extra-patch-test @@ -0,0 +1,27 @@ +From 71bfe065ad5c6ddc40b0b5831802b48d9459c56e Mon Sep 17 00:00:00 2001 +From: Ivan K +Date: Thu, 10 Oct 2024 16:07:02 +0300 +Subject: [PATCH] tests: Detect session encoding incapable of U+00F1 + +iconv() does not necessarily fail to convert U+00F1 to ASCII. For +example, FreeBSD iconv() succeeds and returns '?' instead of the +character in question. Use identical() to compare the result of the +conversion back to the original (which internally converts both to +UTF-8). +--- + inst/tests/tests.Rraw | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/inst/tests/tests.Rraw b/inst/tests/tests.Rraw +index f79bec0d7f..c530b2fd12 100644 +--- a/inst/tests/tests.Rraw ++++ b/inst/tests/tests.Rraw +@@ -18768,7 +18768,7 @@ if (test_bit64) local({ + # non-ASCII plain symbol in by, #4708 + # NB: recall we can't use non-ASCII symbols in the test script. The text is a--o (year in Spanish) + native_ano = iconv("a\U00F1o", "UTF-8", "") +-if (!is.na(native_ano)) { # #6339: symbol must be represented in native encoding ++if (identical(native_ano, "a\U00F1o")) { # #6339: symbol must be represented in native encoding + DT = data.table(a = rep(1:3, 2)) + setnames(DT, "a", native_ano) + test(2266, eval(parse(text=sprintf("DT[ , .N, %s]$N[1L]", native_ano))), 2L) diff --git a/devel/R-cran-data.table/files/patch-configure b/devel/R-cran-data.table/files/patch-configure new file mode 100644 index 000000000000..cfb8205ea9e9 --- /dev/null +++ b/devel/R-cran-data.table/files/patch-configure @@ -0,0 +1,16 @@ +Enable openmp by default + +See also: +https://github.com/Rdatatable/data.table/issues/6559#issuecomment-2407642567 + +--- configure.orig 2025-01-03 12:25:30 UTC ++++ configure +@@ -84,7 +84,7 @@ detect_openmp () { + + detect_openmp () { + +- if [ "$(uname)" = "Linux" ]; then ++ if [ "$(uname)" = "Linux" ] || [ "$(uname)" = "FreeBSD" ]; then + + printf "%s" "* checking if R installation supports OpenMP without any extra hints... " + if "${R_HOME}/bin/R" CMD SHLIB test-omp.c >> config.log 2>&1; then