353 Commits

Author SHA1 Message Date
jeremy
bf6889217a Move most shared logic from ruby version-specific Makefiles to Makefile.inc
Drop the use of RUBYLIBREV, since it is the same as REV since ruby 2.0 and
causes issues with update-plist.

OK tb@
2017-11-02 10:16:38 +00:00
jeremy
88ca83476b Update DISTNAME in ruby Makefile.inc for newer ruby dist file naming 2017-11-01 10:52:06 +00:00
jeremy
0d435f9083 Remove ruby18.PLIST
This is not needed now that ruby 1.8 support has been removed.
2017-11-01 10:09:53 +00:00
jeremy
3b7ec481f8 Switch default ruby version to ruby 2.4
Also remove ruby 1.8, 2.1, and 2.2 support from ruby.port.mk. This greatly
simplifies a lot of the code.
2017-11-01 10:09:23 +00:00
jeremy
e3627bfc71 Remove ruby 1.8, 2.1, and 2.2
All ports that previously required ruby 1.8 have either been removed or
been upgraded to use a newer ruby version or no longer depend on ruby
at all.

Our new ruby support policy is to remove the ruby version if nothing
depends on it 6 months after the version moves from general support
to security-only support upstream.  This applies to both ruby 2.1 and
2.2 currently, so both are being removed.

OK ajacoutot@, sthen@
2017-11-01 10:05:45 +00:00
jeremy
0c486d2496 Unlink ruby 1.8, 2.1, and 2.2 2017-11-01 10:01:25 +00:00
jeremy
273010916e Backport security fixes from ruby 2.2.8 to ruby 1.8.7. Fixes
CVE-2017-0898 and CVE-2017-10784.  Regen patches while here.
2017-09-16 22:54:58 +00:00
jeremy
3edfa2882e Backport security fixes from ruby 2.2.8 to ruby 2.1.9. Fixes
CVE-2017-14033, CVE-2017-14064, CVE-2017-0898, and CVE-2017-10784.
Regen patches while here.
2017-09-16 22:52:40 +00:00
jeremy
accc0898b0 Update to ruby 2.2.8. Fixes CVE-2017-14033, CVE-2017-14064,
CVE-2017-0898, and CVE-2017-10784. Regen patches while here.
2017-09-16 22:45:26 +00:00
jeremy
2e16c3b2ca Update to ruby 2.3.5. Fixes CVE-2017-14033, CVE-2017-14064,
CVE-2017-0898, and CVE-2017-10784. Shared lib major bump due to
removed/modified functions.  Regen patches while here.
2017-09-16 22:43:38 +00:00
jeremy
a5110ece69 Update to ruby 2.4.2. Fixes CVE-2017-14033, CVE-2017-14064,
CVE-2017-0898, and CVE-2017-10784. Shared lib major bump due to
removed/modified functions.  Regen patches while here.
2017-09-16 22:42:37 +00:00
jeremy
37eaf6e0da Backport security patch from ruby 2.2 to ruby 2.1. Fixes the following
security vulnerabilities:

* Fix a DNS request hijacking vulnerability.
* Fix an ANSI escape sequence vulnerability.
* Fix a DOS vulernerability in the query command.
* Fix a vulnerability in the gem installer that allowed a malicious
  gem to overwrite arbitrary files.
2017-09-02 21:32:07 +00:00
jeremy
c5d902d473 Apply security patches provided by ruby-core to fix security issues
in rubygems for versions still supported upstream (2.2, 2.3, and 2.4).

No CVE numbers, but this fixes the following vulnerabilities:

* Fix a DNS request hijacking vulnerability.
* Fix an ANSI escape sequence vulnerability.
* Fix a DOS vulernerability in the query command.
* Fix a vulnerability in the gem installer that allowed a malicious
  gem to overwrite arbitrary files.
2017-09-02 21:29:47 +00:00
ajacoutot
212b011311 Remove trailing lines. 2017-06-12 10:57:57 +00:00
jeremy
a2208beef5 Fix comment for patchfile, no functional change. 2017-04-18 17:09:26 +00:00
jeremy
eedf27a3d2 Fix heap overflow by renaming HEAP_ALIGN_LOG to HEAP_PAGE_ALIGN_LOG in configure. 2017-04-17 18:29:11 +00:00
jeremy
799e944524 Update to ruby 2.3.4 2017-04-07 21:14:17 +00:00
jeremy
f0629c71a6 Update to ruby 2.2.7 2017-04-04 21:40:01 +00:00
jeremy
0043fdaf26 Update to ruby 2.4.1
Shared lib major bump due to removal of ruby_vm_sysstack_error_copy
function.  Regen patches.
2017-03-24 14:39:05 +00:00
jca
acf4c4a2f0 Workaround for ram-constrained archs: build ext/ripper/ripper.c with -O1
Same as lang/ruby/2.3.  Preventively add arm, just in case it is near
the maximum limit.
Prodded by jeremy@ (maintainer)
2017-02-21 17:04:45 +00:00
jca
b40bb7b3ca Workaround for ram-constrained archs: build ext/ripper/ripper.c with -O1
ok phessler@ jeremy@ (maintainer)
2017-02-21 16:45:36 +00:00
jeremy
4443230027 Add support for using ruby 2.4 to ruby.port.mk
This adds support for FLAVOR=ruby24 to most ruby gem ports, to
allow building of a package for ruby 2.4.

Additionally, refactor ruby.port.mk to reduce duplication and make
future updates simpler.

OK jasper@
2017-01-06 16:03:54 +00:00
jeremy
8d57e07b31 Hookup ruby 2.4 to the build 2017-01-06 16:00:21 +00:00
jeremy
4fb180cbad Import ruby 2.4.0
OK jasper@
2017-01-06 15:59:25 +00:00
phessler
d4ff38167f arm: OOM when building ext/ripper/ripper.c 2016-12-21 07:22:20 +00:00
jeremy
3991a161d8 Update to ruby 2.3.3 2016-11-23 15:59:32 +00:00
jeremy
d76bcdfea3 Update to ruby 2.3.2
Bump minor due to new exported function.
2016-11-19 04:56:00 +00:00
jeremy
584364fcdf Update to ruby 2.2.6
Bump minor due to new exported function.
2016-11-19 04:55:26 +00:00
jeremy
2ab6141022 Add directory containing gem.build_complete file to ruby gem ext packages
This is needed so that the packages do not leave around the directories
when they are removed.

This requires bumping all ruby gem ext ports, which will happen shortly.

Problem discovered by pirofti@
2016-11-04 21:25:10 +00:00
jeremy
6bf61276f8 Add a couple directories to the PLIST
These directories are needed to that installing a ruby gem ext port and
then remove the ruby package doesn't leave directories around. This is
only a partial fix, the ruby gem ext ports all need a similar fix.

Problem pointed out by and feedback from pirofti@
2016-11-04 17:03:29 +00:00
jeremy
2e6d02afd2 Send ruby 2.0 to the Attic
It was unhooked from the build back in September.
2016-10-31 12:02:49 +00:00
jeremy
07183c6d19 Unhook ruby 2.0 2016-09-06 15:38:41 +00:00
jeremy
e8a4d89481 Make ruby 2.3 the default ruby version.
Also, remove code allowing the building of ruby ports using ruby 2.0.
2016-09-06 15:23:26 +00:00
jeremy
dcd3b2292d Remove references to sparc and vax 2016-09-01 14:23:58 +00:00
jasper
003e889c0a retire sparc 2016-09-01 10:53:26 +00:00
jeremy
5a038f445f Add USE_WXNEEDED to ruby, to get devel/ruby-therubyracer working
Original diff from awolk@, OK sthen@

Change to use USE_WXNEEDED by me
2016-08-19 19:09:34 +00:00
jeremy
c322ffdfb9 Fix REVISION-main bumps 2016-07-15 15:53:05 +00:00
jeremy
7465a481c5 Use shadow versions of password functions 2016-07-15 15:39:03 +00:00
espie
1d55a231e7 add is-branch to all trivial ports that exist as multiple branches. 2016-06-29 16:14:38 +00:00
jeremy
c19ffe2bbc Update JRuby to 9.1.1.0
This changes the ruby version JRuby supports to 2.3, so update ruby.port.mk
to match.
2016-05-27 17:04:35 +00:00
jeremy
a283c0a52c Update to ruby 2.3.1 2016-04-30 14:19:00 +00:00
jeremy
3a903bb2f2 Update to ruby 2.2.5 2016-04-30 14:18:12 +00:00
naddy
97770995bb replace the libiconv module with regular dependencies; ok jeremy@ 2016-04-27 12:07:09 +00:00
jeremy
a0bba702a8 Update to ruby 2.1.9 2016-04-07 14:24:30 +00:00
visa
29d7ebfad2 Re-enable on mips64.
OK jasper@
2016-03-30 16:47:34 +00:00
naddy
deea7ed07b drop SHARED_ONLY from python and ruby ports 2016-03-20 16:12:22 +00:00
naddy
5fc24d3cb3 removing SHARED_ONLY is safe here 2016-03-16 20:02:11 +00:00
naddy
d1fb05fbc3 requires --enable-shared 2016-03-10 11:50:13 +00:00
landry
23f5a06560 BROKEN-powerpc = OOM when building ext/ripper/ripper.c (like hppa) 2016-03-05 10:42:13 +00:00
jeremy
99dd75e03e Make dpb not try to build -ri_docs subpackages on slow arches
The previous way was bogus.  Use bsd.port.arch.mk to remove
MULTI_PACKAGES instead of having the lack of no_* FLAVOR add them.

Change the no_x11 PSUEDO_FLAVOR to no_tk, since what it does is turn
off the -tk subpackage.

Remove post-install target from Makefile.inc, and use a manually
post-install in every version.  This is necessary due to
bsd.port.arch.mk usage.

Noticed by tobiasu@
Guidance from espie@
2016-02-29 20:46:53 +00:00