aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHorea Christian <horea.christ@yandex.com>2018-08-20 00:15:50 +0200
committerHorea Christian <horea.christ@yandex.com>2018-08-20 00:15:50 +0200
commitce87de8a9a7fa8d57c6bd94608cd2b83b1faf8c4 (patch)
tree3179d17a7c0561604af7f2191c7652a81df188b5 /scripts/lapack_migration.sh
parentBLAS/LAPACK migration instructions (diff)
downloadsci-ce87de8a9a7fa8d57c6bd94608cd2b83b1faf8c4.tar.gz
sci-ce87de8a9a7fa8d57c6bd94608cd2b83b1faf8c4.tar.bz2
sci-ce87de8a9a7fa8d57c6bd94608cd2b83b1faf8c4.zip
Distributing LAPACK migration files alongside overlay
Diffstat (limited to 'scripts/lapack_migration.sh')
-rw-r--r--scripts/lapack_migration.sh22
1 files changed, 22 insertions, 0 deletions
diff --git a/scripts/lapack_migration.sh b/scripts/lapack_migration.sh
new file mode 100644
index 000000000..2e6624ada
--- /dev/null
+++ b/scripts/lapack_migration.sh
@@ -0,0 +1,22 @@
+#!/usr/bin/env bash
+set -e
+
+EPREFIX=${1}
+
+#Link to the workaroud we reproduce in this section : https://wiki.gentoo.org/wiki/User_talk:Houseofsuns#Migration_to_science_overlay_from_main_tree
+#Efforts to more permanently address the issue: https://github.com/gentoo/sci/issues/805
+echo ""
+echo "Setting Up Eselect for Gentoo Science:"
+echo "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"
+cp "sci-lapack" "${EPREFIX}/etc/portage/package.mask/"
+emerge --oneshot --verbose dev-util/cmake >> /dev/null
+emerge --oneshot --verbose app-admin/eselect::science >> /dev/null
+FEATURES="-preserve-libs":$FEATURES emerge --oneshot --verbose sci-libs/blas-reference::science
+eselect blas set reference
+FEATURES="-preserve-libs":$FEATURES emerge --oneshot --verbose sci-libs/cblas-reference::science
+eselect cblas set reference
+FEATURES="-preserve-libs":$FEATURES emerge --oneshot --verbose sci-libs/lapack-reference::science
+eselect lapack set reference
+FEATURES="-preserve-libs":$FEATURES emerge --oneshot --verbose --exclude sci-libs/blas-reference --exclude sci-libs/cblas-reference --exclude sci-libs/lapack-reference `eix --only-names --installed --in-overlay science`
+
+emerge -1qv @preserved-rebuild