Bug 1113610 - rpm build fails if the macro mpi_list in the spec file is emtpy
Summary: rpm build fails if the macro mpi_list in the spec file is emtpy
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: hdf5
Version: 20
Hardware: x86_64
OS: Linux
unspecified
low
Target Milestone: ---
Assignee: Orion Poplawski
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-06-26 13:56 UTC by markus hetzenecker
Modified: 2014-06-27 14:33 UTC (History)
3 users (show)

Fixed In Version: hdf5-1.8.13-4.fc21
Clone Of:
Environment:
Last Closed: 2014-06-27 14:33:34 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
avoid build steps of mpi subpackages if not requested (1.39 KB, text/plain)
2014-06-26 13:56 UTC, markus hetzenecker
no flags Details

Description markus hetzenecker 2014-06-26 13:56:09 UTC
Created attachment 912427 [details]
avoid build steps of mpi subpackages if not requested

Description of problem:

i had to rebuild the hdf5 package and to speed up things i disabled in the spec file the mpi support.
Now the build fails in the loop
 for mpi in %{mpi_list}
because now mpi_list is not defined and mpi is set to '%{mpi_list}'


Version-Release number of selected component (if applicable):
hdf5-1.8.11-6.fc20.x86_64


How reproducible:

Steps to Reproduce:
1.
 set in the hdf5.spec file
  %global with_mpich 0
  %global with_openmpi 0

2.
 rpmbuild -ba hdf5.spec
3.

Actual results:
build of packages fails

Expected results:
packages are build

Additional info:

to succeed i put some %if around the mpi loop.

Comment 1 Orion Poplawski 2014-06-27 14:33:34 UTC
Thanks.  I just used %{?mpi_list}.


Note You need to log in before you can comment on or make changes to this bug.