[MacPorts] #62991: m4 @ 1.4.19+universal Failed to configure

MacPorts noreply at macports.org
Sat Jun 5 07:02:50 UTC 2021


#62991: m4 @ 1.4.19+universal Failed to configure
---------------------------+--------------------------
  Reporter:  FaradayLight  |      Owner:  (none)
      Type:  defect        |     Status:  new
  Priority:  Normal        |  Milestone:
 Component:  ports         |    Version:  2.7.1
Resolution:                |   Keywords:  arm64 bigsur
      Port:  M4            |
---------------------------+--------------------------

Comment (by tomio-arisaka):

 I made a patch for M1 Mac.


 {{{
 $ diff -u Portfile.orig Portfile
 --- Portfile.orig       2021-05-30 04:56:03.000000000 +0900
 +++ Portfile    2021-06-05 02:37:51.000000000 +0900
 @@ -1,5 +1,6 @@
  PortSystem             1.0
  PortGroup              clang_dependency 1.0
 +PortGroup               muniversal 1.0

  name            m4
  version         1.4.19
 @@ -33,6 +34,13 @@
      patchfiles-append      patch-m4-use-older-regnames-on-tiger.diff
  }

 +platform arm {
 +    set merger_configure_args(arm64)   --host=aarch64-apple-darwin
 +    set merger_configure_args(x86_64)  --host=x86_64-apple-darwin
 +    set merger_configure_env(arm64)    CC_FOR_BUILD=${configure.cc}
 +    set merger_configure_env(x86_64)   CC_FOR_BUILD=${configure.cc}
 +}
 +
  configure.args  --disable-silent-rules \
                  --program-prefix=g \
                  --with-packager=MacPorts \
 }}}

 It works well for me.


 {{{
 MacBook-Pro:~ $ port installed m4
 The following ports are currently installed:
   m4 @1.4.19_1
   m4 @1.4.19_1+universal (active)
 MacBook-Pro:~ $
 MacBook-Pro:~ $ file `which m4`
 /usr/bin/m4: Mach-O universal binary with 2 architectures: [x86_64:Mach-O
 64-bit executable x86_64] [arm64e:Mach-O 64-bit executable arm64e]
 /usr/bin/m4 (for architecture x86_64):  Mach-O 64-bit executable x86_64
 /usr/bin/m4 (for architecture arm64e):  Mach-O 64-bit executable arm64e
 MacBook-Pro:~ $
 }}}

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


More information about the macports-tickets mailing list