commit 7b9bf64ce18a0ac471cc6e7c13ccb24f307278e8bc4d22e7bd36ee8e5b0bc1bf Author: Christoph Junghans Date: Fri Nov 10 16:13:31 2017 +0000 Accepting request 540596 from home:cjunghans:branches:science:HPC - added 8.patch - circle_init_builtin: fix return value - initial add of v1.2 OBS-URL: https://build.opensuse.org/request/show/540596 OBS-URL: https://build.opensuse.org/package/show/science:HPC/mpibash?expand=0&rev=1 diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/8.patch b/8.patch new file mode 100644 index 0000000..71c87d1 --- /dev/null +++ b/8.patch @@ -0,0 +1,22 @@ +From 29995967e6ffb9b67ff239b7c2549348d90187da Mon Sep 17 00:00:00 2001 +From: Christoph Junghans +Date: Fri, 10 Nov 2017 09:05:29 -0700 +Subject: [PATCH] circle_init_builtin: added missing return value + +--- + src/circle-init.c | 2 ++ + 1 file changed, 2 insertions(+) + +diff --git a/src/circle-init.c b/src/circle-init.c +index 771d382..da605ae 100644 +--- a/src/circle-init.c ++++ b/src/circle-init.c +@@ -171,6 +171,8 @@ circle_init_builtin (WORD_LIST *list) + for (func = all_circle_builtins; *func; func++) + if (load_circle_builtin(*func) != EXECUTION_SUCCESS) + return EXECUTION_FAILURE; ++ ++ return EXECUTION_SUCCESS; + } + + /* Define the documentation for the circle_init builtin. */ diff --git a/mpibash-1.2.tar.gz b/mpibash-1.2.tar.gz new file mode 100644 index 0000000..2ee91e3 --- /dev/null +++ b/mpibash-1.2.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:5c2faaa74464111205dbae4799bd89c2425810ec3708d004237b42d620c8be57 +size 347083 diff --git a/mpibash.changes b/mpibash.changes new file mode 100644 index 0000000..b2ba1b6 --- /dev/null +++ b/mpibash.changes @@ -0,0 +1,10 @@ +------------------------------------------------------------------- +Fri Nov 10 16:09:11 UTC 2017 - junghans@votca.org + +- added 8.patch - circle_init_builtin: fix return value + +------------------------------------------------------------------- +Fri Nov 10 15:41:49 UTC 2017 - junghans@votca.org + +- initial add of v1.2 + diff --git a/mpibash.spec b/mpibash.spec new file mode 100644 index 0000000..efa3417 --- /dev/null +++ b/mpibash.spec @@ -0,0 +1,92 @@ +# +# spec file for package mpibash +# +# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany. +# +# All modifications and additions to the file contributed by third parties +# remain the property of their copyright owners, unless otherwise agreed +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + +# Please submit bugfixes or comments via http://bugs.opensuse.org/ +# + +%ifarch ppc64 +%define mpi_implem openmpi +%else +%define mpi_implem openmpi2 +%endif + +Name: mpibash +Version: 1.2 +Release: 0 +Summary: Parallel scripting right from the Bourne-Again Shell +License: GPL-3.0+ +Group: Productivity/Networking/Other +Url: https://github.com/lanl/MPI-Bash +Source0: https://github.com/lanl/MPI-Bash/releases/download/v%{version}/mpibash-%{version}.tar.gz +#PATCH-FIX-UPSTREAM - 8.patch - circle_init_builtin: fix return value +Patch0: https://patch-diff.githubusercontent.com/raw/lanl/MPI-Bash/pull/8.patch +BuildRequires: bash-devel +BuildRequires: %{mpi_implem} +BuildRequires: %{mpi_implem}-devel +BuildRequires: libcircle-devel + +BuildRoot: %{_tmppath}/%{name}-%{version}-build + +%description +MPI-Bash makes it easy to parallelize Bash scripts that run a set of +Linux commands independently over a large number of input files. +Because MPI-Bash includes various MPI functions for data transfer and +synchronization, it is not limited to embarrassingly parallel workloads +but can incorporate phased operations (i.e., all workers must finish +operation X before any worker is allowed to begin operation Y). + +%package examples +Summary: Example Scripts for %{name} +Group: Productivity/Scientific/Chemistry +Requires: %{name} = %{version} + +%description examples +MPI-Bash makes it easy to parallelize Bash scripts that run a set of +Linux commands independently over a large number of input files. +Because MPI-Bash includes various MPI functions for data transfer and +synchronization, it is not limited to embarrassingly parallel workloads +but can incorporate phased operations (i.e., all workers must finish +operation X before any worker is allowed to begin operation Y). + +This package contains example scripts for mpibash. + + +%prep +%setup -q +%patch0 -p1 + +%build +. %{_libdir}/mpi/gcc/%{mpi_implem}/bin/mpivars.sh +%configure --with-bashdir=/usr/include/bash --docdir=%{_docdir}/%{name} CC=mpicc +make %{?_smp_mflags} + +%install +make %{?_smp_mflags} DESTDIR=%{buildroot} install +# Fix shebang +sed -i '1s@/usr/bin/env bash@/bin/bash@' %{buildroot}/%{_bindir}/mpibash +sed -i '1s@env mpibash@mpibash@' %{buildroot}/%{_docdir}/%{name}/examples/* %{buildroot}/%{_bindir}/m* +head -1 %{buildroot}/%{_docdir}/%{name}/examples/* +head -1 %{buildroot}/%{_bindir}/m* + +%files +%defattr(-,root,root,-) +%{_bindir}/m* +%{_libdir}/%{name}/ +%{_mandir}/man1/m* +%{_docdir}/%{name} +%exclude %{_docdir}/%{name}/examples + +%files examples +%defattr(-,root,root,-) +%{_docdir}/%{name}/examples \ No newline at end of file