[MacPorts] #67838: qtruby: possible to support a modern Ruby?

MacPorts noreply at macports.org
Fri Jul 28 08:23:33 UTC 2023


#67838: qtruby: possible to support a modern Ruby?
---------------------------+--------------------
  Reporter:  barracuda156  |      Owner:  (none)
      Type:  defect        |     Status:  new
  Priority:  Normal        |  Milestone:
 Component:  ports         |    Version:  2.8.1
Resolution:                |   Keywords:
      Port:  qtruby, ruby  |
---------------------------+--------------------

Comment (by barracuda156):

 It actually might work. Switching to modern GCC (no extra patches), build
 gets quite a bit further and fails on linking due to a wrong Ruby dylib
 being passed (which is totally fixable):
 {{{
 [ 26%] Linking CXX shared library libqtruby4shared.dylib
 cd
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_kde_qtruby/qtruby/work/build/src
 && /opt/local/bin/cmake -E cmake_link_script
 CMakeFiles/qtruby4shared.dir/link.txt --verbose=ON
 /opt/local/bin/g++-mp-12 -pipe -Os -DNDEBUG -arch ppc -mmacosx-version-
 min=10.6 -dynamiclib -Wl,-headerpad_max_install_names
 -Wl,-headerpad_max_install_names -compatibility_version 2.0.0
 -current_version 2.0.0 -o libqtruby4shared.2.0.0.dylib -install_name
 /opt/local/lib/libqtruby4shared.2.dylib
 CMakeFiles/qtruby4shared.dir/Qt.cpp.o
 CMakeFiles/qtruby4shared.dir/handlers.cpp.o
 CMakeFiles/qtruby4shared.dir/marshall_types.cpp.o
 -Wl,-rpath,/opt/local/lib /opt/local/libexec/qt4/lib/libQtCore.dylib
 /opt/local/libexec/qt4/lib/libQtGui.dylib //usr/lib/libruby.dylib
 /opt/local/libexec/qt4/lib/libQtNetwork.dylib
 /opt/local/lib/libsmokebase.dylib /opt/local/lib/libsmokeqtcore.dylib
 /opt/local/lib/libsmokeqtgui.dylib /opt/local/lib/libsmokeqtxml.dylib
 /opt/local/lib/libsmokeqtopengl.dylib /opt/local/lib/libsmokeqtsql.dylib
 /opt/local/lib/libsmokeqtnetwork.dylib /opt/local/lib/libsmokeqtdbus.dylib
 /opt/local/lib/libsmokeqtsvg.dylib
 Undefined symbols:
   "_rb_str_new_cstr", referenced from:
       _set_obj_info in Qt.cpp.o
 }}}

 Going off now, will return to this tomorrow. May be an easy fix.

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


More information about the macports-tickets mailing list