omnibus-software 22.11.239

Sign up to get free protection for your applications and to get access to all the features.
Files changed (241) hide show
  1. checksums.yaml +7 -0
  2. data/.expeditor/Version_inspector/README.md +21 -0
  3. data/.expeditor/Version_inspector/SW-Version-update.py +243 -0
  4. data/.expeditor/Version_inspector/manual_prod_list.json +29 -0
  5. data/.expeditor/Version_inspector/prod_default_version.json +103 -0
  6. data/.expeditor/Version_inspector/prod_list.json +194 -0
  7. data/.expeditor/Version_inspector/requirements.txt +4 -0
  8. data/.expeditor/Version_inspector/update_prod_default_version.sh +24 -0
  9. data/.expeditor/Version_inspector/update_prod_list.sh +35 -0
  10. data/.expeditor/config.yml +33 -0
  11. data/.expeditor/determine_version.sh +15 -0
  12. data/.expeditor/push_git_tag.sh +12 -0
  13. data/.expeditor/run_linux_tests.sh +16 -0
  14. data/.expeditor/verify.pipeline.yml +52 -0
  15. data/.github/CODEOWNERS +5 -0
  16. data/.github/ISSUE_TEMPLATE/BUG_TEMPLATE.md +29 -0
  17. data/.github/ISSUE_TEMPLATE/DESIGN_PROPOSAL.md +40 -0
  18. data/.github/ISSUE_TEMPLATE/ENHANCEMENT_REQUEST_TEMPLATE.md +17 -0
  19. data/.github/ISSUE_TEMPLATE/SUPPORT_QUESTION.md +11 -0
  20. data/.github/dependabot.yml +9 -0
  21. data/.github/lock.yml +1 -0
  22. data/.gitignore +17 -0
  23. data/CODE_OF_CONDUCT.md +1 -0
  24. data/CONTRIBUTING.md +1 -0
  25. data/Dockerfile +21 -0
  26. data/Gemfile +10 -0
  27. data/LICENSE +201 -0
  28. data/README.md +99 -0
  29. data/Rakefile +56 -0
  30. data/VERSION +1 -0
  31. data/config/patches/bash/race-condition.patch +15 -0
  32. data/config/patches/bzip2/aix_makefile.patch +11 -0
  33. data/config/patches/bzip2/makefile_no_bins.patch +77 -0
  34. data/config/patches/bzip2/makefile_take_env_vars.patch +31 -0
  35. data/config/patches/bzip2/soname_install_dir.patch +11 -0
  36. data/config/patches/curl/curl-aix-disable-alpn.patch +22 -0
  37. data/config/patches/curl/curl-freebsd-hostcheck.patch +10 -0
  38. data/config/patches/erlang/epmd-require-explicitly-adding-loopback-address.patch +84 -0
  39. data/config/patches/erlang/updated-epmd-require-explicitly-adding-loopback-address.patch +75 -0
  40. data/config/patches/expat/configure_xlc_visibility.patch +58 -0
  41. data/config/patches/expat/configure_xlc_visibility_2.4.7.patch +59 -0
  42. data/config/patches/figlet/aix-figlet-cdefs.patch +48 -0
  43. data/config/patches/gdbm/v1.8.3-Makefile.in.patch +32 -0
  44. data/config/patches/git/aix-endian-fix.patch +20 -0
  45. data/config/patches/gtar/aix_extra_case.patch +13 -0
  46. data/config/patches/keepalived/keepalived-1.2.9_opscode_centos_5.patch +15 -0
  47. data/config/patches/libedit/freebsd-vi-fix.patch +24 -0
  48. data/config/patches/libedit/openbsd-weak-alias-fix.patch +48 -0
  49. data/config/patches/libedit/solaris.patch +36 -0
  50. data/config/patches/libffi/libffi-3.2.1-disable-multi-os-directory.patch +83 -0
  51. data/config/patches/libffi/libffi-3.3-arm64.patch +9608 -0
  52. data/config/patches/libxslt/libxslt-solaris-configure.patch +19 -0
  53. data/config/patches/libxslt/libxslt-windows-relocate.patch +12 -0
  54. data/config/patches/libyaml/windows-configure.patch +26 -0
  55. data/config/patches/libzmq/zeromq-4.0.11_mingw_inet_pton.patch +37 -0
  56. data/config/patches/libzmq/zeromq-aix-4.2.2-LARGE_FILES.patch +56 -0
  57. data/config/patches/libzmq/zeromq-aix-4.2.2-atomic-counter-fetch_and_add.patch +59 -0
  58. data/config/patches/logrotate/logrotate_basedir_override.patch +17 -0
  59. data/config/patches/m4/m4-1.4.18-glibc-change-work-around.patch +115 -0
  60. data/config/patches/make/deb-make-glob.patch +31 -0
  61. data/config/patches/ncurses/ncurses-5.9-gcc-5.patch +46 -0
  62. data/config/patches/ncurses/ncurses-5.9-solaris-xopen_source_extended-detection.patch +11 -0
  63. data/config/patches/ncurses/ncurses-clang.patch +43 -0
  64. data/config/patches/ncurses/patch-aa +23 -0
  65. data/config/patches/ncurses/patch-ab +44 -0
  66. data/config/patches/ncurses/patch-ac +40 -0
  67. data/config/patches/ncurses/patch-ad +13 -0
  68. data/config/patches/ncurses/patch-cxx_cursesf.h +22 -0
  69. data/config/patches/ncurses/patch-cxx_cursesm.h +22 -0
  70. data/config/patches/ncurses/patch-ncurses_tinfo_lib__baudrate.c +24 -0
  71. data/config/patches/openssl/openssl-1.0.1f-do-not-build-docs.patch +28 -0
  72. data/config/patches/openssl/openssl-1.0.1j-windows-relocate-dll.patch +20 -0
  73. data/config/patches/openssl/openssl-1.0.1q-fix-compiler-flags-table-for-msys.patch +20 -0
  74. data/config/patches/openssl/openssl-1.0.2x-darwin-arm64.patch +54 -0
  75. data/config/patches/openssl/openssl-1.1.0f-do-not-install-docs.patch +11 -0
  76. data/config/patches/openssl/openssl-3.0.1-do-not-install-docs.patch +22 -0
  77. data/config/patches/openssl-fips/openssl-fips-fix-compiler-flags-table-for-msys.patch +11 -0
  78. data/config/patches/perl/perl-5.18.1-remove_lnsl.patch +441 -0
  79. data/config/patches/perl/perl-5.22.1-remove_lnsl.patch +512 -0
  80. data/config/patches/perl/perl-5.30.0-remove_lnsl.patch +518 -0
  81. data/config/patches/perl/perl-5.32.1-remove_lnsl.patch +456 -0
  82. data/config/patches/perl/perl-5.34.0-remove_lnsl.patch +516 -0
  83. data/config/patches/pkg-config/openbsd-charset.patch +19 -0
  84. data/config/patches/popt/v1.16.ppc64le-configure.patch +18 -0
  85. data/config/patches/redis/password-from-environment.patch +19 -0
  86. data/config/patches/ruby/patch-configure +103 -0
  87. data/config/patches/ruby/remove_nano.patch +10 -0
  88. data/config/patches/ruby/ruby-2.6.7_c99.patch +12 -0
  89. data/config/patches/ruby/ruby-3.0.1-configure.patch +281 -0
  90. data/config/patches/ruby/ruby-3.0.2-configure.patch +251 -0
  91. data/config/patches/ruby/ruby-aix-atomic.patch +11 -0
  92. data/config/patches/ruby/ruby-aix-configure_26_and_later.patch +19 -0
  93. data/config/patches/ruby/ruby-aix-vm-core.patch +14 -0
  94. data/config/patches/ruby/ruby-fast-load_26.patch +16 -0
  95. data/config/patches/ruby/ruby-fast-load_31.patch +16 -0
  96. data/config/patches/ruby/ruby-faster-load_26.patch +11 -0
  97. data/config/patches/ruby/ruby-faster-load_27.patch +11 -0
  98. data/config/patches/ruby/ruby-mkmf.patch +29 -0
  99. data/config/patches/ruby/ruby-no-stack-protector-strong.patch +11 -0
  100. data/config/patches/ruby/ruby-no-stack-protector.patch +13 -0
  101. data/config/patches/ruby/ruby-win32_warning_removal.patch +12 -0
  102. data/config/patches/ruby/ruby_aix_openssl.patch +10 -0
  103. data/config/patches/ruby/ruby_aix_ssl_EAGAIN.patch +19 -0
  104. data/config/patches/ruby/rvm-cflags.patch +27 -0
  105. data/config/patches/stunnel/stunnel-on-windows.patch +42 -0
  106. data/config/patches/zlib/zlib-windows-relocate.patch +20 -0
  107. data/config/software/autoconf.rb +46 -0
  108. data/config/software/automake.rb +49 -0
  109. data/config/software/bash.rb +72 -0
  110. data/config/software/berkshelf-no-depselector.rb +46 -0
  111. data/config/software/berkshelf.rb +34 -0
  112. data/config/software/binutils.rb +47 -0
  113. data/config/software/bundler.rb +38 -0
  114. data/config/software/bzip2.rb +55 -0
  115. data/config/software/cacerts.rb +50 -0
  116. data/config/software/chef-gem.rb +35 -0
  117. data/config/software/chef.rb +112 -0
  118. data/config/software/cmake.rb +94 -0
  119. data/config/software/config_guess.rb +37 -0
  120. data/config/software/cpanminus.rb +49 -0
  121. data/config/software/curl.rb +103 -0
  122. data/config/software/delivery-cli.rb +89 -0
  123. data/config/software/dep-selector-libgecode.rb +48 -0
  124. data/config/software/elasticsearch.rb +61 -0
  125. data/config/software/elixir.rb +35 -0
  126. data/config/software/erlang.rb +134 -0
  127. data/config/software/expat.rb +63 -0
  128. data/config/software/fakeroot.rb +41 -0
  129. data/config/software/ffi-yajl.rb +46 -0
  130. data/config/software/figlet-fonts.rb +31 -0
  131. data/config/software/figlet.rb +44 -0
  132. data/config/software/gcc.rb +60 -0
  133. data/config/software/gdbm.rb +54 -0
  134. data/config/software/gecode.rb +62 -0
  135. data/config/software/gem-permissions.rb +43 -0
  136. data/config/software/git-windows.rb +96 -0
  137. data/config/software/git.rb +138 -0
  138. data/config/software/gmp.rb +48 -0
  139. data/config/software/go-uninstall.rb +33 -0
  140. data/config/software/go.rb +116 -0
  141. data/config/software/google-protobuf.rb +45 -0
  142. data/config/software/gtar.rb +62 -0
  143. data/config/software/help2man.rb +40 -0
  144. data/config/software/highline-gem.rb +37 -0
  145. data/config/software/ibm-jre.rb +59 -0
  146. data/config/software/inspec.rb +43 -0
  147. data/config/software/jre-from-jdk.rb +67 -0
  148. data/config/software/keepalived.rb +68 -0
  149. data/config/software/libarchive.rb +71 -0
  150. data/config/software/libedit.rb +73 -0
  151. data/config/software/libffi.rb +68 -0
  152. data/config/software/libgcc.rb +52 -0
  153. data/config/software/libiconv.rb +55 -0
  154. data/config/software/libintl-perl.rb +56 -0
  155. data/config/software/liblzma.rb +59 -0
  156. data/config/software/libossp-uuid.rb +45 -0
  157. data/config/software/libsodium.rb +40 -0
  158. data/config/software/libtool.rb +56 -0
  159. data/config/software/libuuid.rb +45 -0
  160. data/config/software/libxml2.rb +63 -0
  161. data/config/software/libxslt.rb +64 -0
  162. data/config/software/libyajl2-gem.rb +44 -0
  163. data/config/software/libyaml.rb +50 -0
  164. data/config/software/libzmq.rb +93 -0
  165. data/config/software/logrotate.rb +61 -0
  166. data/config/software/lua.rb +46 -0
  167. data/config/software/m4.rb +40 -0
  168. data/config/software/make.rb +43 -0
  169. data/config/software/makedepend.rb +44 -0
  170. data/config/software/mpc.rb +44 -0
  171. data/config/software/mpfr.rb +45 -0
  172. data/config/software/musl.rb +107 -0
  173. data/config/software/mysql2.rb +50 -0
  174. data/config/software/ncurses.rb +159 -0
  175. data/config/software/nginx.rb +55 -0
  176. data/config/software/nodejs-binary.rb +90 -0
  177. data/config/software/nodejs.rb +58 -0
  178. data/config/software/nokogiri.rb +92 -0
  179. data/config/software/omnibus-ctl.rb +42 -0
  180. data/config/software/openresty.rb +94 -0
  181. data/config/software/opensearch.rb +54 -0
  182. data/config/software/openssl-customization.rb +81 -0
  183. data/config/software/openssl-fips.rb +81 -0
  184. data/config/software/openssl.rb +185 -0
  185. data/config/software/patch.rb +46 -0
  186. data/config/software/patchelf.rb +66 -0
  187. data/config/software/pcre.rb +53 -0
  188. data/config/software/perl-extutils-embed.rb +37 -0
  189. data/config/software/perl-extutils-makemaker.rb +46 -0
  190. data/config/software/perl-thread-queue.rb +40 -0
  191. data/config/software/perl.rb +78 -0
  192. data/config/software/perl_pg_driver.rb +45 -0
  193. data/config/software/pg-gem.rb +36 -0
  194. data/config/software/pkg-config-lite.rb +46 -0
  195. data/config/software/pkg-config.rb +66 -0
  196. data/config/software/popt.rb +54 -0
  197. data/config/software/postgresql.rb +70 -0
  198. data/config/software/preparation.rb +31 -0
  199. data/config/software/python.rb +79 -0
  200. data/config/software/rabbitmq.rb +58 -0
  201. data/config/software/rb-readline.rb +33 -0
  202. data/config/software/rbnacl-libsodium.rb +42 -0
  203. data/config/software/rbzmq.rb +44 -0
  204. data/config/software/rebar.rb +42 -0
  205. data/config/software/redis-gem.rb +36 -0
  206. data/config/software/redis.rb +51 -0
  207. data/config/software/relx.rb +39 -0
  208. data/config/software/rsync.rb +55 -0
  209. data/config/software/ruby-cleanup.rb +254 -0
  210. data/config/software/ruby-msys2-devkit.rb +77 -0
  211. data/config/software/ruby-windows-devkit-bash.rb +41 -0
  212. data/config/software/ruby-windows-devkit.rb +84 -0
  213. data/config/software/ruby.rb +306 -0
  214. data/config/software/rubygems.rb +73 -0
  215. data/config/software/runit.rb +67 -0
  216. data/config/software/rust-uninstall.rb +32 -0
  217. data/config/software/rust.rb +97 -0
  218. data/config/software/sequel-gem.rb +36 -0
  219. data/config/software/server-jre.rb +125 -0
  220. data/config/software/server-open-jre.rb +112 -0
  221. data/config/software/setuptools.rb +48 -0
  222. data/config/software/shebang-cleanup.rb +101 -0
  223. data/config/software/sqitch.rb +87 -0
  224. data/config/software/stunnel.rb +86 -0
  225. data/config/software/util-macros.rb +42 -0
  226. data/config/software/version-manifest.rb +33 -0
  227. data/config/software/xproto.rb +42 -0
  228. data/config/software/zlib.rb +85 -0
  229. data/config/templates/git/config.mak.erb +31 -0
  230. data/config/templates/rubygems/register_devtools.rb.erb +33 -0
  231. data/config/templates/runit/runsvdir-start.erb +42 -0
  232. data/docker-compose.yml +15 -0
  233. data/lib/omnibus-software/version.rb +3 -0
  234. data/lib/omnibus-software.rb +115 -0
  235. data/omnibus-software.gemspec +20 -0
  236. data/test/Gemfile +10 -0
  237. data/test/config/projects/test.rb +14 -0
  238. data/test/generate_steps.rb +55 -0
  239. data/test/omnibus-build.sh +50 -0
  240. data/test/omnibus.rb +55 -0
  241. metadata +296 -0
@@ -0,0 +1,103 @@
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"
@@ -0,0 +1,10 @@
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;
@@ -0,0 +1,12 @@
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;
@@ -0,0 +1,281 @@
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; }
@@ -0,0 +1,251 @@
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; }
@@ -0,0 +1,11 @@
1
+ --- ruby-2.1.2/ruby_atomic.h.orig 2014-09-29 14:08:29.000000000 -0500
2
+ +++ ruby-2.1.2/ruby_atomic.h 2014-09-29 14:08:41.000000000 -0500
3
+ @@ -117,7 +117,7 @@
4
+ # endif
5
+
6
+ #else
7
+ -typedef int rb_atomic_t;
8
+ +typedef long rb_atomic_t;
9
+ #define NEED_RUBY_ATOMIC_OPS
10
+ extern rb_atomic_t ruby_atomic_exchange(rb_atomic_t *ptr, rb_atomic_t val);
11
+ extern rb_atomic_t ruby_atomic_compare_and_swap(rb_atomic_t *ptr,
@@ -0,0 +1,19 @@
1
+ --- ruby-2.6.0/configure.orig 2019-01-28 19:31:52.000000000 -0800
2
+ +++ ruby-2.6.0/configure 2019-01-28 19:30:18.000000000 -0800
3
+ @@ -26791,6 +26791,7 @@
4
+ LDSHARED="$LDSHARED ${linker_flag}-G"
5
+
6
+ fi
7
+ + DLDFLAGS='-eInit_$(TARGET)'
8
+ EXTDLDFLAGS='-e$(TARGET_ENTRY)'
9
+ XLDFLAGS="${linker_flag}"'-bE:$(ARCHFILE)'" ${linker_flag}-brtl"
10
+ XLDFLAGS="$XLDFLAGS ${linker_flag}-blibpath:${prefix}/lib:${LIBPATH:-/usr/lib:/lib}"
11
+ @@ -28066,7 +28067,8 @@
12
+ esac
13
+ done
14
+ LIBRUBYARG_SHARED='-L${libdir} -l${RUBY_SO_NAME}'
15
+ - LIBS="$LIBS -lm -lc"
16
+ + LIBS="$LIBS -lm -lc -lz"
17
+ + LIBRUBY_SO='lib$(RUBY_SO_NAME).a'
18
+ ;; #(
19
+ darwin*) :
@@ -0,0 +1,14 @@
1
+ --- ruby-2.1.2/vm_core.h.orig 2014-09-29 14:05:24.000000000 -0500
2
+ +++ ruby-2.1.2/vm_core.h 2014-09-29 14:05:39.000000000 -0500
3
+ @@ -392,9 +392,9 @@
4
+
5
+ /* postponed_job */
6
+ struct rb_postponed_job_struct *postponed_job_buffer;
7
+ - int postponed_job_index;
8
+ + long postponed_job_index;
9
+
10
+ - int src_encoding_index;
11
+ + long src_encoding_index;
12
+
13
+ VALUE verbose, debug, orig_progname, progname;
14
+ VALUE coverages;