Github messages for voidlinux
 help / color / mirror / Atom feed
From: olafmersmann <olafmersmann@users.noreply.github.com>
To: ml@inbox.vuxu.org
Subject: Re: [PR PATCH] [Updated] R: Use OpenBLAS where available
Date: Thu, 14 Jan 2021 02:00:07 +0100	[thread overview]
Message-ID: <20210114010007.5HYFZjWiM0nNub3KGiBgR9x-XqAUDDY9QbAX-SY20mQ@z> (raw)
In-Reply-To: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-27908@inbox.vuxu.org>

[-- Attachment #1: Type: text/plain, Size: 367 bytes --]

There is an updated pull request by olafmersmann against master on the void-packages repository

https://github.com/olafmersmann/void-packages R
https://github.com/void-linux/void-packages/pull/27908

R: Use OpenBLAS where available
Also fixes building of manuals and checks.

A patch file from https://github.com/void-linux/void-packages/pull/27908.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-R-27908.patch --]
[-- Type: text/x-diff, Size: 2110 bytes --]

From d7fa9cac13c6700c0bc1ad3bd21b2fb8846c28e4 Mon Sep 17 00:00:00 2001
From: Olaf Mersmann <olafm@p-value.net>
Date: Sun, 10 Jan 2021 00:20:12 +0100
Subject: [PATCH] R: Use OpenBLAS where available

Also fixes building of manuals and checks.
---
 srcpkgs/R/template | 23 +++++++++++++++++++----
 1 file changed, 19 insertions(+), 4 deletions(-)

diff --git a/srcpkgs/R/template b/srcpkgs/R/template
index def4ddaa50e..eb0befab4c0 100644
--- a/srcpkgs/R/template
+++ b/srcpkgs/R/template
@@ -1,18 +1,22 @@
 # Template file for 'R'
 pkgname=R
 version=4.0.3
-revision=1
+revision=2
 build_style=gnu-configure
 configure_args="--docdir=/usr/share/doc/R rdocdir=/usr/share/doc/R
- --with-lapack --with-blas --enable-R-shlib --with-tcltk
+ --with-blas$(vopt_if openblas '="-lopenblas"') --with-lapack
+ --enable-R-shlib --with-tcltk
  --enable-memory-profiling
  LIBnn=lib"
 hostmakedepends="gcc-fortran pkg-config perl less which"
 makedepends="libgomp-devel readline-devel libXmu-devel libXt-devel
  libpng-devel libjpeg-turbo-devel tiff-devel cairo-devel icu-devel
- lapack-devel blas-devel zlib-devel bzip2-devel pcre2-devel liblzma-devel
- libcurl-devel tcl-devel tk-devel libxml2-devel"
+ zlib-devel bzip2-devel pcre2-devel liblzma-devel
+ libcurl-devel tcl-devel tk-devel libxml2-devel
+ texlive texlive-fontsextra texinfo
+ $(vopt_if openblas openblas-devel 'blas-devel lapack-devel')"
 depends="xdg-utils less which"
+checkdepends="tzdata tar"
 short_desc="System for statistical computation and graphics"
 maintainer="Florian Wagner <florian@wagner-flo.net>"
 license="GPL-2.0-or-later"
@@ -23,6 +27,17 @@ checksum=09983a8a78d5fb6bc45d27b1c55f9ba5265f78fa54a55c13ae691f87c5bb9e0d
 nocross=yes
 shlib_provides="libR.so"
 
+build_options="openblas"
+desc_option_openblas="Enable support for openblas accelerated linear algebra"
+
+case "$XBPS_TARGET_MACHINE" in
+	x86_64*|i686*|aarch64*|armv[67]*|ppc64*)
+		# Prefer accelerated routines where available
+		build_options_default="openblas"
+		;;
+	*) ;;
+esac
+
 pre_configure() {
 	export R_BROWSER=/usr/bin/xdg-open
 	export R_PDFVIEWER=/usr/bin/xdg-open

  reply	other threads:[~2021-01-14  1:00 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-01-14  0:59 [PR PATCH] " olafmersmann
2021-01-14  1:00 ` olafmersmann [this message]
2021-01-21 22:21 ` [PR PATCH] [Updated] " olafmersmann
2021-01-22  4:26 ` [PR PATCH] [Merged]: " ericonr

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20210114010007.5HYFZjWiM0nNub3KGiBgR9x-XqAUDDY9QbAX-SY20mQ@z \
    --to=olafmersmann@users.noreply.github.com \
    --cc=ml@inbox.vuxu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).