From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 7FE09158092 for ; Tue, 7 Jun 2022 12:02:23 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id C8876E08A2; Tue, 7 Jun 2022 12:02:22 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id AD857E08A2 for ; Tue, 7 Jun 2022 12:02:22 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id C19BA341884 for ; Tue, 7 Jun 2022 12:02:21 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id B0C12500 for ; Tue, 7 Jun 2022 12:01:48 +0000 (UTC) From: "Alessandro Barbieri" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Alessandro Barbieri" Message-ID: <1654603306.6eb34bd2c020880f2b386d59c697ddd5919a66e4.Alessandro-Barbieri@gentoo> Subject: [gentoo-commits] repo/proj/guru:dev commit in: sys-cluster/dimemas/, sys-cluster/dimemas/files/ X-VCS-Repository: repo/proj/guru X-VCS-Files: sys-cluster/dimemas/Manifest sys-cluster/dimemas/dimemas-5.4.2_p20220601.ebuild sys-cluster/dimemas/files/dimemas-5.4.2-gui.patch sys-cluster/dimemas/metadata.xml X-VCS-Directories: sys-cluster/dimemas/ sys-cluster/dimemas/files/ X-VCS-Committer: Alessandro-Barbieri X-VCS-Committer-Name: Alessandro Barbieri X-VCS-Revision: 6eb34bd2c020880f2b386d59c697ddd5919a66e4 X-VCS-Branch: dev Date: Tue, 7 Jun 2022 12:01:48 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 741e2274-07f0-46ba-a6bb-88f56b9b2ec1 X-Archives-Hash: 7e62a5cf80f41e95b715f80e69b338e4 commit: 6eb34bd2c020880f2b386d59c697ddd5919a66e4 Author: Alessandro Barbieri gmail com> AuthorDate: Tue Jun 7 11:31:18 2022 +0000 Commit: Alessandro Barbieri gmail com> CommitDate: Tue Jun 7 12:01:46 2022 +0000 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=6eb34bd2 sys-cluster/dimemas: new package, add 5.4.2_p20220601 Signed-off-by: Alessandro Barbieri gmail.com> sys-cluster/dimemas/Manifest | 1 + sys-cluster/dimemas/dimemas-5.4.2_p20220601.ebuild | 76 ++++++++++++++++++++++ sys-cluster/dimemas/files/dimemas-5.4.2-gui.patch | 35 ++++++++++ sys-cluster/dimemas/metadata.xml | 24 +++++++ 4 files changed, 136 insertions(+) diff --git a/sys-cluster/dimemas/Manifest b/sys-cluster/dimemas/Manifest new file mode 100644 index 000000000..bdcf56b47 --- /dev/null +++ b/sys-cluster/dimemas/Manifest @@ -0,0 +1 @@ +DIST dimemas-5.4.2_p20220601.gh.tar.gz 802490 BLAKE2B d43829ba082c914fe37d0a5388578c5f77d102e1b5b412194b5b34ac9c830290f342ace3334bc97468c16ff58a89d1aef44956d703d68ca87d55e8abe7ec92c7 SHA512 54e6a8325ae7397fd2fae3f47e7b6cae9d9ea1aeaf6340b07e1ea04c26e8420c2a575498a6f33cf4a9c0ab3614756a23631316c5968fea2656166f40de5d7218 diff --git a/sys-cluster/dimemas/dimemas-5.4.2_p20220601.ebuild b/sys-cluster/dimemas/dimemas-5.4.2_p20220601.ebuild new file mode 100644 index 000000000..cbb0a15a3 --- /dev/null +++ b/sys-cluster/dimemas/dimemas-5.4.2_p20220601.ebuild @@ -0,0 +1,76 @@ +# Copyright 2019-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +COMMIT="0dc28fafb8a917cee8d6ffd4a037cdc1f8755101" +PYTHON_COMPAT=( pypy3 python3_{8..11} ) + +inherit autotools java-pkg-opt-2 python-any-r1 + +DESCRIPTION="High-abstracted network simulator for message-passing programs" +HOMEPAGE="https://github.com/bsc-performance-tools/dimemas" +SRC_URI="https://github.com/bsc-performance-tools/dimemas/archive/${COMMIT}.tar.gz -> ${PF}.gh.tar.gz" +S="${WORKDIR}/${PN}-${COMMIT}" + +LICENSE="LGPL-2.1" +SLOT="0" +KEYWORDS="~amd64" + +IUSE="idle-accounting irecv-startup original-links wait-logical-recv" + +CDEPEND=" + dev-libs/boost:= + sys-libs/zlib + java? ( dev-java/commons-io:1 ) +" +DEPEND=" + ${CDEPEND} + ${PYTHON_DEPS} + java? ( virtual/jdk:1.8 ) +" +RDEPEND=" + ${CDEPEND} + java? ( virtual/jre:1.8 ) +" + +PATCHES=( "${FILESDIR}/${PN}-5.4.2-gui.patch" ) + +src_prepare() { + default + java-pkg_clean + if use java; then + pushd ./GUI/lib || die + java-pkg_jar-from commons-io-1 commons-io.jar commons-io-2.4.jar + popd || die + fi + eautoreconf +} + +src_configure() { + local myconf=( + --with-boost="${EPREFIX}/usr" + --with-boost-libdir="${EPREFIX}/usr/$(get_libdir)" + + $(use_enable idle-accounting) + $(use_enable irecv-startup) + $(use_enable original-links) + $(use_enable wait-logical-recv) + ) + econf "${myconf[@]}" +} + +src_install() { + default + dodoc README.md ChangeLog + mkdir -p "${ED}/usr/share/doc/${PF}/examples" || die + mv "${ED}/usr/share/lib_extern_model_example" "${ED}/usr/share/doc/${PF}/examples/" || die + docompress -x "${ED}/usr/share/doc/${PF}/examples" + mkdir -p "${ED}/usr/share/${PN}" || die + mv "${ED}/usr/share/cfgs" "${ED}/usr/share/${PN}/" || die + if use java; then + java-pkg_newjar "${ED}/usr/$(get_libdir)/GUI/dimemas-gui-5.4.2.jar" "dimemas-gui.jar" + rm -r "${ED}/usr/$(get_libdir)/GUI" || die + fi + find "${ED}" -name '*.la' -delete || die +} diff --git a/sys-cluster/dimemas/files/dimemas-5.4.2-gui.patch b/sys-cluster/dimemas/files/dimemas-5.4.2-gui.patch new file mode 100644 index 000000000..4cd05cd95 --- /dev/null +++ b/sys-cluster/dimemas/files/dimemas-5.4.2-gui.patch @@ -0,0 +1,35 @@ +--- a/GUI/src/DimemasGUI.in ++++ b/GUI/src/DimemasGUI.in +@@ -1,29 +1,9 @@ + #!/bin/sh + +-DIMEMAS_HOME=$(dirname $(readlink -f $0))/.. +-if [ -d "$DIMEMAS_HOME/lib" ]; then +- LIBDIR="/lib" +-elif [ -d "$DIMEMAS_HOME/lib64" ]; then +- LIBDIR="/lib64" +-else +- echo "$DIMEMAS_HOME/{lib|lib64} not found" +- exit 1 +-fi ++DIMEMAS_HOME=/usr + +-DIMEMAS_GUI_JAR=$DIMEMAS_HOME/$LIBDIR/GUI/@@JARFILE@@ ++DIMEMAS_GUI_JAR="${DIMEMAS_HOME}/share/dimemas/lib/dimemas-gui.jar" + +-if ! [ -e $DIMEMAS_GUI_JAR ]; then +- echo "Dimemas GUI 'jar' file (@@JARFILE@@) not found" +- echo "Check your Dimemas instalation." +- exit 1 +-fi +- +-if which java >/dev/null 2>&1 ; then +- JAVA_BIN=`which java` +-else +- echo "No Java Runtime found on your path." +- echo "Please check the JRE installation" +- exit 1 +-fi ++JAVA_BIN=`java-config -J` + + $JAVA_BIN @@JVMFLAGS@@ -DDIMEMAS_HOME=$DIMEMAS_HOME -jar $DIMEMAS_GUI_JAR $@ diff --git a/sys-cluster/dimemas/metadata.xml b/sys-cluster/dimemas/metadata.xml new file mode 100644 index 000000000..c3e18465a --- /dev/null +++ b/sys-cluster/dimemas/metadata.xml @@ -0,0 +1,24 @@ + + + + + lssndrbarbieri@gmail.com + Alessandro Barbieri + + +This package contains the source code of Dimemas simulator, its graphical +user interface and the Paraver to Dimemas trace translator, 'prv2dim'. +You can find the old Dimemas trace format (.trf) to new format (.dim) translator +'trf2dim' until Dimemas package version 5.3.0 + + + https://github.com/bsc-performance-tools/dimemas/issues + bsc-performance-tools/dimemas + + + if enabled, idle CPU regions are computed as CPU consumption in the accouting stats + if enabled defined Dimemas considers initial startups on MPI_Irecv functions + if enabled Dimemas uses the original protocol to manage links + if enabled Dimemas puts logical receive time when MPI_Wait is called (not on MPI_Irecv) + +