[MacPorts] #67286: podofo @0.9.8_0 - Does it need a newer lua version?

MacPorts noreply at macports.org
Sat Apr 22 10:21:02 UTC 2023


#67286: podofo @0.9.8_0  - Does it need a newer lua version?
-----------------------+----------------------
 Reporter:  snowflake  |      Owner:  dbevans
     Type:  defect     |     Status:  assigned
 Priority:  Normal     |  Milestone:
Component:  ports      |    Version:  2.8.99
 Keywords:             |       Port:  podofo
-----------------------+----------------------
 podofo failed with linking errors:
 {{{
 Undefined symbols for architecture x86_64:
   "_luaL_loadfilex", referenced from:
       imp_lua_dofile(lua_State*, char const*) in luaconverter.cpp.o
   "_lua_callk", referenced from:
       LuaConverter::StartPage(PoDoFo::PdfPage*, int) in luaconverter.cpp.o
       LuaConverter::EndPage(PoDoFo::PdfPage*, int) in luaconverter.cpp.o
       LuaConverter::StartXObject(PoDoFo::PdfXObject*) in
 luaconverter.cpp.o
       LuaConverter::EndXObject(PoDoFo::PdfXObject*) in luaconverter.cpp.o
       LuaConverter::SetStrokingColorGray(PoDoFo::PdfColor const&) in
 luaconverter.cpp.o
 }}}
 and many more.

 I tested on El Capitan and Ventura.

 I changed the default lua version in the lua portgroup:
 {{{
 diff --git a/_resources/port1.0/group/lua-1.0.tcl
 b/_resources/port1.0/group/lua-1.0.tcl
 index 98dafea7d2c..56e203edaeb 100644
 --- a/_resources/port1.0/group/lua-1.0.tcl
 +++ b/_resources/port1.0/group/lua-1.0.tcl
 @@ -54,7 +54,7 @@ default lua.finds_versioned {no}

  # default Lua version
  options lua.default_version
 -default lua.default_version {5.3}
 +default lua.default_version {5.4}
  global  lua.default_version

  # all Lua versions
 }}}
 and it now builds.
 I realise that this is a hack and it is not the recommended way to change
 it.

 I do not know why the buildbots are succeeding where my local build
 failed.

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


More information about the macports-tickets mailing list