Pullup ticket #4261 - requested by taca lang/ruby200-base: security update Revisions pulled up: - lang/ruby/rubyversion.mk 1.106 - lang/ruby200-base/Makefile 1.5 - lang/ruby200-base/PLIST 1.2 - lang/ruby200-base/distinfo 1.7 - lang/ruby200-base/patches/patch-configure 1.4 - lang/ruby200-base/patches/patch-ext_tk_extconf.rb deleted - lang/ruby200-base/patches/patch-lib_rubygems.rb 1.2 - lang/ruby200-base/patches/patch-lib_rubygems_commands_setup__command.rb 1.2 - lang/ruby200-base/patches/patch-lib_rubygems_config__file.rb 1.2 - lang/ruby200-base/patches/patch-lib_rubygems_dependency__installer.rb 1.2 - lang/ruby200-base/patches/patch-lib_rubygems_ext_ext__conf__builder.rb deleted - lang/ruby200-base/patches/patch-lib_rubygems_installer.rb 1.2 - lang/ruby200-base/patches/patch-lib_rubygems_specification.rb 1.2 - lang/ruby200-base/patches/patch-lib_rubygems_version.rb deleted - lang/ruby200-base/patches/patch-man_ri.1 1.2 - lang/ruby200-base/patches/patch-tool_rbinstall.rb 1.2 --- Module Name: pkgsrc Committed By: taca Date: Sun Nov 24 14:22:03 UTC 2013 Modified Files: pkgsrc/lang/ruby: rubyversion.mk pkgsrc/lang/ruby200-base: Makefile PLIST distinfo pkgsrc/lang/ruby200-base/patches: patch-configure patch-lib_rubygems.rb patch-lib_rubygems_commands_setup__command.rb patch-lib_rubygems_config__file.rb patch-lib_rubygems_dependency__installer.rb patch-lib_rubygems_installer.rb patch-lib_rubygems_specification.rb patch-man_ri.1 patch-tool_rbinstall.rb Removed Files: pkgsrc/lang/ruby200-base/patches: patch-ext_tk_extconf.rb patch-lib_rubygems_ext_ext__conf__builder.rb patch-lib_rubygems_version.rb Log Message: Update ruby200-base, ruby200 and ruby-mode package to 2.00-p353. Ruby 2.0.0-p353 is released Now Ruby 2.0.0-p353 is released. This release includes a security fix about floating point parsing. Heap Overflow in Floating Point Parsing (CVE-2013-4164) And some bugfixes are also included. See tickets and ChangeLog for details.diff -r1.101.2.3 -r1.101.2.4 pkgsrc/lang/ruby/rubyversion.mk
(tron)
@@ -1,14 +1,14 @@ | @@ -1,14 +1,14 @@ | |||
1 | # $NetBSD: rubyversion.mk,v 1.101.2.3 2013/12/01 11:34:00 tron Exp $ | 1 | # $NetBSD: rubyversion.mk,v 1.101.2.4 2013/12/01 11:47:59 tron 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: 18 193 200 | 13 | # Possible values: 18 193 200 | |
14 | # Default: 193 | 14 | # Default: 193 | |
@@ -198,27 +198,27 @@ | @@ -198,27 +198,27 @@ | |||
198 | .if !defined(_RUBYVERSION_MK) | 198 | .if !defined(_RUBYVERSION_MK) | |
199 | _RUBYVERSION_MK= # defined | 199 | _RUBYVERSION_MK= # defined | |
200 | 200 | |||
201 | .include "../../mk/bsd.prefs.mk" | 201 | .include "../../mk/bsd.prefs.mk" | |
202 | 202 | |||
203 | # current supported Ruby's version | 203 | # current supported Ruby's version | |
204 | RUBY18_VERSION= 1.8.7 | 204 | RUBY18_VERSION= 1.8.7 | |
205 | RUBY193_VERSION= 1.9.3 | 205 | RUBY193_VERSION= 1.9.3 | |
206 | RUBY200_VERSION= 2.0.0 | 206 | RUBY200_VERSION= 2.0.0 | |
207 | 207 | |||
208 | # patch | 208 | # patch | |
209 | RUBY18_PATCHLEVEL= pl374 | 209 | RUBY18_PATCHLEVEL= pl374 | |
210 | RUBY193_PATCHLEVEL= p484 | 210 | RUBY193_PATCHLEVEL= p484 | |
211 | RUBY200_PATCHLEVEL= p247 | 211 | RUBY200_PATCHLEVEL= p353 | |
212 | 212 | |||
213 | # current API compatible version; used for version of shared library | 213 | # current API compatible version; used for version of shared library | |
214 | RUBY18_API_VERSION= 1.8.7 | 214 | RUBY18_API_VERSION= 1.8.7 | |
215 | RUBY193_API_VERSION= 1.9.1 | 215 | RUBY193_API_VERSION= 1.9.1 | |
216 | RUBY200_API_VERSION= 2.0.0 | 216 | RUBY200_API_VERSION= 2.0.0 | |
217 | 217 | |||
218 | # | 218 | # | |
219 | RUBY_VERSION_DEFAULT?= 193 | 219 | RUBY_VERSION_DEFAULT?= 193 | |
220 | 220 | |||
221 | RUBY_VERSION_SUPPORTED?= 200 193 18 | 221 | RUBY_VERSION_SUPPORTED?= 200 193 18 | |
222 | 222 | |||
223 | .if defined(RUBY_VERSION_REQD) | 223 | .if defined(RUBY_VERSION_REQD) | |
224 | . for rv in ${RUBY_VERSION_SUPPORTED} | 224 | . for rv in ${RUBY_VERSION_SUPPORTED} |
@@ -1,19 +1,18 @@ | @@ -1,19 +1,18 @@ | |||
1 | # $NetBSD: Makefile,v 1.4 2013/09/30 08:31:00 taca Exp $ | 1 | # $NetBSD: Makefile,v 1.4.2.1 2013/12/01 11:47:59 tron Exp $ | |
2 | # | 2 | # | |
3 | 3 | |||
4 | DISTNAME= ${RUBY_DISTNAME} | 4 | DISTNAME= ${RUBY_DISTNAME} | |
5 | PKGNAME= ${RUBY_PKGPREFIX}-base-${RUBY_VERSION_FULL} | 5 | PKGNAME= ${RUBY_PKGPREFIX}-base-${RUBY_VERSION_FULL} | |
6 | PKGREVISION= 2 | |||
7 | CATEGORIES= lang ruby | 6 | CATEGORIES= lang ruby | |
8 | MASTER_SITES= ${MASTER_SITE_RUBY} | 7 | MASTER_SITES= ${MASTER_SITE_RUBY} | |
9 | 8 | |||
10 | MAINTAINER= taca@NetBSD.org | 9 | MAINTAINER= taca@NetBSD.org | |
11 | HOMEPAGE= ${RUBY_HOMEPAGE} | 10 | HOMEPAGE= ${RUBY_HOMEPAGE} | |
12 | COMMENT= Ruby ${RUBY_VERSION} release minimum base package | 11 | COMMENT= Ruby ${RUBY_VERSION} release minimum base package | |
13 | LICENSE= ${RUBY_LICENSE} | 12 | LICENSE= ${RUBY_LICENSE} | |
14 | 13 | |||
15 | RUBY_VERSION_SUPPORTED= 200 | 14 | RUBY_VERSION_SUPPORTED= 200 | |
16 | 15 | |||
17 | MAKE_JOBS_SAFE= no | 16 | MAKE_JOBS_SAFE= no | |
18 | USE_LANGUAGES= c | 17 | USE_LANGUAGES= c | |
19 | USE_TOOLS+= pax yacc | 18 | USE_TOOLS+= pax yacc |
@@ -1,14 +1,14 @@ | @@ -1,14 +1,14 @@ | |||
1 | @comment $NetBSD: PLIST,v 1.1 2013/07/21 02:32:58 taca Exp $ | 1 | @comment $NetBSD: PLIST,v 1.1.2.1 2013/12/01 11:47:59 tron Exp $ | |
2 | bin/erb${RUBY_VER} | 2 | bin/erb${RUBY_VER} | |
3 | bin/gem${RUBY_VER} | 3 | bin/gem${RUBY_VER} | |
4 | bin/irb${RUBY_VER} | 4 | bin/irb${RUBY_VER} | |
5 | bin/rake${RUBY_VER} | 5 | bin/rake${RUBY_VER} | |
6 | bin/rdoc${RUBY_VER} | 6 | bin/rdoc${RUBY_VER} | |
7 | bin/ri${RUBY_VER} | 7 | bin/ri${RUBY_VER} | |
8 | bin/${RUBY_NAME} | 8 | bin/${RUBY_NAME} | |
9 | ${PLIST.win32}bin/rubyw${RUBY_VER} | 9 | ${PLIST.win32}bin/rubyw${RUBY_VER} | |
10 | bin/testrb${RUBY_VER} | 10 | bin/testrb${RUBY_VER} | |
11 | ${RUBY_INC}/ruby.h | 11 | ${RUBY_INC}/ruby.h | |
12 | ${RUBY_INC}/ruby/backward/classext.h | 12 | ${RUBY_INC}/ruby/backward/classext.h | |
13 | ${RUBY_INC}/ruby/backward/rubyio.h | 13 | ${RUBY_INC}/ruby/backward/rubyio.h | |
14 | ${RUBY_INC}/ruby/backward/rubysig.h | 14 | ${RUBY_INC}/ruby/backward/rubysig.h | |
@@ -653,31 +653,30 @@ ${RUBY_LIB}/rubygems/request_set.rb | @@ -653,31 +653,30 @@ ${RUBY_LIB}/rubygems/request_set.rb | |||
653 | ${RUBY_LIB}/rubygems/requirement.rb | 653 | ${RUBY_LIB}/rubygems/requirement.rb | |
654 | ${RUBY_LIB}/rubygems/security.rb | 654 | ${RUBY_LIB}/rubygems/security.rb | |
655 | ${RUBY_LIB}/rubygems/security/policies.rb | 655 | ${RUBY_LIB}/rubygems/security/policies.rb | |
656 | ${RUBY_LIB}/rubygems/security/policy.rb | 656 | ${RUBY_LIB}/rubygems/security/policy.rb | |
657 | ${RUBY_LIB}/rubygems/security/signer.rb | 657 | ${RUBY_LIB}/rubygems/security/signer.rb | |
658 | ${RUBY_LIB}/rubygems/security/trust_dir.rb | 658 | ${RUBY_LIB}/rubygems/security/trust_dir.rb | |
659 | ${RUBY_LIB}/rubygems/server.rb | 659 | ${RUBY_LIB}/rubygems/server.rb | |
660 | ${RUBY_LIB}/rubygems/source.rb | 660 | ${RUBY_LIB}/rubygems/source.rb | |
661 | ${RUBY_LIB}/rubygems/source_list.rb | 661 | ${RUBY_LIB}/rubygems/source_list.rb | |
662 | ${RUBY_LIB}/rubygems/source_local.rb | 662 | ${RUBY_LIB}/rubygems/source_local.rb | |
663 | ${RUBY_LIB}/rubygems/source_specific_file.rb | 663 | ${RUBY_LIB}/rubygems/source_specific_file.rb | |
664 | ${RUBY_LIB}/rubygems/spec_fetcher.rb | 664 | ${RUBY_LIB}/rubygems/spec_fetcher.rb | |
665 | ${RUBY_LIB}/rubygems/specification.rb | 665 | ${RUBY_LIB}/rubygems/specification.rb | |
666 | ${RUBY_LIB}/rubygems/ssl_certs/AddTrustExternalCARoot.pem | 666 | ${RUBY_LIB}/rubygems/ssl_certs/Class3PublicPrimaryCertificationAuthority.pem | |
667 | ${RUBY_LIB}/rubygems/ssl_certs/Entrust_net-Secure-Server-Certification-Authority.pem | 667 | ${RUBY_LIB}/rubygems/ssl_certs/DigiCertHighAssuranceEVRootCA.pem | |
668 | ${RUBY_LIB}/rubygems/ssl_certs/GeoTrust_Global_CA.pem | 668 | ${RUBY_LIB}/rubygems/ssl_certs/EntrustnetSecureServerCertificationAuthority.pem | |
669 | ${RUBY_LIB}/rubygems/ssl_certs/VerisignClass3PublicPrimaryCertificationAuthority-G2.pem | 669 | ${RUBY_LIB}/rubygems/ssl_certs/GeoTrustGlobalCA.pem | |
670 | ${RUBY_LIB}/rubygems/ssl_certs/ca-bundle.pem | |||
671 | ${RUBY_LIB}/rubygems/syck_hack.rb | 670 | ${RUBY_LIB}/rubygems/syck_hack.rb | |
672 | ${RUBY_LIB}/rubygems/test_case.rb | 671 | ${RUBY_LIB}/rubygems/test_case.rb | |
673 | ${RUBY_LIB}/rubygems/test_utilities.rb | 672 | ${RUBY_LIB}/rubygems/test_utilities.rb | |
674 | ${RUBY_LIB}/rubygems/text.rb | 673 | ${RUBY_LIB}/rubygems/text.rb | |
675 | ${RUBY_LIB}/rubygems/uninstaller.rb | 674 | ${RUBY_LIB}/rubygems/uninstaller.rb | |
676 | ${RUBY_LIB}/rubygems/user_interaction.rb | 675 | ${RUBY_LIB}/rubygems/user_interaction.rb | |
677 | ${RUBY_LIB}/rubygems/validator.rb | 676 | ${RUBY_LIB}/rubygems/validator.rb | |
678 | ${RUBY_LIB}/rubygems/version.rb | 677 | ${RUBY_LIB}/rubygems/version.rb | |
679 | ${RUBY_LIB}/rubygems/version_option.rb | 678 | ${RUBY_LIB}/rubygems/version_option.rb | |
680 | ${RUBY_LIB}/scanf.rb | 679 | ${RUBY_LIB}/scanf.rb | |
681 | ${RUBY_LIB}/securerandom.rb | 680 | ${RUBY_LIB}/securerandom.rb | |
682 | ${RUBY_LIB}/set.rb | 681 | ${RUBY_LIB}/set.rb | |
683 | ${RUBY_LIB}/shell.rb | 682 | ${RUBY_LIB}/shell.rb |
@@ -1,28 +1,25 @@ | @@ -1,28 +1,25 @@ | |||
1 | $NetBSD: distinfo,v 1.4.2.1 2013/11/10 08:52:53 spz Exp $ | 1 | $NetBSD: distinfo,v 1.4.2.2 2013/12/01 11:47:59 tron Exp $ | |
2 | 2 | |||
3 | SHA1 (ruby-2.0.0-p247.tar.bz2) = 9d3e5758c87a2c8016aec246f278b7551f8cb675 | 3 | SHA1 (ruby-2.0.0-p353.tar.bz2) = 0be863f1c39d7764c52cbb79ca06105743e27c42 | |
4 | RMD160 (ruby-2.0.0-p247.tar.bz2) = 4a3b6653f17c145c6938c538022c199f830a0dee | 4 | RMD160 (ruby-2.0.0-p353.tar.bz2) = e12445ef618953c89d1c198899b6a3a959fc55f2 | |
5 | Size (ruby-2.0.0-p247.tar.bz2) = 10804581 bytes | 5 | Size (ruby-2.0.0-p353.tar.bz2) = 10730412 bytes | |
6 | SHA1 (patch-configure) = f8d9591dacfb8723c0c1dd8eb37309fe80905061 | 6 | SHA1 (patch-configure) = 5e0897ef60a14073e87427911b45c2b238bbe2a3 | |
7 | SHA1 (patch-defs_default__gems) = 28a47952e27c22055bac6ad151d092572b96b1ec | 7 | SHA1 (patch-defs_default__gems) = 28a47952e27c22055bac6ad151d092572b96b1ec | |
8 | SHA1 (patch-ext_tk_extconf.rb) = 537db204c7a766602529ce48ef89a2fc7cbda19f | |||
9 | SHA1 (patch-lib_rdoc_ri_driver.rb) = 53ce4055b4c008c8ee13d38a81334d4846debdbc | 8 | SHA1 (patch-lib_rdoc_ri_driver.rb) = 53ce4055b4c008c8ee13d38a81334d4846debdbc | |
10 | SHA1 (patch-lib_rubygems.rb) = ebb230dbfdeecaf764fd089d2aa1baaac1dbd34b | 9 | SHA1 (patch-lib_rubygems.rb) = 589ca26a32579f87c2d3d0e8e7f03348760f4b4e | |
11 | SHA1 (patch-lib_rubygems_commands_setup__command.rb) = 266f1059d3d180637eec4fa3f1ea127a29b4aff8 | 10 | SHA1 (patch-lib_rubygems_commands_setup__command.rb) = 46991d63256d0d3cc2f707fb286d1691331ad40e | |
12 | SHA1 (patch-lib_rubygems_commands_uninstall__command.rb) = f39435fbdbbfcc8c756e54fcbec89a4ff796ee2d | 11 | SHA1 (patch-lib_rubygems_commands_uninstall__command.rb) = f39435fbdbbfcc8c756e54fcbec89a4ff796ee2d | |
13 | SHA1 (patch-lib_rubygems_commands_unpack__command.rb) = 58af5f0d1a185183ff9a4b4828ef1ca9fc074e05 | 12 | SHA1 (patch-lib_rubygems_commands_unpack__command.rb) = 58af5f0d1a185183ff9a4b4828ef1ca9fc074e05 | |
14 | SHA1 (patch-lib_rubygems_config__file.rb) = cb7e22fa912d7043aabde8c916c45108b51e5361 | 13 | SHA1 (patch-lib_rubygems_config__file.rb) = 0d863d3f886c1ed83585d96064725e7db7bec1bc | |
15 | SHA1 (patch-lib_rubygems_defaults.rb) = 1af4161a83c0bf5b894c4ab3f4a77d4ee4183985 | 14 | SHA1 (patch-lib_rubygems_defaults.rb) = 1af4161a83c0bf5b894c4ab3f4a77d4ee4183985 | |
16 | SHA1 (patch-lib_rubygems_dependency__installer.rb) = 501860ee30861b5a1e4cf75502334145ce57f575 | 15 | SHA1 (patch-lib_rubygems_dependency__installer.rb) = a2f0d03924a70e8e6cb30736e0f3807e5baa520d | |
17 | SHA1 (patch-lib_rubygems_ext_ext__conf__builder.rb) = 63b6b67116073fa2fc11ece20dc9a232b322604a | |||
18 | SHA1 (patch-lib_rubygems_install__update__options.rb) = 22cfafe090db72211253b8528937e5be0e677ebf | 16 | SHA1 (patch-lib_rubygems_install__update__options.rb) = 22cfafe090db72211253b8528937e5be0e677ebf | |
19 | SHA1 (patch-lib_rubygems_installer.rb) = ef2ab9f965fc7946e68c8d751d3c21a2c676f343 | 17 | SHA1 (patch-lib_rubygems_installer.rb) = 2dbcb3fc03c9a02112f196351fca77d766d6c6f6 | |
20 | SHA1 (patch-lib_rubygems_specification.rb) = 4ffe57953051f2e091ae94e022b40146f8bec7aa | 18 | SHA1 (patch-lib_rubygems_specification.rb) = 3e9e95178127da862add4141665b80d965874f21 | |
21 | SHA1 (patch-lib_rubygems_uninstaller.rb) = bf525fc55e9bf94e1561a7cac76e09873d3aaca2 | 19 | SHA1 (patch-lib_rubygems_uninstaller.rb) = bf525fc55e9bf94e1561a7cac76e09873d3aaca2 | |
22 | SHA1 (patch-lib_rubygems_version.rb) = fd5fd3bfad7e66f44d2829b31e1db2417d3010e4 | |||
23 | SHA1 (patch-man_erb.1) = 1fe6ce4f4fe6418bfabb5e132a63596562030116 | 20 | SHA1 (patch-man_erb.1) = 1fe6ce4f4fe6418bfabb5e132a63596562030116 | |
24 | SHA1 (patch-man_irb.1) = 2bf807b4c1b1c68d1f518caa054cfd900e0fedb7 | 21 | SHA1 (patch-man_irb.1) = 2bf807b4c1b1c68d1f518caa054cfd900e0fedb7 | |
25 | SHA1 (patch-man_ri.1) = 7314829a437e3c4625188a818e18751997eda1ce | 22 | SHA1 (patch-man_ri.1) = af855135020f18c361cc55af676adc75e26bf4d3 | |
26 | SHA1 (patch-man_ruby.1) = 5bc1e2e7c4c640659e33d0131d0982ce4e0d9fe0 | 23 | SHA1 (patch-man_ruby.1) = 5bc1e2e7c4c640659e33d0131d0982ce4e0d9fe0 | |
27 | SHA1 (patch-test_rubygems_test__gem.rb) = 32ba1a7a2e9f6174297de969fc0b7cdcd083c764 | 24 | SHA1 (patch-test_rubygems_test__gem.rb) = 32ba1a7a2e9f6174297de969fc0b7cdcd083c764 | |
28 | SHA1 (patch-tool_rbinstall.rb) = 3921235e77c9a75e19ad08434f055422ffdf3f2a | 25 | SHA1 (patch-tool_rbinstall.rb) = 287064ed2bc90e92cdc1b38fc4031d65819d3843 |
@@ -1,148 +1,148 @@ | @@ -1,148 +1,148 @@ | |||
1 | $NetBSD: patch-configure,v 1.2.2.1 2013/11/10 08:52:53 spz Exp $ | 1 | $NetBSD: patch-configure,v 1.2.2.2 2013/12/01 11:47:59 tron Exp $ | |
2 | 2 | |||
3 | * Adding Interix and MirBSD support. | 3 | * Adding Interix and MirBSD support. | |
4 | * Ignore doxygen. | 4 | * Ignore doxygen. | |
5 | 5 | |||
6 | --- configure.orig 2013-06-27 11:16:17.000000000 +0000 | 6 | --- configure.orig 2013-11-22 04:23:39.000000000 +0000 | |
7 | +++ configure | 7 | +++ configure | |
8 | @@ -8259,6 +8259,10 @@ esac | 8 | @@ -8260,6 +8260,10 @@ esac | |
9 | superux*) : | 9 | superux*) : | |
10 | ac_cv_func_setitimer=no | 10 | ac_cv_func_setitimer=no | |
11 | ;; #( | 11 | ;; #( | |
12 | + interix*) : | 12 | + interix*) : | |
13 | + LIBS="-lm $LIBS" | 13 | + LIBS="-lm $LIBS" | |
14 | + ac_cv_func_getpgrp_void=yes | 14 | + ac_cv_func_getpgrp_void=yes | |
15 | + ;; #( | 15 | + ;; #( | |
16 | nacl) : | 16 | nacl) : | |
17 | 17 | |||
18 | LIBS="-lm $LIBS" | 18 | LIBS="-lm $LIBS" | |
19 | @@ -14793,7 +14797,7 @@ _ACEOF | 19 | @@ -14794,7 +14798,7 @@ _ACEOF | |
20 | fi | 20 | fi | |
21 | 21 | |||
22 | case "$target_os" in #( | 22 | case "$target_os" in #( | |
23 | - openbsd*) : | 23 | - openbsd*) : | |
24 | + openbsd*|mirbsd*) : | 24 | + openbsd*|mirbsd*) : | |
25 | 25 | |||
26 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for heap align log on openbsd" >&5 | 26 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for heap align log on openbsd" >&5 | |
27 | $as_echo_n "checking for heap align log on openbsd... " >&6; } | 27 | $as_echo_n "checking for heap align log on openbsd... " >&6; } | |
28 | @@ -15067,6 +15071,8 @@ else | 28 | @@ -15068,6 +15072,8 @@ else | |
29 | # ifdef _MSC_VER | 29 | # ifdef _MSC_VER | |
30 | # include <malloc.h> | 30 | # include <malloc.h> | |
31 | # define alloca _alloca | 31 | # define alloca _alloca | |
32 | +# elif defined(__NetBSD__) || defined(__FreeBSD__) || defined(__DragonFly__) || defined(__OpenBSD__) | 32 | +# elif defined(__NetBSD__) || defined(__FreeBSD__) || defined(__DragonFly__) || defined(__OpenBSD__) | |
33 | +# include <stdlib.h> | 33 | +# include <stdlib.h> | |
34 | # else | 34 | # else | |
35 | # ifdef HAVE_ALLOCA_H | 35 | # ifdef HAVE_ALLOCA_H | |
36 | # include <alloca.h> | 36 | # include <alloca.h> | |
37 | @@ -17061,7 +17067,7 @@ done | 37 | @@ -17074,7 +17080,7 @@ done | |
38 | MAINLIBS="-pthread $MAINLIBS" ;; #( | 38 | MAINLIBS="-pthread $MAINLIBS" ;; #( | |
39 | *) : | 39 | *) : | |
40 | case "$target_os" in #( | 40 | case "$target_os" in #( | |
41 | - openbsd*) : | 41 | - openbsd*) : | |
42 | + openbsd*|mirbsd*) : | 42 | + openbsd*|mirbsd*) : | |
43 | LIBS="-pthread $LIBS" ;; #( | 43 | LIBS="-pthread $LIBS" ;; #( | |
44 | *) : | 44 | *) : | |
45 | LIBS="-l$pthread_lib $LIBS" ;; | 45 | LIBS="-l$pthread_lib $LIBS" ;; | |
46 | @@ -17434,7 +17440,9 @@ esac ;; #( | 46 | @@ -17447,7 +17453,9 @@ esac ;; #( | |
47 | interix*) : | 47 | interix*) : | |
48 | : ${LDSHARED='$(CC) -shared'} | 48 | : ${LDSHARED='$(CC) -shared'} | |
49 | XLDFLAGS="$XLDFLAGS -Wl,-E" | 49 | XLDFLAGS="$XLDFLAGS -Wl,-E" | |
50 | + DLDFLAGS="$DLDFLAGS "'-Wl,-h,$(.TARGET) -Wl,--image-base,$$(($$RANDOM %4096/2*262144+1342177280))' | 50 | + DLDFLAGS="$DLDFLAGS "'-Wl,-h,$(.TARGET) -Wl,--image-base,$$(($$RANDOM %4096/2*262144+1342177280))' | |
51 | LIBPATHFLAG=" -L%1\$-s" | 51 | LIBPATHFLAG=" -L%1\$-s" | |
52 | + RPATHFLAG=' -Wl,-R%1$-s' | 52 | + RPATHFLAG=' -Wl,-R%1$-s' | |
53 | rb_cv_dlopen=yes ;; #( | 53 | rb_cv_dlopen=yes ;; #( | |
54 | freebsd*|dragonfly*) : | 54 | freebsd*|dragonfly*) : | |
55 | 55 | |||
56 | @@ -18254,7 +18262,7 @@ esac | 56 | @@ -18270,7 +18278,7 @@ esac | |
57 | freebsd*|dragonfly*) : | 57 | freebsd*|dragonfly*) : | |
58 | 58 | |||
59 | SOLIBS='$(LIBS)' | 59 | SOLIBS='$(LIBS)' | |
60 | - LIBRUBY_SO='lib$(RUBY_SO_NAME).so.$(MAJOR)$(MINOR)' | 60 | - LIBRUBY_SO='lib$(RUBY_SO_NAME).so.$(MAJOR)$(MINOR)' | |
61 | + LIBRUBY_SO='lib$(RUBY_SO_NAME).so.$(MAJOR)$(MINOR)$(TEENY)' | 61 | + LIBRUBY_SO='lib$(RUBY_SO_NAME).so.$(MAJOR)$(MINOR)$(TEENY)' | |
62 | if test "$rb_cv_binary_elf" != "yes" ; then | 62 | if test "$rb_cv_binary_elf" != "yes" ; then | |
63 | LIBRUBY_SO="$LIBRUBY_SO.\$(TEENY)" | 63 | LIBRUBY_SO="$LIBRUBY_SO.\$(TEENY)" | |
64 | LIBRUBY_ALIASES='' | 64 | LIBRUBY_ALIASES='' | |
65 | @@ -18271,7 +18279,7 @@ esac | 65 | @@ -18287,7 +18295,7 @@ esac | |
66 | LIBRUBY_ALIASES="" | 66 | LIBRUBY_ALIASES="" | |
67 | fi | 67 | fi | |
68 | ;; #( | 68 | ;; #( | |
69 | - openbsd*) : | 69 | - openbsd*) : | |
70 | + openbsd*|mirbsd*) : | 70 | + openbsd*|mirbsd*) : | |
71 | 71 | |||
72 | SOLIBS='$(LIBS)' | 72 | SOLIBS='$(LIBS)' | |
73 | LIBRUBY_SO='lib$(RUBY_SO_NAME).so.$(MAJOR).'`expr ${MINOR} \* 10 + ${TEENY}` | 73 | LIBRUBY_SO='lib$(RUBY_SO_NAME).so.$(MAJOR).'`expr ${MINOR} \* 10 + ${TEENY}` | |
74 | @@ -18332,7 +18340,12 @@ esac | 74 | @@ -18348,7 +18356,12 @@ esac | |
75 | ;; #( | 75 | ;; #( | |
76 | interix*) : | 76 | interix*) : | |
77 | 77 | |||
78 | - LIBRUBYARG_SHARED='-L. -L${libdir} -l$(RUBY_SO_NAME)' | 78 | - LIBRUBYARG_SHARED='-L. -L${libdir} -l$(RUBY_SO_NAME)' | |
79 | + SOLIBS='$(LIBS)' | 79 | + SOLIBS='$(LIBS)' | |
80 | + LIBRUBY_SO='lib$(RUBY_SO_NAME).so.$(MAJOR)$(MINOR).$(TEENY)' | 80 | + LIBRUBY_SO='lib$(RUBY_SO_NAME).so.$(MAJOR)$(MINOR).$(TEENY)' | |
81 | + # link explicitly to 0x48000000 | 81 | + # link explicitly to 0x48000000 | |
82 | + LIBRUBY_DLDFLAGS='-Wl,-h,lib$(RUBY_SO_NAME).so.$(MAJOR)$(MINOR) -Wl,--image-base,1207959552' | 82 | + LIBRUBY_DLDFLAGS='-Wl,-h,lib$(RUBY_SO_NAME).so.$(MAJOR)$(MINOR) -Wl,--image-base,1207959552' | |
83 | + LIBRUBYARG_SHARED='-Wl,-R -Wl,${PREFIX}/lib} -L${libdir} -L. -l$(RUBY_SO_NAME)' | 83 | + LIBRUBYARG_SHARED='-Wl,-R -Wl,${PREFIX}/lib} -L${libdir} -L. -l$(RUBY_SO_NAME)' | |
84 | + LIBRUBY_ALIASES='lib$(RUBY_SO_NAME).so.$(MAJOR)$(MINOR) lib$(RUBY_SO_NAME).so' | 84 | + LIBRUBY_ALIASES='lib$(RUBY_SO_NAME).so.$(MAJOR)$(MINOR) lib$(RUBY_SO_NAME).so' | |
85 | ;; #( | 85 | ;; #( | |
86 | mingw*|cygwin*|mswin*) : | 86 | mingw*|cygwin*|mswin*) : | |
87 | 87 | |||
88 | @@ -18490,7 +18503,7 @@ esac | 88 | @@ -18506,7 +18519,7 @@ esac | |
89 | esac | 89 | esac | |
90 | if test "$enable_rpath" = yes; then | 90 | if test "$enable_rpath" = yes; then | |
91 | test -z "$LIBRUBY_RPATHFLAGS" || LIBRUBY_RPATHFLAGS="$LIBRUBY_RPATHFLAGS " | 91 | test -z "$LIBRUBY_RPATHFLAGS" || LIBRUBY_RPATHFLAGS="$LIBRUBY_RPATHFLAGS " | |
92 | - LIBRUBY_RPATHFLAGS="$LIBRUBY_RPATHFLAGS${linker_flag}-R ${linker_flag}${libprefix} -L\$(libdir)" | 92 | - LIBRUBY_RPATHFLAGS="$LIBRUBY_RPATHFLAGS${linker_flag}-R ${linker_flag}${libprefix} -L\$(libdir)" | |
93 | + LIBRUBY_RPATHFLAGS="$LIBRUBY_RPATHFLAGS${linker_flag}-R ${linker_flag}${PREFIX}/lib -L\$(libdir)" | 93 | + LIBRUBY_RPATHFLAGS="$LIBRUBY_RPATHFLAGS${linker_flag}-R ${linker_flag}${PREFIX}/lib -L\$(libdir)" | |
94 | LIBRUBYARG_SHARED="$LIBRUBY_RPATHFLAGS $LIBRUBYARG_SHARED" | 94 | LIBRUBYARG_SHARED="$LIBRUBY_RPATHFLAGS $LIBRUBYARG_SHARED" | |
95 | LIBRUBYARG_STATIC="$LIBRUBY_RPATHFLAGS $LIBRUBYARG_STATIC" | 95 | LIBRUBYARG_STATIC="$LIBRUBY_RPATHFLAGS $LIBRUBYARG_STATIC" | |
96 | fi | 96 | fi | |
97 | @@ -18655,11 +18668,7 @@ if test "$install_doc" != no; then | 97 | @@ -18677,11 +18690,7 @@ if test "$install_doc" != no; then | |
98 | else | 98 | else | |
99 | RDOCTARGET="nodoc" | 99 | RDOCTARGET="nodoc" | |
100 | fi | 100 | fi | |
101 | - if test "$install_capi" != no -a -n "$DOXYGEN"; then | 101 | - if test "$install_capi" != no -a -n "$DOXYGEN"; then | |
102 | - CAPITARGET="capi" | 102 | - CAPITARGET="capi" | |
103 | - else | 103 | - else | |
104 | - CAPITARGET="nodoc" | 104 | - CAPITARGET="nodoc" | |
105 | - fi | 105 | - fi | |
106 | + CAPITARGET="nodoc" | 106 | + CAPITARGET="nodoc" | |
107 | else | 107 | else | |
108 | RDOCTARGET="nodoc" | 108 | RDOCTARGET="nodoc" | |
109 | CAPITARGET="nodoc" | 109 | CAPITARGET="nodoc" | |
110 | @@ -19210,9 +19219,13 @@ unexpand_shvar() { | 110 | @@ -19232,9 +19241,13 @@ unexpand_shvar() { | |
111 | test "$#" -eq 0 && return | 111 | test "$#" -eq 0 && return | |
112 | for n do | 112 | for n do | |
113 | eval v='"$'$n'"' | 113 | eval v='"$'$n'"' | |
114 | - v="`echo \"$v\" | sed -e 's/${[^${}\"]*}/\"&\"/g' -e 's/[][$|.\\?*]/\\\\&/g'`" | 114 | - v="`echo \"$v\" | sed -e 's/${[^${}\"]*}/\"&\"/g' -e 's/[][$|.\\?*]/\\\\&/g'`" | |
115 | + v="`echo \"$v\" | sed -e 's/\${[^${}\"]*}/\"&\"/g' -e 's/[][$|.\\?*]/\\\\&/g'`" | 115 | + v="`echo \"$v\" | sed -e 's/\${[^${}\"]*}/\"&\"/g' -e 's/[][$|.\\?*]/\\\\&/g'`" | |
116 | if test -n "$v"; then | 116 | if test -n "$v"; then | |
117 | - expr="${expr};s|"'\("[^$"]*\)'"$v|\\1\${$n}\"|g" | 117 | - expr="${expr};s|"'\("[^$"]*\)'"$v|\\1\${$n}\"|g" | |
118 | + if test -n "$expr"; then | 118 | + if test -n "$expr"; then | |
119 | + expr="${expr};s|"'\("[^$"]*\)'"$v|\\1\${$n}\"|g" | 119 | + expr="${expr};s|"'\("[^$"]*\)'"$v|\\1\${$n}\"|g" | |
120 | + else | 120 | + else | |
121 | + expr="s|"'\("[^$"]*\)'"$v|\\1\${$n}\"|g" | 121 | + expr="s|"'\("[^$"]*\)'"$v|\\1\${$n}\"|g" | |
122 | + fi | 122 | + fi | |
123 | case "$v" in #( | 123 | case "$v" in #( | |
124 | *'${'*'}'*) : | 124 | *'${'*'}'*) : | |
125 | expr="$expr;s|$v|\"\${$n}\"|g" ;; #( | 125 | expr="$expr;s|$v|\"\${$n}\"|g" ;; #( | |
126 | @@ -19221,7 +19234,7 @@ unexpand_shvar() { | 126 | @@ -19243,7 +19256,7 @@ unexpand_shvar() { | |
127 | esac | 127 | esac | |
128 | fi | 128 | fi | |
129 | done | 129 | done | |
130 | - expr='s/${[^${}"]*}/"&"/g;'"${expr};"'s/"\(\${[^${}"]*}\)"/\1/g' | 130 | - expr='s/${[^${}"]*}/"&"/g;'"${expr};"'s/"\(\${[^${}"]*}\)"/\1/g' | |
131 | + expr='s/\${[^${}"]*}/"&"/g;'"${expr};"'s/"\(\${[^${}"]*}\)"/\1/g' | 131 | + expr='s/\${[^${}"]*}/"&"/g;'"${expr};"'s/"\(\${[^${}"]*}\)"/\1/g' | |
132 | eval $var='"`echo \"\\\"${'$var'}\\\"\" | sed \"$expr;s/\\\"//g\"`"' | 132 | eval $var='"`echo \"\\\"${'$var'}\\\"\" | sed \"$expr;s/\\\"//g\"`"' | |
133 | } | 133 | } | |
134 | 134 | |||
135 | @@ -20884,17 +20897,7 @@ which seems to be undefined. Please mak | 135 | @@ -20906,17 +20919,7 @@ which seems to be undefined. Please mak | |
136 | "Makefile":F) | 136 | "Makefile":F) | |
137 | tmpmk=confmk$$.tmp | 137 | tmpmk=confmk$$.tmp | |
138 | { | 138 | { | |
139 | - if test ${VCS+set}; then | 139 | - if test ${VCS+set}; then | |
140 | - : | 140 | - : | |
141 | - elif svn info "$srcdir" > /dev/null 2>&1; then | 141 | - elif svn info "$srcdir" > /dev/null 2>&1; then | |
142 | - VCS='svn' | 142 | - VCS='svn' | |
143 | - elif test -d "$srcdir/.git/svn"; then | 143 | - elif test -d "$srcdir/.git/svn"; then | |
144 | - VCS='git svn' | 144 | - VCS='git svn' | |
145 | - elif test -d "$srcdir/.git"; then | 145 | - elif test -d "$srcdir/.git"; then | |
146 | - VCS='git' | 146 | - VCS='git' | |
147 | - else | 147 | - else | |
148 | - VCS='echo cannot' | 148 | - VCS='echo cannot' |
@@ -1,41 +1,41 @@ | @@ -1,41 +1,41 @@ | |||
1 | $NetBSD: patch-lib_rubygems.rb,v 1.1 2013/07/21 02:32:58 taca Exp $ | 1 | $NetBSD: patch-lib_rubygems.rb,v 1.1.2.1 2013/12/01 11:47:59 tron 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 2013-06-21 16:16:31.000000000 +0000 | 5 | --- lib/rubygems.rb.orig 2013-11-13 02:59:08.000000000 +0000 | |
6 | +++ lib/rubygems.rb | 6 | +++ lib/rubygems.rb | |
7 | @@ -286,7 +286,10 @@ module Gem | 7 | @@ -291,7 +291,10 @@ 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 | + def self.bindir(install_dir=Gem.dir, install_root=nil) | 12 | + def self.bindir(install_dir=Gem.dir, install_root=nil) | |
13 | + unless install_root.nil? | 13 | + unless install_root.nil? | |
14 | + install_dir = install_dir.sub(install_root, "") | 14 | + install_dir = install_dir.sub(install_root, "") | |
15 | + end | 15 | + end | |
16 | # TODO: move to Gem::Dirs | 16 | # TODO: move to Gem::Dirs | |
17 | return File.join install_dir, 'bin' unless | 17 | return File.join install_dir, 'bin' unless | |
18 | install_dir.to_s == Gem.default_dir.to_s | 18 | install_dir.to_s == Gem.default_dir.to_s | |
19 | @@ -546,12 +549,12 @@ module Gem | 19 | @@ -551,12 +554,12 @@ module Gem | |
20 | ## | 20 | ## | |
21 | # The index to insert activated gem paths into the $LOAD_PATH. | 21 | # The index to insert activated gem paths into the $LOAD_PATH. | |
22 | # | 22 | # | |
23 | - # Defaults to the site lib directory unless gem_prelude.rb has loaded paths, | 23 | - # Defaults to the site lib directory unless gem_prelude.rb has loaded paths, | |
24 | + # Defaults to the vendor lib directory unless gem_prelude.rb has loaded paths, | 24 | + # Defaults to the vendor lib directory unless gem_prelude.rb has loaded paths, | |
25 | # then it inserts the activated gem's paths before the gem_prelude.rb paths | 25 | # then it inserts the activated gem's paths before the gem_prelude.rb paths | |
26 | # so you can override the gem_prelude.rb default $LOAD_PATH paths. | 26 | # so you can override the gem_prelude.rb default $LOAD_PATH paths. | |
27 | 27 | |||
28 | def self.load_path_insert_index | 28 | def self.load_path_insert_index | |
29 | - index = $LOAD_PATH.index ConfigMap[:sitelibdir] | 29 | - index = $LOAD_PATH.index ConfigMap[:sitelibdir] | |
30 | + index = $LOAD_PATH.index ConfigMap[:vendorlibdir] | 30 | + index = $LOAD_PATH.index ConfigMap[:vendorlibdir] | |
31 | 31 | |||
32 | index | 32 | index | |
33 | end | 33 | end | |
34 | @@ -724,6 +727,7 @@ module Gem | 34 | @@ -729,6 +732,7 @@ module Gem | |
35 | prefix = File.dirname RUBYGEMS_DIR | 35 | prefix = File.dirname RUBYGEMS_DIR | |
36 | 36 | |||
37 | if prefix != File.expand_path(ConfigMap[:sitelibdir]) and | 37 | if prefix != File.expand_path(ConfigMap[:sitelibdir]) and | |
38 | + prefix != File.expand_path(ConfigMap[:vendorlibdir]) and | 38 | + prefix != File.expand_path(ConfigMap[:vendorlibdir]) and | |
39 | prefix != File.expand_path(ConfigMap[:libdir]) and | 39 | prefix != File.expand_path(ConfigMap[:libdir]) and | |
40 | 'lib' == File.basename(RUBYGEMS_DIR) then | 40 | 'lib' == File.basename(RUBYGEMS_DIR) then | |
41 | prefix | 41 | prefix |
@@ -1,41 +1,41 @@ | @@ -1,41 +1,41 @@ | |||
1 | $NetBSD: patch-lib_rubygems_commands_setup__command.rb,v 1.1 2013/07/21 02:32:58 taca Exp $ | 1 | $NetBSD: patch-lib_rubygems_commands_setup__command.rb,v 1.1.2.1 2013/12/01 11:47:59 tron Exp $ | |
2 | 2 | |||
3 | * Make sure to setup under DESTDIR. | 3 | * Make sure to setup under DESTDIR. | |
4 | 4 | |||
5 | --- lib/rubygems/commands/setup_command.rb.orig 2013-03-17 15:13:08.000000000 +0000 | 5 | --- lib/rubygems/commands/setup_command.rb.orig 2013-07-22 16:33:18.000000000 +0000 | |
6 | +++ lib/rubygems/commands/setup_command.rb | 6 | +++ lib/rubygems/commands/setup_command.rb | |
7 | @@ -145,7 +145,7 @@ By default, this RubyGems will install g | 7 | @@ -145,7 +145,7 @@ By default, this RubyGems will install g | |
8 | 8 | |||
9 | uninstall_old_gemcutter | 9 | uninstall_old_gemcutter | |
10 | 10 | |||
11 | - documentation_success = install_rdoc | 11 | - documentation_success = install_rdoc | |
12 | + documentation_success = install_rdoc install_destdir | 12 | + documentation_success = install_rdoc install_destdir | |
13 | 13 | |||
14 | say | 14 | say | |
15 | if @verbose then | 15 | if @verbose then | |
16 | @@ -306,11 +306,15 @@ TEXT | 16 | @@ -284,11 +284,15 @@ TEXT | |
17 | end | 17 | end | |
18 | end | 18 | end | |
19 | 19 | |||
20 | - def install_rdoc | 20 | - def install_rdoc | |
21 | + def install_rdoc(install_destdir) | 21 | + def install_rdoc(install_destdir) | |
22 | gem_doc_dir = File.join Gem.dir, 'doc' | 22 | gem_doc_dir = File.join Gem.dir, 'doc' | |
23 | rubygems_name = "rubygems-#{Gem::VERSION}" | 23 | rubygems_name = "rubygems-#{Gem::VERSION}" | |
24 | rubygems_doc_dir = File.join gem_doc_dir, rubygems_name | 24 | rubygems_doc_dir = File.join gem_doc_dir, rubygems_name | |
25 | 25 | |||
26 | + unless install_destdir.empty? | 26 | + unless install_destdir.empty? | |
27 | + FileUtils.mkdir_p gem_doc_dir unless File.exist?(gem_doc_dir) | 27 | + FileUtils.mkdir_p gem_doc_dir unless File.exist?(gem_doc_dir) | |
28 | + end | 28 | + end | |
29 | + | 29 | + | |
30 | begin | 30 | begin | |
31 | Gem.ensure_gem_subdirectories Gem.dir | 31 | Gem.ensure_gem_subdirectories Gem.dir | |
32 | rescue SystemCallError | 32 | rescue SystemCallError | |
33 | @@ -321,7 +325,7 @@ TEXT | 33 | @@ -299,7 +303,7 @@ TEXT | |
34 | (not File.exist? rubygems_doc_dir or | 34 | (not File.exist? rubygems_doc_dir or | |
35 | File.writable? rubygems_doc_dir) then | 35 | File.writable? rubygems_doc_dir) then | |
36 | say "Removing old RubyGems RDoc and ri" if @verbose | 36 | say "Removing old RubyGems RDoc and ri" if @verbose | |
37 | - Dir[File.join(Gem.dir, 'doc', 'rubygems-[0-9]*')].each do |dir| | 37 | - Dir[File.join(Gem.dir, 'doc', 'rubygems-[0-9]*')].each do |dir| | |
38 | + Dir[File.join(gem_doc_dir, 'rubygems-[0-9]*')].each do |dir| | 38 | + Dir[File.join(gem_doc_dir, 'rubygems-[0-9]*')].each do |dir| | |
39 | rm_rf dir | 39 | rm_rf dir | |
40 | end | 40 | end | |
41 | 41 |
@@ -1,20 +1,20 @@ | @@ -1,20 +1,20 @@ | |||
1 | $NetBSD: patch-lib_rubygems_config__file.rb,v 1.1 2013/07/21 02:32:58 taca Exp $ | 1 | $NetBSD: patch-lib_rubygems_config__file.rb,v 1.1.2.1 2013/12/01 11:47:59 tron Exp $ | |
2 | 2 | |||
3 | * Don't hard code config file's path for gem. | 3 | * Don't hard code config file's path for gem. | |
4 | 4 | |||
5 | --- lib/rubygems/config_file.rb.orig 2013-05-14 11:23:11.000000000 +0000 | 5 | --- lib/rubygems/config_file.rb.orig 2013-10-24 14:31:17.000000000 +0000 | |
6 | +++ lib/rubygems/config_file.rb | 6 | +++ lib/rubygems/config_file.rb | |
7 | @@ -56,32 +56,7 @@ class Gem::ConfigFile | 7 | @@ -57,32 +57,7 @@ class Gem::ConfigFile | |
8 | 8 | |||
9 | # :stopdoc: | 9 | # :stopdoc: | |
10 | 10 | |||
11 | - system_config_path = | 11 | - system_config_path = | |
12 | - begin | 12 | - begin | |
13 | - require "etc" | 13 | - require "etc" | |
14 | - Etc.sysconfdir | 14 | - Etc.sysconfdir | |
15 | - rescue LoadError, NoMethodError | 15 | - rescue LoadError, NoMethodError | |
16 | - begin | 16 | - begin | |
17 | - # TODO: remove after we drop 1.8.7 and 1.9.1 | 17 | - # TODO: remove after we drop 1.8.7 and 1.9.1 | |
18 | - require 'Win32API' | 18 | - require 'Win32API' | |
19 | - | 19 | - | |
20 | - CSIDL_COMMON_APPDATA = 0x0023 | 20 | - CSIDL_COMMON_APPDATA = 0x0023 |
@@ -1,53 +1,53 @@ | @@ -1,53 +1,53 @@ | |||
1 | $NetBSD: patch-lib_rubygems_dependency__installer.rb,v 1.1 2013/07/21 02:32:58 taca Exp $ | 1 | $NetBSD: patch-lib_rubygems_dependency__installer.rb,v 1.1.2.1 2013/12/01 11:47:59 tron 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/dependency_installer.rb.orig 2013-03-17 14:51:53.000000000 +0000 | 5 | --- lib/rubygems/dependency_installer.rb.orig 2013-11-13 02:59:08.000000000 +0000 | |
6 | +++ lib/rubygems/dependency_installer.rb | 6 | +++ lib/rubygems/dependency_installer.rb | |
7 | @@ -50,6 +50,7 @@ class Gem::DependencyInstaller | 7 | @@ -50,6 +50,7 @@ class Gem::DependencyInstaller | |
8 | # :format_executable:: See Gem::Installer#initialize. | 8 | # :format_executable:: See Gem::Installer#initialize. | |
9 | # :ignore_dependencies:: Don't install any dependencies. | 9 | # :ignore_dependencies:: Don't install any dependencies. | |
10 | # :install_dir:: See Gem::Installer#install. | 10 | # :install_dir:: See Gem::Installer#install. | |
11 | + # :install_root:: See Gem::Installer#install. | 11 | + # :install_root:: See Gem::Installer#install. | |
12 | # :prerelease:: Allow prerelease versions. See #install. | 12 | # :prerelease:: Allow prerelease versions. See #install. | |
13 | # :security_policy:: See Gem::Installer::new and Gem::Security. | 13 | # :security_policy:: See Gem::Installer::new and Gem::Security. | |
14 | # :user_install:: See Gem::Installer.new | 14 | # :user_install:: See Gem::Installer.new | |
15 | @@ -57,13 +58,14 @@ class Gem::DependencyInstaller | 15 | @@ -57,12 +58,14 @@ class Gem::DependencyInstaller | |
16 | # :build_args:: See Gem::Installer::new | 16 | # :build_args:: See Gem::Installer::new | |
17 | 17 | |||
18 | def initialize(options = {}) | 18 | def initialize(options = {}) | |
19 | - @install_dir = options[:install_dir] || Gem.dir | 19 | - @install_dir = options[:install_dir] || Gem.dir | |
20 | - | 20 | - | |
21 | if options[:install_dir] then | 21 | if options[:install_dir] then | |
22 | + @install_dir = options[:install_dir] | 22 | + @install_dir = options[:install_dir] | |
23 | + | |||
23 | # HACK shouldn't change the global settings, needed for -i behavior | 24 | # HACK shouldn't change the global settings, needed for -i behavior | |
24 | # maybe move to the install command? See also github #442 | 25 | # maybe move to the install command? See also github #442 | |
25 | Gem::Specification.dirs = @install_dir | 26 | Gem::Specification.dirs = @install_dir | |
26 | Gem.ensure_gem_subdirectories @install_dir | |||
27 | + else | 27 | + else | |
28 | + @install_dir = Gem.dir | 28 | + @install_dir = Gem.dir | |
29 | end | 29 | end | |
30 | 30 | |||
31 | options = DEFAULT_OPTIONS.merge options | 31 | options = DEFAULT_OPTIONS.merge options | |
32 | @@ -92,7 +94,12 @@ class Gem::DependencyInstaller | 32 | @@ -91,7 +94,12 @@ class Gem::DependencyInstaller | |
33 | @installed_gems = [] | 33 | @installed_gems = [] | |
34 | @toplevel_specs = nil | 34 | @toplevel_specs = nil | |
35 | 35 | |||
36 | - @cache_dir = options[:cache_dir] || @install_dir | 36 | - @cache_dir = options[:cache_dir] || @install_dir | |
37 | + @install_root = options[:install_root] || "" | 37 | + @install_root = options[:install_root] || "" | |
38 | + install_dir = @install_dir | 38 | + install_dir = @install_dir | |
39 | + if not @install_root.empty? | 39 | + if not @install_root.empty? | |
40 | + install_dir = File.join(@install_root, install_dir) | 40 | + install_dir = File.join(@install_root, install_dir) | |
41 | + end | 41 | + end | |
42 | + @cache_dir = options[:cache_dir] || install_dir | 42 | + @cache_dir = options[:cache_dir] || install_dir | |
43 | 43 | |||
44 | # Set with any errors that SpecFetcher finds while search through | 44 | # Set with any errors that SpecFetcher finds while search through | |
45 | # gemspecs for a dep | 45 | # gemspecs for a dep | |
46 | @@ -364,6 +371,7 @@ class Gem::DependencyInstaller | 46 | @@ -371,6 +379,7 @@ class Gem::DependencyInstaller | |
47 | :format_executable => @format_executable, | 47 | :format_executable => @format_executable, | |
48 | :ignore_dependencies => @ignore_dependencies, | 48 | :ignore_dependencies => @ignore_dependencies, | |
49 | :install_dir => @install_dir, | 49 | :install_dir => @install_dir, | |
50 | + :install_root => @install_root, | 50 | + :install_root => @install_root, | |
51 | :security_policy => @security_policy, | 51 | :security_policy => @security_policy, | |
52 | :user_install => @user_install, | 52 | :user_install => @user_install, | |
53 | :wrappers => @wrappers, | 53 | :wrappers => @wrappers, |
@@ -1,52 +1,49 @@ | @@ -1,52 +1,49 @@ | |||
1 | $NetBSD: patch-lib_rubygems_installer.rb,v 1.1 2013/07/21 02:32:58 taca Exp $ | 1 | $NetBSD: patch-lib_rubygems_installer.rb,v 1.1.2.1 2013/12/01 11:47:59 tron Exp $ | |
2 | 2 | |||
3 | * Add install_root option for pkgsrc's rubygems support. | 3 | * Add install_root option for pkgsrc's rubygems support. | |
4 | * Tweak build_info directory with destdir to store build_args. | 4 | * Tweak build_info directory with destdir to store build_args. | |
5 | 5 | |||
6 | --- lib/rubygems/installer.rb.orig 2013-03-17 14:51:53.000000000 +0000 | 6 | --- lib/rubygems/installer.rb.orig 2013-08-16 15:35:06.000000000 +0000 | |
7 | +++ lib/rubygems/installer.rb | 7 | +++ lib/rubygems/installer.rb | |
8 | @@ -89,6 +89,9 @@ class Gem::Installer | 8 | @@ -98,6 +98,9 @@ class Gem::Installer | |
9 | # foo_exec18. | 9 | # foo_exec18. | |
10 | # :ignore_dependencies:: Don't raise if a dependency is missing. | 10 | # :ignore_dependencies:: Don't raise if a dependency is missing. | |
11 | # :install_dir:: The directory to install the gem into. | 11 | # :install_dir:: The directory to install the gem into. | |
12 | + # :install_root:: The directory to use as a buildroot for "destdir"-style | 12 | + # :install_root:: The directory to use as a buildroot for "destdir"-style | |
13 | + # installation. All paths during installation are relative | 13 | + # installation. All paths during installation are relative | |
14 | + # to the buildroot. | 14 | + # to the buildroot. | |
15 | # :security_policy:: Use the specified security policy. See Gem::Security | 15 | # :security_policy:: Use the specified security policy. See Gem::Security | |
16 | # :user_install:: Indicate that the gem should be unpacked into the users | 16 | # :user_install:: Indicate that the gem should be unpacked into the users | |
17 | # personal gem directory. | 17 | # personal gem directory. | |
18 | @@ -548,12 +551,20 @@ class Gem::Installer | 18 | @@ -558,12 +561,20 @@ class Gem::Installer | |
19 | @format_executable = options[:format_executable] | 19 | @format_executable = options[:format_executable] | |
20 | @security_policy = options[:security_policy] | 20 | @security_policy = options[:security_policy] | |
21 | @wrappers = options[:wrappers] | 21 | @wrappers = options[:wrappers] | |
22 | + install_root = options[:install_root] | 22 | + install_root = options[:install_root] | |
23 | + unless install_root.nil? or install_root == "" | 23 | + unless install_root.nil? or install_root == "" | |
24 | + @install_root = File.expand_path install_root | 24 | + @install_root = File.expand_path install_root | |
25 | + @gem_home = File.join(@install_root, @gem_home) | 25 | + @gem_home = File.join(@install_root, @gem_home) | |
26 | + end | 26 | + end | |
27 | @only_install_dir = options[:only_install_dir] | 27 | @only_install_dir = options[:only_install_dir] | |
28 | 28 | |||
29 | # If the user has asked for the gem to be installed in a directory that is | 29 | # If the user has asked for the gem to be installed in a directory that is | |
30 | # the system gem directory, then use the system bin directory, else create | 30 | # the system gem directory, then use the system bin directory, else create | |
31 | # (or use) a new bin dir under the gem_home. | 31 | # (or use) a new bin dir under the gem_home. | |
32 | - @bin_dir = options[:bin_dir] || Gem.bindir(gem_home) | 32 | - @bin_dir = options[:bin_dir] || Gem.bindir(gem_home) | |
33 | + @bin_dir = options[:bin_dir] || Gem.bindir(gem_home, @install_root) | 33 | + @bin_dir = options[:bin_dir] || Gem.bindir(gem_home, @install_root) | |
34 | + if not @install_root.empty? | 34 | + if not @install_root.empty? | |
35 | + @bin_dir = File.join(@install_root, @bin_dir) | 35 | + @bin_dir = File.join(@install_root, @bin_dir) | |
36 | + end | 36 | + end | |
37 | @development = options[:development] | 37 | @development = options[:development] | |
38 | 38 | |||
39 | @build_args = options[:build_args] || Gem::Command.build_args | 39 | @build_args = options[:build_args] || Gem::Command.build_args | |
40 | @@ -773,7 +784,11 @@ EOF | 40 | @@ -786,6 +797,9 @@ EOF | |
41 | def write_build_info_file | |||
42 | return if @build_args.empty? | 41 | return if @build_args.empty? | |
43 | 42 | |||
44 | - open spec.build_info_file, 'w' do |io| | 43 | build_info_dir = File.join gem_home, 'build_info' | |
45 | + build_info_file = spec.build_info_file | |||
46 | + unless @install_root.nil? | 44 | + unless @install_root.nil? | |
47 | + build_info_file = File.join @gem_home, "build_info", "#{spec.full_name}.info" | 45 | + build_info_dir = File.join @gem_home, "build_info" | |
48 | + end | 46 | + end | |
49 | + open build_info_file, 'w' do |io| | 47 | ||
50 | @build_args.each do |arg| | 48 | FileUtils.mkdir_p build_info_dir | |
51 | io.puts arg | 49 | ||
52 | end |
@@ -1,65 +1,65 @@ | @@ -1,65 +1,65 @@ | |||
1 | $NetBSD: patch-lib_rubygems_specification.rb,v 1.1 2013/07/21 02:32:58 taca Exp $ | 1 | $NetBSD: patch-lib_rubygems_specification.rb,v 1.1.2.1 2013/12/01 11:47:59 tron Exp $ | |
2 | 2 | |||
3 | * Changes for pkgsrc environment: | 3 | * Changes for pkgsrc environment: | |
4 | 4 | |||
5 | - Allow some attributes to nil. | 5 | - Allow some attributes to nil. | |
6 | - Relax date/time format. | 6 | - Relax date/time format. | |
7 | 7 | |||
8 | And allow multiple conditions for requirement from Ruby 2.0.0 and | 8 | And allow multiple conditions for requirement from Ruby 2.0.0 and | |
9 | Rubygem 1.8.25. | 9 | Rubygem 1.8.25. | |
10 | 10 | |||
11 | --- lib/rubygems/specification.rb.orig 2013-03-17 14:18:23.000000000 +0000 | 11 | --- lib/rubygems/specification.rb.orig 2013-11-13 02:59:08.000000000 +0000 | |
12 | +++ lib/rubygems/specification.rb | 12 | +++ lib/rubygems/specification.rb | |
13 | @@ -164,6 +164,12 @@ class Gem::Specification | 13 | @@ -162,6 +162,12 @@ class Gem::Specification | |
14 | @@default_value[k].nil? | 14 | @@default_value[k].nil? | |
15 | } | 15 | } | |
16 | 16 | |||
17 | + # under pkgsrc environment | 17 | + # under pkgsrc environment | |
18 | + @@pkgsrc_nil_attributes = {} | 18 | + @@pkgsrc_nil_attributes = {} | |
19 | + [:authors, :cert_chain, :executables, :extensions, :extra_rdoc_files, :licenses, :required_rubygems_version, :test_files].each do |k| | 19 | + [:authors, :cert_chain, :executables, :extensions, :extra_rdoc_files, :licenses, :required_rubygems_version, :test_files].each do |k| | |
20 | + @@pkgsrc_nil_attributes[k] = true | 20 | + @@pkgsrc_nil_attributes[k] = true | |
21 | + end | 21 | + end | |
22 | + | 22 | + | |
23 | ###################################################################### | 23 | ###################################################################### | |
24 | # :section: Required gemspec attributes | 24 | # :section: Required gemspec attributes | |
25 | 25 | |||
26 | @@ -2317,7 +2323,24 @@ class Gem::Specification | 26 | @@ -2334,7 +2340,24 @@ class Gem::Specification | |
27 | normalize | 27 | normalize | |
28 | 28 | |||
29 | nil_attributes = self.class.non_nil_attributes.find_all do |name| | 29 | nil_attributes = self.class.non_nil_attributes.find_all do |name| | |
30 | - instance_variable_get("@#{name}").nil? | 30 | - instance_variable_get("@#{name}").nil? | |
31 | + val = instance_variable_get("@#{name}") | 31 | + val = instance_variable_get("@#{name}") | |
32 | + if val.nil? | 32 | + if val.nil? | |
33 | + if @@pkgsrc_nil_attributes.key?(name) | 33 | + if @@pkgsrc_nil_attributes.key?(name) | |
34 | + case name | 34 | + case name | |
35 | + when :required_rubygems_version | 35 | + when :required_rubygems_version | |
36 | + val = Gem::Requirement.default | 36 | + val = Gem::Requirement.default | |
37 | + else | 37 | + else | |
38 | + val = [] | 38 | + val = [] | |
39 | + end | 39 | + end | |
40 | + instance_variable_set("@#{name}", val) | 40 | + instance_variable_set("@#{name}", val) | |
41 | + false | 41 | + false | |
42 | + end | 42 | + end | |
43 | + end | 43 | + end | |
44 | + if name == :authors and val.empty? | 44 | + if name == :authors and val.empty? | |
45 | + val = ['not specified'] | 45 | + val = ['not specified'] | |
46 | + self.authors = val | 46 | + self.authors = val | |
47 | + false | 47 | + false | |
48 | + end | 48 | + end | |
49 | end | 49 | end | |
50 | 50 | |||
51 | unless nil_attributes.empty? then | 51 | unless nil_attributes.empty? then | |
52 | @@ -2455,10 +2478,15 @@ class Gem::Specification | 52 | @@ -2472,10 +2495,15 @@ class Gem::Specification | |
53 | raise Gem::InvalidSpecificationException, "#{lazy} is not a summary" | 53 | raise Gem::InvalidSpecificationException, "#{lazy} is not a summary" | |
54 | end | 54 | end | |
55 | 55 | |||
56 | - if homepage and not homepage.empty? and | 56 | - if homepage and not homepage.empty? and | |
57 | - homepage !~ /\A[a-z][a-z\d+.-]*:/i then | 57 | - homepage !~ /\A[a-z][a-z\d+.-]*:/i then | |
58 | - raise Gem::InvalidSpecificationException, | 58 | - raise Gem::InvalidSpecificationException, | |
59 | - "\"#{homepage}\" is not a URI" | 59 | - "\"#{homepage}\" is not a URI" | |
60 | + if homepage and not homepage.empty? | 60 | + if homepage and not homepage.empty? | |
61 | + if @homepage =~ /\A[a-z][a-z\d+.-]*/i and | 61 | + if @homepage =~ /\A[a-z][a-z\d+.-]*/i and | |
62 | + @homepage !~ /\A[a-z][a-z\d+.-]*:/i | 62 | + @homepage !~ /\A[a-z][a-z\d+.-]*:/i | |
63 | + @homepage = "http://" + @homepage | 63 | + @homepage = "http://" + @homepage | |
64 | + end | 64 | + end | |
65 | + if homepage !~ /\A[a-z][a-z\d+.-]*:/i then | 65 | + if homepage !~ /\A[a-z][a-z\d+.-]*:/i then |
@@ -1,20 +1,20 @@ | @@ -1,20 +1,20 @@ | |||
1 | $NetBSD: patch-man_ri.1,v 1.1 2013/07/21 02:32:58 taca Exp $ | 1 | $NetBSD: patch-man_ri.1,v 1.1.2.1 2013/12/01 11:47:59 tron Exp $ | |
2 | 2 | |||
3 | * Fix mdoc markup. | 3 | * Fix mdoc markup. | |
4 | 4 | |||
5 | --- man/ri.1.orig 2012-11-15 04:22:44.000000000 +0000 | 5 | --- man/ri.1.orig 2013-07-13 15:17:18.000000000 +0000 | |
6 | +++ man/ri.1 | 6 | +++ man/ri.1 | |
7 | @@ -165,12 +165,12 @@ Searches user-wide documents here. | 7 | @@ -166,12 +166,12 @@ Searches user-wide documents here. | |
8 | .Pp | 8 | .Pp | |
9 | .Sh REPORTING BUGS | 9 | .Sh REPORTING BUGS | |
10 | .Bl -bullet | 10 | .Bl -bullet | |
11 | -.Li Security vulnerabilities should be reported via an email to | 11 | -.Li Security vulnerabilities should be reported via an email to | |
12 | -.Aq security@ruby-lang.org Ns | 12 | -.Aq security@ruby-lang.org Ns | |
13 | -.Li . | 13 | -.Li . | |
14 | +.It | 14 | +.It | |
15 | +Security vulnerabilities should be reported via an email to | 15 | +Security vulnerabilities should be reported via an email to | |
16 | +.Aq security@ruby-lang.org . | 16 | +.Aq security@ruby-lang.org . | |
17 | Reported problems will be published after being fixed. | 17 | Reported problems will be published after being fixed. | |
18 | -.Pp | 18 | -.Pp | |
19 | -.Li And you can report other bugs and feature requests via the | 19 | -.Li And you can report other bugs and feature requests via the | |
20 | +.It | 20 | +.It |
@@ -1,15 +1,15 @@ | @@ -1,15 +1,15 @@ | |||
1 | $NetBSD: patch-tool_rbinstall.rb,v 1.1 2013/07/21 02:32:58 taca Exp $ | 1 | $NetBSD: patch-tool_rbinstall.rb,v 1.1.2.1 2013/12/01 11:47:59 tron Exp $ | |
2 | 2 | |||
3 | * Don't install which has already ${RUBY_VER} suffix. | 3 | * Don't install which has already ${RUBY_VER} suffix. | |
4 | 4 | |||
5 | --- tool/rbinstall.rb.orig 2013-02-07 08:02:31.000000000 +0000 | 5 | --- tool/rbinstall.rb.orig 2013-11-12 14:35:13.000000000 +0000 | |
6 | +++ tool/rbinstall.rb | 6 | +++ tool/rbinstall.rb | |
7 | @@ -213,7 +213,7 @@ def install_recursive(srcdir, dest, opti | 7 | @@ -220,7 +220,7 @@ def install_recursive(srcdir, dest, opti | |
8 | end | 8 | end | |
9 | end | 9 | end | |
10 | end | 10 | end | |
11 | - skip |= %w"#*# *~ *.old *.bak *.orig *.rej *.diff *.patch *.core" | 11 | - skip |= %w"#*# *~ *.old *.bak *.orig *.rej *.diff *.patch *.core" | |
12 | + skip |= %w"#*# *~ *.old *.bak *.orig *.rej *.diff *.patch *.core *200" | 12 | + skip |= %w"#*# *~ *.old *.bak *.orig *.rej *.diff *.patch *.core *200" | |
13 | prune = path_matcher(prune) | 13 | prune = path_matcher(prune) | |
14 | skip = path_matcher(skip) | 14 | skip = path_matcher(skip) | |
15 | File.directory?(srcdir) or return rescue return | 15 | File.directory?(srcdir) or return rescue return |