Commit graph

80 commits

Author SHA1 Message Date
taca
7082b4edab Strict RUBY_VERSION_DEFAULT when RUBY_VERSION_SUPPORTED has one word.
Should be fix PR pkg/46420.
2012-05-07 07:53:28 +00:00
taca
0532f3e2b0 Update ruby19 packages to 1.9.2p320.
Security fix with updating bundled RubyGems to 1.8.23 and several a few bug
fixes.


Fri Apr 20 12:40:19 2012  Eric Hodel  <drbrain@segment7.net>

	* lib/rubygems/ssl_certs/AddTrustExternalCARoot.pem:  Removed to avoid
	  conflict with ca-bundle.pem
	* lib/rubygems/ssl_certs/VerisignClass3PublicPrimaryCertificationAuthority-G2.pem:
	  ditto.
	* lib/rubygems/ssl_certs/Entrust_net-Secure-Server-Certification-Authority.pem:
	  ditto.

Fri Apr 20 09:04:35 2012  Eric Hodel  <drbrain@segment7.net>

	* lib/rubygems:  Apply the following security fixes to RubyGems 1.3.7:

	  RubyGems now disallows redirection from HTTPS to HTTP.

	  RubyGems now verifies SSL connections.

	  Patch by Hiroshi Nakamura.

	* test/rubygems:  ditto.
2012-04-22 08:23:00 +00:00
taca
6d42d8bef4 Update ruby193 packages to 1.9.3p194.
Security fix with updating bundled RubyGems to 1.8.23 and several bug fixes.
Please refer ChangeLog in detail:
http://svn.ruby-lang.org/repos/ruby/tags/v1_9_3_194/ChangeLog
2012-04-22 08:17:16 +00:00
taca
f3748bb60d Switch default Ruby's version to 1.9.3. 2012-03-21 15:48:41 +00:00
taca
9b398eeda7 Oops, this is one more file to be commited.
Overhaul buildlink3 processing of Ruby.

* Don't buildlink in ruby/rubyversion.mk any more but define
  RUBY_USE_PTHREAD (use of pthread).
* In ruby/buildlink3.mk, buildlink via mk/pthread.buildlink3.mk as to
  RUBY_USE_PTHREAD.
* Also the same logic in ruby/Makefile.common.
* Buildlink of bdb, libiconv, zlib, openssl in each ruby*-base/Makefile.
2012-03-21 15:47:33 +00:00
marino
c0bae9d513 lang/ruby: Fix ruby193-base for DragonFly
The maintainers of ruby have changed the shared library naming scheme for
FreeBSD and DragonFly:
For ruby18,  it's libruby18.so.18   (last part = RUBY_VER)
For ruby19,  it's libruby19.so.19   (last part = RUBY_VER)
for ruby193, it's libruby193.so.191 (last part derived from API, not version)

The rubyversion.mk was never updated to reflect that, and as a result ruby
1.9.3 has never built on DragonFly.  This commit will allow
lang/ruby193-base package to build.
2012-03-15 08:35:24 +00:00
taca
8ad8b17df8 Update ruby19-base package to 192pl318, Ruby 1.9.2 patchlevel 318.
(It seems to the tag of subversion was created with wrong name.)

Ruby 1.9.2-p318 is released.

This release include a security fixes of the Ruby OpenSSL extension.
See [1] for more detail about this fix.
*1:
http://www.ruby-lang.org/en/news/2012/02/16/security-fix-for-ruby-openssl-module-allow-0n-splitting-as-a-prevention-for-the-tls-beast-attack-/

And many bugs are fixed in this release.
See [2] for more details:
*2: http://svn.ruby-lang.org/repos/ruby/tags/v1_9_2_381/ChangeLog
2012-02-23 14:15:58 +00:00
taca
859ee2c42d Update ruby193-base package to 1.9.3p125 (Ruby 1.9.3 patchlevel 125).
Implictly update lang/ruby193 and devel/ruby-mode (nothing change).

== Fixes

* Fix for Ruby OpenSSL module: Allow "0/n splitting" as a prevention
  for the TLS BEAST attack
* Fixed: LLVM/clang support [Bug #5076]
* Fixed: GCC 4.7 support [Bug #5851]
* other bug fixes

For more detail, please refer:
	http://svn.ruby-lang.org/repos/ruby/tags/v1_9_3_125/ChangeLog
2012-02-16 16:43:38 +00:00
taca
48a2d9372e Update ruby18-base package to 1.8.7-pl357 (Ruby 1.8.7 patchlevel 357).
Wed Feb  8 14:06:59 2012  Hiroshi Nakamura  <nahi@ruby-lang.org>

	* ext/openssl/ossl_ssl.c: Add SSL constants and allow to unset SSL
	  option to prevent BEAST attack. See [Bug #5353].

	  In OpenSSL, OP_DONT_INSERT_EMPTY_FRAGMENTS is used to prevent
	  TLS-CBC-IV vulunerability described at
	  http://www.openssl.org/~bodo/tls-cbc.txt
	  It's known issue of TLSv1/SSLv3 but it attracts lots of attention
	  these days as BEAST attack. (CVE-2011-3389)

	  Until now ossl sets OP_ALL at SSLContext allocation and call
	  SSL_CTX_set_options at connection.  SSL_CTX_set_options updates the
	  value by using |= so bits set by OP_ALL cannot be unset afterwards.

	  This commit changes to call SSL_CTX_set_options only 1 time for each
	  SSLContext. It sets the specified value if SSLContext#options= are
	  called and sets OP_ALL if not.

	  To help users to unset bits in OP_ALL, this commit also adds several
	  constant to SSL such as
	  OpenSSL::SSL::OP_DONT_INSERT_EMPTY_FRAGMENTS.  These constants were
	  not exposed in Ruby because there's no way to unset bits in OP_ALL
	  before.

	  Following is an example to enable 0/n split for BEAST prevention.

	    ctx.options = OP_ALL & ~OP_DONT_INSERT_EMPTY_FRAGMENTS

	* test/openssl/test_ssl.rb: Test above option exists.
2012-02-16 16:36:07 +00:00
taca
708cb5440e Move RUBY_DISTNAME definition back to rubyversion.mk from Makefile.common.
Some extension might need Ruby's distribution files.
2012-02-04 09:43:32 +00:00
taca
d90344064d Update ruby18-base package to 1.8.7.357.
It contains security fix for CVE-2011-4815 (DoS).


Wed Dec 28 21:34:23 2011  URABE Shyouhei  <shyouhei@ruby-lang.org>

	* string.c (rb_str_hash): randomize hash to avoid algorithmic
	  complexity attacks. CVE-2011-4815

	* st.c (strhash): ditto.

	* string.c (Init_String): initialization of hash_seed to be at the
	  beginning of the process.

	* st.c (Init_st): ditto.

Thu Dec  8 11:57:04 2011  Tanaka Akira  <akr@fsij.org>

	* inits.c (rb_call_inits): call Init_RandomSeed at first.

	* random.c (seed_initialized): defined.
	  (fill_random_seed): extracted from random_seed.
	  (make_seed_value): extracted from random_seed.
	  (rb_f_rand): initialize random seed at first.
	  (initial_seed): defined.
	  (Init_RandomSeed): defined.
	  (Init_RandomSeed2): defined.
	  (rb_reset_random_seed): defined.
	  (Init_Random): call Init_RandomSeed2.

Sat Dec 10 20:44:23 2011  Tanaka Akira  <akr@fsij.org>

	* lib/securerandom.rb: call OpenSSL::Random.seed at the
	  SecureRandom.random_bytes call.
	  insert separators for array join.
	  patch by Masahiro Tomita.  [ruby-dev:44270]

Mon Oct 17 04:20:22 2011  Nobuyoshi Nakada  <nobu@ruby-lang.org>

	* mkconfig.rb: fix for continued lines.  based on a patch from
	  Marcus Rueckert <darix AT opensu.se> at [ruby-core:20420].

Mon Oct 17 04:19:39 2011  Yukihiro Matsumoto  <matz@ruby-lang.org>

	* numeric.c (flo_cmp): Infinity is greater than any bignum
	  number.  [ruby-dev:38672]

	* bignum.c (rb_big_cmp): ditto.

Mon Oct 17 03:56:12 2011  Yusuke Endoh  <mame@tsg.ne.jp>

	* ext/openssl/ossl_x509store.c (ossl_x509store_initialize): initialize
	  store->ex_data.sk.  [ruby-core:28907] [ruby-core:23971]
	  [ruby-core:18121]
2011-12-28 16:40:06 +00:00
taca
55cef87e7f It is enough to use '=' to assign constant. 2011-12-25 02:49:28 +00:00
taca
81e40c90b0 Fix some confusion about handling for RUBY_VERSION_DEFAULT and RUBY_VER.
Really fix the pkglint problem with ruby19-base and ruby193-base, and
pbulk.  Thanks to joerg@ to teache me pbulk-index!
2011-12-25 02:18:09 +00:00
joerg
cf42fbfb48 Restore backwards compatibility removed as part of 1.65, the tree is not
ready yet (devel/ZenTest and others) and the tree is frozen.
2011-12-24 23:16:04 +00:00
joerg
e0a0f49956 Fix typo. 2011-12-24 23:14:15 +00:00
taca
996bc4e982 * Remove backward compatibility handling for RUBY_VER; pkglint dosen't like it.
* Add one more PRINT_PLIST_AWK for GEM_HOME.
2011-12-24 03:30:10 +00:00
taca
1aca981bbb * Improve make macro's documentation.
* Use 18, 19 instead of 1.9, 2.0 for RUBY_VERSION_DEFAULT.
* Add 193 for Ruby 1.9.3, too.
* If RUBY_VERSION_SUPPORTED contains single version of Ruby, make package
  force depends to the version.
* Move RUBY_SITE_SUBDIR to Makefile.common.
* Change RUBY_VERSION_SUFFIX to RUBY_VERSION_FULL.
* Remove small code for NetBSD 1.x.
* Change RUBY_DLEXT and RUBY_SLEXT by ${_OPSYS_SHLIB_TYPE} instead of
  ${OPSYS}'s value.
2011-11-08 15:18:31 +00:00
taca
f39f28c2e2 A trivial change to remove ruby18'ism. 2011-10-25 06:01:09 +00:00
taca
7b83b9af09 Switch default Ruby's version to 1.9.x, currently 1.9.2. 2011-09-14 16:50:18 +00:00
taca
a2fda01bc9 Start of updating ruby18 to ruby18-1.8.7.352 (Ruby 1.8.7 patchlevel 352)
and ruby19 to ruby19-1.9.2pl290 (Ruby 1.9.2 patchlevel 290).
2011-08-12 15:27:44 +00:00
wiz
258be22740 Add MULTI variable, and add it to BUILD_DEFS, to more easily find
variable settings affecting binary packages.

From Aleksey Cheusov in PR 44695.
2011-03-12 14:07:13 +00:00
taca
7d3c1050fb Introduce RUBY_ABI_VERSION and use it BUILDLINK_ABI_DEPENDS.
There are ABI incompatibility amaong Ruby 1.8.7 patchlevel 302, 330 and 334,
So it would be handle if such problem in future.
2011-02-21 15:00:34 +00:00
taca
4f7294c048 * Start upate of ruby18 and ruby19 packags.
* Remove redundant GEM_HOME definition from PLIST.
2011-02-21 14:31:06 +00:00
obache
36ca8d1a25 fixes shlib alias name for Solaris. PR#44480.
RUBY_API_TEENY must be used instead of _RUBY_VER_TEENY for shlib name.
2011-02-02 08:47:01 +00:00
taca
faee67fca3 Apply patch provided by obache@, fixing build problem on Solaris.
Should be fix PR pkg/44480.
2011-02-01 22:32:37 +00:00
taca
493ed963b9 Start update of ruby18-base and ruby19-base packages:
RUBY18_PATCHLEVEL	pl330
	RUBY19_PATCHLEVEL	pl136
2010-12-26 12:29:07 +00:00
taca
7e269e2891 Fix build problem on Linux, fix part of PR pkg/44174. 2010-12-01 13:51:45 +00:00
taca
a95ad12133 Some improvements for rubyversion.mk:
- Set RUBY_API_VERSION after RUBY_VERSION has decided.
- Change old RUBY_DOCDIR and RUBY_EXAMPLESDIR to RUBY_DOC and RUBY_EG in
  comment.
- Fix shared libraries PLIST to support Mac OS X with introducing RUBY_SLEXT:
	Shared library => .dylib
	Extension library => .bundle
- Improve PRINT_PLIST_AWK to handle new shared libraries.

No functional change shoud be done and fix PR pkg/44050.
2010-11-17 14:27:09 +00:00
joerg
5a1c12fab9 Add the necessary glue to hook Ruby into the multi-version framework.
This allows lang/ruby18 and lang/ruby19 to coexist in bulk builds.

Discussed with taca@
2010-09-28 20:24:25 +00:00
taca
d43a87ae38 Fix version description in comments.
Noted by wiz@ by private mail.
2010-09-24 07:44:29 +00:00
taca
859cc3166a Now enable ruby19! 2010-09-12 03:53:00 +00:00
taca
92ec5840b7 * Add support for Ruby 1.9.x and update 1.8.7.302 (1.8.7 patchlevel 302).
Ruby's patchlevel N reflect as "plN" instead of ".N" from Ruby 1.9.

	ruby18-base-1.8.7.302
	ruby19-base-1.9.2pl0

  Still Ruby 1.9.2pl0 support is disabled.

* Introduce RUBY_API_VERSION.

* RUBY_BUILD_RDOC and RUBY_BUILD_RI controls build of rdoc/ri.  But,
  currently ruby18-base and ruby19-base according to PKG_OPTION.

* Define rubygem supporting macros.

* RUBY_HAS_ARCHLIB is deprecated.

* Many directory macros are changed to relative path against PREFIX and
  some of them are their name.
2010-09-10 03:19:54 +00:00
taca
2ae13fe193 Update Ruby packages to 1.8.7.174 (1.8.7-p174).
* Fix critical problem of BigDecimal class in 1.8.7-p173.


Fri Jun 12 16:36:44 2009  Yukihiro Matsumoto  <matz@ruby-lang.org>

	* ext/bigdecimal/bigdecimal.c (VpToString): fixed a bug introduced
	  in r23613.  [ruby-talk:338957]
2009-06-16 15:08:38 +00:00
joerg
9bb0d96ea9 Remove @dirrm related logic. 2009-06-14 22:57:58 +00:00
taca
9d24db46aa Start update of Ruby programming language packages to 1.8.7.173 (1.8.7-p173).
- Add LICENSE.
- Update RUBY18_PATCHLEVEL to 173.
2009-06-10 12:45:34 +00:00
taca
72e47a4fd9 Bump Ruby 1.8.7's patch level to 160. 2009-04-16 17:10:17 +00:00
taca
dca06ac644 Update ruby18-base to 1.8.7.72 (Ruby 1.8.7-p72).
These packages are implicitly updated with distfile update only.

	databases/ruby-gdbm
	devel/ruby-readline
	lang/ruby
	lang/ruby18

Here's quote from release announce:

	Sorry for a fuss, but it turned out that taintness check of dl in last
	releases I made was incomplete. Here are fixes for that.

And relevant changes:

Mon Aug 11 09:37:17 2008  Yukihiro Matsumoto  <matz@ruby-lang.org>

	* ext/dl/dl.c (rb_str_to_ptr): should propagate taint to dlptr.

	* ext/dl/dl.c (rb_ary_to_ptr): ditto.

	* ext/dl/sym.c (rb_dlsym_call): should check taint of DLPtrData as
	  well.
2008-08-11 06:58:33 +00:00
taca
c24329c455 Start update of Ruby 1.8.7 patchlevel 71. 2008-08-08 12:38:59 +00:00
minskim
a227983f16 Disable pthread on Darwin-9.*-powerpc until Ruby Bug #193 is resolved.
http://redmine.ruby-lang.org/issues/show/193

This may break some ruby modules that require pthread, but it is better
than not having a ruby binary at all.
2008-06-22 04:15:54 +00:00
taca
730341d656 Start updating Ruby 1.8.7 patchlevel 22.
Update RUBY18_PATCHLEVEL to 22.
2008-06-20 15:38:45 +00:00
taca
5e0621752a Start of updating Ruby to 1.8.7.
* Update RUBY18_VERSION to 1.8.7 and RUBY18_PATCHLEVEL to 17.
* Use vendor_ruby instead for site_ruby.
* Introduce macros for relative path and use them instead of old absolete
  path.

	RUBY_LIB		lib/ruby/${RUBY_VER_DIR}
	RUBY_ARCHLIB		${RUBY_LIB}/${RUBY_ARCH}
	RUBY_SITELIB_BASE	lib/ruby/site_ruby
	RUBY_SITELIB		${RUBY_SITELIB_BASE}/${RUBY_VER_DIR}
	RUBY_SITEARCHLIB	${RUBY_SITELIB}/${RUBY_ARCH}
	RUBY_VENDORLIB_BASE	lib/ruby/vendor_ruby
	RUBY_VENDORLIB		${RUBY_VENDORLIB_BASE}/${RUBY_VER_DIR}
	RUBY_VENDORARCHLIB	${RUBY_VENDORLIB}/${RUBY_ARCH}
	RUBY_DOC		share/doc/${RUBY_NAME}
	RUBY_EG			share/examples/${RUBY_NAME}

  Old these macros are removed after 2008Q2 branch.

	RUBY_LIBDIR
	RUBY_ARCHLIBDIR
	RUBY_SITELIBDIR
	RUBY_SITEARCHLIBDIR
	RUBY_VENDORLIBDIR
	RUBY_VENDORARCHLIBDIR
	RUBY_DOCDIR
	RUBY_EXAMPLESDIR

  * update PRINT_PLIST_AWK macro to reality and move some of them from
    ruby/modules.mk to ruby/rubyversion.mk.
2008-06-19 14:30:45 +00:00
jlam
aac24615a7 Substitute for ${RUBY_ARCH} in PLISTs. 2008-03-21 15:07:28 +00:00
taca
31bc2444c6 Update ruby pakcages to 1.8.6.114 (1.8.6-p114).
It main chagnes are security fix of WEBrick library.


Mon Mar  3 23:34:13 2008  GOTOU Yuuzou  <gotoyuzo@notwork.org>

	* lib/webrick/httpservlet/filehandler.rb: should normalize path
	  separators in path_info to prevent directory traversal attacks
	  on DOSISH platforms.
	  reported by Digital Security Research Group [DSECRG-08-026].

	* lib/webrick/httpservlet/filehandler.rb: pathnames which have
	  not to be published should be checked case-insensitively.

Mon Dec  3 08:13:52 2007  Kouhei Sutou  <kou@cozmixng.org>

	* test/rss/test_taxonomy.rb, test/rss/test_parser_1.0.rb,
	  test/rss/test_image.rb, test/rss/rss-testcase.rb: ensured
	  declaring XML namespaces.
2008-03-09 13:31:18 +00:00
obache
b1e4ec8ec7 Fix RUBY_DYNAMIC_DIRS to DESTDIR ready.
Now ruby18-base really support DESTDIR.
2008-01-13 09:09:13 +00:00
taca
3557192c6b Start update of Ruby packages to 1.8.6-p111. 2007-10-06 06:12:19 +00:00
taca
ea19802b12 Update Ruby to 1.8.6-p110.
Approved by wiz@.
2007-09-24 21:54:50 +00:00
taca
14bb35ca2f Start to switch ruby 1.8.6.36 (1.8.6 patchlevel 36). 2007-09-09 14:15:27 +00:00
taca
3f6f9e879f Fix a trivial typo which affect nothing now. 2007-05-17 14:42:32 +00:00
taca
0257375859 Updating Ruby to 1.8.6.
- discontinue use of RUBY_PATCH_DATE.
- Introduce RUBY_PATCH_LEVEL.

pkgsrc's ruby tracks Ruby's patch release and avoid to maintain
its own patch files (with RUBY_PATCH_DATE).

Changes are too much, please see ChangeLog file.
2007-03-15 16:41:01 +00:00
taca
922992b327 Fix ruby-build-ri-db option related problem.
- Include options.mk before rubyversion.mk, so PLIST for ri database
  should be created suitably.

- make RUBY_RIDIR and its friends relative path to ${PREFIX}.

- Fix and improve handling of ${RUBY_RIDIR} handling and should
  be fixed remaining ${RUBY_RIDIR} after pkg_delete ruby18-base.
  (Noted by private mail from wiz@.)

Bump PKGREVISION of ruby18-base package.
2007-01-28 15:15:57 +00:00