diff options
Diffstat (limited to 'source/l')
-rw-r--r-- | source/l/glib2/glib.g_str_equal.diff | 11 | ||||
-rwxr-xr-x | source/l/glib2/glib2.SlackBuild | 5 |
2 files changed, 15 insertions, 1 deletions
diff --git a/source/l/glib2/glib.g_str_equal.diff b/source/l/glib2/glib.g_str_equal.diff new file mode 100644 index 000000000..88fcdd3d9 --- /dev/null +++ b/source/l/glib2/glib.g_str_equal.diff @@ -0,0 +1,11 @@ +--- ./glib/ghash.h.orig 2022-11-24 06:29:05.000000000 -0600 ++++ ./glib/ghash.h 2022-11-28 13:41:03.250650020 -0600 +@@ -162,7 +162,7 @@ + gconstpointer v2); + + /* Macro for optimization in the case it is not used as callback function */ +-#define g_str_equal(v1, v2) (strcmp ((gconstpointer) (v1), (gconstpointer) (v2)) == 0) ++#define g_str_equal(v1, v2) (strcmp ((const char*) (gconstpointer) (v1),(const char*) (gconstpointer) (v2)) == 0) + + GLIB_AVAILABLE_IN_ALL + guint g_str_hash (gconstpointer v); diff --git a/source/l/glib2/glib2.SlackBuild b/source/l/glib2/glib2.SlackBuild index c3ff80303..aa034997e 100755 --- a/source/l/glib2/glib2.SlackBuild +++ b/source/l/glib2/glib2.SlackBuild @@ -24,7 +24,7 @@ cd $(dirname $0) ; CWD=$(pwd) PKGNAM=glib2 VERSION=${VERSION:-$(echo glib-*.tar.?z* | rev | cut -f 3- -d . | cut -f 1 -d - | rev)} -BUILD=${BUILD:-1} +BUILD=${BUILD:-2} NUMJOBS=${NUMJOBS:-" -j$(expr $(nproc) + 1) "} @@ -77,6 +77,9 @@ find . \ \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \ -exec chmod 644 {} \+ +# Fix C++ API: +zcat $CWD/glib.g_str_equal.diff.gz | patch -p1 --verbose || exit 1 + # Configure, build, and install: export CFLAGS="$SLKCFLAGS" export CXXFLAGS="$SLKCFLAGS" |