Building SIMP, repoclosure command in pgk.rb

9 views
Skip to first unread message

Samuel Vange

unread,
Sep 8, 2016, 7:02:47 PM9/8/16
to SIMP Q&A Forum
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.

Trevor Vaughan

unread,
Sep 9, 2016, 5:53:52 AM9/9/16
to Samuel Vange, SIMP Q&A Forum
Hi Samuel,

We'll look into this. We've been using that script for quite some time without issue so I'm not quite sure what's going on there.

We're presently getting ready to overhaul the entire build process so this will certainly be part of that fun.

Thanks,

Trevor

--
You received this message because you are subscribed to the Google Groups "SIMP Q&A Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email to simp+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/simp/e080f26e-f514-402a-974f-25965fb14e26%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Trevor Vaughan
Vice President, Onyx Point, Inc

-- This account not approved for unencrypted proprietary information --
Reply all
Reply to author
Forward
0 new messages