Commit Graph

176 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
bernd
07b32cb93a Fix some more security problems in cgi.rb.
ok msf@
2006-12-04 13:26:51 +00:00
steven
bee72c9882 add MODRUBY_RUN_DEPENDS to help MULTI_PACKAGES
ok msf@
2006-12-01 14:04:06 +00:00
bernd
e9153a7d5f Add VMEM_WARNING=Yes. Building the ruby documentation consumes lots of
memory.

discussed with msf@
2006-11-27 09:52:52 +00:00
msf
1c166bbf7e remove the default CONFIGURE_STYLE and CONFIGURE_SCRIPT into the new
'ruby extconf' CONFIGURE_STYLE

this allows us to pull ruby.port.mk into fun things like subversion

ok bernd@
2006-11-27 09:36:14 +00:00
msf
8dc6071094 Change to SUBST_VARS+=
discussed and ok bernd@
2006-11-25 10:03:32 +00:00
bernd
872f8d2ac0 Switch to new MULTI_PACKAGES. ok espie@, msf@ 2006-11-24 09:45:08 +00:00
msf
0f7703305c unbreak no_x11 flavor. spotted by Jason LaRiviere. 2006-11-19 11:54:44 +00:00
bernd
182ef239b3 Security fix for CVE-2006-5467 from ruby CVS.
More info:
http://rubyforge.org/pipermail/mongrel-users/2006-October/001946.html
http://www.securityfocus.com/bid/20777/info

ok msf@
2006-11-02 12:46:13 +00:00
bernd
5df9d3851a Remove REV and SUB. All ruby ports are using the new variables now. 2006-10-28 21:52:02 +00:00
bernd
7e48f49f80 Args, LIB_DEPENDS should be correct now... Sorry. 2006-10-26 18:15:24 +00:00
bernd
cc19ce0907 Fix LIB_DEPENDS for subpackages and bump PKGNAMEs. 2006-10-26 17:57:16 +00:00
steven
27094c6fda bump PKGNAME after some packaging changes earlier
okay bernd
2006-10-22 08:45:39 +00:00
bernd
d38987df61 - Clean up Makfile to make it more readable.
- Better dependencies for the subpackages. Bump PKGNAMEs.

ok msf@
2006-10-19 01:03:17 +00:00
bernd
c1e377c812 Add code that allows us to patch gem files.
discussed with & ok sturm@
ok for an earlier version msf@
2006-10-18 13:41:36 +00:00
bernd
b2be6681a6 Update to ruby-1.8.5.
See http://eigenclass.org/hiki.rb?ruby+1.8.5+changelog for a summary of
changes.

tested by krw@
ok msf@, sturm@
2006-10-02 07:48:08 +00:00
sturm
f40b6dea93 add RUN_DEPENDS on ruby-gems for gems-based ports
bump PKGNAME where necessary

noticed by Ward Wouts <ward at wizeazz.nl> via markus, ok msf
2006-08-23 21:12:24 +00:00
bernd
62e5e54451 Explicitly depend on tk-8.4.*. This fixes package updates for ruby-tk if
more than one tk version is installed.

ok sturm@, msf@
2006-08-09 22:14:11 +00:00
espie
d64e5b7dc6 new lib specs 2006-08-03 13:09:09 +00:00
steven
56221ce9e9 bump PKGNAME due to PLIST changes after 3.9 -> 4.0 2006-07-28 06:29:33 +00:00
bernd
6275bfb08d Rename REV and SUB variables to MODRUBY_REV and MODRUBY_ARCH. Keep the old
ones around until the dependent ports have been synced.

ok msf@, 'I like it' sturm@
2006-07-14 15:41:21 +00:00
bernd
0583244625 - add ruby to REGRESS_DEPENDS
- fix a typo in webrick/httpservlet/filehandler.rb. (from ruby CVS)

ok sturm@
2006-07-06 08:22:20 +00:00
sturm
845cc36920 support for CONFIGURE_STYLE "ruby gem"
with msf's consent
2006-06-11 19:56:31 +00:00
sturm
c48321f2f5 add CONFIGURE_STYLE "ruby setup" and related targets
move LIB_DEPENDS to relevant ports, no PKGNAME bump needed
this is in preparation of a soon to come ruby-gems port

with msf's consent
2006-06-11 18:57:11 +00:00
sturm
1dec9af13b readd correctly 2006-06-10 16:51:05 +00:00
sturm
05428a0975 don't try creating existing directories in mkdir_p(), needed for
upcomming ports to not get systrace warnings (and it's good practice
anyways)

ok msf@ (maintainer)
2006-06-10 16:50:15 +00:00
msf
a4a3f3ef73 - depend on proper library version 2006-03-23 17:15:25 +00:00
alek
a403eef060 bump PKGNAMEs due to PLIST changes after 3.8 -> 3.9 2006-01-22 16:30:36 +00:00
alek
97ef7796e6 - SHARED_LIBS
- Regen PLIST
- Bump PKGNAME

ok msf@, steven@
2006-01-08 10:39:31 +00:00
msf
408205454d - update ruby to 1.8.4
- add no_x11 PSEUDO_FLAVOR and remove old tk FLAVOR
- add tk, iconv, and gdbm SUBPACKAGES
- take MAINTAINER

"commit now" naddy@
2005-12-29 17:27:31 +00:00
couderc
17fd2e4679 dropping maintainership 2005-10-18 17:33:20 +00:00
espie
5232470579 duplicate mkdir 2005-09-04 23:31:07 +00:00
robert
c1791de453 SECURITY:
fix an arbitrary command execution vulnerability; bump PKGNAME

http://www.vuxml.org/openbsd/e80d814e-e9b6-11d9-a5c1-00065bd5b0b6.html
2005-06-30 22:37:12 +00:00
alek
522ecd0c11 Add/fix WANTLIB markers 2005-02-24 13:20:41 +00:00
naddy
a8817eabcc SIZE 2005-01-05 16:50:35 +00:00
espie
7baa1914ab new plists.
some fragment games with python.
2004-09-15 19:16:07 +00:00
espie
ff1520f3fd make sure ruby doesn't pick db dependencies along the way.
after 3.6, think about gdbm/db flavors ?

okay pvalchev@
2004-08-23 08:43:16 +00:00
couderc
01c25a220a fix use of RTLD_NEXT from Kurt Miller, ok naddy@ 2004-08-19 16:39:12 +00:00
robert
19bf64c2d4 SECURITY:
Andres Salomon noticed a problem in the CGI session management of Ruby.
CGI::Session's FileStore implementations store session information insecurely.
They simply create files, ignoring permission issues. The added patch fixes
this issue.

ok pvalchev@
2004-08-17 16:03:10 +00:00
xsa
70c60882e0 prepare for new-style MODULES; ok couderc@. 2004-08-09 19:54:20 +00:00
naddy
3d64ac74cb - Fix packaging on amd64.
- Enable regression test.

ok couderc@
2004-06-23 14:17:05 +00:00
sturm
fda2b7431e - not every /etc is a ${SYSCONFDIR}
- when creating directories recursively, don't try creating existing dirs

from couderc@
2004-05-10 19:46:46 +00:00
couderc
ec77eb38c3 update to 1.8.1 2004-02-20 22:52:57 +00:00
jose
7bc6e421e0 update to tcl/tk 8.4, ok brad@ naddy@ 2003-12-27 23:34:42 +00:00
couderc
fde3ba29a1 Fix tk flavor, noticed by Harry Pehkonen <harry.pehkonen@hotpop.com> 2003-03-29 15:31:12 +00:00
couderc
0a0fe177e0 Update to 1.6.8 2002-12-26 15:48:22 +00:00
couderc
d7a1517f02 add comments 2002-12-09 21:04:08 +00:00
couderc
d354d26f2b Added doc and example directories 2002-12-09 20:26:36 +00:00
naddy
80c7ae1856 Enable regression tests. 2002-10-27 14:10:23 +00:00
couderc
ca4f859d70 Fix tk flavor (noticed by Jim Geovedi) 2002-09-20 14:58:38 +00:00
brad
9f86be6010 export all symbols in the symbol table when on an ELF system.
--
Ok'd by: MAINTAINER
2002-07-15 21:38:07 +00:00