omnibus-software 23.7.295 → 3002.0.0
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of omnibus-software might be problematic. Click here for more details.
- checksums.yaml +4 -4
- data/lib/omnibus-software.rb +87 -102
- metadata +13 -273
- data/.buildkite/hooks/pre-command +0 -9
- data/.expeditor/Version_inspector/README.md +0 -21
- data/.expeditor/Version_inspector/SW-Version-update.py +0 -243
- data/.expeditor/Version_inspector/manual_prod_list.json +0 -29
- data/.expeditor/Version_inspector/prod_default_version.json +0 -103
- data/.expeditor/Version_inspector/prod_list.json +0 -194
- data/.expeditor/Version_inspector/requirements.txt +0 -4
- data/.expeditor/Version_inspector/update_prod_default_version.sh +0 -24
- data/.expeditor/Version_inspector/update_prod_list.sh +0 -35
- data/.expeditor/config.yml +0 -44
- data/.expeditor/determine_version.sh +0 -15
- data/.expeditor/push_git_tag.sh +0 -12
- data/.expeditor/run_linux_tests.sh +0 -16
- data/.expeditor/software_upload.pipeline.yml +0 -17
- data/.expeditor/verify.pipeline.yml +0 -52
- data/.github/CODEOWNERS +0 -5
- data/.github/ISSUE_TEMPLATE/BUG_TEMPLATE.md +0 -29
- data/.github/ISSUE_TEMPLATE/DESIGN_PROPOSAL.md +0 -40
- data/.github/ISSUE_TEMPLATE/ENHANCEMENT_REQUEST_TEMPLATE.md +0 -17
- data/.github/ISSUE_TEMPLATE/SUPPORT_QUESTION.md +0 -11
- data/.github/dependabot.yml +0 -9
- data/.github/lock.yml +0 -1
- data/.gitignore +0 -17
- data/CHANGELOG.md +0 -18
- data/CODE_OF_CONDUCT.md +0 -1
- data/CONTRIBUTING.md +0 -1
- data/Dockerfile +0 -21
- data/Gemfile +0 -10
- data/LICENSE +0 -201
- data/README.md +0 -99
- data/Rakefile +0 -56
- data/VERSION +0 -1
- data/config/patches/bash/race-condition.patch +0 -15
- data/config/patches/bash/updated_race-condition.patch +0 -15
- data/config/patches/bzip2/aix_makefile.patch +0 -11
- data/config/patches/bzip2/makefile_no_bins.patch +0 -77
- data/config/patches/bzip2/makefile_take_env_vars.patch +0 -31
- data/config/patches/bzip2/soname_install_dir.patch +0 -11
- data/config/patches/curl/curl-aix-disable-alpn.patch +0 -22
- data/config/patches/curl/curl-freebsd-hostcheck.patch +0 -10
- data/config/patches/erlang/epmd-require-explicitly-adding-loopback-address.patch +0 -84
- data/config/patches/erlang/updated-epmd-require-explicitly-adding-loopback-address.patch +0 -75
- data/config/patches/expat/configure_xlc_visibility.patch +0 -58
- data/config/patches/expat/configure_xlc_visibility_2.4.7.patch +0 -59
- data/config/patches/figlet/aix-figlet-cdefs.patch +0 -48
- data/config/patches/gdbm/v1.8.3-Makefile.in.patch +0 -32
- data/config/patches/git/aix-endian-fix.patch +0 -20
- data/config/patches/gtar/aix_extra_case.patch +0 -13
- data/config/patches/keepalived/keepalived-1.2.9_opscode_centos_5.patch +0 -15
- data/config/patches/libedit/freebsd-vi-fix.patch +0 -24
- data/config/patches/libedit/openbsd-weak-alias-fix.patch +0 -48
- data/config/patches/libedit/solaris.patch +0 -36
- data/config/patches/libffi/libffi-3.2.1-disable-multi-os-directory.patch +0 -83
- data/config/patches/libffi/libffi-3.3-arm64.patch +0 -9608
- data/config/patches/libxslt/libxslt-solaris-configure.patch +0 -19
- data/config/patches/libxslt/libxslt-windows-relocate.patch +0 -12
- data/config/patches/libyaml/windows-configure.patch +0 -26
- data/config/patches/libzmq/zeromq-4.0.11_mingw_inet_pton.patch +0 -37
- data/config/patches/libzmq/zeromq-aix-4.2.2-LARGE_FILES.patch +0 -56
- data/config/patches/libzmq/zeromq-aix-4.2.2-atomic-counter-fetch_and_add.patch +0 -59
- data/config/patches/logrotate/logrotate_basedir_override.patch +0 -17
- data/config/patches/m4/m4-1.4.18-glibc-change-work-around.patch +0 -115
- data/config/patches/make/deb-make-glob.patch +0 -31
- data/config/patches/ncurses/ncurses-5.9-gcc-5.patch +0 -46
- data/config/patches/ncurses/ncurses-5.9-solaris-xopen_source_extended-detection.patch +0 -11
- data/config/patches/ncurses/ncurses-clang.patch +0 -43
- data/config/patches/ncurses/patch-aa +0 -23
- data/config/patches/ncurses/patch-ab +0 -44
- data/config/patches/ncurses/patch-ac +0 -40
- data/config/patches/ncurses/patch-ad +0 -13
- data/config/patches/ncurses/patch-cxx_cursesf.h +0 -22
- data/config/patches/ncurses/patch-cxx_cursesm.h +0 -22
- data/config/patches/ncurses/patch-ncurses_tinfo_lib__baudrate.c +0 -24
- data/config/patches/openssl/openssl-1.0.1f-do-not-build-docs.patch +0 -28
- data/config/patches/openssl/openssl-1.0.1j-windows-relocate-dll.patch +0 -44
- data/config/patches/openssl/openssl-1.0.1q-fix-compiler-flags-table-for-msys.patch +0 -20
- data/config/patches/openssl/openssl-1.0.2x-darwin-arm64.patch +0 -54
- data/config/patches/openssl/openssl-1.1.0f-do-not-install-docs.patch +0 -11
- data/config/patches/openssl/openssl-3.0.1-do-not-install-docs.patch +0 -22
- data/config/patches/openssl-fips/openssl-fips-fix-compiler-flags-table-for-msys.patch +0 -11
- data/config/patches/perl/perl-5.18.1-remove_lnsl.patch +0 -441
- data/config/patches/perl/perl-5.22.1-remove_lnsl.patch +0 -512
- data/config/patches/perl/perl-5.30.0-remove_lnsl.patch +0 -518
- data/config/patches/perl/perl-5.32.1-remove_lnsl.patch +0 -456
- data/config/patches/perl/perl-5.34.0-remove_lnsl.patch +0 -516
- data/config/patches/pkg-config/openbsd-charset.patch +0 -19
- data/config/patches/popt/v1.16.ppc64le-configure.patch +0 -18
- data/config/patches/redis/password-from-environment.patch +0 -19
- data/config/patches/ruby/patch-configure +0 -103
- data/config/patches/ruby/remove_nano.patch +0 -10
- data/config/patches/ruby/ruby-2.6.7_c99.patch +0 -12
- data/config/patches/ruby/ruby-3.0.1-configure.patch +0 -281
- data/config/patches/ruby/ruby-3.0.2-configure.patch +0 -251
- data/config/patches/ruby/ruby-3.0.5-configure.patch +0 -260
- data/config/patches/ruby/ruby-aix-atomic.patch +0 -11
- data/config/patches/ruby/ruby-aix-configure_26_and_later.patch +0 -19
- data/config/patches/ruby/ruby-aix-vm-core.patch +0 -14
- data/config/patches/ruby/ruby-fast-load_26.patch +0 -16
- data/config/patches/ruby/ruby-fast-load_31.patch +0 -16
- data/config/patches/ruby/ruby-faster-load_26.patch +0 -11
- data/config/patches/ruby/ruby-faster-load_27.patch +0 -11
- data/config/patches/ruby/ruby-mkmf.patch +0 -29
- data/config/patches/ruby/ruby-no-stack-protector-strong.patch +0 -11
- data/config/patches/ruby/ruby-no-stack-protector.patch +0 -13
- data/config/patches/ruby/ruby-win32_warning_removal.patch +0 -12
- data/config/patches/ruby/ruby_aix_openssl.patch +0 -10
- data/config/patches/ruby/ruby_aix_ssl_EAGAIN.patch +0 -19
- data/config/patches/ruby/rvm-cflags.patch +0 -27
- data/config/patches/stunnel/stunnel-on-windows.patch +0 -42
- data/config/patches/zlib/zlib-windows-relocate.patch +0 -20
- data/config/software/autoconf.rb +0 -46
- data/config/software/automake.rb +0 -49
- data/config/software/bash.rb +0 -81
- data/config/software/berkshelf-no-depselector.rb +0 -46
- data/config/software/berkshelf.rb +0 -34
- data/config/software/binutils.rb +0 -47
- data/config/software/bundler.rb +0 -38
- data/config/software/bzip2.rb +0 -57
- data/config/software/cacerts.rb +0 -52
- data/config/software/chef-gem.rb +0 -35
- data/config/software/chef.rb +0 -113
- data/config/software/cmake.rb +0 -100
- data/config/software/config_guess.rb +0 -37
- data/config/software/cpanminus.rb +0 -50
- data/config/software/curl.rb +0 -105
- data/config/software/delivery-cli.rb +0 -89
- data/config/software/dep-selector-libgecode.rb +0 -48
- data/config/software/elasticsearch.rb +0 -67
- data/config/software/elixir.rb +0 -35
- data/config/software/erlang.rb +0 -134
- data/config/software/expat.rb +0 -66
- data/config/software/fakeroot.rb +0 -41
- data/config/software/ffi-yajl.rb +0 -46
- data/config/software/figlet-fonts.rb +0 -31
- data/config/software/figlet.rb +0 -44
- data/config/software/gcc.rb +0 -60
- data/config/software/gdbm.rb +0 -54
- data/config/software/gecode.rb +0 -64
- data/config/software/gem-permissions.rb +0 -43
- data/config/software/git-windows.rb +0 -98
- data/config/software/git.rb +0 -142
- data/config/software/gmp.rb +0 -50
- data/config/software/go-uninstall.rb +0 -33
- data/config/software/go.rb +0 -123
- data/config/software/google-protobuf.rb +0 -45
- data/config/software/gtar.rb +0 -64
- data/config/software/help2man.rb +0 -40
- data/config/software/highline-gem.rb +0 -37
- data/config/software/ibm-jre.rb +0 -59
- data/config/software/inspec.rb +0 -43
- data/config/software/jre-from-jdk.rb +0 -67
- data/config/software/keepalived.rb +0 -68
- data/config/software/libarchive.rb +0 -74
- data/config/software/libedit.rb +0 -76
- data/config/software/libffi.rb +0 -71
- data/config/software/libgcc.rb +0 -52
- data/config/software/libiconv.rb +0 -57
- data/config/software/libintl-perl.rb +0 -59
- data/config/software/liblzma.rb +0 -63
- data/config/software/libossp-uuid.rb +0 -47
- data/config/software/libsodium.rb +0 -42
- data/config/software/libtool.rb +0 -58
- data/config/software/libuuid.rb +0 -44
- data/config/software/libxml2.rb +0 -65
- data/config/software/libxslt.rb +0 -68
- data/config/software/libyajl2-gem.rb +0 -44
- data/config/software/libyaml.rb +0 -52
- data/config/software/libzmq.rb +0 -93
- data/config/software/logrotate.rb +0 -64
- data/config/software/lua.rb +0 -48
- data/config/software/m4.rb +0 -40
- data/config/software/make.rb +0 -46
- data/config/software/makedepend.rb +0 -47
- data/config/software/mpc.rb +0 -48
- data/config/software/mpfr.rb +0 -48
- data/config/software/musl.rb +0 -107
- data/config/software/mysql2.rb +0 -50
- data/config/software/ncurses.rb +0 -162
- data/config/software/nginx.rb +0 -57
- data/config/software/nodejs-binary.rb +0 -93
- data/config/software/nodejs.rb +0 -58
- data/config/software/nokogiri.rb +0 -92
- data/config/software/omnibus-ctl.rb +0 -42
- data/config/software/openresty.rb +0 -96
- data/config/software/opensearch.rb +0 -59
- data/config/software/openssl-customization.rb +0 -81
- data/config/software/openssl-fips.rb +0 -85
- data/config/software/openssl.rb +0 -199
- data/config/software/patch.rb +0 -48
- data/config/software/patchelf.rb +0 -70
- data/config/software/pcre.rb +0 -55
- data/config/software/perl-extutils-embed.rb +0 -38
- data/config/software/perl-extutils-makemaker.rb +0 -47
- data/config/software/perl-thread-queue.rb +0 -41
- data/config/software/perl.rb +0 -80
- data/config/software/perl_pg_driver.rb +0 -46
- data/config/software/pg-gem.rb +0 -36
- data/config/software/pkg-config-lite.rb +0 -48
- data/config/software/pkg-config.rb +0 -68
- data/config/software/popt.rb +0 -59
- data/config/software/postgresql.rb +0 -71
- data/config/software/preparation.rb +0 -31
- data/config/software/python.rb +0 -83
- data/config/software/rabbitmq.rb +0 -58
- data/config/software/rb-readline.rb +0 -33
- data/config/software/rbnacl-libsodium.rb +0 -42
- data/config/software/rbzmq.rb +0 -44
- data/config/software/rebar.rb +0 -42
- data/config/software/redis-gem.rb +0 -36
- data/config/software/redis.rb +0 -54
- data/config/software/relx.rb +0 -39
- data/config/software/rsync.rb +0 -57
- data/config/software/ruby-cleanup.rb +0 -271
- data/config/software/ruby-msys2-devkit.rb +0 -72
- data/config/software/ruby-windows-devkit-bash.rb +0 -43
- data/config/software/ruby-windows-devkit.rb +0 -84
- data/config/software/ruby.rb +0 -315
- data/config/software/rubygems.rb +0 -73
- data/config/software/runit.rb +0 -68
- data/config/software/rust-uninstall.rb +0 -32
- data/config/software/rust.rb +0 -97
- data/config/software/sequel-gem.rb +0 -36
- data/config/software/server-jre.rb +0 -132
- data/config/software/server-open-jre.rb +0 -146
- data/config/software/setuptools.rb +0 -48
- data/config/software/shebang-cleanup.rb +0 -101
- data/config/software/sqitch.rb +0 -92
- data/config/software/stunnel.rb +0 -88
- data/config/software/util-macros.rb +0 -44
- data/config/software/version-manifest.rb +0 -33
- data/config/software/xproto.rb +0 -43
- data/config/software/zlib.rb +0 -88
- data/config/templates/git/config.mak.erb +0 -31
- data/config/templates/rubygems/register_devtools.rb.erb +0 -33
- data/config/templates/runit/runsvdir-start.erb +0 -42
- data/docker-compose.yml +0 -15
- data/lib/omnibus-software/version.rb +0 -3
- data/omnibus-software.gemspec +0 -20
- data/scripts/internal_sources.rb +0 -78
- data/scripts/internal_sources.yml +0 -419
- data/test/Gemfile +0 -10
- data/test/config/projects/test.rb +0 -14
- data/test/generate_steps.rb +0 -65
- data/test/omnibus-build.sh +0 -55
- data/test/omnibus.rb +0 -59
@@ -1,271 +0,0 @@
|
|
1
|
-
#
|
2
|
-
# Copyright:: Copyright (c) 2014-2020, Chef Software Inc.
|
3
|
-
# License:: Apache License, Version 2.0
|
4
|
-
#
|
5
|
-
# Licensed under the Apache License, Version 2.0 (the "License");
|
6
|
-
# you may not use this file except in compliance with the License.
|
7
|
-
# You may obtain a copy of the License at
|
8
|
-
#
|
9
|
-
# http://www.apache.org/licenses/LICENSE-2.0
|
10
|
-
#
|
11
|
-
# Unless required by applicable law or agreed to in writing, software
|
12
|
-
# distributed under the License is distributed on an "AS IS" BASIS,
|
13
|
-
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14
|
-
# See the License for the specific language governing permissions and
|
15
|
-
# limitations under the License.
|
16
|
-
#
|
17
|
-
#
|
18
|
-
# Common cleanup routines for ruby apps (InSpec, Workstation, Chef, etc)
|
19
|
-
# expeditor/ignore: logic only
|
20
|
-
|
21
|
-
require "fileutils"
|
22
|
-
|
23
|
-
name "ruby-cleanup"
|
24
|
-
default_version "1.0.0"
|
25
|
-
|
26
|
-
license :project_license
|
27
|
-
skip_transitive_dependency_licensing true
|
28
|
-
|
29
|
-
dependency "zlib" # just so we clear health-check & zlib is ruby dependency
|
30
|
-
|
31
|
-
build do
|
32
|
-
env = with_standard_compiler_flags(with_embedded_path)
|
33
|
-
|
34
|
-
# patchelf was only installed to change the rpath for adoptopenjre binary
|
35
|
-
# delete
|
36
|
-
command "find #{install_dir} -name patchelf -exec rm -rf \\{\\} \\;" unless windows?
|
37
|
-
|
38
|
-
# Remove static object files for all platforms
|
39
|
-
# except AIX which uses them at runtime.
|
40
|
-
unless aix?
|
41
|
-
block "Remove static libraries" do
|
42
|
-
gemfile = "#{install_dir}/embedded/bin/gem"
|
43
|
-
next unless File.exist?(gemfile)
|
44
|
-
|
45
|
-
gemdir = shellout!("#{gemfile} environment gemdir", env: env).stdout.chomp
|
46
|
-
|
47
|
-
# find all the static *.a files and delete them
|
48
|
-
Dir.glob("#{gemdir}/**/*.a").each do |f|
|
49
|
-
puts "Deleting #{f}"
|
50
|
-
File.delete(f)
|
51
|
-
end
|
52
|
-
end
|
53
|
-
end
|
54
|
-
|
55
|
-
# Clear the now-unnecessary git caches, docs, and build information
|
56
|
-
block "Delete bundler git cache, docs, and build info" do
|
57
|
-
gemfile = "#{install_dir}/embedded/bin/gem"
|
58
|
-
next unless File.exist?(gemfile)
|
59
|
-
|
60
|
-
gemdir = shellout!("#{gemfile} environment gemdir", env: env).stdout.chomp
|
61
|
-
|
62
|
-
remove_directory "#{gemdir}/cache"
|
63
|
-
remove_directory "#{gemdir}/doc"
|
64
|
-
remove_directory "#{gemdir}/build_info"
|
65
|
-
end
|
66
|
-
|
67
|
-
block "Remove bundler gem caches" do
|
68
|
-
gemfile = "#{install_dir}/embedded/bin/gem"
|
69
|
-
next unless File.exist?(gemfile)
|
70
|
-
|
71
|
-
gemdir = shellout!("#{gemfile} environment gemdir", env: env).stdout.chomp
|
72
|
-
|
73
|
-
Dir.glob("#{gemdir}/bundler/gems/**").each do |f|
|
74
|
-
puts "Deleting #{f}"
|
75
|
-
remove_directory f
|
76
|
-
end
|
77
|
-
end
|
78
|
-
|
79
|
-
block "Remove leftovers from compiling gems" do
|
80
|
-
# find the embedded ruby gems dir and clean it up for globbing
|
81
|
-
next unless File.directory?("#{install_dir}/embedded/lib/ruby/gems")
|
82
|
-
|
83
|
-
target_dir = "#{install_dir}/embedded/lib/ruby/gems/*/".tr("\\", "/")
|
84
|
-
|
85
|
-
# find gem_make.out and mkmf.log files
|
86
|
-
Dir.glob(Dir.glob("#{target_dir}/**/{gem_make.out,mkmf.log}")).each do |f|
|
87
|
-
puts "Deleting #{f}"
|
88
|
-
File.delete(f)
|
89
|
-
end
|
90
|
-
end
|
91
|
-
|
92
|
-
# Clean up docs
|
93
|
-
delete "#{install_dir}/embedded/docs"
|
94
|
-
delete "#{install_dir}/embedded/share/man"
|
95
|
-
delete "#{install_dir}/embedded/share/doc"
|
96
|
-
delete "#{install_dir}/embedded/share/gtk-doc"
|
97
|
-
delete "#{install_dir}/embedded/ssl/man"
|
98
|
-
delete "#{install_dir}/embedded/man"
|
99
|
-
delete "#{install_dir}/embedded/share/info"
|
100
|
-
delete "#{install_dir}/embedded/info"
|
101
|
-
|
102
|
-
block "Remove leftovers from compiling gems" do
|
103
|
-
gemfile = "#{install_dir}/embedded/bin/gem"
|
104
|
-
next unless File.exist?(gemfile)
|
105
|
-
|
106
|
-
gemdir = shellout!("#{gemfile} environment gemdir", env: env).stdout.chomp
|
107
|
-
|
108
|
-
# find gem_make.out and mkmf.log files
|
109
|
-
Dir.glob("#{gemdir}/extensions/**/{gem_make.out,mkmf.log}").each do |f|
|
110
|
-
puts "Deleting #{f}"
|
111
|
-
File.delete(f)
|
112
|
-
end
|
113
|
-
end
|
114
|
-
|
115
|
-
block "Removing random non-code files from installed gems" do
|
116
|
-
gemfile = "#{install_dir}/embedded/bin/gem"
|
117
|
-
next unless File.exist?(gemfile)
|
118
|
-
|
119
|
-
gemdir = shellout!("#{gemfile} environment gemdir", env: env).stdout.chomp
|
120
|
-
|
121
|
-
# find the embedded ruby gems dir and clean it up for globbing
|
122
|
-
files = %w{
|
123
|
-
.appveyor.yml
|
124
|
-
.autotest
|
125
|
-
.bnsignore
|
126
|
-
.circleci
|
127
|
-
.codeclimate.yml
|
128
|
-
.concourse.yml
|
129
|
-
.coveralls.yml
|
130
|
-
.dockerignore
|
131
|
-
.document
|
132
|
-
.ebert.yml
|
133
|
-
.gemtest
|
134
|
-
.github
|
135
|
-
.gitignore
|
136
|
-
.gitmodules
|
137
|
-
.hound.yml
|
138
|
-
.irbrc
|
139
|
-
.kokoro
|
140
|
-
.pelusa.yml
|
141
|
-
.repo-metadata.json
|
142
|
-
.rock.yml
|
143
|
-
.rspec
|
144
|
-
.rubocop_*.yml
|
145
|
-
.rubocop.yml
|
146
|
-
.ruby-gemset
|
147
|
-
.ruby-version
|
148
|
-
.rvmrc
|
149
|
-
.simplecov
|
150
|
-
.tool-versions
|
151
|
-
.travis.yml
|
152
|
-
.yardopts
|
153
|
-
.yardopts_guide
|
154
|
-
.yardopts_i18n
|
155
|
-
.yardstick.yml
|
156
|
-
.zuul.yaml
|
157
|
-
*.blurb
|
158
|
-
**/.gitkeep
|
159
|
-
*Upgrade.md
|
160
|
-
Appraisals
|
161
|
-
appveyor.yml
|
162
|
-
ARCHITECTURE.md
|
163
|
-
autotest
|
164
|
-
azure-pipelines.yml
|
165
|
-
bench
|
166
|
-
benchmark
|
167
|
-
benchmarks
|
168
|
-
bundle_install_all_ruby_versions.sh
|
169
|
-
CHANGELOG
|
170
|
-
CHANGELOG.md
|
171
|
-
CHANGELOG.rdoc
|
172
|
-
CHANGELOG.txt
|
173
|
-
CHANGES
|
174
|
-
CHANGES.md
|
175
|
-
CHANGES.txt
|
176
|
-
CODE_OF_CONDUCT.md
|
177
|
-
Code-of-Conduct.md
|
178
|
-
codecov.yml
|
179
|
-
concourse
|
180
|
-
CONTRIBUTING.md
|
181
|
-
CONTRIBUTING.rdoc
|
182
|
-
CONTRIBUTORS.md
|
183
|
-
design_rationale.rb
|
184
|
-
doc
|
185
|
-
doc-api
|
186
|
-
docker-compose.yml
|
187
|
-
Dockerfile*
|
188
|
-
docs
|
189
|
-
donate.png
|
190
|
-
ed25519.png
|
191
|
-
FAQ.txt
|
192
|
-
features
|
193
|
-
frozen_old_spec
|
194
|
-
Gemfile.devtools
|
195
|
-
Gemfile.travis
|
196
|
-
Gemfile.noed25519*
|
197
|
-
Guardfile
|
198
|
-
GUIDE.md
|
199
|
-
HISTORY
|
200
|
-
HISTORY.md
|
201
|
-
History.rdoc
|
202
|
-
HISTORY.txt
|
203
|
-
INSTALL
|
204
|
-
INSTALL.txt
|
205
|
-
ISSUE_TEMPLATE.md
|
206
|
-
JSON-Schema-Test-Suite
|
207
|
-
logo.png
|
208
|
-
man
|
209
|
-
Manifest
|
210
|
-
Manifest.txt
|
211
|
-
MIGRATING.md
|
212
|
-
minitest
|
213
|
-
NEWS.md
|
214
|
-
on_what.rb
|
215
|
-
README
|
216
|
-
README_INDEX.rdoc
|
217
|
-
README.*md
|
218
|
-
readme.erb
|
219
|
-
README.euc
|
220
|
-
README.markdown
|
221
|
-
README.rdoc
|
222
|
-
README.txt
|
223
|
-
release-script.txt
|
224
|
-
run_specs_all_ruby_versions.sh
|
225
|
-
samus.json
|
226
|
-
SECURITY.md
|
227
|
-
SPEC.rdoc
|
228
|
-
test
|
229
|
-
tests
|
230
|
-
THANKS.txt
|
231
|
-
TODO
|
232
|
-
TODO*.md
|
233
|
-
travis_build_script.sh
|
234
|
-
UPGRADING.md
|
235
|
-
website
|
236
|
-
yard-template
|
237
|
-
}
|
238
|
-
|
239
|
-
Dir.glob(Dir.glob("#{gemdir}/gems/*/{#{files.join(",")}}")).each do |f|
|
240
|
-
puts "Deleting #{f}"
|
241
|
-
if File.directory?(f)
|
242
|
-
# recursively removes files and the dir
|
243
|
-
FileUtils.remove_dir(f)
|
244
|
-
else
|
245
|
-
File.delete(f)
|
246
|
-
end
|
247
|
-
end
|
248
|
-
end
|
249
|
-
|
250
|
-
# Check for multiple versions of the `bundler` gem and fail the build if we find more than 1.
|
251
|
-
# Having multiple versions has burned us too many times in the past - causes warnings when
|
252
|
-
# invoking binaries.
|
253
|
-
# block "Ensure only 1 copy of bundler is installed" do
|
254
|
-
# # The bundler regex must be surrounded by double-quotes (not single) for Windows
|
255
|
-
# # Under powershell, it would have to be escaped with a ` character, i.e. `"^bundler$`"
|
256
|
-
# bundler = shellout!("#{install_dir}/embedded/bin/gem list \"^bundler$\"", env: env).stdout.chomp
|
257
|
-
# if bundler.include?(",")
|
258
|
-
# raise "Multiple copies of bundler installed, ensure only 1 remains. Output:\n" + bundler
|
259
|
-
# end
|
260
|
-
# end
|
261
|
-
|
262
|
-
block "Remove empty gem dirs from Ruby's built-in gems" do
|
263
|
-
Dir.glob("#{install_dir}/embedded/lib/ruby/gems/*/gems/*".tr("\\", "/")).each do |d|
|
264
|
-
# skip unless the dir is empty
|
265
|
-
next unless Dir.children(d).empty?
|
266
|
-
|
267
|
-
puts "Deleting empty gem dir: #{d}"
|
268
|
-
FileUtils.rm_rf(d)
|
269
|
-
end
|
270
|
-
end
|
271
|
-
end
|
@@ -1,72 +0,0 @@
|
|
1
|
-
#
|
2
|
-
# Copyright 2022 Progress Software, Inc.
|
3
|
-
#
|
4
|
-
# Licensed under the Apache License, Version 2.0 (the "License");
|
5
|
-
# you may not use this file except in compliance with the License.
|
6
|
-
# You may obtain a copy of the License at
|
7
|
-
#
|
8
|
-
# http://www.apache.org/licenses/LICENSE-2.0
|
9
|
-
#
|
10
|
-
# Unless required by applicable law or agreed to in writing, software
|
11
|
-
# distributed under the License is distributed on an "AS IS" BASIS,
|
12
|
-
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
13
|
-
# See the License for the specific language governing permissions and
|
14
|
-
# limitations under the License.
|
15
|
-
#
|
16
|
-
|
17
|
-
name "ruby-msys2-devkit"
|
18
|
-
default_version "3.0.6-1"
|
19
|
-
|
20
|
-
license "BSD-3-Clause"
|
21
|
-
license_file "https://raw.githubusercontent.com/oneclick/rubyinstaller2/master/LICENSE.txt"
|
22
|
-
skip_transitive_dependency_licensing true
|
23
|
-
arch = "x64"
|
24
|
-
msys_dir = "msys64"
|
25
|
-
|
26
|
-
version "3.0.6-1" do
|
27
|
-
source url: "https://github.com/oneclick/rubyinstaller2/releases/download/RubyInstaller-#{version}/rubyinstaller-devkit-#{version}-x64.exe",
|
28
|
-
sha256: "c44256eae6a934db39e4f3a56d39178ac87b8b754e9b66221910417adb59a3a1"
|
29
|
-
internal_source url: "#{ENV["ARTIFACTORY_REPO_URL"]}/#{name}/rubyinstaller-devkit-#{version}-x64.exe",
|
30
|
-
authorization: "X-JFrog-Art-Api:#{ENV["ARTIFACTORY_TOKEN"]}"
|
31
|
-
end
|
32
|
-
|
33
|
-
version "3.1.2-1" do
|
34
|
-
source url: "https://github.com/oneclick/rubyinstaller2/releases/download/RubyInstaller-#{version}/rubyinstaller-devkit-#{version}-x64.exe",
|
35
|
-
sha256: "5f0fd4a206b164a627c46e619d2babbcafb0ed4bc3e409267b9a73b6c58bdec1"
|
36
|
-
internal_source url: "#{ENV["ARTIFACTORY_REPO_URL"]}/#{name}/rubyinstaller-devkit-#{version}-x64.exe",
|
37
|
-
authorization: "X-JFrog-Art-Api:#{ENV["ARTIFACTORY_TOKEN"]}"
|
38
|
-
end
|
39
|
-
|
40
|
-
build do
|
41
|
-
if windows?
|
42
|
-
embedded_dir = "#{install_dir}/embedded"
|
43
|
-
|
44
|
-
Dir.mktmpdir do |tmpdir|
|
45
|
-
command "#{project_dir}/rubyinstaller-devkit-#{version}-#{arch}.exe /SP- /NORESTART /VERYSILENT /SUPPRESSMSGBOXES /NOPATH /DIR=#{tmpdir}"
|
46
|
-
copy "#{tmpdir}/#{msys_dir}", embedded_dir
|
47
|
-
if version == "3.0.6-1"
|
48
|
-
copy "#{tmpdir}/lib/ruby/site_ruby/3.0.0/devkit.rb", "#{embedded_dir}/lib/ruby/site_ruby/3.0.0"
|
49
|
-
copy "#{tmpdir}/lib/ruby/site_ruby/3.0.0/ruby_installer.rb", "#{embedded_dir}/lib/ruby/site_ruby/3.0.0"
|
50
|
-
copy "#{tmpdir}/lib/ruby/site_ruby/3.0.0/ruby_installer", "#{embedded_dir}/lib/ruby/site_ruby/3.0.0"
|
51
|
-
copy "#{tmpdir}/lib/ruby/3.0.0/rubygems/defaults", "#{embedded_dir}/lib/ruby/3.0.0/rubygems/defaults"
|
52
|
-
elsif version == "3.1.2-1"
|
53
|
-
copy "#{tmpdir}/lib/ruby/site_ruby/3.1.0/devkit.rb", "#{embedded_dir}/lib/ruby/site_ruby/3.1.0"
|
54
|
-
copy "#{tmpdir}/lib/ruby/site_ruby/3.1.0/ruby_installer.rb", "#{embedded_dir}/lib/ruby/site_ruby/3.1.0"
|
55
|
-
copy "#{tmpdir}/lib/ruby/site_ruby/3.1.0/ruby_installer", "#{embedded_dir}/lib/ruby/site_ruby/3.1.0"
|
56
|
-
copy "#{tmpdir}/lib/ruby/3.1.0/rubygems/defaults", "#{embedded_dir}/lib/ruby/3.1.0/rubygems/defaults"
|
57
|
-
end
|
58
|
-
|
59
|
-
# Normally we would symlink the required unix tools.
|
60
|
-
# However with the introduction of git-cache to speed up omnibus builds,
|
61
|
-
# we can't do that anymore since git on windows doesn't support symlinks.
|
62
|
-
# https://groups.google.com/forum/#!topic/msysgit/arTTH5GmHRk
|
63
|
-
# Therefore we copy the tools to the necessary places.
|
64
|
-
# We need tar for 'knife cookbook site install' to function correctly and
|
65
|
-
# many gems that ship with native extensions assume tar will be available
|
66
|
-
# in the PATH.
|
67
|
-
copy "#{tmpdir}/#{msys_dir}/usr/bin/bsdtar.exe", "#{install_dir}/bin/tar.exe"
|
68
|
-
end
|
69
|
-
|
70
|
-
command "#{embedded_dir}/#{msys_dir}/msys2_shell.cmd -defterm -no-start -c exit", env: { "CONFIG" => "" }
|
71
|
-
end
|
72
|
-
end
|
@@ -1,43 +0,0 @@
|
|
1
|
-
#
|
2
|
-
# Copyright:: Copyright (c) 2014-2017, Chef Software Inc.
|
3
|
-
# License:: Apache License, Version 2.0
|
4
|
-
#
|
5
|
-
# Licensed under the Apache License, Version 2.0 (the "License");
|
6
|
-
# you may not use this file except in compliance with the License.
|
7
|
-
# You may obtain a copy of the License at
|
8
|
-
#
|
9
|
-
# http://www.apache.org/licenses/LICENSE-2.0
|
10
|
-
#
|
11
|
-
# Unless required by applicable law or agreed to in writing, software
|
12
|
-
# distributed under the License is distributed on an "AS IS" BASIS,
|
13
|
-
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14
|
-
# See the License for the specific language governing permissions and
|
15
|
-
# limitations under the License.
|
16
|
-
#
|
17
|
-
|
18
|
-
name "ruby-windows-devkit-bash"
|
19
|
-
default_version "3.1.23-4-msys-1.0.18"
|
20
|
-
|
21
|
-
license "GPL-3.0"
|
22
|
-
license_file "http://www.gnu.org/licenses/gpl-3.0.txt"
|
23
|
-
skip_transitive_dependency_licensing true
|
24
|
-
|
25
|
-
# XXX: this depends on ruby-windows-devkit, but the caller MUST specify that dep, or else the slightly goofy
|
26
|
-
# library build_order optimizer in omnibus will promote ruby-windows-devkit to being before direct deps of
|
27
|
-
# the project file which will defeat our current strategy of installing devkit absolutely dead last.
|
28
|
-
# see: https://github.com/chef/omnibus/blob/2f9687fb1a3d2459b932acb4dcb37f4cb6335f4c/lib/omnibus/library.rb#L64-L77
|
29
|
-
#
|
30
|
-
# dependency "ruby-windows-devkit"
|
31
|
-
source url: "https://github.com/chef/msys-bash/releases/download/bash-#{version}/bash-#{version}-bin.tar.lzma",
|
32
|
-
md5: "22d5dbbd9bd0b3e0380d7a0e79c3108e"
|
33
|
-
internal_source url: "#{ENV["ARTIFACTORY_REPO_URL"]}/#{name}-#{version}/#{name}-#{version}-bin.tar.lzma",
|
34
|
-
authorization: "X-JFrog-Art-Api:#{ENV["ARTIFACTORY_TOKEN"]}"
|
35
|
-
|
36
|
-
relative_path "bin"
|
37
|
-
|
38
|
-
build do
|
39
|
-
# Copy over the required bins into embedded/bin
|
40
|
-
["bash.exe", "sh.exe"].each do |exe|
|
41
|
-
copy "#{exe}", "#{install_dir}/embedded/bin/#{exe}"
|
42
|
-
end
|
43
|
-
end
|
@@ -1,84 +0,0 @@
|
|
1
|
-
#
|
2
|
-
# Copyright 2012-2014 Chef Software, Inc.
|
3
|
-
#
|
4
|
-
# Licensed under the Apache License, Version 2.0 (the "License");
|
5
|
-
# you may not use this file except in compliance with the License.
|
6
|
-
# You may obtain a copy of the License at
|
7
|
-
#
|
8
|
-
# http://www.apache.org/licenses/LICENSE-2.0
|
9
|
-
#
|
10
|
-
# Unless required by applicable law or agreed to in writing, software
|
11
|
-
# distributed under the License is distributed on an "AS IS" BASIS,
|
12
|
-
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
13
|
-
# See the License for the specific language governing permissions and
|
14
|
-
# limitations under the License.
|
15
|
-
#
|
16
|
-
|
17
|
-
name "ruby-windows-devkit"
|
18
|
-
default_version "4.7.2-20130224"
|
19
|
-
|
20
|
-
license "BSD-3-Clause"
|
21
|
-
license_file "https://raw.githubusercontent.com/oneclick/rubyinstaller/master/LICENSE.txt"
|
22
|
-
skip_transitive_dependency_licensing true
|
23
|
-
|
24
|
-
if windows_arch_i386?
|
25
|
-
version "4.5.2-20111229-1559" do
|
26
|
-
source url: "https://github.com/oneclick/rubyinstaller/releases/download/DevKit-tdm-32-4.5.2/DevKit-tdm-32-#{version}-sfx.exe",
|
27
|
-
sha256: "6c3af5487dafda56808baf76edd262b2020b1b25ab86aabf972629f4a6a54491"
|
28
|
-
end
|
29
|
-
|
30
|
-
version "4.7.2-20130224" do
|
31
|
-
source url: "https://github.com/oneclick/rubyinstaller/releases/download/devkit-4.7.2/DevKit-mingw64-32-#{version}-1151-sfx.exe",
|
32
|
-
sha256: "61a06b5da06dd94343e591163ac0d43c544e9cd4df770f01275645b268b44dc7"
|
33
|
-
end
|
34
|
-
else
|
35
|
-
version "4.7.2-20130224" do
|
36
|
-
source url: "https://github.com/oneclick/rubyinstaller/releases/download/devkit-4.7.2/DevKit-mingw64-64-#{version}-1432-sfx.exe",
|
37
|
-
sha256: "2ada04c7234199126c0f34f6ea7163a8f8dccb1e15814af175a189f6ac48b8ac"
|
38
|
-
end
|
39
|
-
end
|
40
|
-
build do
|
41
|
-
env = with_standard_compiler_flags(with_embedded_path)
|
42
|
-
|
43
|
-
embedded_dir = "#{install_dir}/embedded"
|
44
|
-
|
45
|
-
command "#{project_file} -y -o#{windows_safe_path(embedded_dir)}", env: env
|
46
|
-
|
47
|
-
command "echo - #{install_dir}/embedded > config.yml", cwd: embedded_dir
|
48
|
-
ruby "dk.rb install", env: env, cwd: embedded_dir
|
49
|
-
|
50
|
-
# Normally we would symlink the required unix tools.
|
51
|
-
# However with the introduction of git-cache to speed up omnibus builds,
|
52
|
-
# we can't do that anymore since git on windows doesn't support symlinks.
|
53
|
-
# https://groups.google.com/forum/#!topic/msysgit/arTTH5GmHRk
|
54
|
-
# Therefore we copy the tools to the necessary places.
|
55
|
-
# We need tar for 'knife cookbook site install' to function correctly and
|
56
|
-
# many gems that ship with native extensions assume tar will be available
|
57
|
-
# in the PATH.
|
58
|
-
{
|
59
|
-
"tar.exe" => "bsdtar.exe",
|
60
|
-
"libarchive-2.dll" => "libarchive-2.dll",
|
61
|
-
"libexpat-1.dll" => "libexpat-1.dll",
|
62
|
-
"liblzma-1.dll" => "liblzma-1.dll",
|
63
|
-
"libbz2-2.dll" => "libbz2-2.dll",
|
64
|
-
"libz-1.dll" => "libz-1.dll",
|
65
|
-
}.each do |target, to|
|
66
|
-
copy "#{install_dir}/embedded/mingw/bin/#{to}", "#{install_dir}/bin/#{target}"
|
67
|
-
end
|
68
|
-
|
69
|
-
# IIS 8.5 Server STIG finding V-76717 warns on this file because it ends with
|
70
|
-
# `.java`. From the file name it presumes it contains Java source code which
|
71
|
-
# should not be stored on a web server.
|
72
|
-
#
|
73
|
-
# https://www.stigviewer.com/stig/iis_8.5_server/2019-01-08/finding/V-76717
|
74
|
-
#
|
75
|
-
# Searching GitHub for software that may use this functionality with the
|
76
|
-
# the following keywords presented no interesting results
|
77
|
-
# - %language java extension:.y
|
78
|
-
# - bison "-L java"
|
79
|
-
# - bison "--language java"
|
80
|
-
#
|
81
|
-
# It is highly unlikely that a user would try to use our compiler stack on a
|
82
|
-
# Windows system to compile a Java program that used bison.
|
83
|
-
delete "#{install_dir}/embedded/share/bison/lalr1.java"
|
84
|
-
end
|