[MacPorts] #64587: MoarVM configure failure for ppc: GNU tools detected, despite this not being a GNU-oriented build

MacPorts noreply at macports.org
Tue Mar 22 00:21:16 UTC 2022


#64587: MoarVM configure failure for ppc: GNU tools detected, despite this not
being a GNU-oriented build
---------------------------+-------------------------------------------
  Reporter:  barracuda156  |      Owner:  (none)
      Type:  defect        |     Status:  new
  Priority:  Normal        |  Milestone:
 Component:  ports         |    Version:  2.7.1
Resolution:                |   Keywords:  powerpc, snowleopard, rosetta
      Port:  MoarVM        |
---------------------------+-------------------------------------------

Comment (by barracuda156):

 Replying to [comment:1 evanmiller]:

 I have fixed it:

 {{{
 36-73% port -v installed moarvm
 The following ports are currently installed:
   MoarVM @2022.02_0 (active) requested_variants='' platform='darwin 10'
 archs='ppc' date='2022-03-22T08:10:05+0800'
 }}}

 The following changes are needed for ppc. Add this to portfile:

 {{{
 PortGroup legacysupport 1.0
 legacysupport.newest_darwin_requires_legacy 10

 if {${os.platform} eq "darwin" && ${os.arch} eq "powerpc"} {
     configure.args-append --no-mimalloc
 }
 }}}

 And add this patch:

 {{{
 --- Configure.pl.orig   2021-07-24 18:24:40.000000000 +0800
 +++ Configure.pl        2022-03-21 18:14:42.000000000 +0800
 @@ -187,20 +187,6 @@
              $gnu_count += 1;
          }
      }
 -
 -    ## For a GNU toolchain, make sure that they're all GNU.
 -    if ($gnu_toolchain && $gnu_count != scalar @check_tools) {
 -        print "\nNot all tools in the toolchain are GNU. Please correct
 this and retry.\n"
 -            . "See README.markdown for more details.\n\n";
 -        exit -1;
 -    }
 -
 -    ## Otherwise, make sure that none of them are GNU
 -    elsif (!$gnu_toolchain && $gnu_count != 0) {
 -        print "\nGNU tools detected, despite this not being a GNU-
 oriented build.\n"
 -            ." Please correct this and retry. See README.markdown for
 more details.\n\n";
 -        exit -1;
 -    }
  }

  # Probe the compiler.

 }}}

 The first addresses a lack of strnlen, arc4random_buf and mimalloc, the
 latter fixes configure failure.

-- 
Ticket URL: <https://trac.macports.org/ticket/64587#comment:3>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list