File tree Expand file tree Collapse file tree 2 files changed +36
-3
lines changed
Expand file tree Collapse file tree 2 files changed +36
-3
lines changed Original file line number Diff line number Diff line change 4444// no pmix for leap15 yet
4545packageBuildingPipeline([' distros' : [' centos7' , ' leap15' ],
4646 ' publish_branch' : ' daos_adio-rpm' ,
47- ' make args' : ' -f Makefile-rpm.mk' ,
48- ' rpmlint_check' : false ])
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' ,
51+ ' rpmlint_check' : false ])
Original file line number Diff line number Diff line change @@ -111,4 +111,34 @@ mpich.spec: FORCE
111111 rm -f mpich.spec
112112 ln mpich-$(DISTRO_BASE ) .spec $@
113113
114- FORCE :
114+ CHROOT ?= false
115+ CHROOT_NAME ?= epel-7-x86_64
116+
117+ romio-$(VERSION ) .tar.gz : FORCE
118+ set -e; \
119+ if $( CHROOT) ; then \
120+ romio_prefix=/var/lib/mock/$(CHROOT_NAME ) /root/builddir/build; \
121+ chroot_romio_prefix=/builddir/build; \
122+ else \
123+ romio_prefix=_topdir; \
124+ fi ; \
125+ romio_dir=BUILD/mpich-$(VERSION ) /src/mpi/romio; \
126+ if grep " MPI_LIB = /" $$ romio_prefix/$$ romio_dir/test/Makefile; then \
127+ trap ' mv $$romio_prefix/$$romio_dir/test/Makefile{.old,}' EXIT; \
128+ mv $$ romio_prefix/$$ romio_dir/test/Makefile{,.old}; \
129+ sed -e ' s/\(MPI_LIB = \)\/\(.*\)/\1-L\/\2/' \
130+ < $$ romio_prefix/$$ romio_dir/test/Makefile.old \
131+ > $$ romio_prefix/$$ romio_dir/test/Makefile; \
132+ fi ; \
133+ if $( CHROOT) ; then \
134+ mock -r $(CHROOT_NAME ) --chroot \
135+ " make -C $$ chroot_romio_prefix/$$ romio_dir clean" ; \
136+ else \
137+ make -C $$ romio_prefix/$$ romio_dir clean; \
138+ fi ; \
139+ tar -C $$ romio_prefix/$$ romio_dir/.. --exclude Makefile.old \
140+ -czf romio-$(VERSION ) .tar.gz romio
141+
142+ romio-tarball : romio-$(VERSION ) .tar.gz
143+
144+ .PHONY : romio-tarball
You can’t perform that action at this time.
0 commit comments