[gentoo-commits] repo/proj/guru:dev commit in: sys-cluster/dlb/, sys-cluster/dlb/files/

2022-03-04 Thread Alessandro Barbieri
commit: 2ba0f9b22c4450103776d817a51957e8bacc5792
Author: Alessandro Barbieri  gmail  com>
AuthorDate: Sat Mar  5 01:25:16 2022 +
Commit: Alessandro Barbieri  gmail  com>
CommitDate: Sat Mar  5 01:43:11 2022 +
URL:https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=2ba0f9b2

sys-cluster/dlb: fix repoman complaint, EAPI 8, bump py

Signed-off-by: Alessandro Barbieri  gmail.com>

 .../dlb/{dlb-2.1-r2.ebuild => dlb-2.1-r3.ebuild}  | 10 +-
 sys-cluster/dlb/files/dlb-2.1-chmod.patch | 19 +++
 2 files changed, 24 insertions(+), 5 deletions(-)

diff --git a/sys-cluster/dlb/dlb-2.1-r2.ebuild 
b/sys-cluster/dlb/dlb-2.1-r3.ebuild
similarity index 88%
rename from sys-cluster/dlb/dlb-2.1-r2.ebuild
rename to sys-cluster/dlb/dlb-2.1-r3.ebuild
index e9674f7bc..431005b30 100644
--- a/sys-cluster/dlb/dlb-2.1-r2.ebuild
+++ b/sys-cluster/dlb/dlb-2.1-r3.ebuild
@@ -1,9 +1,9 @@
-# Copyright 1999-2021 Gentoo Authors
+# Copyright 1999-2022 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
-EAPI=7
+EAPI=8
 
-PYTHON_COMPAT=( python3_{8..9} )
+PYTHON_COMPAT=( python3_{8..10} )
 PYTHON_REQ_USE="tk"
 
 inherit autotools python-single-r1
@@ -35,11 +35,11 @@ BDEPEND="test? ( sys-devel/bc )"
 PATCHES=(
"${FILESDIR}/${P}-pygen-python3.patch"
"${FILESDIR}/${P}-tkinter.patch"
+   "${FILESDIR}/${P}-chmod.patch"
 )
 
 src_prepare() {
default
-   sed -e "s|chmod +x \$(|chmod +x ${ED}/\$(|g" -i Makefile.am || die
sed -e "s|lib/|$(get_libdir)/|" -i scripts/viewer/dlb_wrapper.py || die
 
eautoreconf
@@ -59,7 +59,7 @@ src_configure() {
 }
 
 src_install() {
-   default
+   DESTDIR="${ED}" default
find "${D}" -name '*.la' -delete || die
find "${D}" -name '*.a' -delete || die
 }

diff --git a/sys-cluster/dlb/files/dlb-2.1-chmod.patch 
b/sys-cluster/dlb/files/dlb-2.1-chmod.patch
new file mode 100644
index 0..f7052cf25
--- /dev/null
+++ b/sys-cluster/dlb/files/dlb-2.1-chmod.patch
@@ -0,0 +1,19 @@
+--- a/Makefile.am
 b/Makefile.am
+@@ -726,11 +726,11 @@
+ clean-local: clean-rpm clean-deb clean-doc
+ 
+ install-data-hook:
+-  chmod +x $(mpiompexamplesdir)/run.sh
+-  chmod +x $(mpiompomptexamplesdir)/run.sh
+-  chmod +x $(mpiompssexamplesdir)/run.sh
+-  chmod +x $(omptexamplesdir)/run.sh
+-  chmod +x $(statsexamplesdir)/run.sh
++  chmod +x ${DESTDIR}/$(mpiompexamplesdir)/run.sh
++  chmod +x ${DESTDIR}/$(mpiompomptexamplesdir)/run.sh
++  chmod +x ${DESTDIR}/$(mpiompssexamplesdir)/run.sh
++  chmod +x ${DESTDIR}/$(omptexamplesdir)/run.sh
++  chmod +x ${DESTDIR}/$(statsexamplesdir)/run.sh
+ 
+ dist-hook:
+   if [ -x "$(GIT)" ]; \



[gentoo-commits] repo/proj/guru:dev commit in: sys-cluster/dlb/files/, sys-cluster/dlb/

2021-06-28 Thread Alessandro Barbieri
commit: 61ce36d41de01d56f42f4daedf677050ce302a21
Author: Alessandro Barbieri  gmail  com>
AuthorDate: Mon Jun 28 08:45:12 2021 +
Commit: Alessandro Barbieri  gmail  com>
CommitDate: Mon Jun 28 08:47:52 2021 +
URL:https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=61ce36d4

sys-cluster/dlb: statically link tests

Closes: https://bugs.gentoo.org/784698
Package-Manager: Portage-3.0.20, Repoman-3.0.3
Signed-off-by: Alessandro Barbieri  gmail.com>

 .../dlb/{dlb-2.1-r1.ebuild => dlb-2.1-r2.ebuild}   |  28 ++
 sys-cluster/dlb/files/dlb-2.1-tkinter.patch| 102 +
 2 files changed, 111 insertions(+), 19 deletions(-)

diff --git a/sys-cluster/dlb/dlb-2.1-r1.ebuild 
b/sys-cluster/dlb/dlb-2.1-r2.ebuild
similarity index 60%
rename from sys-cluster/dlb/dlb-2.1-r1.ebuild
rename to sys-cluster/dlb/dlb-2.1-r2.ebuild
index b78440590..e9674f7bc 100644
--- a/sys-cluster/dlb/dlb-2.1-r1.ebuild
+++ b/sys-cluster/dlb/dlb-2.1-r2.ebuild
@@ -15,9 +15,10 @@ SRC_URI="https://github.com/bsc-pm/dlb/archive/v${PV}.tar.gz 
-> ${P}.tar.gz"
 LICENSE="LGPL-3"
 SLOT="0"
 KEYWORDS="~amd64"
+IUSE="hwloc instrumentation mpi openmp test"
 
-IUSE="hwloc instrumentation mpi openmp"
 REQUIRED_USE="${PYTHON_REQUIRED_USE}"
+RESTRICT="!test? ( test )"
 
 DEPEND="
hwloc? ( sys-apps/hwloc )
@@ -29,40 +30,28 @@ RDEPEND="
dev-lang/tk
$(python_gen_cond_dep 'dev-python/matplotlib[tk,${PYTHON_USEDEP}]')
 "
+BDEPEND="test? ( sys-devel/bc )"
 
-PATCHES=( "${FILESDIR}/${P}-pygen-python3.patch" )
+PATCHES=(
+   "${FILESDIR}/${P}-pygen-python3.patch"
+   "${FILESDIR}/${P}-tkinter.patch"
+)
 
 src_prepare() {
default
sed -e "s|chmod +x \$(|chmod +x ${ED}/\$(|g" -i Makefile.am || die
-
-   # Python3 fixes
-   sed -e "s/Tkinter/tkinter/" \
-   -e "s/import ttk/from tkinter import ttk/" \
-   -e "s/import tkMessageBox/from tkinter import messagebox/" \
-   -e "s/tkMessageBox/messagebox/g" \
-   -i scripts/viewer/dlb_cpu_usage.in || die
-
-   sed -e "s/Tkinter/tkinter/" \
-   -e "s/import ttk/from tkinter import ttk/" \
-   -e "s/, NavigationToolbar2TkAgg//" \
-   -e "/FigureCanvasTkAgg$/a from 
matplotlib.backends.backend_qt5agg import NavigationToolbar2QT" \
-   -e "s/NavigationToolbar2TkAgg/NavigationToolbar2QT/g" \
-   -i scripts/viewer/dlb_viewer.py.in || die
-
sed -e "s|lib/|$(get_libdir)/|" -i scripts/viewer/dlb_wrapper.py || die
-   sed -e "s|Tkinter|tkinter|" -i scripts/viewer/progressmeter.py || die
 
eautoreconf
 }
 
 src_configure() {
local myconf=(
-   --disable-static
--enable-shared
--with-pic
$(use_enable instrumentation)
$(use_enable openmp)
+   $(use_enable test static)
$(use_with hwloc)
$(use_with mpi)
)
@@ -72,4 +61,5 @@ src_configure() {
 src_install() {
default
find "${D}" -name '*.la' -delete || die
+   find "${D}" -name '*.a' -delete || die
 }

diff --git a/sys-cluster/dlb/files/dlb-2.1-tkinter.patch 
b/sys-cluster/dlb/files/dlb-2.1-tkinter.patch
new file mode 100644
index 0..37f5783d7
--- /dev/null
+++ b/sys-cluster/dlb/files/dlb-2.1-tkinter.patch
@@ -0,0 +1,102 @@
+--- a/scripts/viewer/dlb_cpu_usage.in
 b/scripts/viewer/dlb_cpu_usage.in
+@@ -1,8 +1,8 @@
+ #!/usr/bin/env python2
+ 
+-import Tkinter as tk
+-import ttk
+-import tkMessageBox
++import tkinter as tk
++from tkinter import ttk
++from tkinter import messagebox
+ import random
+ 
+ import sys
+@@ -46,7 +46,7 @@
+ 
+ def start(self):
+ if self.viewer.empty():
+-tkMessageBox.showinfo("Warning", "Add some process before 
starting")
++messagebox.showinfo("Warning", "Add some process before starting")
+ if self.viewer:
+ self.viewer.start()
+ 
+--- a/scripts/viewer/dlb_viewer.py.in
 b/scripts/viewer/dlb_viewer.py.in
+@@ -3,11 +3,12 @@
+ import time
+ from collections import deque
+ # GUI
+-import Tkinter as tk
+-import ttk
++import tkinter as tk
++from tkinter import ttk
+ import progressmeter
+ from matplotlib.figure import Figure, figaspect
+-from matplotlib.backends.backend_tkagg import FigureCanvasTkAgg, 
NavigationToolbar2TkAgg
++from matplotlib.backends.backend_tkagg import FigureCanvasTkAgg
++from matplotlib.backends.backend_qt5agg import NavigationToolbar2QT
+ #DLB
+ import dlb_wrapper
+ 
+@@ -39,7 +40,7 @@
+ self.canvas.get_tk_widget().pack(side=tk.TOP, fill=tk.BOTH, expand=1)
+ 
+ if self.debug:
+-self.toolbar = NavigationToolbar2TkAgg(self.canvas, self )
++self.toolbar = NavigationToolbar2QT(self.canvas, self )
+ self.toolbar.pack()
+ self.toolbar.update()
+ 
+--- a/scripts/viewer/progressmeter.py
 b/scripts/viewer/progressmeter.py
+@@ -1,10 

[gentoo-commits] repo/proj/guru:dev commit in: sys-cluster/dlb/

2021-06-15 Thread Alessandro Barbieri
commit: 525932a1b23849031d420d007e75339aefb05e24
Author: Alessandro Barbieri  gmail  com>
AuthorDate: Tue Jun 15 19:57:21 2021 +
Commit: Alessandro Barbieri  gmail  com>
CommitDate: Tue Jun 15 23:28:25 2021 +
URL:https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=525932a1

sys-cluster/dlb: remove py3.7

Package-Manager: Portage-3.0.19, Repoman-3.0.3
Signed-off-by: Alessandro Barbieri  gmail.com>

 sys-cluster/dlb/dlb-2.1-r1.ebuild | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/sys-cluster/dlb/dlb-2.1-r1.ebuild 
b/sys-cluster/dlb/dlb-2.1-r1.ebuild
index c1e32700b..b78440590 100644
--- a/sys-cluster/dlb/dlb-2.1-r1.ebuild
+++ b/sys-cluster/dlb/dlb-2.1-r1.ebuild
@@ -3,7 +3,7 @@
 
 EAPI=7
 
-PYTHON_COMPAT=( python3_{7..9} )
+PYTHON_COMPAT=( python3_{8..9} )
 PYTHON_REQ_USE="tk"
 
 inherit autotools python-single-r1
@@ -23,7 +23,6 @@ DEPEND="
hwloc? ( sys-apps/hwloc )
mpi? ( virtual/mpi )
 "
-#instrumentation ( sys-cluster/extrae )
 RDEPEND="
${PYTHON_DEPS}
${DEPEND}



[gentoo-commits] repo/proj/guru:dev commit in: sys-cluster/dlb/files/

2021-04-20 Thread Alessandro Barbieri
commit: ac155c0ccf7cc27934d327132aa0d86da34c6916
Author: Alessandro Barbieri  gmail  com>
AuthorDate: Wed Apr 21 01:54:07 2021 +
Commit: Alessandro Barbieri  gmail  com>
CommitDate: Wed Apr 21 01:54:07 2021 +
URL:https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=ac155c0c

sys-cluster/dlb: scrub patch

Package-Manager: Portage-3.0.18, Repoman-3.0.3
Signed-off-by: Alessandro Barbieri  gmail.com>

 sys-cluster/dlb/files/dlb-2.1-pygen-python3.patch | 7 ---
 1 file changed, 7 deletions(-)

diff --git a/sys-cluster/dlb/files/dlb-2.1-pygen-python3.patch 
b/sys-cluster/dlb/files/dlb-2.1-pygen-python3.patch
index 4b345d85f..b2ec60577 100644
--- a/sys-cluster/dlb/files/dlb-2.1-pygen-python3.patch
+++ b/sys-cluster/dlb/files/dlb-2.1-pygen-python3.patch
@@ -10,8 +10,6 @@ Subject: [PATCH] Run pygen script with either python2 or 
python3
  3 files changed, 174 insertions(+), 1 deletion(-)
  create mode 100755 scripts/pygen.py3
 
-diff --git a/Makefile.am b/Makefile.am
-index 7d575e7..b274011 100644
 --- a/Makefile.am
 +++ b/Makefile.am
 @@ -83,7 +83,11 @@ nodist_include_HEADERS = src/LB_MPI/MPI_interface.h \
@@ -35,8 +33,6 @@ index 7d575e7..b274011 100644
scripts/viewer/dlb_cpu_usage.in \
scripts/viewer/dlb_viewer.py.in \
$(DEBIAN_EXTRA) \
-diff --git a/configure.ac b/configure.ac
-index 2200d23..8a587b9 100644
 --- a/configure.ac
 +++ b/configure.ac
 @@ -235,6 +235,8 @@ AC_SUBST([INSTR_DEBUG_CPPFLAGS])
@@ -48,9 +44,6 @@ index 2200d23..8a587b9 100644
  
  # check for OpenMP availability
  AC_OPENMP
-diff --git a/scripts/pygen.py3 b/scripts/pygen.py3
-new file mode 100755
-index 000..9748d96
 --- /dev/null
 +++ b/scripts/pygen.py3
 @@ -0,0 +1,166 @@



[gentoo-commits] repo/proj/guru:dev commit in: sys-cluster/dlb/

2021-03-28 Thread Andrew Ammerlaan
commit: 02452ab1b986d5dcdce7cdbf8cd3127dc3eb4ee1
Author: Andrew Ammerlaan  riseup  net>
AuthorDate: Sun Mar 28 10:51:21 2021 +
Commit: Andrew Ammerlaan  riseup  net>
CommitDate: Sun Mar 28 10:51:21 2021 +
URL:https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=02452ab1

sys-cluster/dlb: properly depend on python

Package-Manager: Portage-3.0.17, Repoman-3.0.2
Signed-off-by: Andrew Ammerlaan  riseup.net>

 sys-cluster/dlb/dlb-2.1-r1.ebuild | 5 -
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/sys-cluster/dlb/dlb-2.1-r1.ebuild 
b/sys-cluster/dlb/dlb-2.1-r1.ebuild
index 456d8c194..c1e32700b 100644
--- a/sys-cluster/dlb/dlb-2.1-r1.ebuild
+++ b/sys-cluster/dlb/dlb-2.1-r1.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2020 Gentoo Authors
+# Copyright 1999-2021 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=7
@@ -15,7 +15,9 @@ SRC_URI="https://github.com/bsc-pm/dlb/archive/v${PV}.tar.gz 
-> ${P}.tar.gz"
 LICENSE="LGPL-3"
 SLOT="0"
 KEYWORDS="~amd64"
+
 IUSE="hwloc instrumentation mpi openmp"
+REQUIRED_USE="${PYTHON_REQUIRED_USE}"
 
 DEPEND="
hwloc? ( sys-apps/hwloc )
@@ -23,6 +25,7 @@ DEPEND="
 "
 #instrumentation ( sys-cluster/extrae )
 RDEPEND="
+   ${PYTHON_DEPS}
${DEPEND}
dev-lang/tk
$(python_gen_cond_dep 'dev-python/matplotlib[tk,${PYTHON_USEDEP}]')



[gentoo-commits] repo/proj/guru:dev commit in: sys-cluster/dlb/

2020-12-27 Thread Andrew Ammerlaan
commit: 37f0d72f41525dc90eaaa974762c549acb29823a
Author: Andrew Ammerlaan  riseup  net>
AuthorDate: Sun Dec 27 12:48:07 2020 +
Commit: Andrew Ammerlaan  riseup  net>
CommitDate: Sun Dec 27 12:48:07 2020 +
URL:https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=37f0d72f

sys-cluster/dlb: drop old (description too long)

Package-Manager: Portage-3.0.12, Repoman-3.0.2
Signed-off-by: Andrew Ammerlaan  riseup.net>

 sys-cluster/dlb/dlb-2.1.ebuild | 67 --
 1 file changed, 67 deletions(-)

diff --git a/sys-cluster/dlb/dlb-2.1.ebuild b/sys-cluster/dlb/dlb-2.1.ebuild
deleted file mode 100644
index fbd921ed..
--- a/sys-cluster/dlb/dlb-2.1.ebuild
+++ /dev/null
@@ -1,67 +0,0 @@
-# Copyright 2019-2020 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=7
-#PYTHON_COMPAT=( pypy3 python3_{7,8,9} )
-inherit autotools #distutils-r1
-
-DESCRIPTION="tool that will dynamically react to the application imbalance 
modifying the number of resources"
-HOMEPAGE="https://github.com/bsc-pm/dlb;
-SRC_URI="https://github.com/bsc-pm/dlb/archive/v${PV}.tar.gz -> ${P}.tar.gz"
-
-LICENSE="LGPL-3"
-SLOT="0"
-KEYWORDS="~amd64"
-#TODO: correctly install python stuff
-IUSE="hwloc instrumentation mpi openmp" # python"
-
-DEPEND="
-   hwloc? ( sys-apps/hwloc )
-   mpi? ( virtual/mpi )
-"
-#instrumentation ( sys-cluster/extrae )
-RDEPEND="${DEPEND}"
-#REQUIRED_USE="
-#  python? ( ${PYTHON_REQUIRED_USE} )
-#"
-
-src_prepare() {
-   sed -e "s|chmod +x \$(|chmod +x ${ED}/\$(|g" -i Makefile.am || die
-   default
-   eautoreconf
-#  if use python; then
-#  distutils-r1_python_prepare_all
-#  fi
-}
-
-src_configure() {
-   local myconf=(
-   --disable-static
-   --enable-shared
-   --with-pic
-   $(use_enable instrumentation)
-   $(use_enable openmp)
-   $(use_with hwloc)
-   $(use_with mpi)
-   )
-   econf "${myconf[@]}"
-#  if use python; then
-#  python_foreach_impl distutils-r1_python_install
-#  fi
-}
-
-src_compile() {
-   default
-#  if use python; then
-#  python_foreach_impl distutils-r1_python_compile
-#  fi
-}
-
-src_install() {
-   default
-#  rm -rf "${D}/usr/lib/python*" || die
-#  if use python; then
-#  python_foreach_impl distutils-r1_python_install
-#  fi
-   find "${D}" -name '*.la' -delete || die
-}



[gentoo-commits] repo/proj/guru:dev commit in: sys-cluster/dlb/, sys-cluster/dlb/files/

2020-12-27 Thread Alessandro Barbieri
commit: fde06e299589c2abc82df5768773fb3d3cc0befd
Author: Alessandro Barbieri  gmail  com>
AuthorDate: Sun Dec 27 11:20:02 2020 +
Commit: Alessandro Barbieri  gmail  com>
CommitDate: Sun Dec 27 11:20:02 2020 +
URL:https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=fde06e29

sys-cluster/dlb: fix python installation

thanks @telans

Package-Manager: Portage-3.0.12, Repoman-3.0.2
Signed-off-by: Alessandro Barbieri  gmail.com>

 sys-cluster/dlb/dlb-2.1-r1.ebuild |  73 +++
 sys-cluster/dlb/files/dlb-2.1-pygen-python3.patch | 222 ++
 2 files changed, 295 insertions(+)

diff --git a/sys-cluster/dlb/dlb-2.1-r1.ebuild 
b/sys-cluster/dlb/dlb-2.1-r1.ebuild
new file mode 100644
index ..456d8c19
--- /dev/null
+++ b/sys-cluster/dlb/dlb-2.1-r1.ebuild
@@ -0,0 +1,73 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+PYTHON_COMPAT=( python3_{7..9} )
+PYTHON_REQ_USE="tk"
+
+inherit autotools python-single-r1
+
+DESCRIPTION="Dynamically react to application imbalance by modifying the 
number of resources"
+HOMEPAGE="https://github.com/bsc-pm/dlb;
+SRC_URI="https://github.com/bsc-pm/dlb/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="LGPL-3"
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE="hwloc instrumentation mpi openmp"
+
+DEPEND="
+   hwloc? ( sys-apps/hwloc )
+   mpi? ( virtual/mpi )
+"
+#instrumentation ( sys-cluster/extrae )
+RDEPEND="
+   ${DEPEND}
+   dev-lang/tk
+   $(python_gen_cond_dep 'dev-python/matplotlib[tk,${PYTHON_USEDEP}]')
+"
+
+PATCHES=( "${FILESDIR}/${P}-pygen-python3.patch" )
+
+src_prepare() {
+   default
+   sed -e "s|chmod +x \$(|chmod +x ${ED}/\$(|g" -i Makefile.am || die
+
+   # Python3 fixes
+   sed -e "s/Tkinter/tkinter/" \
+   -e "s/import ttk/from tkinter import ttk/" \
+   -e "s/import tkMessageBox/from tkinter import messagebox/" \
+   -e "s/tkMessageBox/messagebox/g" \
+   -i scripts/viewer/dlb_cpu_usage.in || die
+
+   sed -e "s/Tkinter/tkinter/" \
+   -e "s/import ttk/from tkinter import ttk/" \
+   -e "s/, NavigationToolbar2TkAgg//" \
+   -e "/FigureCanvasTkAgg$/a from 
matplotlib.backends.backend_qt5agg import NavigationToolbar2QT" \
+   -e "s/NavigationToolbar2TkAgg/NavigationToolbar2QT/g" \
+   -i scripts/viewer/dlb_viewer.py.in || die
+
+   sed -e "s|lib/|$(get_libdir)/|" -i scripts/viewer/dlb_wrapper.py || die
+   sed -e "s|Tkinter|tkinter|" -i scripts/viewer/progressmeter.py || die
+
+   eautoreconf
+}
+
+src_configure() {
+   local myconf=(
+   --disable-static
+   --enable-shared
+   --with-pic
+   $(use_enable instrumentation)
+   $(use_enable openmp)
+   $(use_with hwloc)
+   $(use_with mpi)
+   )
+   econf "${myconf[@]}"
+}
+
+src_install() {
+   default
+   find "${D}" -name '*.la' -delete || die
+}

diff --git a/sys-cluster/dlb/files/dlb-2.1-pygen-python3.patch 
b/sys-cluster/dlb/files/dlb-2.1-pygen-python3.patch
new file mode 100644
index ..4b345d85
--- /dev/null
+++ b/sys-cluster/dlb/files/dlb-2.1-pygen-python3.patch
@@ -0,0 +1,222 @@
+From 62597a9b65bc51759568278561e415717e1e6ed4 Mon Sep 17 00:00:00 2001
+From: Victor Lopez 
+Date: Tue, 17 Nov 2020 15:24:14 +0100
+Subject: [PATCH] Run pygen script with either python2 or python3
+
+---
+ Makefile.am   |   7 +-
+ configure.ac  |   2 +
+ scripts/pygen.py3 | 166 ++
+ 3 files changed, 174 insertions(+), 1 deletion(-)
+ create mode 100755 scripts/pygen.py3
+
+diff --git a/Makefile.am b/Makefile.am
+index 7d575e7..b274011 100644
+--- a/Makefile.am
 b/Makefile.am
+@@ -83,7 +83,11 @@ nodist_include_HEADERS = src/LB_MPI/MPI_interface.h \
+ 
#
+ # Built Sources
+ 
#
+-MPI_GENERATOR = $(top_srcdir)/scripts/pygen.py
++if PYTHON3
++MPI_GENERATOR = $(PYTHON) $(top_srcdir)/scripts/pygen.py3
++else
++MPI_GENERATOR = $(PYTHON) $(top_srcdir)/scripts/pygen.py
++endif
+ MPICALLS_DB = $(top_srcdir)/src/LB_MPI/mpicalls.json
+ EXTRA_DIST+= src/LB_MPI/mpicalls.json
+ 
+@@ -739,6 +743,7 @@ EXTRA_DIST += \
+   scripts/run_with_dlb.sh.in \
+   scripts/dlb.spec \
+   scripts/pygen.py \
++  scripts/pygen.py3 \
+   scripts/viewer/dlb_cpu_usage.in \
+   scripts/viewer/dlb_viewer.py.in \
+   $(DEBIAN_EXTRA) \
+diff --git a/configure.ac b/configure.ac
+index 2200d23..8a587b9 100644
+--- a/configure.ac
 b/configure.ac
+@@ -235,6 +235,8 @@ AC_SUBST([INSTR_DEBUG_CPPFLAGS])
+ AM_PATH_PYTHON
+ AX_COMPARE_VERSION([$PYTHON_VERSION], [ge], [2.7], [lit=yes], [lit=no])
+ AM_CONDITIONAL([LIT_SUPPORT], [test "x$lit" 

[gentoo-commits] repo/proj/guru:dev commit in: sys-cluster/dlb/

2020-12-26 Thread Alessandro Barbieri
commit: 62e7da4eeb6a27defbb7a4cfd3e01c510839738f
Author: Alessandro Barbieri  gmail  com>
AuthorDate: Thu Dec 24 12:01:55 2020 +
Commit: Alessandro Barbieri  gmail  com>
CommitDate: Sat Dec 26 11:20:12 2020 +
URL:https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=62e7da4e

sys-cluster/dlb: new package

help wanted in fixing python bindings

Package-Manager: Portage-3.0.12, Repoman-3.0.2
Signed-off-by: Alessandro Barbieri  gmail.com>

 sys-cluster/dlb/Manifest   |  1 +
 sys-cluster/dlb/dlb-2.1.ebuild | 67 ++
 sys-cluster/dlb/metadata.xml   | 31 +++
 3 files changed, 99 insertions(+)

diff --git a/sys-cluster/dlb/Manifest b/sys-cluster/dlb/Manifest
new file mode 100644
index ..1c0cae12
--- /dev/null
+++ b/sys-cluster/dlb/Manifest
@@ -0,0 +1 @@
+DIST dlb-2.1.tar.gz 1847799 BLAKE2B 
5fb4b010761e9883292e22f3254669116107aff4200b96930afd80c7f9073dbceef1b5109471cb948f9f74b8d7144a14137b4ea06dbee01f9857411f144a7fc2
 SHA512 
6199a05188b0afbeba3401b8182be5e1c04fbfd24a1ea0360d42d0f1518323df08c925ee4529a51e0065bb6653f54ed03106e9a77daf6e30564e2a9753839597

diff --git a/sys-cluster/dlb/dlb-2.1.ebuild b/sys-cluster/dlb/dlb-2.1.ebuild
new file mode 100644
index ..fbd921ed
--- /dev/null
+++ b/sys-cluster/dlb/dlb-2.1.ebuild
@@ -0,0 +1,67 @@
+# Copyright 2019-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+#PYTHON_COMPAT=( pypy3 python3_{7,8,9} )
+inherit autotools #distutils-r1
+
+DESCRIPTION="tool that will dynamically react to the application imbalance 
modifying the number of resources"
+HOMEPAGE="https://github.com/bsc-pm/dlb;
+SRC_URI="https://github.com/bsc-pm/dlb/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="LGPL-3"
+SLOT="0"
+KEYWORDS="~amd64"
+#TODO: correctly install python stuff
+IUSE="hwloc instrumentation mpi openmp" # python"
+
+DEPEND="
+   hwloc? ( sys-apps/hwloc )
+   mpi? ( virtual/mpi )
+"
+#instrumentation ( sys-cluster/extrae )
+RDEPEND="${DEPEND}"
+#REQUIRED_USE="
+#  python? ( ${PYTHON_REQUIRED_USE} )
+#"
+
+src_prepare() {
+   sed -e "s|chmod +x \$(|chmod +x ${ED}/\$(|g" -i Makefile.am || die
+   default
+   eautoreconf
+#  if use python; then
+#  distutils-r1_python_prepare_all
+#  fi
+}
+
+src_configure() {
+   local myconf=(
+   --disable-static
+   --enable-shared
+   --with-pic
+   $(use_enable instrumentation)
+   $(use_enable openmp)
+   $(use_with hwloc)
+   $(use_with mpi)
+   )
+   econf "${myconf[@]}"
+#  if use python; then
+#  python_foreach_impl distutils-r1_python_install
+#  fi
+}
+
+src_compile() {
+   default
+#  if use python; then
+#  python_foreach_impl distutils-r1_python_compile
+#  fi
+}
+
+src_install() {
+   default
+#  rm -rf "${D}/usr/lib/python*" || die
+#  if use python; then
+#  python_foreach_impl distutils-r1_python_install
+#  fi
+   find "${D}" -name '*.la' -delete || die
+}

diff --git a/sys-cluster/dlb/metadata.xml b/sys-cluster/dlb/metadata.xml
new file mode 100644
index ..f7c1a6db
--- /dev/null
+++ b/sys-cluster/dlb/metadata.xml
@@ -0,0 +1,31 @@
+
+http://www.gentoo.org/dtd/metadata.dtd;>
+
+   
+   lssndrbarbi...@gmail.com
+   Alessandro Barbieri
+   
+   
+Dynamic Load Balancing Library
+DLB is a dynamic library designed to speed up HPC hybrid 
+applications (i.e., two levels of parallelism) by improving the load balance 
of the outer 
+level of parallelism (e.g., MPI) by dynamically redistributing the 
computational resources 
+at the inner level of parallelism (e.g., OpenMP). at run time. This dynamism 
allows DLB to 
+react to different sources of imbalance: Algorithm, data, hardware 
architecture and 
+resource availability among others.
+
+Lend When Idle LeWI (Lend When Idle) is the algorithm 
+used to redistribute the computational resources that are not being used from 
one process 
+to another process inside the same shared memory node in order to speed up its 
execution. 
+
+Dynamic Resource Ownership Manager
+DROM (Dynamic Resource Ownership Manager) is the algorithm used to manage the 
CPU affinity of a process running a shared memory programming model (e.g., 
OpenMP)
+   
+   
+   bsc-pm/dlb
+   
+   
+   add sys-apps/hwlocsupport
+   enable 
sys-cluster/extrae instrumentation
+   
+