[MacPorts] #64906: fixing Ruby for PowerPC
MacPorts
noreply at macports.org
Tue Mar 29 21:47:21 UTC 2022
#64906: fixing Ruby for PowerPC
-------------------------------------------------+-------------------------
Reporter: barracuda156 | Owner: (none)
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 2.7.2
Keywords: powerpc, leopard, snowleopard, ruby | Port: ruby27,
| ruby30
-------------------------------------------------+-------------------------
I have tried building `ruby27` and `ruby30` for ppc, they fail on
configure with one test. The following patch fixes configure, and then
both build through completion (example for ruby30):
{{{
--- configure.orig 2021-11-24 19:12:17.000000000 +0800
+++ configure 2022-03-30 03:51:50.000000000 +0800
@@ -8443,6 +8443,8 @@
ARCH_FLAG=-m64 ;; #(
i[3-6]86) :
ARCH_FLAG=-m32 ;; #(
+ ppc) :
+ ARCH_FLAG=-m32 ;; #(
*) :
as_fn_error $? "unknown target architecture: $target_archs" "$LINENO"
5
;;
}}}
Elsewhere the source code has references to ppc and powerpc-darwin, so
this test looks rather arbitrary.
Everything looks okay then:
{{{
36-109% file /opt/local/bin/ruby3.0
/opt/local/bin/ruby3.0: Mach-O executable ppc
36-109% /opt/local/bin/ruby3.0 -v
ruby 3.0.3p157 (2021-11-24 revision 3fb7d2cadc) [ppc-darwin10]
36-109% port -v installed ruby30
The following ports are currently installed:
ruby30 @3.0.3_1 (active) requested_variants='' platform='darwin 10'
archs='ppc' date='2022-03-30T04:04:37+0800'
}}}
However when I try building dependencies with either of newly installed
ruby versions, compilation freezes. No error is given, process just hangs
indefinitely with 100% on one core but apparently doing nothing. (I had a
similar freeze with recent gobject/vala-related dependencies like gexiv2.)
What did I miss?
--
Ticket URL: <https://trac.macports.org/ticket/64906>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list