Commit graph

206 commits

Author SHA1 Message Date
Stanislav Sedov
a37d53f5bb - Update ruby 1.8 to 1.8.7 patchlevel 352. 2011-07-16 01:51:49 +00:00
Stanislav Sedov
f734ac8f71 - Update ruby 1.9 to 1.9.2p136.
This is a bugfix release.
2011-05-11 05:41:15 +00:00
Stanislav Sedov
df030013c6 - As ports ruby 1.9 now includes a recent version of rake,
revert a part of 1.197 by pgollucci which breaks rake with
  ruby 1.9 and switch back to using the ruby 1.9 bundled one.

PR:		ports/155539, ports/156217
Submitted by:	Ralf Gebhart <gebhart@secnetix.de>, Anonymous <swell.k@gmail.com>
2011-04-06 19:36:50 +00:00
Stanislav Sedov
99f91988ea - Update ruby 1.8 to p302.
PR:		ports/151712
Reported by:	Pavel Argentov <argentoff@gmail.com>
2010-11-22 05:47:08 +00:00
Stanislav Sedov
fd4e416769 - Do not link ruby18 agains librt.
- Bump portrevision.

PR:		ports/149003
Submitted by:	Anonymous <swell.k@gmail.com>
2010-10-11 06:36:41 +00:00
Stanislav Sedov
54b52675de - Update ruby19 to 1.9.2.
- Do not link agains librt. [1]

PR:		ports/149003 [1]
Submitted by:	Anonymous <swell.k@gmail.com> [1]
2010-10-11 03:09:54 +00:00
Stanislav Sedov
c7dfe5824e - Provide the correct value for TOPDIR in ruby 1.9.
- Bump portrevision.

Reported by:	Jase Thew (irc)
2010-09-20 01:28:36 +00:00
Ade Lovett
8262a7b51d Autotools update. Read ports/UPDATING 20100915 for details.
Approved by:	portmgr (for Mk/bsd.port.mk part)
Tested by:	Multiple -exp runs
2010-09-15 18:35:24 +00:00
Philip M. Gollucci
085779a1f9 - Support NOPORTDOCS (--no-rdoc) for RUBYGEM_AUTOPLIST=yes ports
PR:                 ports/147547
Submitted by:       myself (pgollucci)
No objection from:  stas
With Hat:           ruby
Sponsored by:       RideCharge Inc. / Taximagic
2010-09-01 23:39:33 +00:00
Philip M. Gollucci
d2e84b418d - Fix www/rubygem-passenger under lang/ruby19 [1]
- Fix www/rubygem-rake under lang/ruby19 [2]

PR:             ports/147137 [3], ports/143661 [1], ports/144606 [2]
Submitted by:   myself (pgollucci),
                Jyun-Yan You <jyyou@cs.nctu.edu.tw> [1]
                "Aaron D. Gifford" <Aaron.D.Gifford@FreeBSD.org> [2]
Approved by:    maintainer timeout (stas) [3] / myself
With Hat:       ruby
2010-08-31 03:28:05 +00:00
Stanislav Sedov
60808d3d09 - Update ruby 1.9.1 to p430. This release fixes CVE-2010-0541.
- Fix CVE-2010-0541 in ruby18.  Bump portrevision.
- Fix ruby19 build with openssl 1.1.
2010-08-18 03:46:00 +00:00
Stanislav Sedov
8649bd09e5 - Fix incorrect errno returned by IO::write.
Reported by:	John-Paul Bader <contact@smyck.org>
Obtained from:	ruby svn (revision r26253)
2010-04-28 23:59:55 +00:00
Stanislav Sedov
561017fe76 - Do not try to stop the timer thread in child after fork: at this moment
there's already nothing to stop.  Only mark the timer thread as stopped.
  That fixes spontaneous lockups in ruby popen call.

Reported by:	renchap @ FreeNode
2010-04-27 22:14:06 +00:00
Stanislav Sedov
27705ea5ca - Fix rubygems location for ruby 1.9, which got broken after the last
update.
- Bump portrevision.

Submitted by:	Aaron Gifford <astounding@gmail.com> (based on)
2010-01-29 18:25:32 +00:00
Stanislav Sedov
b9a75be4bd - Update to patchlevel 248. 2010-01-06 06:31:21 +00:00
Stanislav Sedov
253f1b71cb - Update ruby 1.9 to 1.9.1 patchlevel 376. This fixes CVE-2009-4124.
Security:	eab8c3bd-e50c-11de-9cd0-001a926c7637
2009-12-09 23:45:30 +00:00
Stanislav Sedov
d4693481b1 - Fix issue when the handle of tempfile become closed when the file
was unlinked (see http://redmine.ruby-lang.org/issues/show/1494#note-10).
- Bump PORTREVISION.

PR:		ports/139862
Submitted by:	Ari Maniatis <ari@ish.com.au>
Obtained from:	Ruby SVN
2009-10-24 10:52:07 +00:00
Stanislav Sedov
484e14b422 - Fix SIGINT signal handling.
PR:             ports/136804
Submitted by:   Emiel van de Laar <gemiel@gmail.com>
Obtained from:  ruby-lang SVN
2009-10-12 15:28:22 +00:00
Stanislav Sedov
afca0c68d3 - Update ruby 1.9.1 to patchlevel 243. 2009-10-12 15:05:01 +00:00
Stanislav Sedov
ef38fc3bb8 - Don't build ruby with threads support on FreeBSD versions before 7.2
- On FreeBSD >= 7.2 allocate the new thread with adequate amount of stack
  space to run the main ruby code in.  This allows to mitigate problem
  when too low stack space available for ruby when running with pthreads
  enabled.
- Bump portrevision.

The long version.  Before this change we used to link ruby against pthreads
uncoditionally on all versions of FreeBSD.  This is indispensable in order
to load the threaded shared objects withing ruby.  However, this causes a
dramatic decrease in the stack space available as pthreads only allows
up to several megabytes of stack space for the main application threads.
The only solution to this is to create the new thread immediately after
the program start with rigth stack size attributes set.  Nonetheless this
scheme won't work for us on FreeBSD version before 7.2 as malloc implementation
in these versions was not threaded fork safe (i.e. this is impossible to
fork from the threaded program and expect malloc/free functions to work).
Thus the only solution for now can be to disable pthreads entirely on
FreeBSD <= 7.2.  This won't cause any performance/usability problems for
users as Ruby 1.8 uses green threads, however it may prevent <= 7.2
users to load shared libraries linked agains pthreads.

Reported by:	"François Montel" <seanmullen@gmail.com>
Tested by:	Sean Mullen <seanmullen@gmail.com>
2009-10-12 13:15:50 +00:00
Stanislav Sedov
81c7e6f3bd - Bump ruby18 portrevision. 2009-07-19 16:43:37 +00:00
Stanislav Sedov
263664e7b5 - Fix stack overflow detection algorithm. It has not worked before as
we were linking the ruby binary against pthreads, and the default
  stack size detection method with getrlimit didn't returned right
  values in this case.  Now, if threads enabled, it also tries to
  determine the stack size via pthreads calls and use this value if
  it is smaller than what getrlimit returned.  Furthermore, the stack
  overflow detection routine now works proactively, generating
  exception if there're probability the stack will be exhausted by
  the time of the next check (ruby performs checks only in each 256th
  call of rb_call0). [1]
- Build pthreads-enabled ruby by default. I have not received any
  bug reports for this for years, and this verison will work correctly
  with threaded libraries. Also, do not link agains pthreads in non-pthread
  case (this breaks stack size detection algorithm), and eliminate the
  option to disable pthreads (so only power users who know what they're
  doing can disable them).
- Build RDoc by default so it is available in the package.
- Bump portrevision.

PR:		ports/132158
Reported by:	Eugene Pimenov <libc@libc.st>
2009-06-19 12:42:45 +00:00
Stanislav Sedov
1c15187aab - Fix the bug in URI module that smashed uri paths in merge method for
ftp uris.

PR:		ports/131775
Reported by:	Helmut Schneider <jumper99@gmx.de>
2009-06-18 13:01:02 +00:00
Stanislav Sedov
b1d5ca8b71 - Fix the bug in ruby GC when object finalizer were never called. This has
been triggered by portupgrade which uses finalizers to remove lockfiles.
- Fix the bug in URI module that smashed uri paths in merge method for
  ftp uris. [1]
- Fix segmentation fault when cloning objects with dynamically created
  methods (via instance_eval). [2]

PR:		ports/131775 [1], ports/135533 [2]
Submitted by:	Yoshisato YANAGISAWA <osho@pcc-software.org> [2],
		Helmut Schneider <jumper99@gmx.de> [1],
		Jaakko Heinonen <jh@saunalahti.fi> [1],
		Peter Hofer <ph@desktopbsd.net> [1]
Obtained from:	ruby_1_8 svn tree (rev 22679) [2]
2009-06-18 12:43:26 +00:00
Stanislav Sedov
2d3c048576 - Fix BigDecimal DoS vulnerability in ruby 1.8.7.
- Bump portrevision.

Obtained from:	ruby-lang CVS
Security:	62e0fbe5-5798-11de-bb78-001cc0377035
2009-06-12 22:44:56 +00:00
Stanislav Sedov
926e6d3624 - Update ruby 1.9.1 to patchset 129. 2009-06-03 13:37:57 +00:00
Stanislav Sedov
5d63ebd5f5 - Update ruby 1.8.7 to the latest revision available from ruby-lang.org.
This updates also borrows some important bugfixes from Ruby CVS that
  is not available in patchlevel 160 yet.
- Drop GC patch support. It is broken with the new ruby version and
  seem to require the complete rewriting.
2009-06-02 17:25:37 +00:00
Stanislav Sedov
1d3f15db4d - Bump ruby portrevision after the last fix. 2009-02-23 00:44:22 +00:00
Stanislav Sedov
bc1dd305f4 - Document USE_RUBYGEMS and RUBYGEM_AUTOPLIST knobs. 2009-02-13 23:31:32 +00:00
Stanislav Sedov
49fadd1882 - Add a new knob RUBYGEM_AUTOPLIST, which allows the pakcking list
for most (all?) rubygem ports to be generated automatically.
2009-02-13 22:48:51 +00:00
Stanislav Sedov
8047098399 - Update ruby18 to 1.8.7p72.
PR:		ports/124837 (based on)
Submitted by:	KIMURA Yasuhiro <yasu@utahime.org>
2009-02-12 14:24:56 +00:00
Stanislav Sedov
66cdabac86 - Bump ruby19 portrevision after rubylibdir fix. 2009-02-11 00:54:20 +00:00
Stanislav Sedov
ffe7a61239 - Update ruby19 to 1.9.1.
PR:		ports/129818 (based on)
Submitted by:	Hung-Yi Chen <gaod@hychen.org>
2009-02-09 17:49:51 +00:00
Stanislav Sedov
0d117481de - Update ruby to 1.8.6 patchset 287. 2008-08-15 21:45:56 +00:00
Stanislav Sedov
344acaf18a - Fix CVE-2008-1447 (DNS spoofing vulnerability).
- Fix Webrick DoS vulnerability.
- Serveral minor bugfixes in cgi.rb, ipaddr.rb and resolver.
- Bump PORTREVISION.

Obtained from:	ruby VCS
Tested by:	Ilya Bakulin <webmaster@kibab.com>
2008-08-10 19:26:33 +00:00
Pav Lucistnik
80339c4345 - Forbid automatical fetching of rubygems from rubyforge
Submitted by:	Alexander Logvinov <ports@logvinov.com>
2008-07-24 07:51:12 +00:00
Stanislav Sedov
5027cd7b72 - Add a couple of other patches from ruby SVN repo:
* fix integer overflow in bignums;
  * correctly check for string length in regexps;
  * fix memory leak in parse.c.

- Bump portrevision.
2008-06-25 23:00:28 +00:00
Stanislav Sedov
1fc6f981bf - Fix possible memory corruption when using String;
- fix integer overflow in Array;
- fix overflow in String;
- bump PORTREVISION.

Obtained from:	ruby VCS
2008-06-21 10:34:53 +00:00
Stanislav Sedov
662f637eb4 - Fix webrick vulnerability
- Update rexml to 3.1.7.2
- Bump portrevision.

Obtained from:	ruby svn
2008-04-06 10:29:54 +00:00
Stanislav Sedov
2ef3a8e563 - Update ruby 1.9 to patchlevel 1. Forgotten in previous commit. 2008-04-06 09:25:27 +00:00
Stanislav Sedov
fae8e0f615 - Add ruby 1.9 support
- Implement new knobs for gems and rake (these are included in
  ruby 1.9 distribution already). Also move gem bits from
  ruby-gems/Makefile.common to bsd.ruby.mk[1]. Now to depend
  on gems or rake you should define USE_RUBYGEMS/USE_RAKE
  accordingly. Also RAKE_BIN variable is provided for
  pointing to the right rake executable.
- Rewrite RUBY_SCHEBANG in awk to eliminate build dependency
  on ruby.

Discussed with:	Jonathan Weiss <jw@innerewut.de> [1] (gems maintainer)
Tested by:	ports@
2008-04-06 08:58:21 +00:00
Stanislav Sedov
3d86af7e4a - Fix a typo in the bundled REXML package.
- Bump up portrevision.

Approved by:	portmgr (marcus)
Reported by:	mat
2007-12-04 12:26:07 +00:00
Stanislav Sedov
4f98af6d86 - Update ruby to the latest 111 patchversion.
It's a bugfix release.

Thanks to:	Alexander Logvinov <ports@logvinov.com> for initial patchset.
2007-10-30 11:24:59 +00:00
Gabor Kovesdan
4c9cd257fd - Extract command variable definitions from bsd.port.mk, they are now stored in
bsd.commands.mk and can be easily reused within the infrastructure.
- Revert old DESTDIR implementation.
- Add a new, fully chrooted DESTDIR implementation as bsd.destdir.mk.

Sponsored by:	Google Summer of Code 2007
Approved by:	portmgr (pav)
2007-08-04 11:37:24 +00:00
Stanislav Sedov
61a4eaf412 - Delete rb_thread_status prototype from public header, since it causes
problems with some extensions. This also had been fixed in upsteam CVS.
- Bump portrevision.

Reported by:	many
2007-07-15 09:39:06 +00:00
Stanislav Sedov
889c289308 - Add a bunch of fixes and patchs from the upstream. These fixes a lot of
serious bugs, some of which can pose security-related problems.
- Bump up PORTREVISION.

Requested by:	many
2007-07-10 15:04:49 +00:00
Stanislav Sedov
b2af53dd11 - Add forgotten RUBY_PORTEPOCH variable [1]
- Document new variables.

PR:		ports/111209 [1]
Submitted by:	KIMURA Yasuhiro <yasu@utahime.org> [1]
2007-04-04 12:52:04 +00:00
Stanislav Sedov
8752c350a7 - Update ruby to 1.8.6
- Synchronise portversions and portepochs in all ruby subports
- Take maintainerships of all ruby subports.
2007-04-03 21:57:49 +00:00
Stanislav Sedov
5d1eefff07 - Remobe ruby 1.6 bits. 2007-02-13 10:33:46 +00:00
Stanislav Sedov
58b782278a - Add patch that allows GC performance profiling and analasys.
- Bump portrevison
2007-01-02 20:58:41 +00:00