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.

Files changed (248) hide show
  1. checksums.yaml +4 -4
  2. data/lib/omnibus-software.rb +87 -102
  3. metadata +13 -273
  4. data/.buildkite/hooks/pre-command +0 -9
  5. data/.expeditor/Version_inspector/README.md +0 -21
  6. data/.expeditor/Version_inspector/SW-Version-update.py +0 -243
  7. data/.expeditor/Version_inspector/manual_prod_list.json +0 -29
  8. data/.expeditor/Version_inspector/prod_default_version.json +0 -103
  9. data/.expeditor/Version_inspector/prod_list.json +0 -194
  10. data/.expeditor/Version_inspector/requirements.txt +0 -4
  11. data/.expeditor/Version_inspector/update_prod_default_version.sh +0 -24
  12. data/.expeditor/Version_inspector/update_prod_list.sh +0 -35
  13. data/.expeditor/config.yml +0 -44
  14. data/.expeditor/determine_version.sh +0 -15
  15. data/.expeditor/push_git_tag.sh +0 -12
  16. data/.expeditor/run_linux_tests.sh +0 -16
  17. data/.expeditor/software_upload.pipeline.yml +0 -17
  18. data/.expeditor/verify.pipeline.yml +0 -52
  19. data/.github/CODEOWNERS +0 -5
  20. data/.github/ISSUE_TEMPLATE/BUG_TEMPLATE.md +0 -29
  21. data/.github/ISSUE_TEMPLATE/DESIGN_PROPOSAL.md +0 -40
  22. data/.github/ISSUE_TEMPLATE/ENHANCEMENT_REQUEST_TEMPLATE.md +0 -17
  23. data/.github/ISSUE_TEMPLATE/SUPPORT_QUESTION.md +0 -11
  24. data/.github/dependabot.yml +0 -9
  25. data/.github/lock.yml +0 -1
  26. data/.gitignore +0 -17
  27. data/CHANGELOG.md +0 -18
  28. data/CODE_OF_CONDUCT.md +0 -1
  29. data/CONTRIBUTING.md +0 -1
  30. data/Dockerfile +0 -21
  31. data/Gemfile +0 -10
  32. data/LICENSE +0 -201
  33. data/README.md +0 -99
  34. data/Rakefile +0 -56
  35. data/VERSION +0 -1
  36. data/config/patches/bash/race-condition.patch +0 -15
  37. data/config/patches/bash/updated_race-condition.patch +0 -15
  38. data/config/patches/bzip2/aix_makefile.patch +0 -11
  39. data/config/patches/bzip2/makefile_no_bins.patch +0 -77
  40. data/config/patches/bzip2/makefile_take_env_vars.patch +0 -31
  41. data/config/patches/bzip2/soname_install_dir.patch +0 -11
  42. data/config/patches/curl/curl-aix-disable-alpn.patch +0 -22
  43. data/config/patches/curl/curl-freebsd-hostcheck.patch +0 -10
  44. data/config/patches/erlang/epmd-require-explicitly-adding-loopback-address.patch +0 -84
  45. data/config/patches/erlang/updated-epmd-require-explicitly-adding-loopback-address.patch +0 -75
  46. data/config/patches/expat/configure_xlc_visibility.patch +0 -58
  47. data/config/patches/expat/configure_xlc_visibility_2.4.7.patch +0 -59
  48. data/config/patches/figlet/aix-figlet-cdefs.patch +0 -48
  49. data/config/patches/gdbm/v1.8.3-Makefile.in.patch +0 -32
  50. data/config/patches/git/aix-endian-fix.patch +0 -20
  51. data/config/patches/gtar/aix_extra_case.patch +0 -13
  52. data/config/patches/keepalived/keepalived-1.2.9_opscode_centos_5.patch +0 -15
  53. data/config/patches/libedit/freebsd-vi-fix.patch +0 -24
  54. data/config/patches/libedit/openbsd-weak-alias-fix.patch +0 -48
  55. data/config/patches/libedit/solaris.patch +0 -36
  56. data/config/patches/libffi/libffi-3.2.1-disable-multi-os-directory.patch +0 -83
  57. data/config/patches/libffi/libffi-3.3-arm64.patch +0 -9608
  58. data/config/patches/libxslt/libxslt-solaris-configure.patch +0 -19
  59. data/config/patches/libxslt/libxslt-windows-relocate.patch +0 -12
  60. data/config/patches/libyaml/windows-configure.patch +0 -26
  61. data/config/patches/libzmq/zeromq-4.0.11_mingw_inet_pton.patch +0 -37
  62. data/config/patches/libzmq/zeromq-aix-4.2.2-LARGE_FILES.patch +0 -56
  63. data/config/patches/libzmq/zeromq-aix-4.2.2-atomic-counter-fetch_and_add.patch +0 -59
  64. data/config/patches/logrotate/logrotate_basedir_override.patch +0 -17
  65. data/config/patches/m4/m4-1.4.18-glibc-change-work-around.patch +0 -115
  66. data/config/patches/make/deb-make-glob.patch +0 -31
  67. data/config/patches/ncurses/ncurses-5.9-gcc-5.patch +0 -46
  68. data/config/patches/ncurses/ncurses-5.9-solaris-xopen_source_extended-detection.patch +0 -11
  69. data/config/patches/ncurses/ncurses-clang.patch +0 -43
  70. data/config/patches/ncurses/patch-aa +0 -23
  71. data/config/patches/ncurses/patch-ab +0 -44
  72. data/config/patches/ncurses/patch-ac +0 -40
  73. data/config/patches/ncurses/patch-ad +0 -13
  74. data/config/patches/ncurses/patch-cxx_cursesf.h +0 -22
  75. data/config/patches/ncurses/patch-cxx_cursesm.h +0 -22
  76. data/config/patches/ncurses/patch-ncurses_tinfo_lib__baudrate.c +0 -24
  77. data/config/patches/openssl/openssl-1.0.1f-do-not-build-docs.patch +0 -28
  78. data/config/patches/openssl/openssl-1.0.1j-windows-relocate-dll.patch +0 -44
  79. data/config/patches/openssl/openssl-1.0.1q-fix-compiler-flags-table-for-msys.patch +0 -20
  80. data/config/patches/openssl/openssl-1.0.2x-darwin-arm64.patch +0 -54
  81. data/config/patches/openssl/openssl-1.1.0f-do-not-install-docs.patch +0 -11
  82. data/config/patches/openssl/openssl-3.0.1-do-not-install-docs.patch +0 -22
  83. data/config/patches/openssl-fips/openssl-fips-fix-compiler-flags-table-for-msys.patch +0 -11
  84. data/config/patches/perl/perl-5.18.1-remove_lnsl.patch +0 -441
  85. data/config/patches/perl/perl-5.22.1-remove_lnsl.patch +0 -512
  86. data/config/patches/perl/perl-5.30.0-remove_lnsl.patch +0 -518
  87. data/config/patches/perl/perl-5.32.1-remove_lnsl.patch +0 -456
  88. data/config/patches/perl/perl-5.34.0-remove_lnsl.patch +0 -516
  89. data/config/patches/pkg-config/openbsd-charset.patch +0 -19
  90. data/config/patches/popt/v1.16.ppc64le-configure.patch +0 -18
  91. data/config/patches/redis/password-from-environment.patch +0 -19
  92. data/config/patches/ruby/patch-configure +0 -103
  93. data/config/patches/ruby/remove_nano.patch +0 -10
  94. data/config/patches/ruby/ruby-2.6.7_c99.patch +0 -12
  95. data/config/patches/ruby/ruby-3.0.1-configure.patch +0 -281
  96. data/config/patches/ruby/ruby-3.0.2-configure.patch +0 -251
  97. data/config/patches/ruby/ruby-3.0.5-configure.patch +0 -260
  98. data/config/patches/ruby/ruby-aix-atomic.patch +0 -11
  99. data/config/patches/ruby/ruby-aix-configure_26_and_later.patch +0 -19
  100. data/config/patches/ruby/ruby-aix-vm-core.patch +0 -14
  101. data/config/patches/ruby/ruby-fast-load_26.patch +0 -16
  102. data/config/patches/ruby/ruby-fast-load_31.patch +0 -16
  103. data/config/patches/ruby/ruby-faster-load_26.patch +0 -11
  104. data/config/patches/ruby/ruby-faster-load_27.patch +0 -11
  105. data/config/patches/ruby/ruby-mkmf.patch +0 -29
  106. data/config/patches/ruby/ruby-no-stack-protector-strong.patch +0 -11
  107. data/config/patches/ruby/ruby-no-stack-protector.patch +0 -13
  108. data/config/patches/ruby/ruby-win32_warning_removal.patch +0 -12
  109. data/config/patches/ruby/ruby_aix_openssl.patch +0 -10
  110. data/config/patches/ruby/ruby_aix_ssl_EAGAIN.patch +0 -19
  111. data/config/patches/ruby/rvm-cflags.patch +0 -27
  112. data/config/patches/stunnel/stunnel-on-windows.patch +0 -42
  113. data/config/patches/zlib/zlib-windows-relocate.patch +0 -20
  114. data/config/software/autoconf.rb +0 -46
  115. data/config/software/automake.rb +0 -49
  116. data/config/software/bash.rb +0 -81
  117. data/config/software/berkshelf-no-depselector.rb +0 -46
  118. data/config/software/berkshelf.rb +0 -34
  119. data/config/software/binutils.rb +0 -47
  120. data/config/software/bundler.rb +0 -38
  121. data/config/software/bzip2.rb +0 -57
  122. data/config/software/cacerts.rb +0 -52
  123. data/config/software/chef-gem.rb +0 -35
  124. data/config/software/chef.rb +0 -113
  125. data/config/software/cmake.rb +0 -100
  126. data/config/software/config_guess.rb +0 -37
  127. data/config/software/cpanminus.rb +0 -50
  128. data/config/software/curl.rb +0 -105
  129. data/config/software/delivery-cli.rb +0 -89
  130. data/config/software/dep-selector-libgecode.rb +0 -48
  131. data/config/software/elasticsearch.rb +0 -67
  132. data/config/software/elixir.rb +0 -35
  133. data/config/software/erlang.rb +0 -134
  134. data/config/software/expat.rb +0 -66
  135. data/config/software/fakeroot.rb +0 -41
  136. data/config/software/ffi-yajl.rb +0 -46
  137. data/config/software/figlet-fonts.rb +0 -31
  138. data/config/software/figlet.rb +0 -44
  139. data/config/software/gcc.rb +0 -60
  140. data/config/software/gdbm.rb +0 -54
  141. data/config/software/gecode.rb +0 -64
  142. data/config/software/gem-permissions.rb +0 -43
  143. data/config/software/git-windows.rb +0 -98
  144. data/config/software/git.rb +0 -142
  145. data/config/software/gmp.rb +0 -50
  146. data/config/software/go-uninstall.rb +0 -33
  147. data/config/software/go.rb +0 -123
  148. data/config/software/google-protobuf.rb +0 -45
  149. data/config/software/gtar.rb +0 -64
  150. data/config/software/help2man.rb +0 -40
  151. data/config/software/highline-gem.rb +0 -37
  152. data/config/software/ibm-jre.rb +0 -59
  153. data/config/software/inspec.rb +0 -43
  154. data/config/software/jre-from-jdk.rb +0 -67
  155. data/config/software/keepalived.rb +0 -68
  156. data/config/software/libarchive.rb +0 -74
  157. data/config/software/libedit.rb +0 -76
  158. data/config/software/libffi.rb +0 -71
  159. data/config/software/libgcc.rb +0 -52
  160. data/config/software/libiconv.rb +0 -57
  161. data/config/software/libintl-perl.rb +0 -59
  162. data/config/software/liblzma.rb +0 -63
  163. data/config/software/libossp-uuid.rb +0 -47
  164. data/config/software/libsodium.rb +0 -42
  165. data/config/software/libtool.rb +0 -58
  166. data/config/software/libuuid.rb +0 -44
  167. data/config/software/libxml2.rb +0 -65
  168. data/config/software/libxslt.rb +0 -68
  169. data/config/software/libyajl2-gem.rb +0 -44
  170. data/config/software/libyaml.rb +0 -52
  171. data/config/software/libzmq.rb +0 -93
  172. data/config/software/logrotate.rb +0 -64
  173. data/config/software/lua.rb +0 -48
  174. data/config/software/m4.rb +0 -40
  175. data/config/software/make.rb +0 -46
  176. data/config/software/makedepend.rb +0 -47
  177. data/config/software/mpc.rb +0 -48
  178. data/config/software/mpfr.rb +0 -48
  179. data/config/software/musl.rb +0 -107
  180. data/config/software/mysql2.rb +0 -50
  181. data/config/software/ncurses.rb +0 -162
  182. data/config/software/nginx.rb +0 -57
  183. data/config/software/nodejs-binary.rb +0 -93
  184. data/config/software/nodejs.rb +0 -58
  185. data/config/software/nokogiri.rb +0 -92
  186. data/config/software/omnibus-ctl.rb +0 -42
  187. data/config/software/openresty.rb +0 -96
  188. data/config/software/opensearch.rb +0 -59
  189. data/config/software/openssl-customization.rb +0 -81
  190. data/config/software/openssl-fips.rb +0 -85
  191. data/config/software/openssl.rb +0 -199
  192. data/config/software/patch.rb +0 -48
  193. data/config/software/patchelf.rb +0 -70
  194. data/config/software/pcre.rb +0 -55
  195. data/config/software/perl-extutils-embed.rb +0 -38
  196. data/config/software/perl-extutils-makemaker.rb +0 -47
  197. data/config/software/perl-thread-queue.rb +0 -41
  198. data/config/software/perl.rb +0 -80
  199. data/config/software/perl_pg_driver.rb +0 -46
  200. data/config/software/pg-gem.rb +0 -36
  201. data/config/software/pkg-config-lite.rb +0 -48
  202. data/config/software/pkg-config.rb +0 -68
  203. data/config/software/popt.rb +0 -59
  204. data/config/software/postgresql.rb +0 -71
  205. data/config/software/preparation.rb +0 -31
  206. data/config/software/python.rb +0 -83
  207. data/config/software/rabbitmq.rb +0 -58
  208. data/config/software/rb-readline.rb +0 -33
  209. data/config/software/rbnacl-libsodium.rb +0 -42
  210. data/config/software/rbzmq.rb +0 -44
  211. data/config/software/rebar.rb +0 -42
  212. data/config/software/redis-gem.rb +0 -36
  213. data/config/software/redis.rb +0 -54
  214. data/config/software/relx.rb +0 -39
  215. data/config/software/rsync.rb +0 -57
  216. data/config/software/ruby-cleanup.rb +0 -271
  217. data/config/software/ruby-msys2-devkit.rb +0 -72
  218. data/config/software/ruby-windows-devkit-bash.rb +0 -43
  219. data/config/software/ruby-windows-devkit.rb +0 -84
  220. data/config/software/ruby.rb +0 -315
  221. data/config/software/rubygems.rb +0 -73
  222. data/config/software/runit.rb +0 -68
  223. data/config/software/rust-uninstall.rb +0 -32
  224. data/config/software/rust.rb +0 -97
  225. data/config/software/sequel-gem.rb +0 -36
  226. data/config/software/server-jre.rb +0 -132
  227. data/config/software/server-open-jre.rb +0 -146
  228. data/config/software/setuptools.rb +0 -48
  229. data/config/software/shebang-cleanup.rb +0 -101
  230. data/config/software/sqitch.rb +0 -92
  231. data/config/software/stunnel.rb +0 -88
  232. data/config/software/util-macros.rb +0 -44
  233. data/config/software/version-manifest.rb +0 -33
  234. data/config/software/xproto.rb +0 -43
  235. data/config/software/zlib.rb +0 -88
  236. data/config/templates/git/config.mak.erb +0 -31
  237. data/config/templates/rubygems/register_devtools.rb.erb +0 -33
  238. data/config/templates/runit/runsvdir-start.erb +0 -42
  239. data/docker-compose.yml +0 -15
  240. data/lib/omnibus-software/version.rb +0 -3
  241. data/omnibus-software.gemspec +0 -20
  242. data/scripts/internal_sources.rb +0 -78
  243. data/scripts/internal_sources.yml +0 -419
  244. data/test/Gemfile +0 -10
  245. data/test/config/projects/test.rb +0 -14
  246. data/test/generate_steps.rb +0 -65
  247. data/test/omnibus-build.sh +0 -55
  248. data/test/omnibus.rb +0 -59
@@ -1,50 +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 "cpanminus"
18
- default_version "1.7046"
19
-
20
- license "Artistic-2.0"
21
- license_file "http://dev.perl.org/licenses/artistic.html"
22
- skip_transitive_dependency_licensing true
23
-
24
- dependency "perl"
25
-
26
- # version_list: url=https://metacpan.org/pod/App::cpanminus filter=*.tar.gz
27
-
28
- version("1.7046") { source sha256: "cefc58349f9f741aba82b8ed3d672265b53ca4e4183f72613fce06d6ab97d30c" }
29
- version("1.7045") { source sha256: "f2ab7e18a695960ac07f072b369c1bf113ae278bf81aa807b3f4bdaf098df34d" }
30
- version("1.7040") { source sha256: "48a747c040689445f7db0edd169da0abd709a37cfece3ceecff0816c09beab0e" }
31
- version("1.7004") { source sha256: "5cef499d12418a877c68070fc14193bd700d47a286d95e16c517f9673493af79" }
32
-
33
- source url: "https://github.com/miyagawa/cpanminus/archive/#{version}.tar.gz"
34
- internal_source url: "#{ENV["ARTIFACTORY_REPO_URL"]}/#{name}/#{name}-#{version}.tar.gz",
35
- authorization: "X-JFrog-Art-Api:#{ENV["ARTIFACTORY_TOKEN"]}"
36
- relative_path "cpanminus-#{version}"
37
-
38
- build do
39
- env = with_standard_compiler_flags(with_embedded_path)
40
-
41
- command "cat cpanm | perl - App::cpanminus", env: env
42
- end
43
-
44
- # Perl after 5.18 does not come with this by default
45
- build do
46
- env = with_standard_compiler_flags(with_embedded_path)
47
-
48
- command "cpanm Module::Build", env: env
49
- end
50
-
@@ -1,105 +0,0 @@
1
- #
2
- # Copyright:: 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 "curl"
18
- default_version "7.85.0"
19
-
20
- dependency "zlib"
21
- dependency "openssl"
22
- dependency "cacerts"
23
-
24
- license "MIT"
25
- license_file "COPYING"
26
- skip_transitive_dependency_licensing true
27
-
28
- # version_list: url=https://curl.se/download/ filter=*.tar.gz
29
- version("7.85.0") { source sha256: "78a06f918bd5fde3c4573ef4f9806f56372b32ec1829c9ec474799eeee641c27" }
30
- version("7.84.0") { source sha256: "3c6893d38d054d4e378267166858698899e9d87258e8ff1419d020c395384535" }
31
- version("7.83.1") { source sha256: "93fb2cd4b880656b4e8589c912a9fd092750166d555166370247f09d18f5d0c0" }
32
- version("7.82.0") { source sha256: "910cc5fe279dc36e2cca534172c94364cf3fcf7d6494ba56e6c61a390881ddce" }
33
- version("7.81.0") { source sha256: "ac8e1087711084548d788ef18b9b732c8de887457b81f616fc681d1044b32f98" }
34
- version("7.80.0") { source sha256: "dab997c9b08cb4a636a03f2f7f985eaba33279c1c52692430018fae4a4878dc7" }
35
- version("7.79.1") { source sha256: "370b11201349816287fb0ccc995e420277fbfcaf76206e309b3f60f0eda090c2" }
36
-
37
- source url: "https://curl.haxx.se/download/curl-#{version}.tar.gz"
38
- internal_source url: "#{ENV["ARTIFACTORY_REPO_URL"]}/#{name}/#{name}-#{version}.tar.gz",
39
- authorization: "X-JFrog-Art-Api:#{ENV["ARTIFACTORY_TOKEN"]}"
40
-
41
- relative_path "curl-#{version}"
42
-
43
- build do
44
- env = with_standard_compiler_flags(with_embedded_path)
45
-
46
- if freebsd? && version.satisfies?("< 7.82.0")
47
- # from freebsd ports - IPv6 Hostcheck patch
48
- patch source: "curl-freebsd-hostcheck.patch", plevel: 1, env: env
49
- end
50
-
51
- delete "#{project_dir}/src/tool_hugehelp.c"
52
-
53
- if aix?
54
- # alpn doesn't appear to work on AIX when connecting to certain sites, most
55
- # importantly for us https://www.github.com Since git uses libcurl under
56
- # the covers, this functionality breaks the handshake on connection, giving
57
- # a cryptic error. This patch essentially forces disabling of ALPN on AIX,
58
- # which is not really what we want in a http/2 world, but we're not there
59
- # yet.
60
- patch_env = env.dup
61
- patch_env["PATH"] = "/opt/freeware/bin:#{env["PATH"]}" if aix?
62
- patch source: "curl-aix-disable-alpn.patch", plevel: 0, env: patch_env
63
-
64
- # otherwise gawk will die during ./configure with variations on the theme of:
65
- # "/opt/omnibus-toolchain/embedded/lib/libiconv.a(shr4.o) could not be loaded"
66
- env["LIBPATH"] = "/usr/lib:/lib"
67
- elsif solaris2?
68
- # Without /usr/gnu/bin first in PATH the libtool fails during make on Solaris
69
- env["PATH"] = "/usr/gnu/bin:#{env["PATH"]}"
70
- end
71
-
72
- configure_options = [
73
- "--prefix=#{install_dir}/embedded",
74
- "--disable-option-checking",
75
- "--disable-manual",
76
- "--disable-debug",
77
- "--enable-optimize",
78
- "--disable-ldap",
79
- "--disable-ldaps",
80
- "--disable-rtsp",
81
- "--enable-proxy",
82
- "--disable-pop3",
83
- "--disable-imap",
84
- "--disable-smtp",
85
- "--disable-gopher",
86
- "--disable-dependency-tracking",
87
- "--enable-ipv6",
88
- "--without-brotli",
89
- "--without-libidn2",
90
- "--without-gnutls",
91
- "--without-librtmp",
92
- "--without-zsh-functions-dir",
93
- "--without-fish-functions-dir",
94
- "--disable-mqtt",
95
- "--with-ssl=#{install_dir}/embedded",
96
- "--with-zlib=#{install_dir}/embedded",
97
- "--with-ca-bundle=#{install_dir}/embedded/ssl/certs/cacert.pem",
98
- "--without-zstd",
99
- ]
100
-
101
- configure(*configure_options, env: env)
102
-
103
- make "-j #{workers}", env: env
104
- make "install", env: env
105
- end
@@ -1,89 +0,0 @@
1
- #
2
- # Copyright 2015 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: no version pinning
17
-
18
- name "delivery-cli"
19
- # Delivery CLI is only pushed to the main branch of Github after it
20
- # is successfully Delivered. So pulling in the "main" version
21
- # will always give you the latest Delivered version.
22
- default_version "main"
23
-
24
- license "Apache-2.0"
25
- license_file "LICENSE"
26
-
27
- source git: "https://github.com/chef/delivery-cli.git"
28
-
29
- dependency "openssl"
30
- dependency "rust"
31
-
32
- build do
33
- env = with_standard_compiler_flags(with_embedded_path)
34
- env["RUST_BACKTRACE"] = "1"
35
-
36
- # The rust core libraries are dynamicaly linked
37
- if linux?
38
- env["LD_LIBRARY_PATH"] = "#{install_dir}/embedded/lib"
39
- elsif mac_os_x? &&
40
- platform_version.satisfies?("< 10.13") # Setting DYLD PATH fails builds with library conflicts in 10.13
41
- env["DYLD_FALLBACK_LIBRARY_PATH"] = "#{install_dir}/embedded/lib:"
42
- end
43
-
44
- # pass version info into the build
45
- env["DELIV_CLI_VERSION"] = version
46
- env["DELIV_CLI_GIT_SHA"] = Omnibus::Fetcher.resolve_version(version, source)
47
-
48
- if windows?
49
- copy "#{install_dir}/embedded/bin/ssleay32.dll", "#{install_dir}/embedded/bin/libssl32.dll"
50
- env["OPENSSL_LIB_DIR"] = "#{install_dir}/embedded/bin"
51
- end
52
-
53
- command "cargo build -j #{workers} --release", env: env
54
-
55
- mkdir "#{install_dir}/bin"
56
-
57
- if windows?
58
- copy "#{project_dir}/target/release/delivery.exe", "#{install_dir}/bin/delivery.exe"
59
- # When using `openssl` dependency, by default it builds the libraries inside
60
- # `embedded/bin/`. We are copying the libs inside `bin/`.
61
- copy "#{install_dir}/embedded/bin/ssleay32.dll", "#{install_dir}/bin/ssleay32.dll"
62
- copy "#{install_dir}/embedded/bin/libeay32.dll", "#{install_dir}/bin/libeay32.dll"
63
- copy "#{install_dir}/embedded/bin/zlib1.dll", "#{install_dir}/bin/zlib1.dll"
64
-
65
- # Needed now that we switched to installed version of msys2 and have not figured out how to tell
66
- # it how to statically link yet
67
- dlls = ["libwinpthread-1"]
68
- if windows_arch_i386?
69
- dlls << "libgcc_s_dw2-1"
70
- else
71
- dlls << "libgcc_s_seh-1"
72
- end
73
- dlls.each do |dll|
74
- mingw = ENV["MSYSTEM"].downcase
75
- # Starting omnibus-toolchain version 1.1.115 we do not build msys2 as a part of omnibus-toolchain anymore, but pre install it in image
76
- # so here we set the path to default install of msys2 first and default to OMNIBUS_TOOLCHAIN_INSTALL_DIR for backward compatibility
77
- msys_path = ENV["MSYS2_INSTALL_DIR"] ? "#{ENV["MSYS2_INSTALL_DIR"]}" : "#{ENV["OMNIBUS_TOOLCHAIN_INSTALL_DIR"]}/embedded/bin"
78
- windows_path = "#{msys_path}/#{mingw}/bin/#{dll}.dll"
79
- if File.exist?(windows_path)
80
- copy windows_path, "#{install_dir}/bin/#{dll}.dll"
81
- else
82
- raise "Cannot find required DLL needed for dynamic linking: #{windows_path}"
83
- end
84
- end
85
-
86
- else
87
- copy "#{project_dir}/target/release/delivery", "#{install_dir}/bin/delivery"
88
- end
89
- end
@@ -1,48 +0,0 @@
1
- #
2
- # Copyright 2014-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
- # expeditor/ignore: deprecated 2021-04
17
-
18
- name "dep-selector-libgecode"
19
- default_version "1.3.1"
20
-
21
- license "Apache-2.0"
22
- license_file "https://raw.githubusercontent.com/chef/dep-selector-libgecode/master/LICENSE"
23
- # dep-selector-libgecode does not have any dependencies. We only install it from
24
- # rubygems here.
25
- skip_transitive_dependency_licensing true
26
-
27
- dependency "ruby"
28
-
29
- build do
30
- env = with_standard_compiler_flags(with_embedded_path)
31
-
32
- # On some RHEL-based systems, the default GCC that's installed is 4.1. We
33
- # need to use 4.4, which is provided by the gcc44 and gcc44-c++ packages.
34
- # These do not use the gcc binaries so we set the flags to point to the
35
- # correct version here.
36
- if File.exist?("/usr/bin/gcc44")
37
- env["CC"] = "gcc44"
38
- env["CXX"] = "g++44"
39
- end
40
-
41
- # Ruby DevKit ships with BSD Tar
42
- env["PROG_TAR"] = "bsdtar" if windows?
43
- env["ARFLAGS"] = "rv #{env["ARFLAGS"]}" if env["ARFLAGS"]
44
-
45
- gem "install dep-selector-libgecode" \
46
- " --version '#{version}'" \
47
- " --no-document", env: env
48
- end
@@ -1,67 +0,0 @@
1
- #
2
- # Copyright 2020 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 "elasticsearch"
18
- default_version "5.6.16"
19
-
20
- dependency "server-open-jre"
21
-
22
- license "Apache-2.0"
23
- license_file "LICENSE.txt"
24
- skip_transitive_dependency_licensing true
25
-
26
- source url: "https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-#{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
- relative_path "elasticsearch-#{version}"
30
-
31
- version "5.6.16" do
32
- source sha256: "6b035a59337d571ab70cea72cc55225c027ad142fbb07fd8984e54261657c77f"
33
- end
34
-
35
- version "6.8.22" do
36
- source url: "https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-oss-#{version}.tar.gz",
37
- sha256: "836a50df324a98837dcadbc7d55782cc9525f15cc6a8aa0c657e199667ebb996"
38
- internal_source url: "#{ENV["ARTIFACTORY_REPO_URL"]}/#{name}/#{name}-#{version}.tar.gz",
39
- authorization: "X-JFrog-Art-Api:#{ENV["ARTIFACTORY_TOKEN"]}"
40
- end
41
-
42
- version "6.8.23" do
43
- source url: "https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-oss-#{version}.tar.gz",
44
- sha256: "60e77b5ca3ce11771469bcc2e009c49c8aadb831faebd170e7abcedc16b3e36d"
45
- internal_source url: "#{ENV["ARTIFACTORY_REPO_URL"]}/#{name}/#{name}-#{version}.tar.gz",
46
- authorization: "X-JFrog-Art-Api:#{ENV["ARTIFACTORY_TOKEN"]}"
47
- end
48
-
49
- target_path = "#{install_dir}/embedded/elasticsearch"
50
-
51
- build do
52
- mkdir "#{target_path}"
53
- delete "#{project_dir}/lib/sigar/*solaris*"
54
- delete "#{project_dir}/lib/sigar/*sparc*"
55
- delete "#{project_dir}/lib/sigar/*freebsd*"
56
- delete "#{project_dir}/config"
57
- mkdir "#{project_dir}/plugins"
58
- # by default RPMs will not include empty directories in the final packag.e
59
- # ES will fail to start if this dir is not present.
60
- touch "#{project_dir}/plugins/.gitkeep"
61
-
62
- sync "#{project_dir}/", "#{target_path}"
63
-
64
- # Dropping a VERSION file here allows additional software definitions
65
- # to read it to determine ES plugin compatibility.
66
- command "echo #{version} > #{target_path}/VERSION"
67
- end
@@ -1,35 +0,0 @@
1
- #
2
- # Copyright 2017 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: deprecated 2021-04
17
-
18
- name "elixir"
19
- default_version "1.4.2"
20
-
21
- license "Apache-2.0"
22
- license_file "LICENSE"
23
-
24
- dependency "erlang"
25
-
26
- version("1.4.2") { source sha256: "cb4e2ec4d68b3c8b800179b7ae5779e2999aa3375f74bd188d7d6703497f553f" }
27
- source url: "https://github.com/elixir-lang/elixir/archive/v#{version}.tar.gz"
28
- relative_path "elixir-#{version}"
29
-
30
- build do
31
- env = with_standard_compiler_flags(with_embedded_path)
32
-
33
- make env: env
34
- make "install PREFIX=#{install_dir}/embedded", env: env
35
- end
@@ -1,134 +0,0 @@
1
- #
2
- # Copyright:: 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 "erlang"
18
- default_version "25.2"
19
-
20
- license "Apache-2.0"
21
- license_file "LICENSE.txt"
22
- skip_transitive_dependency_licensing true
23
-
24
- dependency "zlib"
25
- dependency "openssl"
26
- dependency "ncurses"
27
- dependency "config_guess"
28
-
29
- # grab from github so we can get patch releases if we need to
30
- source url: "https://github.com/erlang/otp/archive/OTP-#{version}.tar.gz"
31
- internal_source url: "#{ENV["ARTIFACTORY_REPO_URL"]}/#{name}/#{name}-#{version}.tar.gz",
32
- authorization: "X-JFrog-Art-Api:#{ENV["ARTIFACTORY_TOKEN"]}"
33
- relative_path "otp-OTP-#{version}"
34
-
35
- # versions_list: https://github.com/erlang/otp/tags filter=*.tar.gz
36
- version("25.2") { source sha256: "d33a988f39e534aff67799c5b9635612858459c9d8890772546d71ea38de897a" }
37
- version("25.1.2") { source sha256: "b9ae7becd3499aeac9f94f9379e2b1b4dced4855454fe7f200a6e3e1cf4fbc53" }
38
- version("25.0.4") { source sha256: "05878cb51a64b33c86836b12a21903075c300409b609ad5e941ddb0feb8c2120" }
39
- version("25.0.2") { source sha256: "f78764c6fd504f7b264c47e469c0fcb86a01c92344dc9d625dfd42f6c3ed8224" }
40
- version("25.0") { source sha256: "5988e3bca208486494446e885ca2149fe487ee115cbc3770535fd22a795af5d2" }
41
- version("24.3.4.7") { source sha256: "80c08cf1c181a124dd805bb1d91ff5c1996bd8a27b3f4d008b1ababf48d9947e" }
42
- version("24.3.4") { source sha256: "e59bedbb871af52244ca5284fd0a572d52128abd4decf4347fe2aef047b65c58" }
43
- version("24.3.3") { source sha256: "a5f4d83426fd3dc2f08c0c823ae29bcf72b69008a2baee66d27ad614ec7ab607" }
44
- version("24.3.2") { source sha256: "cdc9cf788d28a492eb6b24881fbd06a0a5c785dc374ad415b3be1db96326583c" }
45
- version("18.3") { source sha256: "a6d08eb7df06e749ccaf3049b33ceae617a3c466c6a640ee8d248c2372d48f4e" }
46
-
47
- build do
48
- # Don't listen on 127.0.0.1/::1 implicitly whenever ERL_EPMD_ADDRESS is given
49
- if version.satisfies?("<= 24.3.3")
50
- patch source: "epmd-require-explicitly-adding-loopback-address.patch", plevel: 1
51
- else
52
- patch source: "updated-epmd-require-explicitly-adding-loopback-address.patch", plevel: 1
53
- end
54
-
55
- env = with_standard_compiler_flags(with_embedded_path).merge(
56
- # WARNING!
57
- "CFLAGS" => "-L#{install_dir}/embedded/lib -O3 -I#{install_dir}/embedded/erlang/include",
58
- "LDFLAGS" => "-Wl,-rpath #{install_dir}/embedded/lib -L#{install_dir}/embedded/lib -I#{install_dir}/embedded/erlang/include"
59
- )
60
- env.delete("CPPFLAGS")
61
-
62
- # The TYPE env var sets the type of emulator you want
63
- # We want the default so we give TYPE and empty value
64
- # in case it was set by CI.
65
- env["TYPE"] = ""
66
-
67
- update_config_guess(target: "erts/autoconf")
68
- update_config_guess(target: "lib/common_test/priv/auxdir")
69
- update_config_guess(target: "lib/wx/autoconf")
70
-
71
- if version.satisfies?(">= 19.0")
72
- update_config_guess(target: "lib/common_test/test_server/src")
73
- else
74
- update_config_guess(target: "lib/test_server/src")
75
- end
76
-
77
- # Setup the erlang include dir
78
- mkdir "#{install_dir}/embedded/erlang/include"
79
-
80
- # At this time, erlang does not expose a way to specify the path(s) to these
81
- # libraries, but it looks in its local +include+ directory as part of the
82
- # search, so we will symlink them here so they are picked up.
83
- #
84
- # In future releases of erlang, someone should check if these flags (or
85
- # environment variables) are avaiable to remove this ugly hack.
86
- %w{ncurses openssl zlib.h zconf.h}.each do |name|
87
- link "#{install_dir}/embedded/include/#{name}", "#{install_dir}/embedded/erlang/include/#{name}"
88
- end
89
-
90
- # Note 2017-02-28 sr: HiPE doesn't compile with OTP 18.3 on ppc64le (https://bugs.erlang.org/browse/ERL-369)
91
- # Compiling fails when linking beam.smp, with
92
- # powerpc64le-linux-gnu/libutil.so: error adding symbols: File in wrong format
93
- #
94
- # We've been having issues with ppc64le and hipe before, too:
95
- # https://github.com/chef/chef-server/commit/4fa25ed695acaf819b11f71c6db1aab5c8adcaee
96
- #
97
- # It's trying to compile using a linker script for ppc64, it seems:
98
- # https://github.com/erlang/otp/blob/c1ea854fac3d8ed14/erts/emulator/hipe/elf64ppc.x
99
- # Probably introduced with https://github.com/erlang/otp/commit/37d63e9b8a0a96
100
- # See also https://sourceware.org/ml/binutils/2015-05/msg00148.html
101
- hipe = ppc64le? ? "disable" : "enable"
102
-
103
- unless File.exist?("./configure")
104
- # Building from github source requires this step
105
- command "./otp_build autoconf"
106
- end
107
- # Note: et, debugger and observer applications require wx to
108
- # build. The tarballs from the downloads site has prebuilt the beam
109
- # files, so we were able to get away without disabling them and
110
- # still build. When building from raw source we must disable them
111
- # explicitly.
112
- wx = "without"
113
-
114
- command "./configure" \
115
- " --prefix=#{install_dir}/embedded" \
116
- " --enable-threads" \
117
- " --enable-smp-support" \
118
- " --enable-kernel-poll" \
119
- " --enable-dynamic-ssl-lib" \
120
- " --enable-shared-zlib" \
121
- " --enable-fips" \
122
- " --#{hipe}-hipe" \
123
- " --#{wx}-wx" \
124
- " --#{wx}-et" \
125
- " --#{wx}-debugger" \
126
- " --#{wx}-observer" \
127
- " --without-megaco" \
128
- " --without-javac" \
129
- " --with-ssl=#{install_dir}/embedded" \
130
- " --disable-debug", env: env
131
-
132
- make "-j #{workers}", env: env
133
- make "install", env: env
134
- end
@@ -1,66 +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 "expat"
18
- default_version "2.5.0"
19
-
20
- relative_path "expat-#{version}"
21
- dependency "config_guess"
22
-
23
- license "MIT"
24
- license_file "COPYING"
25
- skip_transitive_dependency_licensing true
26
-
27
- # version_list: url=https://github.com/libexpat/libexpat/releases filter=*.tar.gz
28
- source url: "https://github.com/libexpat/libexpat/releases/download/R_#{version.gsub(".", "_")}/expat-#{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
- version("2.5.0") { source sha256: "6b902ab103843592be5e99504f846ec109c1abb692e85347587f237a4ffa1033" }
33
- version("2.4.9") { source sha256: "4415710268555b32c4e5ab06a583bea9fec8ff89333b218b70b43d4ca10e38fa" }
34
- version("2.4.8") { source sha256: "398f6d95bf808d3108e27547b372cb4ac8dc2298a3c4251eb7aa3d4c6d4bb3e2" }
35
- version("2.4.7") { source sha256: "72644d5f0f313e2a5cf81275b09b9770c866dd87a2b62ab19981657ac0d4af5f" }
36
- version("2.4.6") { source sha256: "a0eb5af56b1c2ba812051c49bf3b4e5763293fe5394a0219df7208845c3efb8c" }
37
- version("2.4.1") { source sha256: "a00ae8a6b96b63a3910ddc1100b1a7ef50dc26dceb65ced18ded31ab392f132b" }
38
- version("2.3.0") { source sha256: "89df123c62f2c2e2b235692d9fe76def6a9ab03dbe95835345bf412726eb1987" }
39
- version("2.1.0") { source sha256: "823705472f816df21c8f6aa026dd162b280806838bb55b3432b0fb1fcca7eb86" }
40
-
41
- build do
42
- env = with_standard_compiler_flags(with_embedded_path)
43
-
44
- update_config_guess(target: "conftools")
45
-
46
- # AIX needs two fixes to compile the latest version.
47
- # 1. We need to add -lm to link in the proper math declarations
48
- # 2. Since we are using xlc to compile, we need to use qvisibility instead of fvisibility
49
- # Refer to https://www.ibm.com/docs/en/xl-c-and-cpp-aix/16.1?topic=descriptions-qvisibility-fvisibility
50
- if aix?
51
- env["LDFLAGS"] << " -lm"
52
- if version <= "2.4.1"
53
- patch source: "configure_xlc_visibility.patch", plevel: 1, env: env
54
- else
55
- patch source: "configure_xlc_visibility_2.4.7.patch", plevel: 1, env: env
56
- end
57
- end
58
-
59
- command "./configure" \
60
- " --without-examples" \
61
- " --without-tests" \
62
- " --prefix=#{install_dir}/embedded", env: env
63
-
64
- make "-j #{workers}", env: env
65
- make "install", env: env
66
- end
@@ -1,41 +0,0 @@
1
- #
2
- # Copyright 2016, 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: deprecated 2021-04
17
-
18
- name "fakeroot"
19
- default_version "1.20.2"
20
-
21
- version("1.20.2") { source sha256: "7c0a164d19db3efa9e802e0fc7cdfeff70ec6d26cdbdc4338c9c2823c5ea230c" }
22
-
23
- license "GPL-3.0"
24
- license_file "COPYING"
25
-
26
- source url: "ftp://ftp.debian.org/debian/pool/main/f/fakeroot/fakeroot_#{version}.orig.tar.bz2"
27
-
28
- relative_path "fakeroot-#{version}"
29
-
30
- build do
31
- env = with_standard_compiler_flags(with_embedded_path)
32
-
33
- configure_command = ["./configure",
34
- "--prefix=#{install_dir}/embedded",
35
- # This bit of magic is so we don't require the libcap library
36
- "ac_cv_func_capset=no"]
37
-
38
- command configure_command.join(" "), env: env
39
- make "-j #{workers}", env: env
40
- make "-j #{workers} install", env: env
41
- end