Commit Graph

185 Commits

Author SHA1 Message Date
jeremy
9292714b1a Switch gem/extconf ports to build with ruby 1.9 by default, allowing
the use of the ruby18 FLAVOR to explicitly build a version for ruby 1.8.
To handle updates, add a @pkgpath marker with the unflavored PKGPATH
to all ruby18 FLAVOR gem/extconf PLISTs.

Remove format-executable CONFIGURE_STYLE, since only one port uses it.
Instead, allow the port Makefile to set GEM_FLAGS, and have ruby.port.mk
append to that if it already exists.
2012-09-23 16:56:15 +00:00
jeremy
ccb66ed2cc Fix a backport of a patch that never made it to ruby 1.8.7, which left
out the definition of a new function added in the patch.  Allows usage
of the ruby 1.8 socket extension with LD_BIND_NOW=1.

OK naddy@
2012-09-18 16:02:53 +00:00
sthen
701ea4d98f sync wantlib 2012-08-23 19:19:16 +00:00
jeremy
88c8137132 Update to ruby 1.8.7-p370.
One of our local patches for a security fix was applied upstream, so
remove that patch.
2012-07-03 19:58:39 +00:00
jeremy
b7330716bb Update to ruby 1.9.3-p194. Fixes SSL security issues when installing
gems, and has other significant bugfixes.
2012-04-27 18:40:02 +00:00
phessler
33c831c043 do not generate RI docs on the "slow" arches. This takes far too long,
and too much memory.

OK jeremy@
2012-03-30 19:03:24 +00:00
ajacoutot
a89a75cd04 Garbage collect the /dev/arandom patches.
from Brad
ok landry@ sthen@
2012-03-08 12:13:00 +00:00
jeremy
de456ea9df Update 1.9.3p125, removing some patches included upstream. 2012-02-28 00:20:41 +00:00
jeremy
5b43342337 Update to 1.8.7p358 2012-02-28 00:17:17 +00:00
jeremy
a566fc944a Update to 1.8.7-p357, fixing the denial of service vulnerability
described in CERT-2011-003.
2012-01-05 02:09:02 +00:00
jeremy
d916ad4bb8 Fix NO_REGRESS=Yes being set on ruby ports with MODRUBY_REGRESS set,
broken in r1.49.
2011-12-09 21:41:43 +00:00
jeremy
95570de3d1 Add back NO_REGRESS=Yes setting to ruby.port.mk if MODRUBY_REGRESS
is not set, but only for gem, extconf, and setup based ports. Other
ports could be using the lang/ruby module and still have a standard
make-based regression test suite.
2011-12-02 19:33:39 +00:00
espie
53295a4812 bye bye FLAVOR:L 2011-12-02 14:36:13 +00:00
jeremy
930db13bc9 Handle split of rspec port into subdirs. In MODRUBY_REGRESS, support
rspec 1 using rspec and rspec 2 using rspec2.  Additionally, add
support for ruby and testrb, calling the appropriate binary for the
ruby implementation.

Start checking sanity of MODRUBY_REGRESS entry, using a fatal error
if it is defined and doesn't contain a recognized word.

Instead of RAKE_REGRESS_TARGET and RSPEC_REGRESS_TARGET, just use
MODRUBY_REGRESS_TARGET for all cases.  On ruby 1.9, modifying the
environment to always look in the current directory for libraries
(the ruby 1.8 behavior), since many ports depend on that for regress.
Allow ports to set their own regress environment and current directory
using MODRUBY_REGRESS_ENV and MODRUBY_REGRESS_DIR.
2011-11-17 15:24:01 +00:00
jeremy
75d0491050 Don't show the VMEM_WARNING when building ruby with the no_ri_docs
PSUEDO_FLAVOR, since the ri docs are the only thing that takes a
lot of memory.

OK ajacoutot@
2011-11-17 11:47:12 +00:00
jeremy
92063f369e Remove INSTALL_TARGET, since it's already set in 1.8 and 1.9's Makefile. 2011-11-17 10:54:11 +00:00
jeremy
ae714b5407 Add no_ri_docs PSUEDO_FLAVOR to skip building the ri documentation,
which should allow building on arches without enough memory to
generate the ri files.  Also, set PKG_ARCH=* for the ri_docs
subpackage, so that such arches can still use the documentation,
idea from sthen@. Original idea for PSUEDO_FLAVOR from phessler@.

OK sthen@
2011-11-15 00:04:15 +00:00
jeremy
263beca3e6 Backport svn revision 33693, fixes threading bootstrap test failure. 2011-11-09 19:23:35 +00:00
jeremy
bb252d3158 Set BUILD_DEPENDS when building gem ports to use versions
that no longer create .require_paths files.  No RUN_DEPENDS
are being added as older ruby versions can use gems without
.require_paths files (we never had a ruby 1.9.1 package).

This is being done to avoid errors by porters who are creating/updating
gem ports without installing new ruby versions.
2011-11-09 00:03:31 +00:00
jeremy
bf9ae3b24c Add an -ri_docs multipackage to hold the ri documentation files. These
aren't used very often, slow down installation significantly, and bloat
the package.
2011-11-08 23:40:05 +00:00
jeremy
fe3e6af225 Update to ruby 1.9.3p0. Adds significant speed improvements and quite
a few new features.  A few of our patches were accepted upstream.

Add an -ri_docs multipackage to hold the ri documentation files.  These
aren't used very often, slow down installation significantly, and bloat
the package.

This also fixes the conflict marker for the -tk multipackage.
2011-11-08 23:38:57 +00:00
espie
e820071495 normalize pkgpath 2011-09-16 10:31:20 +00:00
naddy
1e2bbe8777 bump all (sub)packages that depend on db/v4; requested by and help from espie@ 2011-09-12 18:02:34 +00:00
espie
8c503a8b58 replace non-working cookies with working MOD* variables.
allows ruby to do stuff without taking over do-* targets entirely.

okay jeremy@
2011-08-22 17:53:38 +00:00
jeremy
7d470427bf Update SUB to remove OpenBSD version, so ruby 1.8 and ruby 1.9
can still package.

OK landry@, jcs@
2011-07-19 17:28:48 +00:00
jeremy
015df4f744 Update MODRUBY_ARCH to remove OpenBSD version, and add
MODRUBY_SITEDIR and MODRUBY_SITEARCHDIR so that ports can build
on multiple ruby implementations (plus it makes for nicer PLISTs).

OK landry@, jcs@
2011-07-19 17:26:30 +00:00
jeremy
0f31f9020a Update to 1.9.2p290.
Make regress run all three regression test suites.  Before,
later regression test suites wouldn't be run if earlier ones
were not successful, which stopped the main test suite from
running on i386, macppc, and possibly other arches.

Override the arch setting to remove OpenBSD version from it,
so ports don't have to be bumped when OpenBSD version changes.

OK landry@, jcs@
2011-07-19 17:08:54 +00:00
jeremy
9fe80155bd Override the arch setting to remove OpenBSD version from it,
so ports don't have to be bumped when OpenBSD version changes.

OK landry@, jcs@
2011-07-19 17:06:39 +00:00
naddy
65bc5aa607 bump revision for plist changes 4.9 -> 5.0 2011-07-18 19:06:36 +00:00
jeremy
1dcb6991d1 Update to 1.8.7-p352.
"looks ok to me" landry@
2011-07-11 04:15:19 +00:00
jasper
ff90d9b257 Security fix for CVE-2011-0188
Ruby BigDecimal Integer Truncation Vulnerability

Fix from upstream svn. Only 64-bit hosts are affected.

ok jeremy@ (MAINTAINER)
2011-05-25 18:20:43 +00:00
jasper
17243e0941 regen patches 2011-05-25 17:50:45 +00:00
jeremy
eb297ee133 Add MODRUBY_HANDLE_FLAVORS variable which can be set to No to not have
the lang/ruby module add FLAVORS automatically for gem and extconf
ports, or to Yes to enable the FLAVORS for non-gem and non-extconf
ports.

Add a MODRUBY_BIN_TESTRB variable containing the appropriate testrb
command for use in regress tests.

OK landry@
2011-03-24 21:26:59 +00:00
jeremy
ee92d991f2 Allow building of gem ext and extconf based ports with jruby,
since jruby 1.6.0 now supports them.  Require at least jruby
1.6.0 when building/running a gem ext or extconf port.

Since jruby no longer bundles RSpec, simplify the
MODRUBY_RSPEC_DEPENDS handling.

OK landry@
2011-03-18 23:04:22 +00:00
jeremy
6fc087d685 Add GEM_MAN_SUFFIX so that gem ports with man pages can avoid
conflicts.  Also, base MODRUBY_PKG_PREFIX on MODRUBY_FLAVOR to
avoid some duplication.

OK landry@
2011-03-14 20:39:20 +00:00
jeremy
7f925b471d Bump to ruby 1.9.2p180, fixing a security vulnerability:
* FileUtils is vulnerable to symlink race attacks

OK jasper@
2011-03-07 18:59:18 +00:00
jeremy
942f36623c Bump to ruby 1.8.7p334, fixing two security vulnerabilities:
* FileUtils is vulnerable to symlink race attacks
* Exception methods can bypass $SAFE
2011-03-07 18:57:38 +00:00
naddy
4cb3e73f03 bump revision for plist changes 4.8 -> 4.9 2011-01-15 01:09:42 +00:00
jeremy
022f8719a1 Deal with the rubinius directory changes, and tie rbx FLAVORs to
the currently supported minor version of rubinius.

No longer allow a ruby18 FLAVOR to be used to specify ruby 1.8.
Now, only the empty flavor should be used.

OK landry@
2011-01-06 04:15:46 +00:00
jeremy
8d82ee4e2f Update ruby 1.9 port to 1.9.2p136, only minor bugfixes. A couple of
our patches were accepted upstream.  While here, fix REGRESS_DEPENDS.

OK landry@
2011-01-06 04:04:37 +00:00
jeremy
3d9913e6e5 Update ruby 1.8 port to 1.8.7p330, only minor bugfixes. While here,
fix REGRESS_DEPENDS.

OK landry@
2011-01-06 04:01:52 +00:00
jeremy
9211601fd8 Handle the gem metadata such that if a build fails and you restart
it, it doesn't fail again just because it can't find the gem
metadata.

Also, get rid of the GEM_REL variable, and just setup the GEM_BIN
and GEM_LIB variables separately for each ruby version.

OK landry@
2010-12-02 01:38:40 +00:00
espie
15196452e1 default db-* for db/v4 is incorrect, set PKGSPEC=db->=4,<5, bump packages
with erroneous depends.
2010-11-26 14:44:27 +00:00
jeremy
d1270995e9 Remove MODRUBY_PKGSPEC, rely on the PKGSPEC entries specified
in lang/ruby/1.*/Makefile.

Also, add the ability to pass CONFIGURE_ARGS to gem install.
These get passed to the extconf.rb scripts that create the
Makefiles for C extensions, and may make it easier to port
gems with C extensions without resorting to patching.

OK landry@
2010-11-24 21:30:36 +00:00
jeremy
7b0a3f93b8 Add a PKGSPEC entry to restrict ports depending on lang/ruby/1.9 to
depend on ruby-1.9 and not ruby-1.8.  This PKGSPEC is slightly
different from the previous one used in ruby.port.mk, so all
dependent ports need to be REVISION bumped (which will happen soon).
In addition, since the subpackages depend on the -main package and
also had a slightly different pkgspec, they need to be bumped as well.

In addition, the -main package is also being bumped for the inclusion
of a patch for Addrinfo that fixes a failing IPv6 UDP regression test.

OK landry@
2010-11-24 21:28:04 +00:00
jeremy
25f37c11c5 Add a PKGSPEC entry to restrict ports depending on lang/ruby/1.8 to
depend on ruby-1.8 and not ruby-1.9.  This PKGSPEC is slightly
different from the previous one used in ruby.port.mk, so all
dependent ports need to be REVISION bumped (which will happen soon).
In addition, since the subpackages depend on the -main package and
also had a slightly different pkgspec, they need to be bumped as well.

OK landry@
2010-11-24 21:26:19 +00:00
jeremy
3831e7acb0 Allow building of rubinius versions of the ruby gem and extconf ports
using the rbx FLAVOR and the rbx- package prefix.

OK landry@, sthen@
2010-11-19 17:54:37 +00:00
espie
88d20077a4 new depends 2010-11-17 08:05:12 +00:00
jeremy
6170d8763a Remove MODRUBY_BIN_REV from SUBST_VARS, never used.
OK landry@
2010-11-16 21:50:27 +00:00
jeremy
aa826b5062 Fix various minor issues in ruby.port.mk:
* No longer remove ruby-* from PKGNAME when building FULLPKGNAME for
  the gem and extconf ports
* Correctly remove ruby18 FLAVOR
* Use extract/build/install cookies
* Fix installing of certain gems as root without systrace, by working
  around a bug in devel/ruby-gems
* Remove MODRUBY_REV from SUBST_VARS

OK landry@
2010-11-16 18:30:38 +00:00