Commit Graph

186 Commits

Author SHA1 Message Date
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
Stanislav Sedov
b842a54f75 - Beautify comments (wrap and some fixes). 2007-01-02 19:43:02 +00:00
Stanislav Sedov
f2889b4db3 - Update lang/ruby18 to 1.8.5p12 (bugfix release)
- Make RI generation disabled by default (it causes problems
  on slow hardware)
- PREFIX-cleaness fixes (in bsd.ruby.mk) [1]
- Take maintainership of bsd.ruby.mk [1]

The patch was tested in the tinderbox with all ruby-dependend ports.

Approved by:	portmgr (linimon)
2007-01-02 16:23:42 +00:00
Sergey Matveychuk
1e52ae8d80 - Update to 1.8.5
A bugs fix release.
2006-08-27 09:53:28 +00:00
Erwin Lansing
50513d5d52 Add support for DESTDIR part I.
This commit should largele be a NOOP as it only adds support
for DESTDIR undefined. This does allow us to start testing
ports with DESTDIR set, but this is as of yet not supported.

Although this has been extensively tested on pointyhat, this
is a very intrusive change and some cases may have been
overlooked. Please contact Gabor and me if you find any.

PR:             100555
Submitted by:   gabor
Sponsored by:   Google Summer of Code 2006
2006-08-04 12:34:50 +00:00
Mark Linimon
e2d64eefa6 * Change all bogus uses of BROKEN to IGNORE. Note: the BROKEN_WITH_*
forms are retained for compatibility but deprecated [1]

* Add sha256 to CHECKSUM_ALGORITHMS [2]

* Remove some whitespace [2]

* Add USE_SCONS and bsd.scons.mk for the Python-based SCons build system [3]

* Fix USE_LDCONFIG with non-default PREFIX [4]

* Add USE_WX and friends, and bsd.wx.mk, for common code for WxWidgets
  support [5]

* Add 'make missing' to show missing dependencies [6]

* Fix DESKTOP_ENTRIES processing on 4.x [7]

PR:	92445 [1], 98206 [2], 98731 [3], 99370 [4], 89398 [5],
	93601 [6], 98891 [7]

Submitted by:	linimon [1], edwin [2], alex at foxybanana dot com [3],
		gerald [4], flz [4], alepulver [5], alex at fafula dot com [6],
		shaun [7]
2006-07-05 02:18:09 +00:00
Akinori MUSHA
802409539e Allow CONFIGURE_TARGET to be overridden.
PR:		ports/93457
Submitted by:	Jason E. Hale <bsdkaffee -at- gmail.com>
2006-05-17 03:18:15 +00:00
Kirill Ponomarev
01c588a635 - Fix 'all-depends-list' target in cases if dependencies list is
very long and if some dependencies can't be added into the list.
  [1]

- Fix FAM support.  Make gamin the default FAM system. [2]

- Introduce new 'quicksearch' target to show only port, path and
  info section of the matching ports. [3]

- Introduce new category - rubygems. [4]

- Fix stale dependencies while installing qmail slaveport and
  another port that depends on qmail. [5]

- Add commentary for describes target in bsd.port.mk. [6]

- Fix warning issued during make index on archs !368. [7]

- Add USE_DOS2UNIX variable.  If set to "YES", remove the ^M from
  all files under ${WRKSRC}. If set to a string, remove in all files
  under ${WRKSRC} with one of these names the ^Ms. [8]

- Add new variables PERL_RUN_DEPENDS and PERL_BUILD_DEPENDS by
  checking the existance of the Perl modules with the "perl -e 'use
  module;'" command. [9]

- Fix bsd.port.mk variable quoting issues.  No quoting is necessary
  anymore either in the Makefile or on the command line.  Affected
  variables include:

  BROKEN
  FORBIDDEN
  IGNORE
  MANUAL_PACKAGE_BUILD
  NO_CDROM
  NO_PACKAGE
  RESTRICTED

  [10]

- Add NOFETCHFILES variable.  If set, don't download these files
  from the ${MASTER_SITES} or ${MASTER_SITE_BACKUP} (but do from
  ${MASTER_SITE_OVERRIDE}). [11]

- Improve 'search' target output. [12]

- Add a new virtual category for Amateur Radio - hamradio. [13]

- Cleanup some old/unused pathes in bsd.port.mk. [14]

- Add @dirrmtry for plists which does the same as:
  "@unexec rmdir %D/foo 2>/dev/null || true" [15]

- Remove virtual category - offix. [16]

- Use portsnap instead of cvsup or cvs on "make update" in
  /usr/ports. [17]

- Move location of bsd.autotools.mk within bsd.port.mk [18]

- Add bsd.linux-rpm.mk, fix INSTALLS_SHLIB for Linux ports [19]

- Use new USE_RC_SUBR format for FreeBSD version >= 700007 [20]

- Replace the string "FreeBSD" by "The FreeBSD Project" in the
  security warning [21]

- Add bsd.local.mk for local modification to ports framework. [22]

- Replace rcNG spelling by rc.d [23]

- Remove superfluous USE_REINPLACE. [24]

Special thanks to:      linimon for spending hours with all these patches
                        clement for fixes
                        kris for help with pointyhat
PR:     ports/86310 [1], ports/89498 [2], ports/83530 [3],
        ports/83789 [4], ports/84053 [5], ports/86281 [6],
        ports/87214 [7], ports/87234 [8], ports/87318 [9],
        ports/87396 [10], ports/87605 [11], ports/87840 [12],
        ports/88230 [13], ports/88493 [14], ports/88711 [15],
        ports/88751 [16], ports/89281 [17], ports/89999 [18],
        ports/90031 [19], ports/90150 [20], ports/90668 [21],
        ports/91433 [23], ports/88754 [24]
Submitted by:   mi [1], marcus [2], Lars Engels <lars.engels@0x20.net> [3],
                pav [4, 16, 20, 24], garga [5], cperciva [6], vd [7],
                edwin [8, 9, 11, 15, 21],
                fenner [10], Arseny Nasokin <tarc.po.cs.msu.su@tarc.po.cs.msu.su> [12],
                Carl Makin <carl@stagecraft.cx> [13], arved [14],
                NIIMI Satoshi <sa2c@sa2c.net> [17], thierry [18],
                jylefort [19], linimon [22], dougb [23]
2006-01-21 17:37:14 +00:00
Pav Lucistnik
bd8740c1e2 - ftp.iDaemons.org is unavailable lately 2006-01-14 15:46:10 +00:00
Pav Lucistnik
468362a5b7 - Update to 1.8.4
PR:		ports/91556
Submitted by:	Alexander Wittig <alexander@wittig.name>
2006-01-14 13:25:43 +00:00
Sergey Matveychuk
8c2298d950 - Back out the last update. It breaks many ruby ports install.
Reported by:	kris via pointyhat
2005-11-14 09:46:15 +00:00
Sergey Matveychuk
614c684ada bsd.ruby.mk:
- Change LOCALBASE with _RUBY_BASE
- Set _RUBY_BASE=PREFIX if defined _RUBY_PORT_TEST
  _RUBY_BASE=LOCALBASE otherwise for easy ports testing.

lang/ruby18:
- Update to 1.8.3

Grant maintainership to submitter.

While I'm here:
- Add _RUBY_PORT_TEST=yes to lang/ruby16 port too.
  (lang/ruby1[68] must set it for right install).

PR:		ports/87332
Submitted by:	Alexander Novitsky
2005-11-09 08:54:12 +00:00
Sergey Matveychuk
705fca86db - Fix a ruby vulnerabuility in the safe level settings.
Based on:	ports/87816
Submitted by:	Phil Oleson <oz@nixil.net>

Security:	http://vuxml.FreeBSD.org/1daea60a-4719-11da-b5c6-0004614cc33d.html
2005-10-27 19:40:25 +00:00
Florent Thoumie
a9fb6a5b22 - Replace .error with BROKEN.
PR:		ports/68569
Submitted by:	eik
Approved by:	maintainer timeout (almost 1 year)
2005-06-05 23:29:11 +00:00
Akinori MUSHA
870baf2a9a The slippery pthread support for systems prior to 502102 has been
dropped and the lang/ruby16_r and lang/ruby18_r ports have been
removed, since no one seems to appreciate the partially working
solution.

Good news is that the pthread support of lang/ruby18 is now enabled by
default for newer systems, which means the ruby interpreter is linked
with libpthread.  This will allow threaded extension libraries to run
and work properly on those systems.

The --march=cputype flag is disabled because it gets ruby to
malfunction and fail to build.  I don't know if the problem is in
libpthread or in gcc.

(It really makes me wonder if they had actually tested before asking
me to do this somewhat risky change ;-)
2005-02-05 04:59:26 +00:00
Akinori MUSHA
930c34b164 Update lang/ruby18 to the 1.8.2 release. Happy holidays! 2004-12-25 04:28:37 +00:00
Akinori MUSHA
50db8ccf3a Update lang/ruby18 to 1.8.2-preview4.
* Please upgrade sysutils/portupgrade prior to this one, or pkgdb(1)
  may coredump with a double free() problem from a misuse of the DL
  module.  In that case, reinstall sysutils/portupgrade manually.
2004-12-23 20:30:09 +00:00
Akinori MUSHA
e522bb3fe0 Update lang/ruby16 to the latest snapshot as of 2004-07-28, fixing
cgi/session's insecure permissions problem.
2004-08-17 07:10:44 +00:00
Akinori MUSHA
e68b38c1ca Define RUBY_RIDIR and RUBY_SITERIDIR. 2004-08-12 09:45:08 +00:00
Akinori MUSHA
790c513316 Update lang/ruby18 to 1.8.2-preview2. 2004-08-12 08:57:52 +00:00
Akinori MUSHA
11c6011eed Propagate RUBY_VER and RUBY_R through DEPENDS_ARGS. 2004-05-22 18:49:49 +00:00