simp-rake-helpers 5.13.0 → 5.13.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -1
- data/lib/simp/rake/build/auto.rb +3 -2
- data/lib/simp/rake/build/deps.rb +1 -1
- data/lib/simp/rake/build/iso.rb +58 -42
- data/lib/simp/rake/helpers/version.rb +1 -1
- data/spec/lib/simp/rake/build/helpers_spec.rb +1 -1
- metadata +3 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b6f0550abc4ac7ec968a8590bbc7003d0de2753ae072909396fce25c01a7edd3
|
4
|
+
data.tar.gz: 4eb8efa7f00322290a3a45a6e304ac6b1798e3d47283e1ad525184ae95f9560f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e6eef279b4061c054908d69ab0408e5e850149bc92689db7b64f167d9815186af793a07c905bbf47d71763107088cdd4059da6f31e95f775410ab03803428b68
|
7
|
+
data.tar.gz: 4bf2a7cfedbd8a9a711f9ba19e62ad16c0dcd593511ab21d249eda819b1ac67ba7ed0285a085057e7b68e31a700fdb185d57736a773734512821781096bad478
|
data/CHANGELOG.md
CHANGED
data/lib/simp/rake/build/auto.rb
CHANGED
@@ -110,14 +110,15 @@ module Simp::Rake::Build
|
|
110
110
|
- SIMP_BUILD_docs => 'yes' builds & includes documentation
|
111
111
|
- SIMP_BUILD_checkout => 'no' will skip the git repo checkouts
|
112
112
|
- SIMP_BUILD_bundle => 'no' skips running bundle in each subrepo
|
113
|
-
- SIMP_BUILD_unpack => 'no'
|
114
|
-
- SIMP_BUILD_unpack_merge => 'no' prevents auto-merging the unpacked
|
113
|
+
- SIMP_BUILD_unpack => 'no' prevents unpacking the source ISO
|
114
|
+
- SIMP_BUILD_unpack_merge => 'no' prevents auto-merging the unpacked ISO
|
115
115
|
- SIMP_BUILD_prune => 'no' passes :prune=>false to iso:build
|
116
116
|
- SIMP_BUILD_iso_name => Renames the output ISO filename [Default: false]
|
117
117
|
- SIMP_BUILD_iso_tag => Appended to the output ISO's filename [Default: false]
|
118
118
|
- SIMP_BUILD_update_packages => Automatically update any necessary packages in the packages.yaml file [Default: false]
|
119
119
|
- SIMP_BUILD_verbose => 'yes' enables verbose reporting. [Default: 'no']
|
120
120
|
- SIMP_BUILD_signing_key => The name of the GPG key to use to sign packages. [Default: 'dev']
|
121
|
+
- SIMP_BUILD_reposync_only => 'yes' skips unpacking the locally-build tarball so that you only get items from the reposync directory (if present)
|
121
122
|
EOM
|
122
123
|
|
123
124
|
task :auto, [:iso_paths,
|
data/lib/simp/rake/build/deps.rb
CHANGED
data/lib/simp/rake/build/iso.rb
CHANGED
@@ -252,61 +252,77 @@ module Simp::Rake::Build
|
|
252
252
|
end
|
253
253
|
end
|
254
254
|
|
255
|
-
|
256
|
-
|
257
|
-
|
258
|
-
# Pop the SIMP directory from the tarball into the correct spot
|
259
|
-
# FIXME: This is a hack
|
260
|
-
unless dir == repo_target_dir
|
261
|
-
simpdir = File.join(dir,'SIMP')
|
262
|
-
|
263
|
-
if File.directory?(simpdir)
|
264
|
-
cp_r(simpdir, repo_target_dir, :verbose => verbose)
|
265
|
-
rm_rf(simpdir, :verbose => verbose)
|
266
|
-
end
|
255
|
+
reposync_only = (ENV.fetch('SIMP_BUILD_reposync_only', 'no') == 'yes')
|
256
|
+
if reposync_only && !reposync_active
|
257
|
+
fail("ERROR: Reposync-only requested, but no reposync content found")
|
267
258
|
end
|
268
259
|
|
269
|
-
|
270
|
-
|
271
|
-
|
260
|
+
if reposync_only
|
261
|
+
puts
|
262
|
+
puts '-'*80
|
263
|
+
puts '### Reposync-Only Mode ###'
|
264
|
+
puts
|
265
|
+
puts ' Locally built packages will not be added'
|
266
|
+
puts
|
267
|
+
puts '-'*80
|
268
|
+
puts
|
269
|
+
else
|
270
|
+
# Add the SIMP code
|
271
|
+
system("tar --no-same-permissions -C #{dir} -xzf #{tball}")
|
272
|
+
|
273
|
+
# Pop the SIMP directory from the tarball into the correct spot
|
274
|
+
# FIXME: This is a hack
|
275
|
+
unless dir == repo_target_dir
|
276
|
+
simpdir = File.join(dir,'SIMP')
|
272
277
|
|
273
|
-
|
274
|
-
|
275
|
-
|
276
|
-
|
277
|
-
yum_dep_location = File.join(@build_dir,'yum_data',simp_dep_src,'packages')
|
278
|
+
if File.directory?(simpdir)
|
279
|
+
cp_r(simpdir, repo_target_dir, :verbose => verbose)
|
280
|
+
rm_rf(simpdir, :verbose => verbose)
|
281
|
+
end
|
278
282
|
end
|
279
283
|
|
280
|
-
|
284
|
+
Dir.chdir("#{repo_target_dir}/SIMP") do
|
285
|
+
# Add the SIMP Dependencies
|
286
|
+
simp_base_ver = simpver.split('-').first
|
281
287
|
|
282
|
-
|
283
|
-
|
284
|
-
|
288
|
+
if $simp6
|
289
|
+
yum_dep_location = File.join(@build_dir,'yum_data','packages')
|
290
|
+
else
|
291
|
+
simp_dep_src = %(SIMP#{simp_base_ver}_#{baseos}#{baseosver}_#{arch})
|
292
|
+
yum_dep_location = File.join(@build_dir,'yum_data',simp_dep_src,'packages')
|
293
|
+
end
|
285
294
|
|
286
|
-
|
287
|
-
fail("Could not find any dependency RPMs at #{yum_dep_location}") unless reposync_active
|
288
|
-
end
|
295
|
+
yum_dep_rpms = Dir.glob(File.join(yum_dep_location,'*.rpm'))
|
289
296
|
|
290
|
-
|
291
|
-
|
292
|
-
|
293
|
-
aux_packages = File.join(File.dirname(yum_dep_location),'aux_packages')
|
294
|
-
if File.directory?(aux_packages)
|
295
|
-
yum_dep_rpms += Dir.glob(File.join(aux_packages,'*.rpm'))
|
296
|
-
end
|
297
|
+
unless File.directory?(yum_dep_location)
|
298
|
+
fail("Could not find dependency directory at #{yum_dep_location}") unless reposync_active
|
299
|
+
end
|
297
300
|
|
298
|
-
|
299
|
-
|
301
|
+
if yum_dep_rpms.empty?
|
302
|
+
fail("Could not find any dependency RPMs at #{yum_dep_location}") unless reposync_active
|
303
|
+
end
|
300
304
|
|
301
|
-
|
302
|
-
|
305
|
+
# Add any one-off RPMs that you might want to add to your own build
|
306
|
+
# These are *not* checked to make sure that they actually match your
|
307
|
+
# environment
|
308
|
+
aux_packages = File.join(File.dirname(yum_dep_location),'aux_packages')
|
309
|
+
if File.directory?(aux_packages)
|
310
|
+
yum_dep_rpms += Dir.glob(File.join(aux_packages,'*.rpm'))
|
303
311
|
end
|
304
312
|
|
305
|
-
|
306
|
-
|
307
|
-
|
313
|
+
yum_dep_rpms.each do |rpm|
|
314
|
+
rpm_arch = rpm.split('.')[-2]
|
315
|
+
|
316
|
+
unless File.directory?(rpm_arch)
|
317
|
+
mkdir(rpm_arch)
|
318
|
+
end
|
319
|
+
|
320
|
+
# Just in case this is a symlink, broken, or some other nonsense.
|
321
|
+
target_file = File.join(rpm_arch,File.basename(rpm))
|
322
|
+
rm_f(target_file) if File.exist?(target_file)
|
308
323
|
|
309
|
-
|
324
|
+
cp(rpm,rpm_arch, :verbose => verbose)
|
325
|
+
end
|
310
326
|
end
|
311
327
|
|
312
328
|
if reposync_active
|
@@ -3,7 +3,7 @@ require 'spec_helper'
|
|
3
3
|
|
4
4
|
describe Simp::Rake::Build::Helpers do
|
5
5
|
before :each do
|
6
|
-
dir
|
6
|
+
dir = File.expand_path( '../../files/simp_build', File.dirname( __FILE__ ) )
|
7
7
|
env = ENV['SIMP_RPM_dist'].dup
|
8
8
|
ENV['SIMP_RPM_dist'] = '.el7'
|
9
9
|
@obj = Simp::Rake::Build::Helpers.new( dir )
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: simp-rake-helpers
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 5.13.
|
4
|
+
version: 5.13.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Chris Tessmer
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2022-
|
12
|
+
date: 2022-05-06 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: simp-beaker-helpers
|
@@ -592,8 +592,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
592
592
|
- !ruby/object:Gem::Version
|
593
593
|
version: '0'
|
594
594
|
requirements: []
|
595
|
-
|
596
|
-
rubygems_version: 2.7.6.3
|
595
|
+
rubygems_version: 3.0.9
|
597
596
|
signing_key:
|
598
597
|
specification_version: 4
|
599
598
|
summary: SIMP rake helpers
|