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,103 +0,0 @@
1
- $NetBSD: patch-configure,v 1.4 2012/10/12 14:51:31 taca Exp $
2
-
3
- * Adding Interix and MirBSD support.
4
- * Ignore doxygen.
5
-
6
- --- configure.orig 2012-10-12 09:23:46.000000000 +0000
7
- +++ configure
8
- @@ -10654,6 +10654,9 @@ esac
9
- superux*) :
10
- ac_cv_func_setitimer=no
11
- ;; #(
12
- + interix*) LIBS="-lm $LIBS"
13
- + ac_cv_func_getpgrp_void=yes
14
- + ;; #(
15
- *) :
16
- LIBS="-lm $LIBS" ;;
17
- esac
18
- @@ -11980,6 +11983,9 @@ fi
19
- ac_fn_c_check_type "$LINENO" "struct timespec" "ac_cv_type_struct_timespec" "#ifdef HAVE_TIME_H
20
- #include <time.h>
21
- #endif
22
- +#ifdef HAVE_SYS_TIME_H
23
- +# include <sys/time.h>
24
- +#endif
25
- "
26
- if test "x$ac_cv_type_struct_timespec" = xyes; then :
27
-
28
- @@ -15790,7 +15796,7 @@ done
29
- MAINLIBS="-pthread $MAINLIBS" ;; #(
30
- *) :
31
- case "$target_os" in #(
32
- - openbsd*) :
33
- + openbsd*|mirbsd*) :
34
- LIBS="-pthread $LIBS" ;; #(
35
- *) :
36
- LIBS="-l$pthread_lib $LIBS" ;;
37
- @@ -16239,8 +16245,12 @@ esac ;; #(
38
- rb_cv_dlopen=yes ;; #(
39
- interix*) :
40
- : ${LDSHARED='$(CC) -shared'}
41
- + LDFLAGS="$LDFLAGS -Wl,-E"
42
- XLDFLAGS="$XLDFLAGS -Wl,-E"
43
- + # use special random-slot linkage in 0x[56]XXXXXXX
44
- LIBPATHFLAG=" -L%1\$-s"
45
- + DLDFLAGS="$DLDFLAGS "'-Wl,-h,$(.TARGET) -Wl,--image-base,$$(($$RANDOM %4096/2*262144+1342177280))'
46
- + RPATHFLAG=' -Wl,-R%1$-s'
47
- rb_cv_dlopen=yes ;; #(
48
- freebsd*|dragonfly*) :
49
-
50
- @@ -16252,7 +16262,7 @@ esac ;; #(
51
- test "$GCC" = yes && test "$rb_cv_prog_gnu_ld" = yes || LDSHARED="ld -Bshareable"
52
- fi
53
- rb_cv_dlopen=yes ;; #(
54
- - openbsd*) :
55
- + openbsd*|mirbsd*) :
56
- : ${LDSHARED='$(CC) -shared ${CCDLFLAGS}'}
57
- if test "$rb_cv_binary_elf" = yes; then
58
- LDFLAGS="$LDFLAGS -Wl,-E"
59
- @@ -16781,7 +16791,7 @@ _ACEOF
60
- freebsd*|dragonfly*) :
61
-
62
- SOLIBS='$(LIBS)'
63
- - LIBRUBY_SO='lib$(RUBY_SO_NAME).so.$(MAJOR)$(MINOR)'
64
- + LIBRUBY_SO='lib$(RUBY_SO_NAME).so.$(MAJOR)$(MINOR)$(TEENY)'
65
- if test "$rb_cv_binary_elf" != "yes" ; then
66
- LIBRUBY_SO="$LIBRUBY_SO.\$(TEENY)"
67
- LIBRUBY_ALIASES=''
68
- @@ -16798,7 +16808,7 @@ _ACEOF
69
- LIBRUBY_ALIASES=""
70
- fi
71
- ;; #(
72
- - openbsd*) :
73
- + openbsd*|mirbsd*) :
74
-
75
- SOLIBS='$(LIBS)'
76
- LIBRUBY_SO='lib$(RUBY_SO_NAME).so.$(MAJOR).'`expr ${MINOR} \* 10 + ${TEENY}`
77
- @@ -16859,7 +16869,12 @@ esac
78
- ;; #(
79
- interix*) :
80
-
81
- - LIBRUBYARG_SHARED='-L. -L${libdir} -l$(RUBY_SO_NAME)'
82
- + SOLIBS='$(LIBS)'
83
- + LIBRUBY_SO='lib$(RUBY_SO_NAME).so.$(MAJOR)$(MINOR).$(TEENY)'
84
- + # link explicitly to 0x48000000
85
- + LIBRUBY_DLDFLAGS='-Wl,-h,lib$(RUBY_SO_NAME).so.$(MAJOR)$(MINOR) -Wl,--image-base,1207959552'
86
- + LIBRUBYARG_SHARED='-Wl,-R -Wl,${libdir} -L${libdir} -L. -l$(RUBY_SO_NAME)'
87
- + LIBRUBY_ALIASES='lib$(RUBY_SO_NAME).so.$(MAJOR)$(MINOR) lib$(RUBY_SO_NAME).so'
88
- ;; #(
89
- *) :
90
- ;;
91
- @@ -16922,11 +16937,7 @@ if test "$install_doc" != no; then
92
- else
93
- RDOCTARGET="nodoc"
94
- fi
95
- - if test "$install_capi" != no -a -n "$DOXYGEN"; then
96
- - CAPITARGET="capi"
97
- - else
98
- - CAPITARGET="nodoc"
99
- - fi
100
- + CAPITARGET="nodoc"
101
- else
102
- RDOCTARGET="nodoc"
103
- CAPITARGET="nodoc"
@@ -1,10 +0,0 @@
1
- --- ruby-2.7.2-orig/ext/win32ole/win32ole.c 2020-10-01 05:15:38.000000000 -0700
2
- +++ ruby-2.7.2/ext/win32ole/win32ole.c 2021-03-24 07:59:55.000000000 -0700
3
- @@ -3969,7 +3969,6 @@
4
- {
5
- cWIN32OLE_lcid = LOCALE_SYSTEM_DEFAULT;
6
- g_ole_initialized_init();
7
- - check_nano_server();
8
-
9
- com_vtbl.QueryInterface = QueryInterface;
10
- com_vtbl.AddRef = AddRef;
@@ -1,12 +0,0 @@
1
- --- ruby-2.6.7-orig/hash.c 2021-04-05 04:48:34.000000000 -0700
2
- +++ ruby-2.6.7/hash.c 2021-04-16 13:50:06.000000000 -0700
3
- @@ -5658,7 +5658,8 @@
4
- long keylen, elen;
5
- const char *keyptr, *eptr;
6
- RSTRING_GETMEM(key, keyptr, keylen);
7
- - for (long i=0; i<RARRAY_LEN(keys); i++) {
8
- + long i;
9
- + for (i=0; i<RARRAY_LEN(keys); i++) {
10
- VALUE e = RARRAY_AREF(keys, i);
11
- RSTRING_GETMEM(e, eptr, elen);
12
- if (elen != keylen) continue;
@@ -1,281 +0,0 @@
1
- diff -ur ruby-3.0.1/configure.ac ruby-3.0.1-patched/configure.ac
2
- --- ruby-3.0.1/configure.ac 2021-04-05 05:33:42.000000000 -0700
3
- +++ ruby-3.0.1-patched/configure.ac 2021-04-09 12:42:35.578174106 -0700
4
- @@ -544,11 +544,16 @@
5
- rpathflag=`echo "$RPATHFLAG" | sed 's/%.*//'`
6
- ])
7
-
8
- -RUBY_TRY_CFLAGS(-fdeclspec, [
9
- - RUBY_APPEND_OPTIONS(CC, -fdeclspec)
10
- - RUBY_APPEND_OPTIONS(MJIT_CC, -fdeclspec)
11
- +RUBY_TRY_LDFLAGS(-fdeclspec, [fdeclspec=yes], [fdeclspec=no])
12
- +AS_IF([test "$fdeclspec" = yes], [
13
- + RUBY_APPEND_OPTIONS(CFLAGS, -fdeclspec)
14
- + RUBY_APPEND_OPTIONS(cflags, -fdeclspec)
15
- + RUBY_APPEND_OPTIONS(orig_cflags, -fdeclspec)
16
- +])
17
- +RUBY_TRY_CXXFLAGS(-fdeclspec, [fdeclspec=yes], [fdeclspec=no])
18
- +AS_IF([test "$fdeclspec" = yes], [
19
- + RUBY_APPEND_OPTIONS(CXXFLAGS, -fdeclspec)
20
- ])
21
- -RUBY_TRY_CXXFLAGS(-fdeclspec, [RUBY_APPEND_OPTIONS(CXX, -fdeclspec)])
22
-
23
- AS_CASE([$RUBY_PATCHLEVEL], [-*],
24
- [RUBY_DEVEL=yes], [RUBY_DEVEL=no])
25
- @@ -1494,7 +1499,9 @@
26
- AC_DEFINE_UNQUOTED([RUBY_ALIAS_FUNCTION_VOID(prot, name, args)],
27
- [RUBY_ALIAS_FUNCTION_TYPE(void, prot, name, args)])
28
- ])
29
- +])
30
-
31
- +{
32
- AC_CACHE_CHECK([for __atomic builtins], [rb_cv_gcc_atomic_builtins], [
33
- AC_TRY_LINK([unsigned int atomic_var;],
34
- [
35
- @@ -1525,7 +1532,6 @@
36
- AS_IF([test "$rb_cv_gcc_sync_builtins" = yes], [
37
- AC_DEFINE(HAVE_GCC_SYNC_BUILTINS)
38
- ])
39
- -])
40
-
41
- AC_CACHE_CHECK(for __builtin_unreachable, rb_cv_func___builtin_unreachable,
42
- [RUBY_WERROR_FLAG(
43
- @@ -1538,6 +1544,7 @@
44
- AS_IF([test "$rb_cv_func___builtin_unreachable" = yes], [
45
- AC_DEFINE_UNQUOTED(UNREACHABLE, [__builtin_unreachable()])
46
- ])
47
- +}
48
-
49
- AC_CACHE_CHECK(for exported function attribute, rb_cv_func_exported, [
50
- rb_cv_func_exported=no
51
- diff -ur ruby-3.0.1/internal/bits.h ruby-3.0.1-patched/internal/bits.h
52
- --- ruby-3.0.1/internal/bits.h 2021-04-05 05:33:42.000000000 -0700
53
- +++ ruby-3.0.1-patched/internal/bits.h 2021-04-09 12:42:35.578845209 -0700
54
- @@ -284,7 +284,7 @@
55
- }
56
- else {
57
- /* :FIXME: Is there a way to make this branch a compile-time error? */
58
- - __builtin_unreachable();
59
- + UNREACHABLE_RETURN(~0);
60
- }
61
-
62
- #else
63
- @@ -419,7 +419,7 @@
64
- }
65
- else {
66
- /* :FIXME: Is there a way to make this branch a compile-time error? */
67
- - __builtin_unreachable();
68
- + UNREACHABLE_RETURN(~0);
69
- }
70
-
71
- #else
72
- @@ -492,7 +492,7 @@
73
- }
74
- else {
75
- /* :FIXME: Is there a way to make this branch a compile-time error? */
76
- - __builtin_unreachable();
77
- + UNREACHABLE_RETURN(~0);
78
- }
79
-
80
- #else
81
- diff -ur ruby-3.0.1/template/Makefile.in ruby-3.0.1-patched/template/Makefile.in
82
- --- ruby-3.0.1/template/Makefile.in 2021-04-05 05:33:42.000000000 -0700
83
- +++ ruby-3.0.1-patched/template/Makefile.in 2021-04-09 12:42:35.579834751 -0700
84
- @@ -75,7 +75,7 @@
85
- CC_VERSION = @CC_VERSION@
86
- OUTFLAG = @OUTFLAG@$(empty)
87
- COUTFLAG = @COUTFLAG@$(empty)
88
- -CPPOUTFLAG = $(COUTFLAG)
89
- +CPPOUTFLAG = >
90
- ARCH_FLAG = @ARCH_FLAG@
91
- CFLAGS_NO_ARCH = @CFLAGS@
92
- CFLAGS = $(CFLAGS_NO_ARCH) $(ARCH_FLAG)
93
- diff -ur ruby-3.0.1/configure ruby-3.0.1-patched/configure
94
- --- ruby-3.0.1/configure 2021-04-05 05:33:44.000000000 -0700
95
- +++ ruby-3.0.1-patched/configure 2021-04-09 13:21:37.087380251 -0700
96
- @@ -9345,8 +9345,10 @@
97
- fi
98
-
99
-
100
- - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -fdeclspec is accepted as CFLAGS" >&5
101
- -$as_echo_n "checking whether -fdeclspec is accepted as CFLAGS... " >&6; }
102
- + save_LDFLAGS="$LDFLAGS"
103
- + LDFLAGS="$LDFLAGS -fdeclspec"
104
- + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -fdeclspec is accepted as LDFLAGS" >&5
105
- +$as_echo_n "checking whether -fdeclspec is accepted as LDFLAGS... " >&6; }
106
- save_CFLAGS="$CFLAGS"
107
- CFLAGS="$CFLAGS $rb_cv_warnflags"
108
- if test "${ac_c_werror_flag+set}"; then :
109
- @@ -9360,7 +9362,6 @@
110
- fi
111
- ac_c_werror_flag=yes
112
-
113
- - CFLAGS="$CFLAGS -fdeclspec"
114
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
115
- /* end confdefs.h. */
116
-
117
- @@ -9372,39 +9373,17 @@
118
- return 0;
119
- }
120
- _ACEOF
121
- -if ac_fn_c_try_compile "$LINENO"; then :
122
- -
123
- - # RUBY_APPEND_OPTIONS(CC)
124
- - for rb_opt in -fdeclspec; do
125
- - case " ${CC-} " in #(
126
- - *" ${rb_opt} "*) :
127
- - ;; #(
128
- - ' ') :
129
- - CC="${rb_opt}" ;; #(
130
- - *) :
131
- - CC="$CC ${rb_opt}" ;;
132
- -esac
133
- - done
134
- - # RUBY_APPEND_OPTIONS(MJIT_CC)
135
- - for rb_opt in -fdeclspec; do
136
- - case " ${MJIT_CC-} " in #(
137
- - *" ${rb_opt} "*) :
138
- - ;; #(
139
- - ' ') :
140
- - MJIT_CC="${rb_opt}" ;; #(
141
- - *) :
142
- - MJIT_CC="$MJIT_CC ${rb_opt}" ;;
143
- -esac
144
- - done
145
- -
146
- +if ac_fn_c_try_link "$LINENO"; then :
147
- + fdeclspec=yes
148
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
149
- $as_echo "${msg_result_yes}yes${msg_reset}" >&6 ; }
150
- else
151
- -
152
- + fdeclspec=no
153
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
154
- $as_echo "${msg_result_no}no${msg_reset}" >&6 ; }
155
- fi
156
- -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
157
- +rm -f core conftest.err conftest.$ac_objext \
158
- + conftest$ac_exeext conftest.$ac_ext
159
-
160
- CFLAGS="$save_CFLAGS"
161
- save_CFLAGS=
162
- @@ -9417,7 +9396,46 @@
163
- unset ac_c_werror_flag
164
-
165
- fi
166
- + LDFLAGS="$save_LDFLAGS"
167
- + save_LDFLAGS=
168
-
169
- +if test "$fdeclspec" = yes; then :
170
- +
171
- + # RUBY_APPEND_OPTIONS(CFLAGS)
172
- + for rb_opt in -fdeclspec; do
173
- + case " ${CFLAGS-} " in #(
174
- + *" ${rb_opt} "*) :
175
- + ;; #(
176
- + ' ') :
177
- + CFLAGS="${rb_opt}" ;; #(
178
- + *) :
179
- + CFLAGS="$CFLAGS ${rb_opt}" ;;
180
- +esac
181
- + done
182
- + # RUBY_APPEND_OPTIONS(cflags)
183
- + for rb_opt in -fdeclspec; do
184
- + case " ${cflags-} " in #(
185
- + *" ${rb_opt} "*) :
186
- + ;; #(
187
- + ' ') :
188
- + cflags="${rb_opt}" ;; #(
189
- + *) :
190
- + cflags="$cflags ${rb_opt}" ;;
191
- +esac
192
- + done
193
- + # RUBY_APPEND_OPTIONS(orig_cflags)
194
- + for rb_opt in -fdeclspec; do
195
- + case " ${orig_cflags-} " in #(
196
- + *" ${rb_opt} "*) :
197
- + ;; #(
198
- + ' ') :
199
- + orig_cflags="${rb_opt}" ;; #(
200
- + *) :
201
- + orig_cflags="$orig_cflags ${rb_opt}" ;;
202
- +esac
203
- + done
204
- +
205
- +fi
206
-
207
-
208
- save_CXXFLAGS="$CXXFLAGS"
209
- @@ -9455,21 +9473,11 @@
210
- }
211
- _ACEOF
212
- if ac_fn_cxx_try_link "$LINENO"; then :
213
- - # RUBY_APPEND_OPTIONS(CXX)
214
- - for rb_opt in -fdeclspec; do
215
- - case " ${CXX-} " in #(
216
- - *" ${rb_opt} "*) :
217
- - ;; #(
218
- - ' ') :
219
- - CXX="${rb_opt}" ;; #(
220
- - *) :
221
- - CXX="$CXX ${rb_opt}" ;;
222
- -esac
223
- - done
224
- + fdeclspec=yes
225
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
226
- $as_echo "${msg_result_yes}yes${msg_reset}" >&6 ; }
227
- else
228
- -
229
- + fdeclspec=no
230
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
231
- $as_echo "${msg_result_no}no${msg_reset}" >&6 ; }
232
- fi
233
- @@ -9496,6 +9504,21 @@
234
- CXXFLAGS="$save_CXXFLAGS"
235
- save_CXXFLAGS=
236
-
237
- +if test "$fdeclspec" = yes; then :
238
- +
239
- + # RUBY_APPEND_OPTIONS(CXXFLAGS)
240
- + for rb_opt in -fdeclspec; do
241
- + case " ${CXXFLAGS-} " in #(
242
- + *" ${rb_opt} "*) :
243
- + ;; #(
244
- + ' ') :
245
- + CXXFLAGS="${rb_opt}" ;; #(
246
- + *) :
247
- + CXXFLAGS="$CXXFLAGS ${rb_opt}" ;;
248
- +esac
249
- + done
250
- +
251
- +fi
252
-
253
- case $RUBY_PATCHLEVEL in #(
254
- -*) :
255
- @@ -19369,6 +19392,9 @@
256
-
257
- fi
258
-
259
- +fi
260
- +
261
- +{
262
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic builtins" >&5
263
- $as_echo_n "checking for __atomic builtins... " >&6; }
264
- if ${rb_cv_gcc_atomic_builtins+:} false; then :
265
- @@ -19450,8 +19476,6 @@
266
-
267
- fi
268
-
269
- -fi
270
- -
271
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_unreachable" >&5
272
- $as_echo_n "checking for __builtin_unreachable... " >&6; }
273
- if ${rb_cv_func___builtin_unreachable+:} false; then :
274
- @@ -19511,6 +19535,7 @@
275
-
276
-
277
- fi
278
- +}
279
-
280
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exported function attribute" >&5
281
- $as_echo_n "checking for exported function attribute... " >&6; }
@@ -1,251 +0,0 @@
1
- diff -ur ruby-3.0.1/configure.ac ruby-3.0.1-patched/configure.ac
2
- --- ruby-3.0.1/configure.ac 2021-04-05 05:33:42.000000000 -0700
3
- +++ ruby-3.0.1-patched/configure.ac 2021-04-09 12:42:35.578174106 -0700
4
- @@ -544,11 +544,16 @@
5
- rpathflag=`echo "$RPATHFLAG" | sed 's/%.*//'`
6
- ])
7
-
8
- -RUBY_TRY_CFLAGS(-fdeclspec, [
9
- - RUBY_APPEND_OPTIONS(CC, -fdeclspec)
10
- - RUBY_APPEND_OPTIONS(MJIT_CC, -fdeclspec)
11
- +RUBY_TRY_LDFLAGS(-fdeclspec, [fdeclspec=yes], [fdeclspec=no])
12
- +AS_IF([test "$fdeclspec" = yes], [
13
- + RUBY_APPEND_OPTIONS(CFLAGS, -fdeclspec)
14
- + RUBY_APPEND_OPTIONS(cflags, -fdeclspec)
15
- + RUBY_APPEND_OPTIONS(orig_cflags, -fdeclspec)
16
- +])
17
- +RUBY_TRY_CXXFLAGS(-fdeclspec, [fdeclspec=yes], [fdeclspec=no])
18
- +AS_IF([test "$fdeclspec" = yes], [
19
- + RUBY_APPEND_OPTIONS(CXXFLAGS, -fdeclspec)
20
- ])
21
- -RUBY_TRY_CXXFLAGS(-fdeclspec, [RUBY_APPEND_OPTIONS(CXX, -fdeclspec)])
22
-
23
- AS_CASE([$RUBY_PATCHLEVEL], [-*],
24
- [RUBY_DEVEL=yes], [RUBY_DEVEL=no])
25
- @@ -1494,7 +1499,9 @@
26
- AC_DEFINE_UNQUOTED([RUBY_ALIAS_FUNCTION_VOID(prot, name, args)],
27
- [RUBY_ALIAS_FUNCTION_TYPE(void, prot, name, args)])
28
- ])
29
- +])
30
-
31
- +{
32
- AC_CACHE_CHECK([for __atomic builtins], [rb_cv_gcc_atomic_builtins], [
33
- AC_TRY_LINK([unsigned int atomic_var;],
34
- [
35
- @@ -1525,7 +1532,6 @@
36
- AS_IF([test "$rb_cv_gcc_sync_builtins" = yes], [
37
- AC_DEFINE(HAVE_GCC_SYNC_BUILTINS)
38
- ])
39
- -])
40
-
41
- AC_CACHE_CHECK(for __builtin_unreachable, rb_cv_func___builtin_unreachable,
42
- [RUBY_WERROR_FLAG(
43
- @@ -1538,6 +1544,7 @@
44
- AS_IF([test "$rb_cv_func___builtin_unreachable" = yes], [
45
- AC_DEFINE_UNQUOTED(UNREACHABLE, [__builtin_unreachable()])
46
- ])
47
- +}
48
-
49
- AC_CACHE_CHECK(for exported function attribute, rb_cv_func_exported, [
50
- rb_cv_func_exported=no
51
- diff -ur ruby-3.0.1/template/Makefile.in ruby-3.0.1-patched/template/Makefile.in
52
- --- ruby-3.0.1/template/Makefile.in 2021-04-05 05:33:42.000000000 -0700
53
- +++ ruby-3.0.1-patched/template/Makefile.in 2021-04-09 12:42:35.579834751 -0700
54
- @@ -75,7 +75,7 @@
55
- CC_VERSION = @CC_VERSION@
56
- OUTFLAG = @OUTFLAG@$(empty)
57
- COUTFLAG = @COUTFLAG@$(empty)
58
- -CPPOUTFLAG = $(COUTFLAG)
59
- +CPPOUTFLAG = >
60
- ARCH_FLAG = @ARCH_FLAG@
61
- CFLAGS_NO_ARCH = @CFLAGS@
62
- CFLAGS = $(CFLAGS_NO_ARCH) $(ARCH_FLAG)
63
- diff -ur ruby-3.0.1/configure ruby-3.0.1-patched/configure
64
- --- ruby-3.0.1/configure 2021-04-05 05:33:44.000000000 -0700
65
- +++ ruby-3.0.1-patched/configure 2021-04-09 13:21:37.087380251 -0700
66
- @@ -9345,8 +9345,10 @@
67
- fi
68
-
69
-
70
- - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -fdeclspec is accepted as CFLAGS" >&5
71
- -$as_echo_n "checking whether -fdeclspec is accepted as CFLAGS... " >&6; }
72
- + save_LDFLAGS="$LDFLAGS"
73
- + LDFLAGS="$LDFLAGS -fdeclspec"
74
- + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -fdeclspec is accepted as LDFLAGS" >&5
75
- +$as_echo_n "checking whether -fdeclspec is accepted as LDFLAGS... " >&6; }
76
- save_CFLAGS="$CFLAGS"
77
- CFLAGS="$CFLAGS $rb_cv_warnflags"
78
- if test "${ac_c_werror_flag+set}"; then :
79
- @@ -9360,7 +9362,6 @@
80
- fi
81
- ac_c_werror_flag=yes
82
-
83
- - CFLAGS="$CFLAGS -fdeclspec"
84
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
85
- /* end confdefs.h. */
86
-
87
- @@ -9372,39 +9373,17 @@
88
- return 0;
89
- }
90
- _ACEOF
91
- -if ac_fn_c_try_compile "$LINENO"; then :
92
- -
93
- - # RUBY_APPEND_OPTIONS(CC)
94
- - for rb_opt in -fdeclspec; do
95
- - case " ${CC-} " in #(
96
- - *" ${rb_opt} "*) :
97
- - ;; #(
98
- - ' ') :
99
- - CC="${rb_opt}" ;; #(
100
- - *) :
101
- - CC="$CC ${rb_opt}" ;;
102
- -esac
103
- - done
104
- - # RUBY_APPEND_OPTIONS(MJIT_CC)
105
- - for rb_opt in -fdeclspec; do
106
- - case " ${MJIT_CC-} " in #(
107
- - *" ${rb_opt} "*) :
108
- - ;; #(
109
- - ' ') :
110
- - MJIT_CC="${rb_opt}" ;; #(
111
- - *) :
112
- - MJIT_CC="$MJIT_CC ${rb_opt}" ;;
113
- -esac
114
- - done
115
- -
116
- +if ac_fn_c_try_link "$LINENO"; then :
117
- + fdeclspec=yes
118
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
119
- $as_echo "${msg_result_yes}yes${msg_reset}" >&6 ; }
120
- else
121
- -
122
- + fdeclspec=no
123
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
124
- $as_echo "${msg_result_no}no${msg_reset}" >&6 ; }
125
- fi
126
- -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
127
- +rm -f core conftest.err conftest.$ac_objext \
128
- + conftest$ac_exeext conftest.$ac_ext
129
-
130
- CFLAGS="$save_CFLAGS"
131
- save_CFLAGS=
132
- @@ -9417,7 +9396,46 @@
133
- unset ac_c_werror_flag
134
-
135
- fi
136
- + LDFLAGS="$save_LDFLAGS"
137
- + save_LDFLAGS=
138
-
139
- +if test "$fdeclspec" = yes; then :
140
- +
141
- + # RUBY_APPEND_OPTIONS(CFLAGS)
142
- + for rb_opt in -fdeclspec; do
143
- + case " ${CFLAGS-} " in #(
144
- + *" ${rb_opt} "*) :
145
- + ;; #(
146
- + ' ') :
147
- + CFLAGS="${rb_opt}" ;; #(
148
- + *) :
149
- + CFLAGS="$CFLAGS ${rb_opt}" ;;
150
- +esac
151
- + done
152
- + # RUBY_APPEND_OPTIONS(cflags)
153
- + for rb_opt in -fdeclspec; do
154
- + case " ${cflags-} " in #(
155
- + *" ${rb_opt} "*) :
156
- + ;; #(
157
- + ' ') :
158
- + cflags="${rb_opt}" ;; #(
159
- + *) :
160
- + cflags="$cflags ${rb_opt}" ;;
161
- +esac
162
- + done
163
- + # RUBY_APPEND_OPTIONS(orig_cflags)
164
- + for rb_opt in -fdeclspec; do
165
- + case " ${orig_cflags-} " in #(
166
- + *" ${rb_opt} "*) :
167
- + ;; #(
168
- + ' ') :
169
- + orig_cflags="${rb_opt}" ;; #(
170
- + *) :
171
- + orig_cflags="$orig_cflags ${rb_opt}" ;;
172
- +esac
173
- + done
174
- +
175
- +fi
176
-
177
-
178
- save_CXXFLAGS="$CXXFLAGS"
179
- @@ -9455,21 +9473,11 @@
180
- }
181
- _ACEOF
182
- if ac_fn_cxx_try_link "$LINENO"; then :
183
- - # RUBY_APPEND_OPTIONS(CXX)
184
- - for rb_opt in -fdeclspec; do
185
- - case " ${CXX-} " in #(
186
- - *" ${rb_opt} "*) :
187
- - ;; #(
188
- - ' ') :
189
- - CXX="${rb_opt}" ;; #(
190
- - *) :
191
- - CXX="$CXX ${rb_opt}" ;;
192
- -esac
193
- - done
194
- + fdeclspec=yes
195
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
196
- $as_echo "${msg_result_yes}yes${msg_reset}" >&6 ; }
197
- else
198
- -
199
- + fdeclspec=no
200
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
201
- $as_echo "${msg_result_no}no${msg_reset}" >&6 ; }
202
- fi
203
- @@ -9496,6 +9504,21 @@
204
- CXXFLAGS="$save_CXXFLAGS"
205
- save_CXXFLAGS=
206
-
207
- +if test "$fdeclspec" = yes; then :
208
- +
209
- + # RUBY_APPEND_OPTIONS(CXXFLAGS)
210
- + for rb_opt in -fdeclspec; do
211
- + case " ${CXXFLAGS-} " in #(
212
- + *" ${rb_opt} "*) :
213
- + ;; #(
214
- + ' ') :
215
- + CXXFLAGS="${rb_opt}" ;; #(
216
- + *) :
217
- + CXXFLAGS="$CXXFLAGS ${rb_opt}" ;;
218
- +esac
219
- + done
220
- +
221
- +fi
222
-
223
- case $RUBY_PATCHLEVEL in #(
224
- -*) :
225
- @@ -19369,6 +19392,9 @@
226
-
227
- fi
228
-
229
- +fi
230
- +
231
- +{
232
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic builtins" >&5
233
- $as_echo_n "checking for __atomic builtins... " >&6; }
234
- if ${rb_cv_gcc_atomic_builtins+:} false; then :
235
- @@ -19450,8 +19476,6 @@
236
-
237
- fi
238
-
239
- -fi
240
- -
241
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_unreachable" >&5
242
- $as_echo_n "checking for __builtin_unreachable... " >&6; }
243
- if ${rb_cv_func___builtin_unreachable+:} false; then :
244
- @@ -19511,6 +19535,7 @@
245
-
246
-
247
- fi
248
- +}
249
-
250
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exported function attribute" >&5
251
- $as_echo_n "checking for exported function attribute... " >&6; }