Cherrypick the deprecated g_module_build_path() from upstream 70/307370/1 accepted/tizen_unified accepted/tizen_unified_dev accepted/tizen_unified_x accepted/tizen/unified/20240308.174133 accepted/tizen/unified/dev/20240620.005820 accepted/tizen/unified/x/20240311.100327
authorYoungjae Cho <y0.cho@samsung.com>
Thu, 7 Mar 2024 10:09:52 +0000 (19:09 +0900)
committerYoungjae Cho <y0.cho@samsung.com>
Thu, 7 Mar 2024 10:53:45 +0000 (19:53 +0900)
commitabc018245bdbfec3764cd0eeedae82b62c7095d2
treef875a51eaeefcf6a3219aad3cd4ffdb83b7fdfc0
parent6a92e761fba4a399dd86a2b358a88785792354ca
Cherrypick the deprecated g_module_build_path() from upstream

As of the glib version 2.76, the g_module_build_path() has been
deprecated due to inconsistency of G_MODULE_SUFFIX.
(See https://github.com/GNOME/glib/commit/d941558)

However, we know that the G_MODULE_SUFFIX is clearly "so" on our
unix environment. Therefore, copy and reuse the deprecated function
internally, replacing G_MODULE_SUFFIX with string literal "so".

The g_module_open() has been improved as a compensation for the
deprecation, which takes care of all the possible G_MODULE_SUFFIX.
But we cannot use it instead, as we need full path before calling
g_module_open() to check several file attributes.

Change-Id: I7e939fc3fbe6697cacb3205adc8d453205449ae7
Signed-off-by: Youngjae Cho <y0.cho@samsung.com>
src/daemon/tlm-manager.c