Hey guys,
I'm building SIMP 5.2.0-0 on RHEL 7.2 and I came up against what I think is a bug in the install scripts. This has come up when building SIMP 5.1.X on RHEL 7.2 as well. The issue is that no matter what packages I would put in simp-core/build/yum_data/<SIMP_BUILD>/packages, the install script fails on the repoclosure step. The fix for me was the following:
on /.rvm/gems/ruby-2.0.0-p648/gems/simp-rake-helpers-2.5.3/lib/simp/rake/build/pkg.rb:592
cmd = 'repoclosure -c repodata -n -t -r base -l lookaside -c yum.conf'
changed to
cmd = 'repoclosure -r base -l lookaside -c yum.conf'
Justification: the -c option in repoclosure names an alternative configuration file. The "-c yum.conf" at the end of the command is correct, but the "-c repodata" does not call out a valid configuration file; instead, it calls out the repodata directory. Running the command as it's changed above in the repositories created in /tmp (after commenting out the "remove_entry_secure temp_pkg_dir on line 611") returns clean and seems to be doing its job of ensuring dependency resolution. I've omitted the -n and -t because I'm not interested in saving the time to run the closure on all pacakges (-n only runs the closure on new packages), and I don't think I need the temp cache.