1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-16 03:24:07 +00:00
Commit Graph

186 Commits

Author SHA1 Message Date
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
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
Brian Somers
f93bcc0449 Do pre-install actions as root
Approved by:	stas (maintainer)
2007-05-25 18:01:51 +00:00
Stanislav Sedov
60872c27d3 - Install NEWS file too.
Suggested by:	knu
2007-05-03 20:34:36 +00:00
Pav Lucistnik
2a3f28ac03 - Hack around RUBY_PORTEPOCH being set later than PKGNAME suffix is determined
With hat:	portmgr
2007-04-05 08:13:48 +00:00
Stanislav Sedov
6cbcb56eb4 - Use common RUBY_PORTEPOCH variable. 2007-04-04 12:53:09 +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
Pav Lucistnik
28f8ee4611 - COPYTREE_* are now part of bsd.port.mk
PR:		ports/100996
Submitted by:	stass
2007-03-24 14:03:04 +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
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
Stanislav Sedov
108d785f39 - Fix an another cgi library vulnerability
- Bump portrevision

PR:		ports/106287
Reported by:	UEDA Hiroyuki <bsdmad@gmail.com>
Obtained from:	ruby cvs
2006-12-04 20:33:04 +00:00
Stanislav Sedov
45a7b73beb - Back-out the previous commit, as it can cause linking problems (pthread's
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
2006-11-19 23:39:00 +00:00
Stanislav Sedov
43baec4731 - Don't links agains threading libraries in case if pthreads support was
disabled.

Reported by:	Anton Yuzhaninov <citrin@citrin.ru>
2006-11-14 20:49:52 +00:00
Stanislav Sedov
586801d65a - Add a workaround for the recently disclosed DoS vulnerability in the cgi.rb
ruby18 module
- Bump portrevision

PR:		ports/105113
Submitted by:	UEDA Hiroyuki <BSDmad@gmail.com>
2006-11-04 10:04:11 +00:00
Stanislav Sedov
1c3d953a1b - Fix pkg-plist when ONIGURUMA option used
- Bump portrevision

Submitted by:	nork
Approved by:	portmgr (clement)
2006-10-15 10:46:10 +00:00
Stanislav Sedov
d944be3080 - Add runtime knob to allow libraries installation under user
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>
2006-10-09 13:17:16 +00:00
Stanislav Sedov
4b16b0cd00 - Prepare port to make ruby libraries PREFIX-clean (also requires bsd.ruby.mk
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)
2006-10-01 19:10:48 +00:00
Sergey Matveychuk
45d85c7807 - Assign a new ruby maintainer who submitted patches which will be committed
after 6.3-RELEASE

Submitted by:	Stanislav Sedov <ssedov@mbsd.msk.ru>
2006-09-13 11:12:53 +00:00
Sergey Matveychuk
1e52ae8d80 - Update to 1.8.5
A bugs fix release.
2006-08-27 09:53:28 +00:00
Cheng-Lung Sung
e8390e6e3c - s,INSTALLS_SHLIB,USE_LDCONFIG,g
- these include irc/ japanese/ java/ lang/ mail/ math/ maintained by ports@

PR:		ports/101916
Submitted by:	Gea-Suan Lin <gslin_AT_gslin dot org>
2006-08-15 00:29:13 +00:00
Sergey Matveychuk
331546a499 - Fix last discovered security vulnerabilities.
VuXML id:	76562594-1f19-11db-b7d4-0008743bf21a
2006-07-30 09:55:21 +00:00
Pav Lucistnik
4bd265725f - Revert previous commit, it broke ruby-gtk2
Reported by:	mezz
2006-05-24 20:42:21 +00:00
Pav Lucistnik
692d35c930 - Don't link pthread libs in non-pthread case (the default case)
PR:		ports/97765 (based on)
Submitted by:	Takeshi MUTOH <mutoh@openedu.org>
2006-05-24 08:06:06 +00:00
Pav Lucistnik
5885d0f662 - Fix PKGNAMESUFFIX when both Oniguruma and pthreads are enabled
PR:		ports/97178 (based on)
Submitted by:	cokane
2006-05-15 12:42:30 +00:00
OKAZAKI Tetsurou
f0042b318f Remove obsolete USE_REINPLACE.
Add missing entries for the ONIGURUMA option to the plist.
2006-05-03 04:55:51 +00:00
Andrey Slusar
dbfc1f7400 Wrong type of integer argument to ioctl(2) cause ruby18 to produce lots
of sign-extension noises through console / kernel log on FreeBSD/amd64.

PR:		ports/94088
Submitted by:	ariff
2006-05-02 12:15:24 +00:00
MANTANI Nobutaka
6ee6ffc589 Show the message about WITH_PTHREADS knob only when WITH_PTHREADS isn't defined.
Submitted by:	MOROHOSHI Akihiko <moro@remus.dti.ne.jp>
2006-04-30 17:50:21 +00:00