closes https://trac.macports.org/ticket/63845
keep PKG_CONFIG_PATH in Makefile and use it at running `miniruby extconf.rb`.
ruby(1.8) does not use pkg-config in ext/openssl when headers and libraries
are found from "--with-openssl-include" and "--with-openssl-lib".
closes: https://trac.macports.org/ticket/63602
{{{
$ sudo port install ruby30
---> Computing dependencies for ruby30
:
---> Some of the ports you installed have notes:
ruby30 has the following notes:
To make this the default Ruby (i.e., the version run by the 'ruby', 'gem' or 'bundle' commands),
run:
sudo port select --set ruby ruby30
$
$ port notes ruby30
---> ruby30 has the following notes:
To make this the default Ruby (i.e., the version run by the 'ruby', 'gem' or 'bundle' commands),
run:
sudo port select --set ruby ruby30
$
}}}
- rewrite sdkroot in rbconfig.rb and ruby-*.pc to MacOSX.sdk from MacOS11.x.sdk
see https://trac.macports.org/ticket/61899
- fix ruby19 build error of ext/openssl
insert spaces between literal and identifier in config.h.
// before
#define RUBY_ARCH "universal-"RUBY_PLATFORM_OS
#define RUBY_PLATFORM "universal."RUBY_PLATFORM_CPU"-"RUBY_PLATFORM_OS
// after
#define RUBY_ARCH "universal-" RUBY_PLATFORM_OS
#define RUBY_PLATFORM "universal." RUBY_PLATFORM_CPU "-" RUBY_PLATFORM_OS
note: ruby-2.5 or earlier, `configure` does not accept "--with-arch=arm64"
Closes: https://trac.macports.org/ticket/58255
* ruby23: Fix build on 10.4 i386.
The build was failing on 10.4 i386 due to attempts to access undefined
context fields in the signal handler context struct. This isn't
supported on PPC, so the build succeeded. The relevant fields weren't
defined until 10.5, so the fix is to add an OS version check to the
__APPLE__ case.
This happened in two places - one in check_stack_overflow(), and one
in rb_dump_machine_register().
Using __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ avoids the need to
include AvailabilityMacros.h.
The OS version conditional in dln.c is comparing an undefined macro to
a sometimes undefined (and essentially useless) macro. However, the
relevant code doesn't seem to be built for any OS version, making the
bug irrelevant. This is left alone.
Also corrects a small typo in the description.
Since this only fixes broken builds, there is no need for a revbump.
TESTED:
Built on 10.4-10.5 ppc, 10.4-10.6 i386, and 10.6-10.15 x86_64.
* ruby24: Fix builds on 10.4, 10.5.
The build was failing on 10.4 i386 due to attempts to access undefined
context fields in the signal handler context struct. This isn't
supported on PPC, so the build succeeded. The relevant fields weren't
defined until 10.5, so the fix is to add an OS version check to the
__APPLE__ case.
This happened in two places - one in check_stack_overflow(), and one
in rb_dump_machine_register().
Using __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ avoids the need to
include AvailabilityMacros.h.
The OS version conditional in dln.c is comparing an undefined macro to
a sometimes undefined (and essentially useless) macro. However, the
relevant code doesn't seem to be built for any OS version, making the
bug irrelevant. Nevertheless, it's now fixed, since another, similar
fix was needed, anyway, and it might become relevant if something else
changes.
The OS version conditionals in error.c were using another useless
macro for the comparison, this time with a real effect, though only in
a couple of messages related to crash reports on < 10.6. This is now
fixed.
Also corrects a small typo in the description.
Since this affects the installed code for < 10.6, it includes a
revbump.
TESTED:
Built on 10.4-10.5 ppc, 10.4-10.6 i386, and 10.6-10.15 x86_64.
* ruby25: Fix builds on 10.4, 10.5.
The build was failing on 10.4 i386 due to attempts to access undefined
context fields in the signal handler context struct. This isn't
supported on PPC, so the build succeeded. The relevant fields weren't
defined until 10.5, so the fix is to add an OS version check to the
__APPLE__ case.
This happened in two places - one in check_stack_overflow(), and one
in rb_dump_machine_register().
Using __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ avoids the need to
include AvailabilityMacros.h.
The OS version conditional in dln.c is comparing an undefined macro to
a sometimes undefined (and essentially useless) macro. However, the
relevant code doesn't seem to be built for any OS version, making the
bug irrelevant. Nevertheless, it's now fixed, since another, similar
fix was needed, anyway, and it might become relevant if something else
changes.
The OS version conditionals in error.c were using another useless
macro for the comparison, this time with a real effect, though only in
a couple of messages related to crash reports on < 10.6. This is now
fixed.
Also corrects a small typo in the description.
Since this affects the installed code for < 10.6, it includes a
revbump.
TESTED:
Built on 10.4-10.5 ppc, 10.4-10.6 i386, and 10.6-10.15 x86_64.
see https://trac.macports.org/ticket/58123
<openssl/asn1_mac.h> is obsoleted in latest libressl and openssl.
this error occurs at ext/openssl on ruby-2.3 or earlier versions.
(build error on ruby19 and ruby20 is not solved.)