Skip to content

Commit 71e0463

Browse files
authored
Merge pull request #817 from joshcooper/cleanup
Drop unused win32 gems from bolt-runtime and other cleanup
2 parents 9feeafb + 071a6bf commit 71e0463

14 files changed

+95
-146
lines changed

configs/components/dmidecode.rb

Lines changed: 30 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -1,36 +1,34 @@
11
component 'dmidecode' do |pkg, settings, platform|
2-
pkg.version '3.3'
3-
pkg.md5sum 'afca949fd71a23dd39c4a3c9cd946dc0'
2+
pkg.version '3.3'
3+
pkg.md5sum 'afca949fd71a23dd39c4a3c9cd946dc0'
44

5-
pkg.apply_patch 'resources/patches/dmidecode/1117390c.patch'
6-
pkg.apply_patch 'resources/patches/dmidecode/11e134e5.patch'
7-
8-
pkg.apply_patch 'resources/patches/dmidecode/dmidecode-install-to-bin.patch'
9-
pkg.url "http://download.savannah.gnu.org/releases/dmidecode/dmidecode-#{pkg.get_version}.tar.xz"
10-
pkg.mirror "#{settings[:buildsources_url]}/dmidecode-#{pkg.get_version}.tar.xz"
11-
12-
pkg.environment "LDFLAGS", settings[:ldflags]
13-
pkg.environment "CFLAGS", settings[:cflags]
14-
15-
if platform.is_cross_compiled?
16-
# The Makefile doesn't honor environment overrides, so we need to
17-
# edit it directly for cross-compiling
18-
pkg.configure do
19-
["sed -i \"s|gcc|/opt/pl-build-tools/bin/#{settings[:platform_triple]}-gcc|g\" Makefile"]
20-
end
21-
end
22-
23-
pkg.build do
24-
["#{platform[:make]} -j$(shell expr $(shell #{platform[:num_cores]}) + 1)"]
25-
end
26-
27-
pkg.install do
28-
[
29-
"#{platform[:make]} prefix=#{settings[:prefix]} -j$(shell expr $(shell #{platform[:num_cores]}) + 1) install",
30-
"rm -f #{settings[:bindir]}/vpddecode #{settings[:bindir]}/biosdecode #{settings[:bindir]}/ownership",
31-
"rm -f #{settings[:mandir]}/man8/ownership.8 #{settings[:mandir]}/man8/biosdecode.8 #{settings[:mandir]}/man8/vpddecode.8"
32-
]
5+
pkg.apply_patch 'resources/patches/dmidecode/1117390c.patch'
6+
pkg.apply_patch 'resources/patches/dmidecode/11e134e5.patch'
7+
8+
pkg.apply_patch 'resources/patches/dmidecode/dmidecode-install-to-bin.patch'
9+
pkg.url "http://download.savannah.gnu.org/releases/dmidecode/dmidecode-#{pkg.get_version}.tar.xz"
10+
pkg.mirror "#{settings[:buildsources_url]}/dmidecode-#{pkg.get_version}.tar.xz"
11+
12+
pkg.environment "LDFLAGS", settings[:ldflags]
13+
pkg.environment "CFLAGS", settings[:cflags]
14+
15+
if platform.is_cross_compiled?
16+
# The Makefile doesn't honor environment overrides, so we need to
17+
# edit it directly for cross-compiling
18+
pkg.configure do
19+
["sed -i \"s|gcc|/opt/pl-build-tools/bin/#{settings[:platform_triple]}-gcc|g\" Makefile"]
3320
end
3421
end
35-
36-
22+
23+
pkg.build do
24+
["#{platform[:make]} -j$(shell expr $(shell #{platform[:num_cores]}) + 1)"]
25+
end
26+
27+
pkg.install do
28+
[
29+
"#{platform[:make]} prefix=#{settings[:prefix]} -j$(shell expr $(shell #{platform[:num_cores]}) + 1) install",
30+
"rm -f #{settings[:bindir]}/vpddecode #{settings[:bindir]}/biosdecode #{settings[:bindir]}/ownership",
31+
"rm -f #{settings[:mandir]}/man8/ownership.8 #{settings[:mandir]}/man8/biosdecode.8 #{settings[:mandir]}/man8/vpddecode.8"
32+
]
33+
end
34+
end

configs/components/openssl-3.0.rb

Lines changed: 0 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -31,26 +31,6 @@
3131
pkg.apply_patch 'resources/patches/openssl/openssl-3.0.13-crypto-providers.patch'
3232

3333
target = platform.architecture == 'x64' ? 'mingw64' : 'mingw'
34-
# elsif platform.is_cross_compiled_linux?
35-
# pkg.environment 'PATH', "/opt/pl-build-tools/bin:$(PATH)"
36-
# pkg.environment 'CC', "/opt/pl-build-tools/bin/#{settings[:platform_triple]}-gcc"
37-
38-
# cflags = "#{settings[:cflags]} -fPIC"
39-
# if platform.architecture =~ /aarch/
40-
# # OpenSSL fails to work on aarch unless we turn down the compiler optimization.
41-
# # See PA-2135 for details
42-
# cflags += " -O2"
43-
# end
44-
# ldflags = "-Wl,-rpath=/opt/pl-build-tools/#{settings[:platform_triple]}/lib -Wl,-rpath=#{settings[:libdir]} -L/opt/pl-build-tools/#{settings[:platform_triple]}/lib"
45-
# target = if platform.architecture == 'aarch64'
46-
# 'linux-aarch64'
47-
# elsif platform.name =~ /debian-8-arm/
48-
# 'linux-armv4'
49-
# elsif platform.architecture =~ /ppc64le|ppc64el/ # Little-endian
50-
# 'linux-ppc64le'
51-
# elsif platform.architecture =~ /ppc64/ # Big-endian
52-
# 'linux-ppc64'
53-
# end
5434
elsif platform.is_aix?
5535
raise "openssl-3.0 is not supported on older AIX" if platform.name == 'aix-7.1-ppc'
5636

@@ -150,7 +130,6 @@
150130
configure_flags << 'no-legacy' << 'no-md4'
151131
end
152132

153-
154133
# Individual projects may provide their own openssl configure flags:
155134
project_flags = settings[:openssl_extra_configure_flags] || []
156135
perl_exec = ''
@@ -203,11 +182,6 @@
203182

204183
# Skip man and html docs
205184
install_commands << "#{platform[:make]} #{install_prefix} install_sw install_ssldirs"
206-
207-
# if settings[:runtime_project] == 'pdk'
208-
# install_commands << "rm -f #{settings[:prefix]}/bin/{openssl,c_rehash}"
209-
# end
210-
211185
install_commands << "rm -f #{settings[:prefix]}/bin/c_rehash"
212186

213187
pkg.install do

configs/components/rubygem-ffi.rb

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,18 @@
1919

2020
rb_major_minor_version = settings[:ruby_version].to_f
2121

22+
# Prior to ruby 3.2, both ruby and the ffi gem vendored a version of libffi.
23+
# If libffi happened to be installed in /usr/lib, then the ffi gem preferred
24+
# that instead of building libffi itself. To ensure consistency, we use
25+
# --disable-system-ffi so that the ffi gem *always* builds libffi, then
26+
# builds the ffi_c native extension and links it against libffi.so.
27+
#
28+
# In ruby 3.2 and up, libffi is no longer vendored. So we created a separate
29+
# libffi vanagon component which is built before ruby. The ffi gem still
30+
# vendors libffi, so we use the --enable-system-ffi option to ensure the ffi
31+
# gem *always* uses the libffi.so we already built. Note the term "system" is
32+
# misleading, because we override PKG_CONFIG_PATH below so that our libffi.so
33+
# is preferred, not the one in /usr/lib.
2234
if rb_major_minor_version > 2.7
2335
pkg.install do
2436
"#{settings[:gem_install]} ffi-#{pkg.get_version}.gem -- --enable-system-ffi"
@@ -97,6 +109,7 @@
97109
if platform.name =~ /solaris-11-i386/ && rb_major_minor_version < 3.2
98110
pkg.install_file "/usr/lib/libffi.so.5.0.10", "#{settings[:libdir]}/libffi.so"
99111
elsif platform.name =~ /solaris-10-i386/
112+
# If we ever support Solaris-11 on Ruby 3.2, then we won't want to do this
100113
pkg.install_file "/opt/csw/lib/libffi.so.6", "#{settings[:libdir]}/libffi.so.6"
101114
end
102115

@@ -127,7 +140,7 @@
127140

128141
# move ld back after the gem is installed
129142
pkg.install { "mv /usr/bin/ld1 /usr/bin/ld" }
130-
143+
131144
elsif platform.name =~ /solaris-10-sparc/
132145
sed_exp = 's|CONFIG\["LDFLAGS"\].*|CONFIG["LDFLAGS"] = "-Wl,-rpath-link,/opt/pl-build-tools/sparc-sun-solaris2.10/sysroot/lib:/opt/pl-build-tools/sparc-sun-solaris2.10/sysroot/usr/lib -L. -Wl,-rpath=/opt/puppetlabs/puppet/lib -fstack-protector"|'
133146
pkg.configure do

configs/components/rubygem-gettext.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
case version
66
when '3.4.3'
7-
pkg.sha256sum '1b98e1272d0f55a56f519ee86d24e0fcd114b94c9d10b26e72512d65f9174251'
7+
pkg.sha256sum '1b98e1272d0f55a56f519ee86d24e0fcd114b94c9d10b26e72512d65f9174251'
88
when '3.2.2'
99
pkg.sha256sum '9d250bb79273efb4a268977f219d2daca05cdc7473eff40288b8ab8ddd0f51b4'
1010
else
Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
component 'rubygem-prime' do |pkg, settings, platform|
2-
pkg.version '0.1.2'
3-
pkg.sha256sum 'd4e956cadfaf04de036dc7dc74f95bf6a285a62cc509b28b7a66b245d19fe3a4'
4-
5-
instance_eval File.read('configs/components/_base-rubygem.rb')
6-
end
7-
2+
pkg.version '0.1.2'
3+
pkg.sha256sum 'd4e956cadfaf04de036dc7dc74f95bf6a285a62cc509b28b7a66b245d19fe3a4'
4+
5+
instance_eval File.read('configs/components/_base-rubygem.rb')
6+
end

configs/components/rubygem-public_suffix.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@
33
pkg.md5sum '504e45c1f5f7b629e46e4deef7d0f46f'
44

55
instance_eval File.read('configs/components/_base-rubygem.rb')
6-
end
6+
end

configs/components/rubygem-rgen.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,3 @@
44

55
instance_eval File.read('configs/components/_base-rubygem.rb')
66
end
7-

configs/components/rubygem-win32-dir.rb

Lines changed: 0 additions & 6 deletions
This file was deleted.

configs/components/rubygem-win32-process.rb

Lines changed: 0 additions & 6 deletions
This file was deleted.

configs/components/rubygem-win32-security.rb

Lines changed: 0 additions & 6 deletions
This file was deleted.

0 commit comments

Comments
 (0)