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,33 +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
|
-
# expeditor/ignore: logic only
|
17
|
-
|
18
|
-
name "version-manifest"
|
19
|
-
description "generates a version manifest file"
|
20
|
-
default_version "0.0.1"
|
21
|
-
|
22
|
-
license :project_license
|
23
|
-
skip_transitive_dependency_licensing true
|
24
|
-
|
25
|
-
build do
|
26
|
-
block do
|
27
|
-
File.open("#{install_dir}/version-manifest.txt", "w") do |f|
|
28
|
-
f.puts "#{project.name} #{project.build_version}"
|
29
|
-
f.puts ""
|
30
|
-
f.puts Omnibus::Reports.pretty_version_map(project)
|
31
|
-
end
|
32
|
-
end
|
33
|
-
end
|
data/config/software/xproto.rb
DELETED
@@ -1,43 +0,0 @@
|
|
1
|
-
#
|
2
|
-
# Copyright 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 "xproto"
|
18
|
-
default_version "7.0.31"
|
19
|
-
|
20
|
-
# version_list: url=https://www.x.org/releases/individual/proto/ filter=xproto-*.tar.gz
|
21
|
-
|
22
|
-
version("7.0.31") { source sha256: "6d755eaae27b45c5cc75529a12855fed5de5969b367ed05003944cf901ed43c7" }
|
23
|
-
version("7.0.28") { source sha256: "6cabc8ce3fa2b1a2427871167b62c24d5b08a58bd3e81ed7aaf08f2bf6dbcfed" }
|
24
|
-
version("7.0.25") { source sha256: "e3dc634103f923a2276289745eb7b702b18cfc885ea4b2382bd35a8cc3d935cb" }
|
25
|
-
|
26
|
-
source url: "https://www.x.org/releases/individual/proto/xproto-#{version}.tar.gz"
|
27
|
-
internal_source url: "#{ENV["ARTIFACTORY_REPO_URL"]}/#{name}/#{name}-#{version}.tar.gz",
|
28
|
-
authorization: "X-JFrog-Art-Api:#{ENV["ARTIFACTORY_TOKEN"]}"
|
29
|
-
license "MIT"
|
30
|
-
license_file "COPYING"
|
31
|
-
skip_transitive_dependency_licensing true
|
32
|
-
|
33
|
-
relative_path "xproto-#{version}"
|
34
|
-
|
35
|
-
build do
|
36
|
-
env = with_standard_compiler_flags(with_embedded_path)
|
37
|
-
|
38
|
-
command "./configure" \
|
39
|
-
" --prefix=#{install_dir}/embedded", env: env
|
40
|
-
|
41
|
-
make "-j #{workers}", env: env
|
42
|
-
make "-j #{workers} install", env: env
|
43
|
-
end
|
data/config/software/zlib.rb
DELETED
@@ -1,88 +0,0 @@
|
|
1
|
-
#
|
2
|
-
# Copyright 2012-2018 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 "zlib"
|
18
|
-
default_version "1.2.13"
|
19
|
-
|
20
|
-
# version_list: url=https://zlib.net/fossils/ filter=*.tar.gz
|
21
|
-
|
22
|
-
version("1.2.13") { source sha256: "b3a24de97a8fdbc835b9833169501030b8977031bcb54b3b3ac13740f846ab30" }
|
23
|
-
version("1.2.12") { source sha256: "91844808532e5ce316b3c010929493c0244f3d37593afd6de04f71821d5136d9" }
|
24
|
-
version("1.2.11") { source sha256: "c3e5e9fdd5004dcb542feda5ee4f0ff0744628baf8ed2dd5d66f8ca1197cb1a1" }
|
25
|
-
version("1.2.8") { source sha256: "36658cb768a54c1d4dec43c3116c27ed893e88b02ecfcb44f2166f9c0b7f2a0d" }
|
26
|
-
version("1.2.6") { source sha256: "21235e08552e6feba09ea5e8d750805b3391c62fb81c71a235c0044dc7a8a61b" }
|
27
|
-
|
28
|
-
source url: "https://zlib.net/fossils/zlib-#{version}.tar.gz"
|
29
|
-
internal_source url: "#{ENV["ARTIFACTORY_REPO_URL"]}/#{name}/#{name}-#{version}.tar.gz",
|
30
|
-
authorization: "X-JFrog-Art-Api:#{ENV["ARTIFACTORY_TOKEN"]}"
|
31
|
-
|
32
|
-
license "Zlib"
|
33
|
-
license_file "README"
|
34
|
-
skip_transitive_dependency_licensing true
|
35
|
-
|
36
|
-
relative_path "zlib-#{version}"
|
37
|
-
|
38
|
-
build do
|
39
|
-
if windows?
|
40
|
-
env = with_standard_compiler_flags(with_embedded_path)
|
41
|
-
|
42
|
-
patch source: "zlib-windows-relocate.patch", env: env
|
43
|
-
|
44
|
-
# We can't use the top-level Makefile. Instead, the developers have made
|
45
|
-
# an organic, artisanal, hand-crafted Makefile.gcc for us which takes a few
|
46
|
-
# variables.
|
47
|
-
env["BINARY_PATH"] = "/bin"
|
48
|
-
env["LIBRARY_PATH"] = "/lib"
|
49
|
-
env["INCLUDE_PATH"] = "/include"
|
50
|
-
env["DESTDIR"] = "#{install_dir}/embedded"
|
51
|
-
|
52
|
-
make_args = [
|
53
|
-
"-fwin32/Makefile.gcc",
|
54
|
-
"SHARED_MODE=1",
|
55
|
-
"CFLAGS=\"#{env["CFLAGS"]} -Wall\"",
|
56
|
-
"ASFLAGS=\"#{env["CFLAGS"]} -Wall\"",
|
57
|
-
"LDFLAGS=\"#{env["LDFLAGS"]}\"",
|
58
|
-
# The win32 makefile for zlib does not handle parallel make correctly.
|
59
|
-
# In particular, see its rule for IMPLIB and SHAREDLIB. The ld step in
|
60
|
-
# SHAREDLIB will generate both the dll and the dll.a files. The step to
|
61
|
-
# strip the dll occurs next but since the dll.a file is already present,
|
62
|
-
# make will attempt to link example_d.exe and minigzip_d.exe in parallel
|
63
|
-
# with the strip step - causing gcc to freak out when a source file is
|
64
|
-
# rewritten part way through the linking stage.
|
65
|
-
# "-j #{workers}",
|
66
|
-
]
|
67
|
-
|
68
|
-
make(*make_args, env: env)
|
69
|
-
make("install", *make_args, env: env)
|
70
|
-
else
|
71
|
-
# We omit the omnibus path here because it breaks mac_os_x builds by picking
|
72
|
-
# up the embedded libtool instead of the system libtool which the zlib
|
73
|
-
# configure script cannot handle.
|
74
|
-
# TODO: Do other OSes need this? Is this strictly a mac thing?
|
75
|
-
env = with_standard_compiler_flags
|
76
|
-
if freebsd? || solaris2?
|
77
|
-
# FreeBSD 10+ gets cranky if zlib is not compiled in a
|
78
|
-
# position-independent way.
|
79
|
-
# zlib 1.2.12 introduced the same problem on Solaris.
|
80
|
-
env["CFLAGS"] << " -fPIC"
|
81
|
-
end
|
82
|
-
|
83
|
-
configure env: env
|
84
|
-
|
85
|
-
make "-j #{workers}", env: env
|
86
|
-
make "-j #{workers} install", env: env
|
87
|
-
end
|
88
|
-
end
|
@@ -1,31 +0,0 @@
|
|
1
|
-
<%- if cc -%>
|
2
|
-
CC=<%= cc %>
|
3
|
-
<%- end -%>
|
4
|
-
<%- if ld -%>
|
5
|
-
LD=<%= ld %>
|
6
|
-
<%- end -%>
|
7
|
-
<%- if cflags -%>
|
8
|
-
CFLAGS=<%= cflags %>
|
9
|
-
<%- end -%>
|
10
|
-
<%- if cppflags -%>
|
11
|
-
CPPFLAGS=<%= cppflags %>
|
12
|
-
<%- end -%>
|
13
|
-
<%- if ldflags -%>
|
14
|
-
LDFLAGS=<%= ldflags %>
|
15
|
-
<%- end -%>
|
16
|
-
<%- if install -%>
|
17
|
-
INSTALL=<%= install %>
|
18
|
-
<%- end -%>
|
19
|
-
<%- if shell_path -%>
|
20
|
-
SHELL_PATH=<%= shell_path %>
|
21
|
-
<%- end -%>
|
22
|
-
CURLDIR=<%= install_dir %>/embedded
|
23
|
-
EXPATDIR=<%= install_dir %>/embedded
|
24
|
-
ICONVDIR=<%= install_dir %>/embedded
|
25
|
-
LIBPCREDIR=<%= install_dir %>/embedded
|
26
|
-
OPENSSLDIR=<%= install_dir %>/embedded
|
27
|
-
ZLIB_PATH=<%= install_dir %>/embedded
|
28
|
-
|
29
|
-
<%- config_hash.each_pair do |k, v| -%>
|
30
|
-
<%= k.to_s %>=<%= v %>
|
31
|
-
<%- end -%>
|
@@ -1,33 +0,0 @@
|
|
1
|
-
require 'fileutils'
|
2
|
-
require 'pathname'
|
3
|
-
|
4
|
-
os_file_path = 'rubygems/defaults/operating_system.rb'
|
5
|
-
|
6
|
-
def registration_snippet(file_path)
|
7
|
-
relative_paths = <%= paths %>.map do |p|
|
8
|
-
Pathname.new(p).relative_path_from(Pathname.new(file_path)).to_s
|
9
|
-
end
|
10
|
-
|
11
|
-
<<EOF
|
12
|
-
Gem.pre_install do |gem_installer|
|
13
|
-
unless gem_installer.spec.extensions.empty?
|
14
|
-
tool_paths = #{relative_paths}.map do |p|
|
15
|
-
File.expand_path(p, __FILE__).gsub(File::SEPARATOR, File::ALT_SEPARATOR)
|
16
|
-
end
|
17
|
-
tool_path = tool_paths.join(File::PATH_SEPARATOR)
|
18
|
-
unless ENV['PATH'].include?(tool_path)
|
19
|
-
Gem.ui.say("Adding native build tools to path: " + tool_path) if Gem.configuration.verbose
|
20
|
-
ENV['PATH'] = [tool_path, ENV['PATH']].join(File::PATH_SEPARATOR)
|
21
|
-
end
|
22
|
-
end
|
23
|
-
end
|
24
|
-
EOF
|
25
|
-
end
|
26
|
-
|
27
|
-
['rubylibdir', 'sitelibdir'].each do |rubygems_path|
|
28
|
-
file_path = File.join(RbConfig::CONFIG[rubygems_path], os_file_path)
|
29
|
-
FileUtils.mkdir_p(File.dirname(file_path))
|
30
|
-
File.open(file_path, 'w') do |file|
|
31
|
-
file.write(registration_snippet(file_path))
|
32
|
-
end
|
33
|
-
end
|
@@ -1,42 +0,0 @@
|
|
1
|
-
#!/bin/bash
|
2
|
-
#
|
3
|
-
# Copyright 2012-<%= Time.now.year %> Chef Software, Inc.
|
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
|
-
PATH=<%= install_dir %>/bin:<%= install_dir %>/embedded/bin:/usr/local/bin:/usr/local/sbin:/bin:/sbin:/usr/bin:/usr/sbin
|
19
|
-
|
20
|
-
ulimit -c 0
|
21
|
-
ulimit -d unlimited
|
22
|
-
ulimit -e 0
|
23
|
-
ulimit -f unlimited
|
24
|
-
ulimit -i 62793
|
25
|
-
ulimit -l 64
|
26
|
-
ulimit -m unlimited
|
27
|
-
# WARNING: Increasing the global file descriptor limit increases RAM
|
28
|
-
# consumption on startup dramatically!
|
29
|
-
ulimit -n 50000
|
30
|
-
ulimit -q 819200
|
31
|
-
ulimit -r 0
|
32
|
-
ulimit -s 10240
|
33
|
-
ulimit -t unlimited
|
34
|
-
ulimit -u unlimited
|
35
|
-
ulimit -v unlimited
|
36
|
-
ulimit -x unlimited
|
37
|
-
echo "1000000" > /proc/sys/fs/file-max
|
38
|
-
|
39
|
-
umask 022
|
40
|
-
|
41
|
-
exec env - PATH=$PATH \
|
42
|
-
runsvdir -P <%= install_dir %>/service 'log: <%= '.'*395 %>'
|
data/docker-compose.yml
DELETED
@@ -1,15 +0,0 @@
|
|
1
|
-
services:
|
2
|
-
builder:
|
3
|
-
build: .
|
4
|
-
volumes:
|
5
|
-
- ./:/omnibus-software
|
6
|
-
- ./test:/test
|
7
|
-
working_dir: /test
|
8
|
-
command: bash --init-file omnibus-build.sh
|
9
|
-
|
10
|
-
# Multiple concurrent "docker-compose run" commands on the same system in the CI pipeline caused intermittent failures
|
11
|
-
# while creating the network.
|
12
|
-
# Using "network_mode: bridge" forces compose to use docker's legacy default bridge network instead.
|
13
|
-
# We considered namespacing the network using COMPOSE_PROJECT_NAME=$BUILDKITE_JOB_ID but using the legacy bridge network
|
14
|
-
# means we can avoid worrying about any impact and management overhead that multiple networks might create.
|
15
|
-
network_mode: bridge
|
data/omnibus-software.gemspec
DELETED
@@ -1,20 +0,0 @@
|
|
1
|
-
$:.push File.expand_path("lib", __dir__)
|
2
|
-
require "omnibus-software/version"
|
3
|
-
|
4
|
-
Gem::Specification.new do |s|
|
5
|
-
s.name = "omnibus-software"
|
6
|
-
s.version = OmnibusSoftware::VERSION
|
7
|
-
s.authors = ["Chef Software, Inc."]
|
8
|
-
s.email = ["info@chef.io"]
|
9
|
-
s.license = "Apache-2.0"
|
10
|
-
s.homepage = "https://github.com/chef/omnibus-software"
|
11
|
-
s.summary = "Open Source software for use with Omnibus"
|
12
|
-
s.description = "Open Source software build descriptions for use with Omnibus"
|
13
|
-
|
14
|
-
# Software definitions in this bundle require at least this version of
|
15
|
-
# omnibus because of the dsl methods they are using.
|
16
|
-
s.add_dependency "omnibus", ">= 9.0.0"
|
17
|
-
|
18
|
-
s.files = `git ls-files`.split("\n")
|
19
|
-
s.require_paths = ["lib"]
|
20
|
-
end
|
data/scripts/internal_sources.rb
DELETED
@@ -1,78 +0,0 @@
|
|
1
|
-
#!/usr/bin/env ruby
|
2
|
-
require "net/http"
|
3
|
-
require "openssl"
|
4
|
-
require "tmpdir"
|
5
|
-
require "yaml"
|
6
|
-
|
7
|
-
ARTIFACTORY_REPO_URL = ENV["ARTIFACTORY_REPO_URL"] || "https://artifactory-internal.ps.chef.co/artifactory/omnibus-software-local"
|
8
|
-
ARTIFACTORY_PASSWORD = ENV["ARTIFACTORY_PASSWORD"]
|
9
|
-
|
10
|
-
def print_usage
|
11
|
-
puts "Must provide path to internal_sources.yml file."
|
12
|
-
puts "Usage: ./internal_sources.rb <file path> [only]"
|
13
|
-
puts ""
|
14
|
-
puts " <file path>: Path to an internal_sources.yml file."
|
15
|
-
puts " [only]: (Optional) Name of software to upload. Skips all others."
|
16
|
-
end
|
17
|
-
|
18
|
-
def validate_checksum!(response, source)
|
19
|
-
if source.key?("sha256")
|
20
|
-
response.header["x-checksum-sha256"] == source["sha256"]
|
21
|
-
elsif source.key?("md5")
|
22
|
-
response.header["x-checksum-md5"] == source["md5"]
|
23
|
-
elsif source.key?("sha1")
|
24
|
-
response.header["x-checksum-sha1"] == source["sha1"]
|
25
|
-
else
|
26
|
-
raise "Unknown checksum format supplied for '#{source["url"]}'"
|
27
|
-
end
|
28
|
-
end
|
29
|
-
|
30
|
-
def exists_in_artifactory?(name, source)
|
31
|
-
uri = URI(ARTIFACTORY_REPO_URL)
|
32
|
-
file_name = File.basename(source["url"])
|
33
|
-
dir_name = name
|
34
|
-
path = File.join(uri.path, dir_name, file_name)
|
35
|
-
http = Net::HTTP.new(uri.host, uri.port)
|
36
|
-
http.use_ssl = true
|
37
|
-
response = http.head(path)
|
38
|
-
validate_checksum!(response, source)
|
39
|
-
end
|
40
|
-
|
41
|
-
def maybe_upload(name, source)
|
42
|
-
unless exists_in_artifactory?(name, source)
|
43
|
-
Dir.mktmpdir do |dir|
|
44
|
-
puts "Downloading #{name} from #{source["url"]}"
|
45
|
-
raise "Failed to download" unless system("wget -q -P #{dir} #{source["url"]}")
|
46
|
-
|
47
|
-
file_name = File.basename(source["url"])
|
48
|
-
downloaded_file = File.join(dir, file_name)
|
49
|
-
repo_url = File.join(ARTIFACTORY_REPO_URL, name, file_name)
|
50
|
-
puts "Uploading #{downloaded_file} to #{repo_url}"
|
51
|
-
raise "Failed to upload" unless system("curl -s -H 'X-JFrog-Art-Api:#{ARTIFACTORY_PASSWORD}' -T '#{downloaded_file}' #{repo_url}")
|
52
|
-
|
53
|
-
puts ""
|
54
|
-
end
|
55
|
-
else
|
56
|
-
puts "#{File.basename(source["url"])} exists in artifactory already...skipping"
|
57
|
-
end
|
58
|
-
end
|
59
|
-
|
60
|
-
if ARGV.size < 1 || ARGV.size > 2
|
61
|
-
print_usage
|
62
|
-
exit(1)
|
63
|
-
end
|
64
|
-
|
65
|
-
file_path = ARGV[0]
|
66
|
-
only = ARGV[1]
|
67
|
-
|
68
|
-
unless File.exist?(file_path)
|
69
|
-
abort("File '#{file_path}' does not exist")
|
70
|
-
end
|
71
|
-
|
72
|
-
yaml = YAML.load_file file_path
|
73
|
-
yaml["software"].each do |software|
|
74
|
-
next if only && software["name"] != only
|
75
|
-
|
76
|
-
name = software["name"]
|
77
|
-
software["sources"].each { |source| maybe_upload(name, source) }
|
78
|
-
end
|