[MacPorts] #62649: Alacritty @0.7.2: destroot error on Apple M1 Silicon

MacPorts noreply at macports.org
Tue Apr 6 21:48:49 UTC 2021


#62649: Alacritty @0.7.2: destroot error on Apple M1 Silicon
---------------------------+-----------------------
 Reporter:  jianli-github  |      Owner:  (none)
     Type:  defect         |     Status:  new
 Priority:  Normal         |  Milestone:
Component:  ports          |    Version:  2.6.4
 Keywords:                 |       Port:  alacritty
---------------------------+-----------------------
 Hi!

 I saw the following error when building alacritty for Apple M1 Mac Mini

 {{{
 :debug:destroot Executing org.macports.destroot (alacritty)
 :error:destroot Failed to destroot alacritty: error renaming
 "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_aqua_alacritty/alacritty/work/alacritty-0.7.2/target/arm64
 -apple-darwin/release/alacritty": no such file or directory
 :debug:destroot Error code: NONE
 :debug:destroot Backtrace: error renaming
 "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_aqua_alacritty/alacritty/work/alacritty-0.7.2/target/arm64
 -apple-darwin/release/alacritty": no such file or directory
 :debug:destroot     while executing
 :debug:destroot "$procedure $targetname"
 :error:destroot See
 /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_aqua_alacritty/alacritty/main.log
 for details.
 }}}

 I double checked the build directory, and it turns out there is folder
 name mismatch for the target, it seems like the `Porfile` was expecting
 the `${build_arch}` to be `arm64`, whereas the target folder from the
 build is actually `aarch64`. I manually hacked the `Portfile` with a
 hardcoded `aarch64` in place of `${build_arch}` and the build was
 successful.

 Maybe either the `Porfile` or the build scripts need to agree on the
 architecture naming when building for Apple M1 Silicon for the desroot?

 Thanks,
 Jian

-- 
Ticket URL: <https://trac.macports.org/ticket/62649>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list