[MacPorts] #66077: neovim 0.8.0: fails to install on macOS 13.0 arm64

MacPorts noreply at macports.org
Thu Oct 27 21:02:31 UTC 2022


#66077: neovim 0.8.0: fails to install on macOS 13.0 arm64
--------------------------+----------------------
  Reporter:  assholehoff  |      Owner:  raimue
      Type:  defect       |     Status:  assigned
  Priority:  Normal       |  Milestone:
 Component:  ports        |    Version:  2.8.0
Resolution:               |   Keywords:
      Port:  neovim       |
--------------------------+----------------------

Comment (by hexane360):

 I believe the problem is with how MacPorts is installing luarocks, as per:
 https://github.com/luarocks/luarocks/issues/1209

 Modifying the luarocks portgroup to specify --lua-dir and --lua-version
 seems to fix the issue for me:


 {{{
 ---
 macports/sources/rsync.macports.org/macports/release/tarballs/ports/_resources/port1.0/group/luarocks-1.0.tcl
 2022-01-25 15:12:18
 +++
 macports/sources/rsync.macports.org/macports/release/tarballs/ports/_resources/port1.0/group/luarocks-1.0.tcl
 2022-10-27 17:00:11
 @@ -88,7 +88,7 @@
  proc luarocks.setup {module vers {type "src.rock"} {docs {}} {source
 "custom"} {implementation "luarocks"}} {
      global name subport luarocks.branches luarocks.default_branch
 luarocks.dependencies
      global destroot prefix distpath distname worksrcpath os.platform
 -    global configure.cc configure.cflags configure.ldflags
 +    global configure.cc configure.cflags configure.ldflags
 macosx_deployment_target
      global luarocks.bin luarocks.branch
      global luarocks.suffix luarocks.bindir luarocks.rocksdir
      global luarocks.module luarocks.filename luarocks.distname
 luarocks.project luarocks.docs
 @@ -179,6 +179,7 @@
      destroot.env-append     CC="${configure.cc}"
      destroot.env-append     "CFLAGS=${configure.cflags}
 [get_canonical_archflags cc]"
      destroot.env-append     "LDFLAGS=${configure.ldflags}
 [get_canonical_archflags ld]"
 +    destroot.env-append
 MACOSX_DEPLOYMENT_TARGET=${macosx_deployment_target}

      # https://github.com/luarocks/luarocks/wiki/Types-of-rocks
      switch -glob ${type} {
 @@ -200,7 +201,7 @@
              build {}

              destroot.cmd       ${luarocks.bin}
 -            destroot.pre_args  --tree ${destroot}${prefix}
 +            destroot.pre_args  --lua-dir=${prefix} --lua-
 version=${luarocks.branch} --tree ${destroot}${prefix}
              destroot.args      make --deps-mode none
              destroot.post_args ${distpath}/${luarocks.distname}.rockspec

 @@ -230,7 +231,7 @@
              build {}

              destroot.cmd       ${luarocks.bin}
 -            destroot.pre_args  --tree ${destroot}${prefix}
 +            destroot.pre_args  --lua-dir=${prefix} --lua-
 version=${luarocks.branch} --tree ${destroot}${prefix}
              destroot.args      build --deps-mode none
              destroot.post_args
 ${worksrcpath}/${luarocks.distname}.src.rock

 @@ -261,7 +262,7 @@
              build {}

              destroot.cmd       ${luarocks.bin}
 -            destroot.pre_args  --tree ${destroot}${prefix}
 +            destroot.pre_args  --lua-dir=${prefix} --lua-
 version=${luarocks.branch} --tree ${destroot}${prefix}
              destroot.args      build --deps-mode none
              destroot.post_args
 ${worksrcpath}/${luarocks.distname}.all.rock
 }}}

 I'm too busy to make a PR right now, but hopefully this works for other
 people.

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


More information about the macports-tickets mailing list