Commit Graph

126 Commits

Author SHA1 Message Date
jeremy
8a77d5f794 Don't build C extensions inside gems during the fake stage, instead
build them during the build stage and install them during fake.

devel/ruby-gems doesn't have separate build and install commands, as
most gems are pure ruby code and don't need a separate build stage.
When ruby-gems is installing a gem with C extensions, it builds them
during the install.  Since installing is done during the fake stage,
this meant that the extensions were getting built as root.

Previously, this was required, as gem's --user-install option was
broken.  However, since that option has now been fixed, we use
it to install the gem to a temporary location as the current
user during build, and then mv and chown the files during fake.

Thanks to bernd@ for pointing out that the fixed --user-install
option allowed this.

ok landry
2010-10-12 16:03:41 +00:00
jeremy
71ecdc8e96 Modify FileUtils.mkdir_p to behave more like mkdir(1) -p. Instead of
attempting to create all intermediate directories and rescuing failures,
don't attempt to create directories that already exist.  Fixes systrace
warnings when building ruby ports.

ok landry
2010-10-12 15:39:06 +00:00
jeremy
ea588ec908 Add MODRUBY_RUBY_ADJ and MODRUBY_ADJ_FILES. MODRUBY_RUBY_ADJ is a
perl command that accepts filename arguments and modifies the common
/usr/bin/env ruby shebang to ${RUBY}.  MODRUBY_ADJ_FILES is a short
cut that allows you to set filename patterns and have
MODRUBY_RUBY_ADJ called on all files in ${WRKSRC} that match that
pattern.  It adds a pre-configure action to do so, if a pre-configure
action is not already defined.  If a pre-configure action is already
defined, you can call the replacement command with
${MODRUBY_ADJ_REPLACE}.

ok sthen, landry
2010-10-07 17:48:53 +00:00
jeremy
3f369fe90e This adds an ugly hack to make gem install --user-install work
for gems with native extensions. Without this, it calls
/usr/bin/install -o root -g bin as a regular user, which fails due
to permission issues. This removes the -o root -g bin, so it can
succeed as a regular user.

This same patch was recently added to devel/ruby-gems, which is
specific to ruby 1.8.  ruby 1.9 ships with ruby-gems, so the
patch needs to be included here as well.

OK landry@
2010-10-06 18:43:11 +00:00
jeremy
82143f7987 Remove MASTER_SITES from most ruby gem ports, specify it in ruby.port.mk
All ruby .gem files are now hosted on rubygems.org in the same
directory.  If the ruby gem CONFIGURE_STYLE is used, make the
default MASTER_SITES that directory.

There are still a few uses of MASTER_SITE_RUBYFORGE in the tree, for
some ports that aren't gems, or where the .gem file isn't hosted on
rubygems.org, or where the hashes don't match.  Most of these will be
dealt with in the near future.

OK landry@
2010-09-28 20:12:16 +00:00
jeremy
f19ae70951 Remove files that I checked out with -r HEAD 2010-09-23 22:04:13 +00:00
jeremy
3a030020ea Split the lang/ruby port into separate ports for ruby 1.8 and ruby
1.9, similar to how the lang/python ports are handled.  ruby 1.8
now installs as ruby18 and ruby 1.9 installs as ruby19.  The
included MESSAGE files for both ports let you know the symlinks to
set up if you want to make that version the default system ruby.

Split port originally started by bernd@, many changes since by me,
help and support from jcs@, landry@, jasper@, and sthen@.

This causes a large amount of fallout in dependent ruby ports,
which will be committed shortly.

OK jcs@, landry@, jasper@, sthen@
2010-09-23 21:58:50 +00:00
jasper
ba9b762f6e Apply a SECURITY FIX from upstream ruby for a WEBrick HTTP server XSS
vulnerability (CVE-2010-0541).

from TAKAHASHI Kaoru
maintainer timed-out
2010-09-14 12:03:42 +00:00
naddy
34837b39ea bump PKGNAME for PLIST changes 4.7 -> 4.8 2010-07-24 23:05:08 +00:00
jcs
f701c7fd45 add a patch to prevent seg faulting when loading compiled modules on
amd64

bump pkgname

ok bernd@
2010-05-03 17:01:33 +00:00
ajacoutot
5985d2ef24 Consistency: remove the 1, 2 or even 3 empty blank lines.
sthen@ agrees
2010-04-15 14:11:01 +00:00
naddy
72b44c5513 bump PKGNAME for PLIST changes 4.6 -> 4.7 2010-01-27 21:43:27 +00:00
bernd
390b1f043c Fix one small buglet in the regress stuff. ok msf@ 2009-08-11 15:28:41 +00:00
msf
9b5e48e67c Add support for several popular ruby regression test suites accessible via
the MODRUBY_REGRESS variable.

discussed with and ok bernd@
2009-08-11 14:30:15 +00:00
msf
4650d35dbf add MODRUBY_BUILD_DEPENDS to stay consistent with other modules 2009-08-11 09:20:23 +00:00
msf
02a92c78ac ruby-gems should be appended to MODRUBY_RUN_DEPENDS, but to RUN_DEPENDS instead
ok bernd@
2009-08-11 07:27:30 +00:00
kili
6b51812b24 WANTLIB changes after xcb addition and bump.
For some unknown reason, I forgot to commit lang/*
this morning.
2009-08-10 17:31:07 +00:00
naddy
2b84b064ff bump PKGNAME for PLIST changes 4.5 -> 4.6 2009-06-22 17:00:23 +00:00
bernd
ede46f770e Security update to ruby-1.8.6-p369.
Fixes a denial of service vulnerability in the BigDecimal
standard library of Ruby.

http://www.ruby-lang.org/en/news/2009/06/09/dos-vulnerability-in-bigdecimal/
2009-06-16 09:12:44 +00:00
bernd
03af0b16cd Update to ruby-1.8.6.368.
Including security fixes for CVE-2008-1447 and CVE-2007-1558.

Tested by Jeremy Evans, jcs@, sturm@ and msf@. Thank you!
2009-04-27 10:54:09 +00:00
jakemsr
c1d4cf76d9 use /dev/arandom instead of /dev/urandom. reading from /dev/urandom is
too slow.

ok bernd@
2009-03-23 00:35:44 +00:00
espie
ec94f4e745 zap obsolete spec, replace tk-8.5* with tk->=8.5,<8.6
bump corresponding pkgname
2009-03-09 17:54:21 +00:00
bernd
04529b0584 Bring back the fix for short-named constants.
This previous problems should be gone now.
(ruby svn r18485 and r22679)

Thanks to Jeremy Evans!
2009-03-07 12:30:17 +00:00
naddy
9ea99647ac bump PKGNAME for PLIST changes 4.4 -> 4.5 2009-02-09 20:48:23 +00:00
bernd
a588fcd431 Revert last "fix". I causes problems with some Ruby code which worked before. 2009-02-03 21:15:28 +00:00
bernd
bf613b4177 Fix usage of short-named constants. (ruby svn r18485)
From msf@.
2009-01-31 09:54:31 +00:00
naddy
c0473d8daf don't try to declare conflicting prototypes for functions already declared
by OpenSSL 0.9.8j
2009-01-10 17:03:34 +00:00
bernd
c4f3158173 Require ruby-gems-1.3.0 and add --default-source-index to GEM_FLAGS. 2008-09-28 15:47:27 +00:00
bernd
87244aa155 Security update to ruby-1.8.6.287.
This fixes a DNS spoofing vulnerability in Ruby's resolver lib. (CVE-2008-1447)

A DoS vulnerability in WEBrick(CVE-2008-3656), problems with Ruby's
safelevel implementation (CVE-2008-3655) and a taint check problem
in Ruby's dynamic loader (CVE-2008-3657) got fixed as well.

This also contains a fix for the REXML DoS issue. (CVE-2008-3790)

More information:
http://www.ruby-lang.org/en/news/2008/08/08/multiple-vulnerabilities-in-ruby/
http://www.ruby-lang.org/en/news/2008/08/23/dos-vulnerability-in-rexml/

Tested by Jeremy Evans and jcs@. Thanks!
2008-09-28 15:43:05 +00:00
steven
007f70e812 add MODRUBY_LIB_DEPENDS.
ok bernd@
2008-09-02 21:08:29 +00:00
sthen
323cf44154 shared library and PKGNAME bumps due to use of isinf/isnan/nan
following libc/libm changes
2008-07-25 20:25:59 +00:00
bernd
0d61615f79 Security fixes for CVE-2008-1891, CVE-2008-2662, CVE-2008-2663,
CVE-2008-2664, CVE-2008-2725 and CVE-2008-2726.

More info: http://secunia.com/advisories/29794/

with help from jcs@
tested by msf@, jcs@
2008-07-21 09:40:42 +00:00
naddy
b3e53655d3 bump PKGNAME for PLIST changes 4.3 -> 4.4 2008-07-04 19:57:06 +00:00
landry
cc14671c30 Add lang/ruby to CATEGORIES. All ports using this module will be bumped.
tested in a bulk build and ok bernd@
2008-06-14 23:40:35 +00:00
jcs
d6bc2054d2 pass --verbose to gem to show full configure/build information to
behave like everything else does

ok bernd@
2008-06-10 15:40:44 +00:00
bernd
55e6d393df Security update to ruby-1.8.6.114. (CVE-2008-1145)
More information:
http://secunia.com/advisories/29232/
2008-03-29 12:05:27 +00:00
naddy
96a5171118 bump PKGNAME for PLIST changes 4.2 -> 4.3 2008-02-22 19:16:49 +00:00
bernd
b2b2bc351a Require a recent ruby-gems version to build gem ports.
Noticed by Paul Irofti. Thanks!
2008-02-08 17:13:15 +00:00
bernd
079fabd16e Fix indentation and remove useless regress stuff comments.
ok sturm@, msf@
2008-01-14 18:39:07 +00:00
bernd
340327fd48 Update to ruby-1.8.6 patchlevel 111.
This is a long overdue update which contains lots of bug fixes and some
security fixes.

Take over maintainership from msf@.

Tested by many. Thank you very much!

ok jcs@, msf@
2007-12-27 18:32:32 +00:00
bernd
14b016b8e1 Be more specific about the gem version in gem BUILD_DEPENDS to make sure
GEM_SKIPDEPENDS works correctly. (ruby-gems->=0.9.4p2)
2007-11-13 17:45:28 +00:00
bernd
63a5135786 Backout the ugly rev 1.12 hack. It's not needed anymore since we now have
GEM_SKIPDEPENDS.
2007-11-13 17:32:59 +00:00
bernd
e630dc9a9c Use the --skip-dependencies option with 'gem install' if GEM_SKIPDEPENDS
is defined in the port Makefile.

i.e. 'GEM_SKIPDEPENDS= hoe cgi_multipart_eof_fix'

This will install the gem port into the fake area even if the hoe and
cgi_multipart_eof_fix gems aren't installed.

ok jcs@, "sounds reasonable but I haven't really looked at it" msf@
2007-11-13 16:10:37 +00:00
bernd
17064650ea Unpack the gem metadata so we're able to patch it. This will
allow us to remove bogus dependencies from gems.

I need this for an upcoming ruby-mongrel update.

discussed with & ok sturm@
2007-11-05 20:55:03 +00:00
merdely
f525d52359 Remove surrounding quotes in COMMENT*/PERMIT_*/BROKEN 2007-09-16 00:27:05 +00:00
naddy
7682bff9fd bump package name to accommodate OpenBSD 4.1 -> 4.2 change in MODRUBY_ARCH 2007-07-27 19:17:11 +00:00
espie
9eafbbfb35 base64 checksums. 2007-04-05 16:19:55 +00:00
espie
f543241ba2 bump pkgnames after the 4.1 bump. 2007-02-13 23:47:13 +00:00
bernd
d952985c16 Fix an 'undefined symbol' error with openssl when using LD_BIND_NOW.
from markus@, ok msf@
2007-01-11 09:34:40 +00:00
msf
da421b73db add a missing include to rdoc. from ruby subversion, pointed out by ray@
bump PKGNAME
2006-12-31 01:04:09 +00:00