aboutsummaryrefslogtreecommitdiff
path: root/lang/ruby18
Commit message (Collapse)AuthorAgeFilesLines
* - Don't build ruby with threads support on FreeBSD versions before 7.2Stanislav Sedov2009-10-123-18/+150
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | - 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> Notes: svn path=/head/; revision=242727
* - Add ${PTHREAD_LIBS} to LDFLAGS in threaded build. This fixes the issueStanislav Sedov2009-07-191-0/+1
| | | | | | | | | | when pthread libraries don't show up in Config::CONFIG["LIBS"] in some cases. Reported by: dinoex Notes: svn path=/head/; revision=238062
* - Fix stack overflow detection algorithm. It has not worked before asStanislav Sedov2009-06-193-19/+183
| | | | | | | | | | | | | | | | | | | | | | | | | | 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> Notes: svn path=/head/; revision=236301
* - Fix the bug in ruby GC when object finalizer were never called. This hasStanislav Sedov2009-06-183-0/+41
| | | | | | | | | | | | | | | | | | 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] Notes: svn path=/head/; revision=236218
* - Fix BigDecimal DoS vulnerability in ruby 1.8.7.Stanislav Sedov2009-06-121-0/+211
| | | | | | | | | | - Bump portrevision. Obtained from: ruby-lang CVS Security: 62e0fbe5-5798-11de-bb78-001cc0377035 Notes: svn path=/head/; revision=235669
* - Really remove GC patch support.Stanislav Sedov2009-06-031-6/+0
| | | | | | | | PR: ports/135207 Submitted by: Keith Gaughan <kmgaughan@eircom.net> Notes: svn path=/head/; revision=235111
* - Update ruby 1.8.7 to the latest revision available from ruby-lang.org.Stanislav Sedov2009-06-028-539/+216
| | | | | | | | | | 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. Notes: svn path=/head/; revision=235044
* - Ruby socket connect code seems to work unstably in case if connectionStanislav Sedov2009-02-231-0/+105
| | | | | | | | | | | | | 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> Notes: svn path=/head/; revision=228852
* - Fix ruby-tk build.Stanislav Sedov2009-02-131-3/+5
| | | | | | | Reported by: pav Notes: svn path=/head/; revision=228233
* - Fix build with port's openssl version.Stanislav Sedov2009-02-122-19/+0
| | | | | | | Reported by: Jan Henrik Sylvester <me@janh.de> Notes: svn path=/head/; revision=228126
* - Fix pkg-plist.Stanislav Sedov2009-02-122-8/+34
| | | | | | | Pointy hat to: me Notes: svn path=/head/; revision=228112
* - Update ruby18 to 1.8.7p72.Stanislav Sedov2009-02-124-16/+25
| | | | | | | | PR: ports/124837 (based on) Submitted by: KIMURA Yasuhiro <yasu@utahime.org> Notes: svn path=/head/; revision=228110
* - Fix build with OPENSSL_PORT.Stanislav Sedov2009-01-122-0/+17
| | | | | | | | PR: ports/130399 Submitted by: bf <bf2006a@yahoo.com> Notes: svn path=/head/; revision=225831
* - Remove conditional checks for FreeBSD 5.x and olderPav Lucistnik2009-01-052-18/+1
| | | | Notes: svn path=/head/; revision=225297
* - Remove files forgotten in previous commit.Stanislav Sedov2008-08-166-511/+0
| | | | Notes: svn path=/head/; revision=218658
* - Update ruby to 1.8.6 patchset 287.Stanislav Sedov2008-08-1513-687/+149
| | | | Notes: svn path=/head/; revision=218653
* - Fix CVE-2008-1447 (DNS spoofing vulnerability).Stanislav Sedov2008-08-106-0/+511
| | | | | | | | | | | | - 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> Notes: svn path=/head/; revision=218354
* - Add a couple of other patches from ruby SVN repo:Stanislav Sedov2008-06-253-0/+45
| | | | | | | | | | | * fix integer overflow in bignums; * correctly check for string length in regexps; * fix memory leak in parse.c. - Bump portrevision. Notes: svn path=/head/; revision=215782
* - Fix possible memory corruption when using String;Stanislav Sedov2008-06-214-0/+243
| | | | | | | | | | | - fix integer overflow in Array; - fix overflow in String; - bump PORTREVISION. Obtained from: ruby VCS Notes: svn path=/head/; revision=215450
* - Fix webrick vulnerabilityStanislav Sedov2008-04-064-11/+397
| | | | | | | | | | - Update rexml to 3.1.7.2 - Bump portrevision. Obtained from: ruby svn Notes: svn path=/head/; revision=210643
* - Fix a typo in the bundled REXML package.Stanislav Sedov2007-12-041-0/+11
| | | | | | | | | | - Bump up portrevision. Approved by: portmgr (marcus) Reported by: mat Notes: svn path=/head/; revision=202896
* - Update ruby to the latest 111 patchversion.Stanislav Sedov2007-10-3018-855/+13
| | | | | | | | | It's a bugfix release. Thanks to: Alexander Logvinov <ports@logvinov.com> for initial patchset. Notes: svn path=/head/; revision=202429
* Remove support for OSVERSION < 5Edwin Groothuis2007-10-031-1/+1
| | | | Notes: svn path=/head/; revision=200759
* - Set --mandir and --infodir in CONFIGURE_ARGS if the configure scriptRong-En Fan2007-07-231-2/+1
| | | | | | | | | | | | | | | | | | | | | 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 Notes: svn path=/head/; revision=196111
* - Delete rb_thread_status prototype from public header, since it causesStanislav Sedov2007-07-151-5/+2
| | | | | | | | | | problems with some extensions. This also had been fixed in upsteam CVS. - Bump portrevision. Reported by: many Notes: svn path=/head/; revision=195645
* - Add a bunch of fixes and patchs from the upstream. These fixes a lot ofStanislav Sedov2007-07-1016-1/+857
| | | | | | | | | | serious bugs, some of which can pose security-related problems. - Bump up PORTREVISION. Requested by: many Notes: svn path=/head/; revision=195369
* Do pre-install actions as rootBrian Somers2007-05-251-1/+1
| | | | | | | Approved by: stas (maintainer) Notes: svn path=/head/; revision=191820
* - Install NEWS file too.Stanislav Sedov2007-05-032-0/+2
| | | | | | | Suggested by: knu Notes: svn path=/head/; revision=191495
* - Hack around RUBY_PORTEPOCH being set later than PKGNAME suffix is determinedPav Lucistnik2007-04-051-0/+3
| | | | | | | With hat: portmgr Notes: svn path=/head/; revision=189257
* - Use common RUBY_PORTEPOCH variable.Stanislav Sedov2007-04-041-1/+1
| | | | Notes: svn path=/head/; revision=189183
* - Update ruby to 1.8.6Stanislav Sedov2007-04-035-16/+23
| | | | | | | | - Synchronise portversions and portepochs in all ruby subports - Take maintainerships of all ruby subports. Notes: svn path=/head/; revision=189129
* - COPYTREE_* are now part of bsd.port.mkPav Lucistnik2007-03-241-7/+0
| | | | | | | | PR: ports/100996 Submitted by: stass Notes: svn path=/head/; revision=188171
* - Add patch that allows GC performance profiling and analasys.Stanislav Sedov2007-01-022-0/+542
| | | | | | | - Bump portrevison Notes: svn path=/head/; revision=181294
* - Update lang/ruby18 to 1.8.5p12 (bugfix release)Stanislav Sedov2007-01-026-10561/+304
| | | | | | | | | | | | | | - 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) Notes: svn path=/head/; revision=181277
* - Fix an another cgi library vulnerabilityStanislav Sedov2006-12-042-4/+29
| | | | | | | | | | | - Bump portrevision PR: ports/106287 Reported by: UEDA Hiroyuki <bsdmad@gmail.com> Obtained from: ruby cvs Notes: svn path=/head/; revision=178850
* - Back-out the previous commit, as it can cause linking problems (pthread'sStanislav Sedov2006-11-191-2/+3
| | | | | | | | | | | unresolved symbols) on some systems (e.g. with libgnomeui). Linking threading libraries donesn't employ threading in ruby per se, so it's safe to do that in non-threaded case. Reported by: mezz Notes: svn path=/head/; revision=177636
* - Don't links agains threading libraries in case if pthreads support wasStanislav Sedov2006-11-141-2/+4
| | | | | | | | | disabled. Reported by: Anton Yuzhaninov <citrin@citrin.ru> Notes: svn path=/head/; revision=177277
* - Add a workaround for the recently disclosed DoS vulnerability in the cgi.rbStanislav Sedov2006-11-042-1/+12
| | | | | | | | | | | ruby18 module - Bump portrevision PR: ports/105113 Submitted by: UEDA Hiroyuki <BSDmad@gmail.com> Notes: svn path=/head/; revision=176342
* - Fix pkg-plist when ONIGURUMA option usedStanislav Sedov2006-10-152-1/+6
| | | | | | | | | | - Bump portrevision Submitted by: nork Approved by: portmgr (clement) Notes: svn path=/head/; revision=175323
* - Add runtime knob to allow libraries installation under userStanislav Sedov2006-10-091-5/+12
| | | | | | | | | | | | | | privileges. When RB_INSTALL_USER environment variable is set, ruby will not pass '${_BINOWNGRP}' to install program, thus allowing an ordinal user to install gem or library (e.g. into home directory). - Eliminate extra whitespace - Bump portrevision. PR: ports/103801 (idea) Submitted by: Dimitri Aivaliotis <aglarond@gmail.com> Notes: svn path=/head/; revision=175078
* - Prepare port to make ruby libraries PREFIX-clean (also requires bsd.ruby.mkStanislav Sedov2006-10-014-11022/+11133
| | | | | | | | | | | | | | | | | | | | | | | | | | | modifications) - Add OPTIONS - Provide automatic pkg-plist generator to simplify updates - Guarantee permissions safety when installing docs and examples (eliminate ${CP} -r *) - Create handy docs and examples structure (install examples for external libraries in separate directories) - Remove unused KNOB (NORUBYLIB) - Add knob to disable RDOC generation [1] - Add knob to disable IPv6 support - Move list of obsoleted packages to the separate file (files/obsoleted) - Add additional .keep_me like files to allow shared directories to not be deleted by dependent ports - Minor cleanups and modifications - Bump-up portrevision All ruby ports were tested in tinderbox with these modifications. Requested by: VANHULLEBUS Yvan <vanhu_bsd@zeninc.net> [1] PR: ports/103353 [1], ports/102648, ports/102663, ports/102685, ports/102646 Approved by: sem (mentor) Notes: svn path=/head/; revision=174255
* - Assign a new ruby maintainer who submitted patches which will be committedSergey Matveychuk2006-09-131-1/+1
| | | | | | | | | after 6.3-RELEASE Submitted by: Stanislav Sedov <ssedov@mbsd.msk.ru> Notes: svn path=/head/; revision=172935
* - Update to 1.8.5Sergey Matveychuk2006-08-279-525/+7918
| | | | | | | A bugs fix release. Notes: svn path=/head/; revision=171457
* - s,INSTALLS_SHLIB,USE_LDCONFIG,gCheng-Lung Sung2006-08-151-1/+1
| | | | | | | | | | - these include irc/ japanese/ java/ lang/ mail/ math/ maintained by ports@ PR: ports/101916 Submitted by: Gea-Suan Lin <gslin_AT_gslin dot org> Notes: svn path=/head/; revision=170649
* - Fix last discovered security vulnerabilities.Sergey Matveychuk2006-07-304-1/+77
| | | | | | | VuXML id: 76562594-1f19-11db-b7d4-0008743bf21a Notes: svn path=/head/; revision=169116
* - Revert previous commit, it broke ruby-gtk2Pav Lucistnik2006-05-241-3/+4
| | | | | | | Reported by: mezz Notes: svn path=/head/; revision=163310
* - Don't link pthread libs in non-pthread case (the default case)Pav Lucistnik2006-05-241-4/+3
| | | | | | | | PR: ports/97765 (based on) Submitted by: Takeshi MUTOH <mutoh@openedu.org> Notes: svn path=/head/; revision=163245
* - Fix PKGNAMESUFFIX when both Oniguruma and pthreads are enabledPav Lucistnik2006-05-151-1/+1
| | | | | | | | PR: ports/97178 (based on) Submitted by: cokane Notes: svn path=/head/; revision=162432
* Remove obsolete USE_REINPLACE.OKAZAKI Tetsurou2006-05-032-1/+4
| | | | | | | Add missing entries for the ONIGURUMA option to the plist. Notes: svn path=/head/; revision=161244
* Wrong type of integer argument to ioctl(2) cause ruby18 to produce lotsAndrey Slusar2006-05-022-1/+23
| | | | | | | | | | of sign-extension noises through console / kernel log on FreeBSD/amd64. PR: ports/94088 Submitted by: ariff Notes: svn path=/head/; revision=161190