1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-02 01:20:54 +00:00
Commit Graph

212 Commits

Author SHA1 Message Date
Jason Helfman
f0bbc55498 - update remaining ruby@ maintained ports to new options framework
- trim historical header where applicable

Reviewed by:	swills@ (ruby@)
2013-01-11 22:05:13 +00:00
Steve Wills
3b83023999 - Update to 1.8.7 p371
Security:	2a093853-2495-11e2-b0c7-000d601460a4
Feature safe:	yes
2012-11-02 14:24:53 +00:00
Steve Wills
6f30916e32 - Fix build with clang
Submitted by:	dim
2012-09-18 20:41:15 +00:00
Steve Wills
21ac3b59a5 - Update to 1.8.7p370
PR:		ports/169668
Submitted by:	stas
Approved by:	portmgr (linimon)
2012-07-16 19:11:35 +00:00
Steve Wills
b056987a7e - Update lang/ruby18 to p385
- Update lang/ruby19 to p125

Changes:

http://www.ruby-forum.com/topic/3663807#1047121
http://www.ruby-lang.org/en/news/2012/02/16/ruby-1-9-3-p125-is-released/

PR:		ports/165223
Submitted by:	swills (myself)
Reviewed by:	pgollucci
Approved by:	portmgr
2012-02-25 15:25:49 +00:00
Steve Wills
922347982c - Update to 1.8.7p357
Reviewed by:	pgollucci
Security:	91be81e7-3fea-11e1-afc7-2c4138874f7d
2012-01-21 15:40:26 +00:00
Philip M. Gollucci
115595bcde - Fix compile w/ CLANG
upstream openssl changed the return type of openssl HMAC_CTX_copy from void to int
- The resultant binary is unaffected, so no PORTREVISION bump

Tested by:      md5 ruby18
Tested by:      make test-all
With Hat:       ruby@
2012-01-18 03:05:24 +00:00
Philip M. Gollucci
f1dde8025b Let ruby@ maintain ruby 2011-11-01 22:56:45 +00:00
Stanislav Sedov
422bce3414 - Return my ports back to the pool. I was unable to make any fixes to
my ports in the past 3 weeks while ports were broken on any 10.x
  machines, which means I'm unable to maintain them.  So let people know
  that there's no available support for them until things are back to
  normal (which also means that anyone with spare time will be able
  to fix them without getting approval).
2011-10-24 03:33:20 +00:00
Stanislav Sedov
a37d53f5bb - Update ruby 1.8 to 1.8.7 patchlevel 352. 2011-07-16 01:51:49 +00:00
Philip M. Gollucci
1d3a44db09 Clean up ruby pkg-plists:
%%RUBY_SITEARCHLIBDIR%%
    %%RUBY_SITELIBDIR%%
    lib/ruby/site_ruby
    %%RUBY_VENDORARCHLIBDIR%%
    %%RUBY_VENDORLIBDIR%%
    lib/ruby/vendor_ruby
    lib/ruby

Above directories are owned by lang/ruby1[89] ports.

PR:         ports/153041
Tested by:  2-exp runs by pav
With Hat:   ruby@
2010-12-20 02:46:25 +00:00
Ade Lovett
4a8684e352 Sync to new bsd.autotools.mk 2010-12-04 07:34:27 +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
Ade Lovett
6abd00a86b Punt autoconf267->autoconf268 2010-10-16 11:52:47 +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
Ade Lovett
7e80cde328 Round one migration of ports from automake{19,110} to automake111 2010-10-05 19:57:56 +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
Johan van Selst
c699a49aaf Fix generation of broken Makefiles in case a setting occurs multiple
times in the auto-generated config.status file (happens with new m4).
This only fixes a potential build error - no package changes.
2010-09-05 22:20:59 +00:00
Philip M. Gollucci
f2a11ee0e9 - remove extra -g from CFLAGS
- WITH_DEBUG is handled in Mk/bsd.port.mk

PR:             ports/146863
Submitted by:   Anonymous <swell.k@gmail.com>
Silence from:   stas (maintainer)
2010-08-31 03:58:11 +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
6d56292e00 - Fix build without pthreads.
PR:		ports/146112
Reported by:	Paul <Paul.Shepel@gmail.com>
2010-04-28 19:10:27 +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
61b5d2baf7 - Fix build with openssl 1.0.
Submitted by:	dinoex
2010-04-06 23:54:52 +00:00
Stanislav Sedov
b9a75be4bd - Update to patchlevel 248. 2010-01-06 06:31:21 +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
d957f63421 - Add ${PTHREAD_LIBS} to LDFLAGS in threaded build. This fixes the issue
when pthread libraries don't show up in Config::CONFIG["LIBS"] in some
  cases.

Reported by:	dinoex
2009-07-19 16:42:09 +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
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
649fff628b - Really remove GC patch support.
PR:		ports/135207
Submitted by:	Keith Gaughan <kmgaughan@eircom.net>
2009-06-03 11:32:18 +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
d99591ca7b - Ruby socket connect code seems to work unstably in case if connection
to remote host was refused. FreeBSD connect(2) call returns EINVAL in
  that case and clears the error code, so there's no way to determine
  what happened. Reimplement ruby_connect via select call instead of
  polling the status by connect(2). This may also reduce overhead (though,
  not verified).

Reported by:	Saku Ytti <saku@ytti.fi>
2009-02-23 00:41:07 +00:00
Stanislav Sedov
245fe878ce - Fix ruby-tk build.
Reported by:	pav
2009-02-13 22:16:27 +00:00
Stanislav Sedov
a9c25292b7 - Fix build with port's openssl version.
Reported by:	Jan Henrik Sylvester <me@janh.de>
2009-02-12 17:54:27 +00:00
Stanislav Sedov
c1611107ce - Fix pkg-plist.
Pointy hat to:	me
2009-02-12 14:59:29 +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
ac4392578e - Fix build with OPENSSL_PORT.
PR:		ports/130399
Submitted by:	bf <bf2006a@yahoo.com>
2009-01-12 11:19:20 +00:00
Pav Lucistnik
41d8c3385c - Remove conditional checks for FreeBSD 5.x and older 2009-01-05 20:36:33 +00:00
Stanislav Sedov
b161cdc667 - Remove files forgotten in previous commit. 2008-08-16 05:56:45 +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
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
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
Edwin Groothuis
c0b3ecac44 Remove support for OSVERSION < 5 2007-10-03 23:22:04 +00:00
Rong-En Fan
f935a609c5 - Set --mandir and --infodir in CONFIGURE_ARGS if the configure script
supports them.  This is determined by running ``configure --help'' in
  do-configure target and set the shell variable _LATE_CONFIGURE_ARGS
  which is then passed to CONFIGURE_ARGS.
- Remove --mandir and --infodir in ports' Makefile where applicable
  Few ports use REINPLACE_CMD to achieve the same effect, remove them too.
- Correct some manual pages location from PREFIX/man to MANPREFIX/man
- Define INFO_PATH where necessary
- Document that .info files are installed in a subdirectory relative to
  PREFIX/INFO_PATH and slightly change add-plist-info to use INFO_PATH and
  subdirectory detection.

PR:		ports/111470
Approved by:	portmgr
Discussed with:	stas (Mk/*), gerald (info related stuffs)
Tested by:	pointyhat exp run
2007-07-23 09:36:51 +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