Skip to content

Commit

Permalink
Ticket #4052: reimplement SIGWINCH handling.
Browse files Browse the repository at this point in the history
Bump minimum GLib requirenment to 2.30.0.

Signed-off-by: Andrew Borodin <[email protected]>
  • Loading branch information
aborodin committed Feb 8, 2020
1 parent 8c24330 commit 91688ab
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 56 deletions.
4 changes: 2 additions & 2 deletions build-glib2.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,13 @@
: ${MC_TOPDIR=`pwd`}
: ${WORK_TOPDIR=$MC_TOPDIR/build_glib2}
: ${TMP_INSTDIR=$WORK_TOPDIR/tmp-inst}
: ${GLIB_VERSION=2.21.0}
: ${GLIB_VERSION=2.30.0}
: ${PKGC_VERSION=0.23}
: ${GETTEXT_VERSION=0.17}

GLIB_DIR="glib-$GLIB_VERSION"
GLIB_TARBALL="glib-$GLIB_VERSION.tar.gz"
GLIB_URL="ftp://ftp.gtk.org/pub/glib/2.21/$GLIB_TARBALL"
GLIB_URL="ftp://ftp.gnome.org/pub/gnome/sources/glib/2.30/$GLIB_TARBALL"

PKGC_DIR="pkg-config-$PKGC_VERSION"
PKGC_TARBALL="pkg-config-$PKGC_VERSION.tar.gz"
Expand Down
2 changes: 1 addition & 1 deletion doc/HACKING
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ required:
Autoconf 2.52 and above (latest is recommended)
Automake 1.5 and above (latest is recommended)
Gettext 0.11.5 and above
Glib 2.26 and above
Glib 2.30 and above

Full list of requirements you can see at:
http://www.midnight-commander.org/wiki/doc/buildAndInstall/req
Expand Down
6 changes: 3 additions & 3 deletions doc/INSTALL
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ Build requirements for GNU Midnight Commander
- autoconf
- automake
- libtool
- glib2 >= 2.26
- glib2 >= 2.30
- slang2 or ncurses
- gettext >= 0.18.1
- libssh2 >= 1.2.5 is required only for sftp vfs (1.2.7 if you need ssh-agent support)
Expand Down Expand Up @@ -383,8 +383,8 @@ get glib from

ftp://ftp.gnome.org/pub/gnome/sources/glib/

Minimal version of glib: 2.26.x
Recommended version: 2.26.x and higher.
Minimal version of glib: 2.30.0
Recommended version: 2.30.x and higher.

Newer versions may work, but haven't been tested.

Expand Down
41 changes: 0 additions & 41 deletions lib/glibcompat.c
Original file line number Diff line number Diff line change
Expand Up @@ -50,47 +50,6 @@
/*** public functions ****************************************************************************/
/* --------------------------------------------------------------------------------------------- */

#if ! GLIB_CHECK_VERSION (2, 28, 0)
/**
* g_slist_free_full:
* @list: a pointer to a #GSList
* @free_func: the function to be called to free each element's data
*
* Convenience method, which frees all the memory used by a #GSList, and
* calls the specified destroy function on every element's data.
*
* Since: 2.28
**/
void
g_slist_free_full (GSList * list, GDestroyNotify free_func)
{
g_slist_foreach (list, (GFunc) free_func, NULL);
g_slist_free (list);
}

/* --------------------------------------------------------------------------------------------- */

/**
* g_list_free_full:
* @list: a pointer to a #GList
* @free_func: the function to be called to free each element's data
*
* Convenience method, which frees all the memory used by a #GList, and
* calls the specified destroy function on every element's data.
*
* Since: 2.28
*/
void
g_list_free_full (GList * list, GDestroyNotify free_func)
{
g_list_foreach (list, (GFunc) free_func, NULL);
g_list_free (list);
}

/* --------------------------------------------------------------------------------------------- */

#endif /* ! GLIB_CHECK_VERSION (2, 28, 0) */

#if ! GLIB_CHECK_VERSION (2, 63, 3)
/**
* g_clear_slist: (skip)
Expand Down
5 changes: 0 additions & 5 deletions lib/glibcompat.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,6 @@

/*** declarations of public functions ************************************************************/

#if ! GLIB_CHECK_VERSION (2, 28, 0)
void g_slist_free_full (GSList * list, GDestroyNotify free_func);
void g_list_free_full (GList * list, GDestroyNotify free_func);
#endif /* ! GLIB_CHECK_VERSION (2, 28, 0) */

#if ! GLIB_CHECK_VERSION (2, 63, 3)
void g_clear_slist (GSList ** slist_ptr, GDestroyNotify destroy);
void g_clear_list (GList ** list_ptr, GDestroyNotify destroy);
Expand Down
8 changes: 4 additions & 4 deletions m4.include/mc-glib.m4
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@ AC_DEFUN([mc_G_MODULE_SUPPORTED], [
g_module_supported=""
found_gmodule=no
PKG_CHECK_MODULES(GMODULE, [gmodule-no-export-2.0 >= 2.26], [found_gmodule=yes], [:])
PKG_CHECK_MODULES(GMODULE, [gmodule-no-export-2.0 >= 2.30], [found_gmodule=yes], [:])
if test x"$found_gmodule" = xyes; then
g_module_supported="gmodule-no-export-2.0"
else
dnl try fallback to the generic gmodule
PKG_CHECK_MODULES(GMODULE, [gmodule-2.0 >= 2.26], [found_gmodule=yes], [:])
PKG_CHECK_MODULES(GMODULE, [gmodule-2.0 >= 2.30], [found_gmodule=yes], [:])
if test x"$found_gmodule" = xyes; then
g_module_supported="gmodule-2.0"
fi
Expand Down Expand Up @@ -78,9 +78,9 @@ AC_DEFUN([mc_CHECK_GLIB], [
AS_HELP_STRING([--with-glib-static], [Link glib statically @<:@no@:>@]))
glib_found=no
PKG_CHECK_MODULES(GLIB, [glib-2.0 >= 2.26], [glib_found=yes], [:])
PKG_CHECK_MODULES(GLIB, [glib-2.0 >= 2.30], [glib_found=yes], [:])
if test x"$glib_found" = xno; then
AC_MSG_ERROR([glib-2.0 not found or version too old (must be >= 2.26)])
AC_MSG_ERROR([glib-2.0 not found or version too old (must be >= 2.30)])
fi
])
Expand Down

0 comments on commit 91688ab

Please sign in to comment.