Fix build with --enable-dtrace and create CI job to ensure it doesn't break in the future
I'm getting this build failure on 1.53.91 from released tarball:
[ 101s] In file included from gi/object.cpp:45:
[ 101s] gi/object.cpp: In destructor 'ObjectInstance::~ObjectInstance()':
[ 101s] gi/object.cpp:1621:37: error: 'priv' was not declared in this scope
[ 101s] TRACE(GJS_OBJECT_PROXY_FINALIZE(priv, m_gobj, ns(), name()));
[ 101s] ^~~~
[ 101s] gi/gjs_gi_trace.h:38:22: note: in definition of macro 'TRACE'
[ 101s] #define TRACE(probe) probe
[ 101s] ^~~~~
[ 101s] gi/object.cpp:1621:11: note: in expansion of macro 'GJS_OBJECT_PROXY_FINALIZE'
[ 101s] TRACE(GJS_OBJECT_PROXY_FINALIZE(priv, m_gobj, ns(), name()));
[ 101s] ^~~~~~~~~~~~~~~~~~~~~~~~~
[ 101s] gi/object.cpp:1621:37: note: suggested alternative: 'ldiv'
[ 101s] TRACE(GJS_OBJECT_PROXY_FINALIZE(priv, m_gobj, ns(), name()));
[ 101s] ^~~~
[ 101s] gi/gjs_gi_trace.h:38:22: note: in definition of macro 'TRACE'
[ 101s] #define TRACE(probe) probe
[ 101s] ^~~~~
[ 101s] gi/object.cpp:1621:11: note: in expansion of macro 'GJS_OBJECT_PROXY_FINALIZE'
[ 101s] TRACE(GJS_OBJECT_PROXY_FINALIZE(priv, m_gobj, ns(), name()));
[ 101s] ^~~~~~~~~~~~~~~~~~~~~~~~~
[ 101s] ./gjs_gi_probes.h:32:1: error: template argument 1 is invalid
[ 101s] DTRACE_PROBE4 (gjs, object__proxy__finalize, arg1, arg2, arg3, arg4)
[ 101s] ^~~~~~~~~~~~~
[ 101s] gi/gjs_gi_trace.h:38:22: note: in definition of macro 'TRACE'
[ 101s] #define TRACE(probe) probe
[ 101s] ^~~~~
[ 101s] gi/object.cpp:1621:11: note: in expansion of macro 'GJS_OBJECT_PROXY_FINALIZE'
[ 101s] TRACE(GJS_OBJECT_PROXY_FINALIZE(priv, m_gobj, ns(), name()));
[ 101s] ^~~~~~~~~~~~~~~~~~~~~~~~~ ^~~~
Edited by Philip Chimento