Skip to content

Commit 4e800e1

Browse files
committed
CORCI-635 test: Create romio tarball
So that an RPM can be created to install the ROMIO tests. Signed-off-by: Brian J. Murrell <[email protected]>
1 parent 36ceb9a commit 4e800e1

File tree

3 files changed

+41
-2
lines changed

3 files changed

+41
-2
lines changed

Jenkinsfile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,4 +44,7 @@
4444
// no pmix for leap15 yet
4545
packageBuildingPipeline(['distros' : ['centos7'],
4646
'publish_branch': 'daos_adio-rpm',
47-
'make args' : '-f Makefile-rpm.mk'])
47+
'make args' : 'CHROOT=true -f Makefile-rpm.mk',
48+
'add_make_targets': 'romio-tarball',
49+
'add_archiving_cmds': 'mv romio-*.tar.gz artifacts/',
50+
'add_artifacts': 'artifacts/romio-*.tar.gz'])

Makefile-rpm.mk

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,3 +111,35 @@ $(NAME)-$(DL_VERSION).tar.$(SRC_EXT): $(NAME)-$(DL_VERSION)-$(GIT_COMMIT).tar
111111
fi
112112
rm -f $@
113113
gzip < $< > $@
114+
115+
CHROOT ?= false
116+
CHROOT_NAME ?= epel-7-x86_64
117+
118+
romio-$(VERSION).tar.gz: FORCE
119+
set -e; \
120+
if $(CHROOT); then \
121+
romio_prefix=/var/lib/mock/$(CHROOT_NAME)/root/builddir/build; \
122+
chroot_romio_prefix=/builddir/build; \
123+
else \
124+
romio_prefix=_topdir; \
125+
fi; \
126+
romio_dir=BUILD/mpich-$(VERSION)/src/mpi/romio; \
127+
if grep "MPI_LIB = /" $$romio_prefix/$$romio_dir/test/Makefile; then \
128+
trap 'mv $$romio_prefix/$$romio_dir/test/Makefile{.old,}' EXIT; \
129+
mv $$romio_prefix/$$romio_dir/test/Makefile{,.old}; \
130+
sed -e 's/\(MPI_LIB = \)\/\(.*\)/\1-L\/\2/' \
131+
< $$romio_prefix/$$romio_dir/test/Makefile.old \
132+
> $$romio_prefix/$$romio_dir/test/Makefile; \
133+
fi; \
134+
if $(CHROOT); then \
135+
mock -r $(CHROOT_NAME) --chroot \
136+
"make -C $$chroot_romio_prefix/$$romio_dir clean"; \
137+
else \
138+
make -C $$romio_prefix/$$romio_dir clean; \
139+
fi; \
140+
tar -C $$romio_prefix/$$romio_dir/.. --exclude Makefile.old \
141+
-czf romio-$(VERSION).tar.gz romio
142+
143+
romio-tarball: romio-$(VERSION).tar.gz
144+
145+
.PHONY: romio-tarball

mpich.spec

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Summary: A high-performance implementation of MPI
22
Name: mpich
33
Version: 3.3
4-
Release: 3%{?dist}
4+
Release: 4%{?dist}
55
License: MIT
66
URL: http://www.mpich.org/
77

@@ -90,6 +90,7 @@ Provides: %{name}-devel-static = %{version}-%{release}
9090
Requires: %{name} = %{version}-%{release}
9191
Requires: pkgconfig
9292
Requires: gcc-gfortran
93+
Requires: daos-devel
9394
%if (0%{?fedora} >= 30)
9495
Requires: rpm-mpi-hooks
9596
%endif
@@ -334,6 +335,9 @@ make check VERBOSE=1
334335
%{python3_sitearch}/%{name}.pth
335336

336337
%changelog
338+
* Thu Nov 28 2019 Brian J. Murrell <[email protected]> - 3.3-4
339+
- mpich-devel should Requires: daos-devel
340+
337341
* Fri Nov 22 2019 Brian J. Murrell <[email protected]> - 3.3-3
338342
- Rebuild with newer CaRT SO version
339343

0 commit comments

Comments
 (0)