Skip to content

Commit

Permalink
toss3 v42 ovis build
Browse files Browse the repository at this point in the history
  • Loading branch information
baallan committed Jun 22, 2019
1 parent 2270a7b commit bdef860
Show file tree
Hide file tree
Showing 6 changed files with 24 additions and 13 deletions.
6 changes: 4 additions & 2 deletions support/package-functions
Original file line number Diff line number Diff line change
Expand Up @@ -200,18 +200,20 @@ function pack_ck_numpy {
# sosdb check
function pack_ck_sosdb {
# need to extract with value here from options and check there instead of /usr
pack_checkdirs_none /usr/include/sos
pack_checkfiles /usr/include/sos/sos.h
x=$?
if test "$x" != "0"; then
echo missing package sosdb
echo may need to build python2-cython and python2-numpy
echo "(see toss3.cython and toss3.numpy directories)"
echo may need to firerpms.sos and install sosdb.
fi
return $?
}

# cython check
function pack_ck_cython {
pack_checkfiles_none /opt/cython/0.28.5/bin/cython /usr/bin/cython
pack_checkfiles_none /opt/cython/0.28.5/bin/cython
x=$?
if test "$x" != "0"; then
echo missing package Cython or equivalent
Expand Down
9 changes: 5 additions & 4 deletions v41.rhel7.unstable/inventory.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# this dumps the file lists and dependency lists
# for the generated rpms
for i in ./sos/Tars/sosdb-4.*/v41.rhel7.unstable/RPMS/x86_64/*rpm; do echo $i; echo $i; rpm -qp --requires $i; echo; done > sosdeps
for i in ./sos/Tars/sosdb-4.*/v41.rhel7.unstable/RPMS/x86_64/*rpm; do echo $i; echo $i; rpm -qpl $i; echo; done > sosfiles
for i in ./ovis/Tars/ovis-4.*/v41.rhel7.unstable/RPMS/x86_64/*rpm; do echo $i; echo $i; rpm -qp --requires $i; echo; done > ovisdeps
for i in ./ovis/Tars/ovis-4.*/v41.rhel7.unstable/RPMS/x86_64/*rpm; do echo $i; echo $i; rpm -qpl $i; echo; done > ovisfiles
x=$(basename $(pwd))
for i in ./sos/Tars/sosdb-4.*/$x/RPMS/x86_64/*rpm; do echo $i; echo $i; rpm -qp --requires $i; echo; done > sosdeps
for i in ./sos/Tars/sosdb-4.*/$x/RPMS/x86_64/*rpm; do echo $i; echo $i; rpm -qpl $i; echo; done > sosfiles
for i in ./ovis/Tars/ovis-4.*/$x/RPMS/x86_64/*rpm; do echo $i; echo $i; rpm -qp --requires $i; echo; done > ovisdeps
for i in ./ovis/Tars/ovis-4.*/$x/RPMS/x86_64/*rpm; do echo $i; echo $i; rpm -qpl $i; echo; done > ovisfiles
4 changes: 3 additions & 1 deletion v42.toss3.unstable/firerpms
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/bin/bash
#
#
packing=v41.rhel7.unstable
packing=v42.toss3.unstable
ovis_branch=OVIS-4.2.3
sospkg= ; # if set empty, disable sos in ldms
sospkg=sosdb-4.2.1
Expand All @@ -10,8 +10,10 @@ [email protected]:ovis-hpc/ovis.git

if test -n "$MODULEPATH"; then
module purge
if test -n "$sospkg"; then
module load python2-cython
module load python2-numpy
fi
fi
. ../support/package-functions

Expand Down
7 changes: 6 additions & 1 deletion v42.toss3.unstable/firerpms.sos
Original file line number Diff line number Diff line change
@@ -1,11 +1,16 @@
#!/bin/bash
#
#
packing=v41.rhel7.unstable
packing=v42.toss3.unstable
sos_branch=ovis-4.2.3
NetworkRequires=github.com
[email protected]:ovis-hpc/sos.git

if test -n "$MODULEPATH"; then
module purge
module load python2-cython
module load python2-numpy
fi
. ../support/package-functions

prefix=/usr
Expand Down
9 changes: 5 additions & 4 deletions v42.toss3.unstable/inventory.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# this dumps the file lists and dependency lists
# for the generated rpms
for i in ./sos/Tars/sosdb-4.*/v41.rhel7.unstable/RPMS/x86_64/*rpm; do echo $i; echo $i; rpm -qp --requires $i; echo; done > sosdeps
for i in ./sos/Tars/sosdb-4.*/v41.rhel7.unstable/RPMS/x86_64/*rpm; do echo $i; echo $i; rpm -qpl $i; echo; done > sosfiles
for i in ./ovis/Tars/ovis-4.*/v41.rhel7.unstable/RPMS/x86_64/*rpm; do echo $i; echo $i; rpm -qp --requires $i; echo; done > ovisdeps
for i in ./ovis/Tars/ovis-4.*/v41.rhel7.unstable/RPMS/x86_64/*rpm; do echo $i; echo $i; rpm -qpl $i; echo; done > ovisfiles
x=$(basename $(pwd))
for i in ./sos/Tars/sosdb-4.*/$x/RPMS/x86_64/*rpm; do echo $i; echo $i; rpm -qp --requires $i; echo; done > sosdeps
for i in ./sos/Tars/sosdb-4.*/$x/RPMS/x86_64/*rpm; do echo $i; echo $i; rpm -qpl $i; echo; done > sosfiles
for i in ./ovis/Tars/ovis-4.*/$x/RPMS/x86_64/*rpm; do echo $i; echo $i; rpm -qp --requires $i; echo; done > ovisdeps
for i in ./ovis/Tars/ovis-4.*/$x/RPMS/x86_64/*rpm; do echo $i; echo $i; rpm -qpl $i; echo; done > ovisfiles
2 changes: 1 addition & 1 deletion v42.toss3.unstable/ovis.spec.in
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
Summary: OVIS Commands and Libraries
Name: ovis
Version: @VERSION@
Release: desktop_%{build_timestamp}%{?dist}
Release: 1.0%{?dist}
License: GPLv2 or BSD
Group: %{ldms_all}
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
Expand Down

0 comments on commit bdef860

Please sign in to comment.