lang/ruby27-base: update to 2.7.3 Ruby 2.7.3 Released (2021-04-05) This release includes security fixes. Please check the topics below for details. * CVE-2021-28965: XML round-trip vulnerability in REXML * CVE-2021-28966: Path traversal in Tempfile on Windows See the commit logs for details.diff -r1.228 -r1.229 pkgsrc/lang/ruby/rubyversion.mk
(taca)
@@ -1,14 +1,14 @@ | @@ -1,14 +1,14 @@ | |||
1 | # $NetBSD: rubyversion.mk,v 1.228 2021/04/11 12:28:37 taca Exp $ | 1 | # $NetBSD: rubyversion.mk,v 1.229 2021/04/11 12:32:03 taca Exp $ | |
2 | # | 2 | # | |
3 | 3 | |||
4 | # This file determines which Ruby version is used as a dependency for | 4 | # This file determines which Ruby version is used as a dependency for | |
5 | # a package. | 5 | # a package. | |
6 | # | 6 | # | |
7 | # | 7 | # | |
8 | # === User-settable variables === | 8 | # === User-settable variables === | |
9 | # | 9 | # | |
10 | # RUBY_VERSION_DEFAULT | 10 | # RUBY_VERSION_DEFAULT | |
11 | # The preferered Ruby version to use. | 11 | # The preferered Ruby version to use. | |
12 | # | 12 | # | |
13 | # Possible values: 26 27 30 | 13 | # Possible values: 26 27 30 | |
14 | # Default: 26 | 14 | # Default: 26 | |
@@ -204,27 +204,27 @@ | @@ -204,27 +204,27 @@ | |||
204 | _RUBYVERSION_MK= # defined | 204 | _RUBYVERSION_MK= # defined | |
205 | 205 | |||
206 | .include "../../mk/bsd.prefs.mk" | 206 | .include "../../mk/bsd.prefs.mk" | |
207 | 207 | |||
208 | .if defined(PKGNAME_REQD) | 208 | .if defined(PKGNAME_REQD) | |
209 | . if !empty(PKGNAME_REQD:Mruby[0-9][0-9]-*) | 209 | . if !empty(PKGNAME_REQD:Mruby[0-9][0-9]-*) | |
210 | _RUBY_VERSION_REQD:= ${PKGNAME_REQD:C/ruby([0-9][0-9])-.*/\1/} | 210 | _RUBY_VERSION_REQD:= ${PKGNAME_REQD:C/ruby([0-9][0-9])-.*/\1/} | |
211 | RUBY_VERSION_REQD?= ${PKGNAME_REQD:C/ruby([0-9][0-9])-.*/\1/} | 211 | RUBY_VERSION_REQD?= ${PKGNAME_REQD:C/ruby([0-9][0-9])-.*/\1/} | |
212 | . endif | 212 | . endif | |
213 | .endif | 213 | .endif | |
214 | 214 | |||
215 | # current supported Ruby's version | 215 | # current supported Ruby's version | |
216 | RUBY26_VERSION= 2.6.7 | 216 | RUBY26_VERSION= 2.6.7 | |
217 | RUBY27_VERSION= 2.7.2 | 217 | RUBY27_VERSION= 2.7.3 | |
218 | RUBY30_VERSION= 3.0.0 | 218 | RUBY30_VERSION= 3.0.0 | |
219 | 219 | |||
220 | # current API compatible version; used for version of shared library | 220 | # current API compatible version; used for version of shared library | |
221 | RUBY26_API_VERSION= 2.6.0 | 221 | RUBY26_API_VERSION= 2.6.0 | |
222 | RUBY27_API_VERSION= 2.7.0 | 222 | RUBY27_API_VERSION= 2.7.0 | |
223 | RUBY30_API_VERSION= 3.0.0 | 223 | RUBY30_API_VERSION= 3.0.0 | |
224 | 224 | |||
225 | # | 225 | # | |
226 | RUBY_VERSION_DEFAULT?= 26 | 226 | RUBY_VERSION_DEFAULT?= 26 | |
227 | 227 | |||
228 | # supported Ruby's version | 228 | # supported Ruby's version | |
229 | RUBY_VERSIONS_SUPPORTED= 26 27 30 | 229 | RUBY_VERSIONS_SUPPORTED= 26 27 30 | |
230 | 230 | |||
@@ -352,33 +352,33 @@ RUBY_CSV_VERSION= 3.1.2 | @@ -352,33 +352,33 @@ RUBY_CSV_VERSION= 3.1.2 | |||
352 | RUBY_FILEUTILS_VERSION= 1.4.1 | 352 | RUBY_FILEUTILS_VERSION= 1.4.1 | |
353 | RUBY_FORWARDABLE_VERSION= 1.3.1 | 353 | RUBY_FORWARDABLE_VERSION= 1.3.1 | |
354 | RUBY_GETOPTLONG_VERSION= 0.1.0 | 354 | RUBY_GETOPTLONG_VERSION= 0.1.0 | |
355 | RUBY_IO_CONSOLE_VERSION= 0.5.6 | 355 | RUBY_IO_CONSOLE_VERSION= 0.5.6 | |
356 | 356 | |||
357 | RUBY_JSON_VERSION= 2.3.0 | 357 | RUBY_JSON_VERSION= 2.3.0 | |
358 | RUBY_LOGGER_VERSION= 1.4.2 | 358 | RUBY_LOGGER_VERSION= 1.4.2 | |
359 | RUBY_MATRIX_VERSION= 0.2.0 | 359 | RUBY_MATRIX_VERSION= 0.2.0 | |
360 | RUBY_MUTEX_M_VERSION= 0.1.0 | 360 | RUBY_MUTEX_M_VERSION= 0.1.0 | |
361 | RUBY_OPENSSL_VERSION= 2.1.2 | 361 | RUBY_OPENSSL_VERSION= 2.1.2 | |
362 | RUBY_OSTRUCT_VERSION= 0.2.0 | 362 | RUBY_OSTRUCT_VERSION= 0.2.0 | |
363 | RUBY_PRIME_VERSION= 0.1.1 | 363 | RUBY_PRIME_VERSION= 0.1.1 | |
364 | RUBY_PSYCH_VERSION= 3.1.0 | 364 | RUBY_PSYCH_VERSION= 3.1.0 | |
365 | RUBY_REXML_VERSION= 3.2.3 | 365 | RUBY_REXML_VERSION= 3.2.3.1 | |
366 | RUBY_RSS_VERSION= 0.2.8 | 366 | RUBY_RSS_VERSION= 0.2.8 | |
367 | RUBY_SDBM_VERSION= 1.0.0 | 367 | RUBY_SDBM_VERSION= 1.0.0 | |
368 | RUBY_STRINGIO_VERSION= 0.1.0 | 368 | RUBY_STRINGIO_VERSION= 0.1.0 | |
369 | RUBY_STRSCAN_VERSION= 1.0.3 | 369 | RUBY_STRSCAN_VERSION= 1.0.3 | |
370 | RUBY_TRACER_VERSION= 0.1.0 | 370 | RUBY_TRACER_VERSION= 0.1.0 | |
371 | RUBY_WEBRICK_VERSION= 1.6.0 | 371 | RUBY_WEBRICK_VERSION= 1.6.1 | |
372 | RUBY_ZLIB_VERSION= 1.1.0 | 372 | RUBY_ZLIB_VERSION= 1.1.0 | |
373 | 373 | |||
374 | RUBY_SUFFIX= ${_RUBY_VER_MAJOR}${_RUBY_VER_MINOR} | 374 | RUBY_SUFFIX= ${_RUBY_VER_MAJOR}${_RUBY_VER_MINOR} | |
375 | 375 | |||
376 | .elif ${RUBY_VER} == "30" | 376 | .elif ${RUBY_VER} == "30" | |
377 | RUBY_VERSION= ${RUBY30_VERSION} | 377 | RUBY_VERSION= ${RUBY30_VERSION} | |
378 | RUBY_ABI_VERSION= ${RUBY_VERSION} | 378 | RUBY_ABI_VERSION= ${RUBY_VERSION} | |
379 | 379 | |||
380 | RUBY_RDOC_VERSION= 6.3.0 | 380 | RUBY_RDOC_VERSION= 6.3.0 | |
381 | 381 | |||
382 | # bundled gems | 382 | # bundled gems | |
383 | RUBY_MINITEST_VERSION= 5.14.2 | 383 | RUBY_MINITEST_VERSION= 5.14.2 | |
384 | RUBY_POWER_ASSERT_VERSION= 1.2.0 | 384 | RUBY_POWER_ASSERT_VERSION= 1.2.0 |
@@ -1,14 +1,14 @@ | @@ -1,14 +1,14 @@ | |||
1 | @comment $NetBSD: PLIST,v 1.3 2020/10/04 03:29:25 taca Exp $ | 1 | @comment $NetBSD: PLIST,v 1.4 2021/04/11 12:32:03 taca Exp $ | |
2 | bin/bundle${RUBY_SUFFIX} | 2 | bin/bundle${RUBY_SUFFIX} | |
3 | bin/bundler${RUBY_SUFFIX} | 3 | bin/bundler${RUBY_SUFFIX} | |
4 | bin/erb${RUBY_SUFFIX} | 4 | bin/erb${RUBY_SUFFIX} | |
5 | bin/gem${RUBY_SUFFIX} | 5 | bin/gem${RUBY_SUFFIX} | |
6 | bin/irb${RUBY_SUFFIX} | 6 | bin/irb${RUBY_SUFFIX} | |
7 | bin/racc${RUBY_SUFFIX} | 7 | bin/racc${RUBY_SUFFIX} | |
8 | bin/racc2y${RUBY_SUFFIX} | 8 | bin/racc2y${RUBY_SUFFIX} | |
9 | bin/rake${RUBY_SUFFIX} | 9 | bin/rake${RUBY_SUFFIX} | |
10 | bin/rdoc${RUBY_SUFFIX} | 10 | bin/rdoc${RUBY_SUFFIX} | |
11 | bin/ri${RUBY_SUFFIX} | 11 | bin/ri${RUBY_SUFFIX} | |
12 | bin/${RUBY_NAME} | 12 | bin/${RUBY_NAME} | |
13 | bin/y2racc${RUBY_SUFFIX} | 13 | bin/y2racc${RUBY_SUFFIX} | |
14 | ${PLIST.win32}bin/rubyw${RUBY_SUFFIX} | 14 | ${PLIST.win32}bin/rubyw${RUBY_SUFFIX} | |
@@ -338,26 +338,34 @@ ${RUBY_LIB}/drb.rb | @@ -338,26 +338,34 @@ ${RUBY_LIB}/drb.rb | |||
338 | ${RUBY_LIB}/drb/acl.rb | 338 | ${RUBY_LIB}/drb/acl.rb | |
339 | ${RUBY_LIB}/drb/drb.rb | 339 | ${RUBY_LIB}/drb/drb.rb | |
340 | ${RUBY_LIB}/drb/eq.rb | 340 | ${RUBY_LIB}/drb/eq.rb | |
341 | ${RUBY_LIB}/drb/extserv.rb | 341 | ${RUBY_LIB}/drb/extserv.rb | |
342 | ${RUBY_LIB}/drb/extservm.rb | 342 | ${RUBY_LIB}/drb/extservm.rb | |
343 | ${RUBY_LIB}/drb/gw.rb | 343 | ${RUBY_LIB}/drb/gw.rb | |
344 | ${RUBY_LIB}/drb/invokemethod.rb | 344 | ${RUBY_LIB}/drb/invokemethod.rb | |
345 | ${RUBY_LIB}/drb/observer.rb | 345 | ${RUBY_LIB}/drb/observer.rb | |
346 | ${RUBY_LIB}/drb/ssl.rb | 346 | ${RUBY_LIB}/drb/ssl.rb | |
347 | ${RUBY_LIB}/drb/timeridconv.rb | 347 | ${RUBY_LIB}/drb/timeridconv.rb | |
348 | ${RUBY_LIB}/drb/unix.rb | 348 | ${RUBY_LIB}/drb/unix.rb | |
349 | ${RUBY_LIB}/drb/weakidconv.rb | 349 | ${RUBY_LIB}/drb/weakidconv.rb | |
350 | ${RUBY_LIB}/erb.rb | 350 | ${RUBY_LIB}/erb.rb | |
351 | ${RUBY_LIB}/exe/bundle | |||
352 | ${RUBY_LIB}/exe/bundler | |||
353 | ${RUBY_LIB}/exe/irb | |||
354 | ${RUBY_LIB}/exe/racc | |||
355 | ${RUBY_LIB}/exe/racc2y | |||
356 | ${RUBY_LIB}/exe/rdoc | |||
357 | ${RUBY_LIB}/exe/ri | |||
358 | ${RUBY_LIB}/exe/y2racc | |||
351 | ${RUBY_LIB}/expect.rb | 359 | ${RUBY_LIB}/expect.rb | |
352 | ${RUBY_LIB}/fileutils.rb | 360 | ${RUBY_LIB}/fileutils.rb | |
353 | ${RUBY_LIB}/find.rb | 361 | ${RUBY_LIB}/find.rb | |
354 | ${RUBY_LIB}/forwardable.rb | 362 | ${RUBY_LIB}/forwardable.rb | |
355 | ${RUBY_LIB}/forwardable/impl.rb | 363 | ${RUBY_LIB}/forwardable/impl.rb | |
356 | ${RUBY_LIB}/forwardable/version.rb | 364 | ${RUBY_LIB}/forwardable/version.rb | |
357 | ${RUBY_LIB}/getoptlong.rb | 365 | ${RUBY_LIB}/getoptlong.rb | |
358 | ${RUBY_LIB}/getoptlong/version.rb | 366 | ${RUBY_LIB}/getoptlong/version.rb | |
359 | ${PLIST.io}${RUBY_LIB}/io/console/size.rb | 367 | ${PLIST.io}${RUBY_LIB}/io/console/size.rb | |
360 | ${RUBY_LIB}/ipaddr.rb | 368 | ${RUBY_LIB}/ipaddr.rb | |
361 | ${RUBY_LIB}/irb.rb | 369 | ${RUBY_LIB}/irb.rb | |
362 | ${RUBY_LIB}/irb/cmd/chws.rb | 370 | ${RUBY_LIB}/irb/cmd/chws.rb | |
363 | ${RUBY_LIB}/irb/cmd/fork.rb | 371 | ${RUBY_LIB}/irb/cmd/fork.rb | |
@@ -992,26 +1000,28 @@ ${RUBY_LIB}/rubygems/source/installed.rb | @@ -992,26 +1000,28 @@ ${RUBY_LIB}/rubygems/source/installed.rb | |||
992 | ${RUBY_LIB}/rubygems/source/local.rb | 1000 | ${RUBY_LIB}/rubygems/source/local.rb | |
993 | ${RUBY_LIB}/rubygems/source/lock.rb | 1001 | ${RUBY_LIB}/rubygems/source/lock.rb | |
994 | ${RUBY_LIB}/rubygems/source/specific_file.rb | 1002 | ${RUBY_LIB}/rubygems/source/specific_file.rb | |
995 | ${RUBY_LIB}/rubygems/source/vendor.rb | 1003 | ${RUBY_LIB}/rubygems/source/vendor.rb | |
996 | ${RUBY_LIB}/rubygems/source_list.rb | 1004 | ${RUBY_LIB}/rubygems/source_list.rb | |
997 | ${RUBY_LIB}/rubygems/source_local.rb | 1005 | ${RUBY_LIB}/rubygems/source_local.rb | |
998 | ${RUBY_LIB}/rubygems/source_specific_file.rb | 1006 | ${RUBY_LIB}/rubygems/source_specific_file.rb | |
999 | ${RUBY_LIB}/rubygems/spec_fetcher.rb | 1007 | ${RUBY_LIB}/rubygems/spec_fetcher.rb | |
1000 | ${RUBY_LIB}/rubygems/specification.rb | 1008 | ${RUBY_LIB}/rubygems/specification.rb | |
1001 | ${RUBY_LIB}/rubygems/specification_policy.rb | 1009 | ${RUBY_LIB}/rubygems/specification_policy.rb | |
1002 | ${RUBY_LIB}/rubygems/ssl_certs/index.rubygems.org/GlobalSignRootCA.pem | 1010 | ${RUBY_LIB}/rubygems/ssl_certs/index.rubygems.org/GlobalSignRootCA.pem | |
1003 | ${RUBY_LIB}/rubygems/ssl_certs/rubygems.global.ssl.fastly.net/DigiCertHighAssuranceEVRootCA.pem | 1011 | ${RUBY_LIB}/rubygems/ssl_certs/rubygems.global.ssl.fastly.net/DigiCertHighAssuranceEVRootCA.pem | |
1004 | ${RUBY_LIB}/rubygems/ssl_certs/rubygems.org/AddTrustExternalCARoot.pem | 1012 | ${RUBY_LIB}/rubygems/ssl_certs/rubygems.org/AddTrustExternalCARoot.pem | |
1013 | ${RUBY_LIB}/rubygems/ssl_certs/rubygems.org/GlobalSignRootCA.pem | |||
1014 | ${RUBY_LIB}/rubygems/ssl_certs/rubygems.org/GlobalSignRootCA_R3.pem | |||
1005 | ${RUBY_LIB}/rubygems/stub_specification.rb | 1015 | ${RUBY_LIB}/rubygems/stub_specification.rb | |
1006 | ${RUBY_LIB}/rubygems/syck_hack.rb | 1016 | ${RUBY_LIB}/rubygems/syck_hack.rb | |
1007 | ${RUBY_LIB}/rubygems/test_case.rb | 1017 | ${RUBY_LIB}/rubygems/test_case.rb | |
1008 | ${RUBY_LIB}/rubygems/test_utilities.rb | 1018 | ${RUBY_LIB}/rubygems/test_utilities.rb | |
1009 | ${RUBY_LIB}/rubygems/text.rb | 1019 | ${RUBY_LIB}/rubygems/text.rb | |
1010 | ${RUBY_LIB}/rubygems/uninstaller.rb | 1020 | ${RUBY_LIB}/rubygems/uninstaller.rb | |
1011 | ${RUBY_LIB}/rubygems/uri_formatter.rb | 1021 | ${RUBY_LIB}/rubygems/uri_formatter.rb | |
1012 | ${RUBY_LIB}/rubygems/uri_parser.rb | 1022 | ${RUBY_LIB}/rubygems/uri_parser.rb | |
1013 | ${RUBY_LIB}/rubygems/uri_parsing.rb | 1023 | ${RUBY_LIB}/rubygems/uri_parsing.rb | |
1014 | ${RUBY_LIB}/rubygems/user_interaction.rb | 1024 | ${RUBY_LIB}/rubygems/user_interaction.rb | |
1015 | ${RUBY_LIB}/rubygems/util.rb | 1025 | ${RUBY_LIB}/rubygems/util.rb | |
1016 | ${RUBY_LIB}/rubygems/util/licenses.rb | 1026 | ${RUBY_LIB}/rubygems/util/licenses.rb | |
1017 | ${RUBY_LIB}/rubygems/util/list.rb | 1027 | ${RUBY_LIB}/rubygems/util/list.rb |
@@ -1,20 +1,20 @@ | @@ -1,20 +1,20 @@ | |||
1 | $NetBSD: distinfo,v 1.3 2020/10/04 03:29:25 taca Exp $ | 1 | $NetBSD: distinfo,v 1.4 2021/04/11 12:32:03 taca Exp $ | |
2 | 2 | |||
3 | SHA1 (ruby-2.7.2.tar.xz) = 82a1fe683460caa8edb6199707f2905634e5ffcc | 3 | SHA1 (ruby-2.7.3.tar.xz) = ce3d5203d5ab734df01e602c05f68f25249dc3e0 | |
4 | RMD160 (ruby-2.7.2.tar.xz) = fa7fc107e0c2085bf997d7e4ec78ae5636c6bfe2 | 4 | RMD160 (ruby-2.7.3.tar.xz) = f02628d9137618e6d0833b450cd8e78a06579c31 | |
5 | SHA512 (ruby-2.7.2.tar.xz) = 7972278b096aa768c7adf2befd26003e18781a29ca317640317d30d93d6e963ded197724c8e2f1dfe1e838c5647176d414a74732a62e931fb50d6f2e0f777349 | 5 | SHA512 (ruby-2.7.3.tar.xz) = b755d418b3bab2f9f6a8893afd13869269f17065643dde78b9e85ae3538a6d0617893db6e9c3908e00a40c7577a5c912a7c822d8f245cdcfb857be76dfb66c1e | |
6 | Size (ruby-2.7.2.tar.xz) = 12037052 bytes | 6 | Size (ruby-2.7.3.tar.xz) = 12073568 bytes | |
7 | SHA1 (patch-configure) = fd465910fe2cb6d6b1530e1071062591e84a9fd9 | 7 | SHA1 (patch-configure) = 5ee800f6824b18efd06e56a659235ea784819f2e | |
8 | SHA1 (patch-ext_dbm_extconf.rb) = c998f8735db54b1ae2bc8b6caa359ce88bc7a45b | 8 | SHA1 (patch-ext_dbm_extconf.rb) = c998f8735db54b1ae2bc8b6caa359ce88bc7a45b | |
9 | SHA1 (patch-lib_mkmf.rb) = 4a3cd18548dbdf43a13695d4e76f817c0347e335 | 9 | SHA1 (patch-lib_mkmf.rb) = 4a3cd18548dbdf43a13695d4e76f817c0347e335 | |
10 | SHA1 (patch-lib_rdoc_encoding.rb) = 0e82d2942d9bfcb67dc7c994889d7bc5ec2ae85a | 10 | SHA1 (patch-lib_rdoc_encoding.rb) = 0e82d2942d9bfcb67dc7c994889d7bc5ec2ae85a | |
11 | SHA1 (patch-lib_rdoc_ri_driver.rb) = f4d3e59e35b608acd4edc17916142c7f033e6198 | 11 | SHA1 (patch-lib_rdoc_ri_driver.rb) = f4d3e59e35b608acd4edc17916142c7f033e6198 | |
12 | SHA1 (patch-lib_rubygems.rb) = b38f58a852e920bed77a4be281d3703d26515ad0 | 12 | SHA1 (patch-lib_rubygems.rb) = 6f5ff6ca504c38ec3a521027dc4df8fa9d6683c3 | |
13 | SHA1 (patch-lib_rubygems_commands_setup__command.rb) = 181bb7554d760182588b0e1b0aafb84c317f41ad | 13 | SHA1 (patch-lib_rubygems_commands_setup__command.rb) = 181bb7554d760182588b0e1b0aafb84c317f41ad | |
14 | SHA1 (patch-lib_rubygems_defaults.rb) = 79cc5bb308d5ad4ee88f4fbcbb6f40663c05c05d | 14 | SHA1 (patch-lib_rubygems_defaults.rb) = 79cc5bb308d5ad4ee88f4fbcbb6f40663c05c05d | |
15 | SHA1 (patch-lib_rubygems_dependency__installer.rb) = 1776508907f17547ffe93f637d6f18d335061d76 | 15 | SHA1 (patch-lib_rubygems_dependency__installer.rb) = 1776508907f17547ffe93f637d6f18d335061d76 | |
16 | SHA1 (patch-lib_rubygems_install__update__options.rb) = 1e953b5a517a805fd7184e359fbc06e67a5ff9b3 | 16 | SHA1 (patch-lib_rubygems_install__update__options.rb) = 1e953b5a517a805fd7184e359fbc06e67a5ff9b3 | |
17 | SHA1 (patch-lib_rubygems_installer.rb) = bce2fe5bcc88ba15352c1e3017bdf97e19d0cbfa | 17 | SHA1 (patch-lib_rubygems_installer.rb) = bce2fe5bcc88ba15352c1e3017bdf97e19d0cbfa | |
18 | SHA1 (patch-lib_rubygems_platform.rb) = 8608f9e29728101789a990d73b4a6780054dd278 | 18 | SHA1 (patch-lib_rubygems_platform.rb) = 8608f9e29728101789a990d73b4a6780054dd278 | |
19 | SHA1 (patch-test_rubygems_test__gem.rb) = e624da5b9c49f9409160a7b0fdd2efad17986cab | 19 | SHA1 (patch-test_rubygems_test__gem.rb) = e624da5b9c49f9409160a7b0fdd2efad17986cab | |
20 | SHA1 (patch-thread__pthread.c) = ce3dfbc7e953cdd04522bcc8e443b60e541845ce | 20 | SHA1 (patch-thread__pthread.c) = ce3dfbc7e953cdd04522bcc8e443b60e541845ce |
@@ -1,131 +1,116 @@ | @@ -1,131 +1,116 @@ | |||
1 | $NetBSD: patch-configure,v 1.1 2020/03/15 15:26:22 taca Exp $ | 1 | $NetBSD: patch-configure,v 1.2 2021/04/11 12:32:03 taca Exp $ | |
2 | 2 | |||
3 | * Adding Interix support. | 3 | * Adding Interix support. | |
4 | * Ignore doxygen. | 4 | * Ignore doxygen. | |
5 | * Ignore VCS. | 5 | * Ignore VCS. | |
6 | * Handle SSP in pkgsrc. | 6 | * Handle SSP in pkgsrc. | |
7 | * Put -std= in CFLAGS not CPPFLAGS. | 7 | * Put -std= in CFLAGS not CPPFLAGS. | |
8 | * Fix argument for pthread_self() on NetBSD. | |||
9 | 8 | |||
10 | --- configure.orig 2019-12-17 15:08:45.000000000 +0000 | 9 | --- configure.orig 2021-04-05 12:39:40.000000000 +0000 | |
11 | +++ configure | 10 | +++ configure | |
12 | @@ -6469,7 +6469,7 @@ else | 11 | @@ -6469,7 +6469,7 @@ else | |
13 | if test x"$target_alias" = x; then : | 12 | if test x"$target_alias" = x; then : | |
14 | 13 | |||
15 | case "$target_os" in #( | 14 | case "$target_os" in #( | |
16 | - darwin*) : | 15 | - darwin*) : | |
17 | + nodarwin*) : | 16 | + nodarwin*) : | |
18 | 17 | |||
19 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for real target cpu" >&5 | 18 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for real target cpu" >&5 | |
20 | $as_echo_n "checking for real target cpu... " >&6; } | 19 | $as_echo_n "checking for real target cpu... " >&6; } | |
21 | @@ -8831,6 +8831,7 @@ fi | 20 | @@ -8839,6 +8839,7 @@ fi | |
22 | stack_protector=no | 21 | stack_protector=no | |
23 | ;; #( | 22 | ;; #( | |
24 | *) : | 23 | *) : | |
25 | + stack_protector=no | 24 | + stack_protector=no | |
26 | ;; | 25 | ;; | |
27 | esac | 26 | esac | |
28 | if test -z "${stack_protector+set}"; then : | 27 | if test -z "${stack_protector+set}"; then : | |
29 | @@ -10695,6 +10696,10 @@ esac | 28 | @@ -10703,6 +10704,10 @@ esac | |
30 | 29 | |||
31 | ac_cv_func___builtin_setjmp=no | 30 | ac_cv_func___builtin_setjmp=no | |
32 | ;; #( | 31 | ;; #( | |
33 | + interix*) : | 32 | + interix*) : | |
34 | + LIBS="-lm $LIBS" | 33 | + LIBS="-lm $LIBS" | |
35 | + ac_cv_func_getpgrp_void=yes | 34 | + ac_cv_func_getpgrp_void=yes | |
36 | + ;; #( | 35 | + ;; #( | |
37 | *) : | 36 | *) : | |
38 | ;; | 37 | ;; | |
39 | esac | 38 | esac | |
40 | @@ -22269,6 +22274,8 @@ else | 39 | @@ -22277,6 +22282,8 @@ else | |
41 | # ifdef _MSC_VER | 40 | # ifdef _MSC_VER | |
42 | # include <malloc.h> | 41 | # include <malloc.h> | |
43 | # define alloca _alloca | 42 | # define alloca _alloca | |
44 | +# elif defined(__NetBSD__) || defined(__FreeBSD__) || defined(__DragonFly__) || defined(__OpenBSD__) | 43 | +# elif defined(__NetBSD__) || defined(__FreeBSD__) || defined(__DragonFly__) || defined(__OpenBSD__) | |
45 | +# include <stdlib.h> | 44 | +# include <stdlib.h> | |
46 | # else | 45 | # else | |
47 | # ifdef HAVE_ALLOCA_H | 46 | # ifdef HAVE_ALLOCA_H | |
48 | # include <alloca.h> | 47 | # include <alloca.h> | |
49 | @@ -26817,11 +26824,11 @@ if ${rb_cv_func_pthread_setname_np_argum | 48 | @@ -27482,7 +27489,9 @@ fi | |
50 | else | |||
51 | rb_cv_func_pthread_setname_np_arguments= | |||
52 | # Linux,AIX, (pthread_self(), name) | |||
53 | - # NetBSD (pthread_self(), name, \"%s\") | |||
54 | + # NetBSD (pthread_self(), \"%s\", name) | |||
55 | # Darwin (name) | |||
56 | for mac in \ | |||
57 | "(pthread_self(), name)" \ | |||
58 | - "(pthread_self(), name, \"%s\")" \ | |||
59 | + "(pthread_self(), \"%s\", name)" \ | |||
60 | "(name)" \ | |||
61 | ; do | |||
62 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |||
63 | @@ -27415,7 +27422,9 @@ fi | |||
64 | interix*) : | 49 | interix*) : | |
65 | : ${LDSHARED='$(CC) -shared'} | 50 | : ${LDSHARED='$(CC) -shared'} | |
66 | XLDFLAGS="$XLDFLAGS -Wl,-E" | 51 | XLDFLAGS="$XLDFLAGS -Wl,-E" | |
67 | + DLDFLAGS="$DLDFLAGS "'-Wl,-h,$(.TARGET) -Wl,--image-base,$$(($$RANDOM %4096/2*262144+1342177280))' | 52 | + DLDFLAGS="$DLDFLAGS "'-Wl,-h,$(.TARGET) -Wl,--image-base,$$(($$RANDOM %4096/2*262144+1342177280))' | |
68 | LIBPATHFLAG=" -L%1\$-s" | 53 | LIBPATHFLAG=" -L%1\$-s" | |
69 | + RPATHFLAG=' -Wl,-R%1$-s' | 54 | + RPATHFLAG=' -Wl,-R%1$-s' | |
70 | rb_cv_dlopen=yes ;; #( | 55 | rb_cv_dlopen=yes ;; #( | |
71 | freebsd*|dragonfly*) : | 56 | freebsd*|dragonfly*) : | |
72 | 57 | |||
73 | @@ -28676,7 +28685,7 @@ fi | 58 | @@ -28743,7 +28752,7 @@ fi | |
74 | ;; #( | 59 | ;; #( | |
75 | freebsd*|dragonfly*) : | 60 | freebsd*|dragonfly*) : | |
76 | 61 | |||
77 | - LIBRUBY_SO='lib$(RUBY_SO_NAME).$(SOEXT).$(MAJOR)$(MINOR)' | 62 | - LIBRUBY_SO='lib$(RUBY_SO_NAME).$(SOEXT).$(MAJOR)$(MINOR)' | |
78 | + LIBRUBY_SO='lib$(RUBY_SO_NAME).$(SOEXT).$(MAJOR)$(MINOR)$(TEENY)' | 63 | + LIBRUBY_SO='lib$(RUBY_SO_NAME).$(SOEXT).$(MAJOR)$(MINOR)$(TEENY)' | |
79 | LIBRUBY_SONAME='$(LIBRUBY_SO)' | 64 | LIBRUBY_SONAME='$(LIBRUBY_SO)' | |
80 | if test "$rb_cv_binary_elf" != "yes" ; then : | 65 | if test "$rb_cv_binary_elf" != "yes" ; then : | |
81 | 66 | |||
82 | @@ -28755,9 +28764,10 @@ esac | 67 | @@ -28822,9 +28831,10 @@ esac | |
83 | ;; #( | 68 | ;; #( | |
84 | darwin*) : | 69 | darwin*) : | |
85 | 70 | |||
86 | + RUBY_SO_NAME="${RUBY_SO_NAME}"'.$(RUBY_PROGRAM_VERSION)' | 71 | + RUBY_SO_NAME="${RUBY_SO_NAME}"'.$(RUBY_PROGRAM_VERSION)' | |
87 | LIBRUBY_SO='lib$(RUBY_SO_NAME).$(SOEXT)' | 72 | LIBRUBY_SO='lib$(RUBY_SO_NAME).$(SOEXT)' | |
88 | - LIBRUBY_SONAME='$(LIBRUBY_SO)' | 73 | - LIBRUBY_SONAME='$(LIBRUBY_SO)' | |
89 | - LIBRUBY_ALIASES='lib$(RUBY_INSTALL_NAME).$(SOEXT)' | 74 | - LIBRUBY_ALIASES='lib$(RUBY_INSTALL_NAME).$(SOEXT)' | |
90 | + LIBRUBY_SONAME='lib$(RUBY_BASE_NAME).$(RUBY_API_VERSION).$(SOEXT)' | 75 | + LIBRUBY_SONAME='lib$(RUBY_BASE_NAME).$(RUBY_API_VERSION).$(SOEXT)' | |
91 | + LIBRUBY_ALIASES='$(LIBRUBY_SONAME) lib$(RUBY_INSTALL_NAME).$(SOEXT)' | 76 | + LIBRUBY_ALIASES='$(LIBRUBY_SONAME) lib$(RUBY_INSTALL_NAME).$(SOEXT)' | |
92 | if test "$load_relative" = yes; then : | 77 | if test "$load_relative" = yes; then : | |
93 | 78 | |||
94 | libprefix="@executable_path/../${libdir_basename}" | 79 | libprefix="@executable_path/../${libdir_basename}" | |
95 | @@ -28778,7 +28788,12 @@ fi | 80 | @@ -28845,7 +28855,12 @@ fi | |
96 | ;; #( | 81 | ;; #( | |
97 | interix*) : | 82 | interix*) : | |
98 | 83 | |||
99 | - LIBRUBYARG_SHARED='-L. -L${libdir} -l$(RUBY_SO_NAME)' | 84 | - LIBRUBYARG_SHARED='-L. -L${libdir} -l$(RUBY_SO_NAME)' | |
100 | + SOLIBS='$(LIBS)' | 85 | + SOLIBS='$(LIBS)' | |
101 | + LIBRUBY_SO='lib$(RUBY_SO_NAME).so.$(MAJOR)$(MINOR).$(TEENY)' | 86 | + LIBRUBY_SO='lib$(RUBY_SO_NAME).so.$(MAJOR)$(MINOR).$(TEENY)' | |
102 | + # link explicitly to 0x48000000 | 87 | + # link explicitly to 0x48000000 | |
103 | + LIBRUBY_DLDFLAGS='-Wl,-h,lib$(RUBY_SO_NAME).so.$(MAJOR)$(MINOR) -Wl,--image-base,1207959552' | 88 | + LIBRUBY_DLDFLAGS='-Wl,-h,lib$(RUBY_SO_NAME).so.$(MAJOR)$(MINOR) -Wl,--image-base,1207959552' | |
104 | + LIBRUBYARG_SHARED='-Wl,-R -Wl,${PREFIX}/lib} -L${libdir} -L. -l$(RUBY_SO_NAME)' | 89 | + LIBRUBYARG_SHARED='-Wl,-R -Wl,${PREFIX}/lib} -L${libdir} -L. -l$(RUBY_SO_NAME)' | |
105 | + LIBRUBY_ALIASES='lib$(RUBY_SO_NAME).so.$(MAJOR)$(MINOR) lib$(RUBY_SO_NAME).so' | 90 | + LIBRUBY_ALIASES='lib$(RUBY_SO_NAME).so.$(MAJOR)$(MINOR) lib$(RUBY_SO_NAME).so' | |
106 | ;; #( | 91 | ;; #( | |
107 | mingw*|cygwin*|mswin*) : | 92 | mingw*|cygwin*|mswin*) : | |
108 | 93 | |||
109 | @@ -28960,7 +28975,7 @@ if test "$enable_rpath" = yes; then : | 94 | @@ -29027,7 +29042,7 @@ if test "$enable_rpath" = yes; then : | |
110 | esac | 95 | esac | |
111 | rpathflag=`IFS="$PATH_SEPARATOR" | 96 | rpathflag=`IFS="$PATH_SEPARATOR" | |
112 | echo x "$rpathflag" | | 97 | echo x "$rpathflag" | | |
113 | - sed "s/^x *//;s${IFS}"'%1\\$-s'"${IFS}${libprefix}${IFS}g;s${IFS}%s${IFS}${libprefix}${IFS}g" | 98 | - sed "s/^x *//;s${IFS}"'%1\\$-s'"${IFS}${libprefix}${IFS}g;s${IFS}%s${IFS}${libprefix}${IFS}g" | |
114 | + sed "s/^x *//;s${IFS}"'%1\\$-s'"${IFS}${libprefix}${IFS}g;s${IFS}%s${IFS}${PREFIX}/lib${IFS}g" | 99 | + sed "s/^x *//;s${IFS}"'%1\\$-s'"${IFS}${libprefix}${IFS}g;s${IFS}%s${IFS}${PREFIX}/lib${IFS}g" | |
115 | ` | 100 | ` | |
116 | LIBRUBY_RPATHFLAGS="$LIBRUBY_RPATHFLAGS${rpathflag}" | 101 | LIBRUBY_RPATHFLAGS="$LIBRUBY_RPATHFLAGS${rpathflag}" | |
117 | LIBRUBYARG_SHARED="$LIBRUBY_RPATHFLAGS $LIBRUBYARG_SHARED" | 102 | LIBRUBYARG_SHARED="$LIBRUBY_RPATHFLAGS $LIBRUBYARG_SHARED" | |
118 | @@ -31684,19 +31699,7 @@ which seems to be undefined. Please mak | 103 | @@ -31751,19 +31766,7 @@ which seems to be undefined. Please mak | |
119 | "Makefile":F) | 104 | "Makefile":F) | |
120 | tmpmk=confmk$$.tmp | 105 | tmpmk=confmk$$.tmp | |
121 | { | 106 | { | |
122 | - if test ${VCS+set}; then : | 107 | - if test ${VCS+set}; then : | |
123 | - | 108 | - | |
124 | - : | 109 | - : | |
125 | - | 110 | - | |
126 | -elif git_dir=`$GIT --work-tree="$srcdir" --git-dir="$srcdir/.git" rev-parse --git-dir 2>/dev/null`; then : | 111 | -elif git_dir=`$GIT --work-tree="$srcdir" --git-dir="$srcdir/.git" rev-parse --git-dir 2>/dev/null`; then : | |
127 | - | 112 | - | |
128 | - VCS='$(GIT)' | 113 | - VCS='$(GIT)' | |
129 | - | 114 | - | |
130 | -else | 115 | -else | |
131 | - | 116 | - |
@@ -1,44 +1,44 @@ | @@ -1,44 +1,44 @@ | |||
1 | $NetBSD: patch-lib_rubygems.rb,v 1.1 2020/03/15 15:26:22 taca Exp $ | 1 | $NetBSD: patch-lib_rubygems.rb,v 1.2 2021/04/11 12:32:03 taca Exp $ | |
2 | 2 | |||
3 | * Add install_root option for pkgsrc's rubygems support. | 3 | * Add install_root option for pkgsrc's rubygems support. | |
4 | 4 | |||
5 | --- lib/rubygems.rb.orig 2018-12-23 00:20:49.000000000 +0000 | 5 | --- lib/rubygems.rb.orig 2021-04-05 12:39:38.000000000 +0000 | |
6 | +++ lib/rubygems.rb | 6 | +++ lib/rubygems.rb | |
7 | @@ -317,10 +317,16 @@ module Gem | 7 | @@ -311,10 +311,16 @@ module Gem | |
8 | ## | 8 | ## | |
9 | # The path where gem executables are to be installed. | 9 | # The path where gem executables are to be installed. | |
10 | 10 | |||
11 | - def self.bindir(install_dir=Gem.dir) | 11 | - def self.bindir(install_dir=Gem.dir) | |
12 | - return File.join install_dir, 'bin' unless | 12 | - return File.join install_dir, 'bin' unless | |
13 | - install_dir.to_s == Gem.default_dir.to_s | 13 | - install_dir.to_s == Gem.default_dir.to_s | |
14 | - Gem.default_bindir | 14 | - Gem.default_bindir | |
15 | + def self.bindir(install_dir=Gem.dir, install_root=nil) | 15 | + def self.bindir(install_dir=Gem.dir, install_root=nil) | |
16 | + if install_dir.to_s == Gem.default_dir.to_s | 16 | + if install_dir.to_s == Gem.default_dir.to_s | |
17 | + install_dir = Gem.default_bindir | 17 | + install_dir = Gem.default_bindir | |
18 | + else | 18 | + else | |
19 | + install_dir = File.join install_dir, 'bin' | 19 | + install_dir = File.join install_dir, 'bin' | |
20 | + end | 20 | + end | |
21 | + unless install_root.nil? or install_root.empty? | 21 | + unless install_root.nil? or install_root.empty? | |
22 | + install_dir = File.join install_root, install_dir | 22 | + install_dir = File.join install_root, install_dir | |
23 | + end | 23 | + end | |
24 | + install_dir | 24 | + install_dir | |
25 | end | 25 | end | |
26 | 26 | |||
27 | ## | 27 | ## | |
28 | @@ -661,7 +667,7 @@ An Array (#{env.inspect}) was passed in | 28 | @@ -657,7 +663,7 @@ An Array (#{env.inspect}) was passed in | |
29 | return i if path.instance_variable_defined?(:@gem_prelude_index) | 29 | return i if path.instance_variable_defined?(:@gem_prelude_index) | |
30 | end | 30 | end | |
31 | 31 | |||
32 | - index = $LOAD_PATH.index RbConfig::CONFIG['sitelibdir'] | 32 | - index = $LOAD_PATH.index RbConfig::CONFIG['sitelibdir'] | |
33 | + index = $LOAD_PATH.index RbConfig::CONFIG['vendordir'] | 33 | + index = $LOAD_PATH.index RbConfig::CONFIG['vendordir'] | |
34 | 34 | |||
35 | index | 35 | index || 0 | |
36 | end | 36 | end | |
37 | @@ -835,6 +841,7 @@ An Array (#{env.inspect}) was passed in | 37 | @@ -849,6 +855,7 @@ An Array (#{env.inspect}) was passed in | |
38 | prefix = File.dirname RUBYGEMS_DIR | 38 | prefix = File.dirname RUBYGEMS_DIR | |
39 | 39 | |||
40 | if prefix != File.expand_path(RbConfig::CONFIG['sitelibdir']) and | 40 | if prefix != File.expand_path(RbConfig::CONFIG['sitelibdir']) and | |
41 | + prefix != File.expand_path(RbConfig::CONFIG['vendordir']) and | 41 | + prefix != File.expand_path(RbConfig::CONFIG['vendordir']) and | |
42 | prefix != File.expand_path(RbConfig::CONFIG['libdir']) and | 42 | prefix != File.expand_path(RbConfig::CONFIG['libdir']) and | |
43 | 'lib' == File.basename(RUBYGEMS_DIR) | 43 | 'lib' == File.basename(RUBYGEMS_DIR) | |
44 | prefix | 44 | prefix |