From: Daniel Vetter <daniel@ffwll.ch>
To: Petri Latvala <petri.latvala@intel.com>
Cc: igt-dev@lists.freedesktop.org, Daniel Vetter <daniel@ffwll.ch>
Subject: Re: [igt-dev] [PATCH i-g-t 1/2] Make GLib mandatory
Date: Thu, 21 Jun 2018 15:59:14 +0200 [thread overview]
Message-ID: <20180621135914.GA2958@phenom.ffwll.local> (raw)
In-Reply-To: <20180621110625.14201-1-petri.latvala@intel.com>
On Thu, Jun 21, 2018 at 02:06:24PM +0300, Petri Latvala wrote:
> GLib was originally made optional for Android builds, and Android
> support was dropped a while ago due to lack of use and maintenance.
>
> Building without GLib was broken without bug reports anyway.
>
> Signed-off-by: Petri Latvala <petri.latvala@intel.com>
> Cc: Daniel Vetter <daniel@ffwll.ch>
> Cc: Arkadiusz Hiler <arkadiusz.hiler@intel.com>
Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
> ---
> configure.ac | 8 +-------
> lib/igt_core.c | 10 ----------
> lib/igt_rc.h | 2 --
> meson.build | 5 +----
> 4 files changed, 2 insertions(+), 23 deletions(-)
>
> diff --git a/configure.ac b/configure.ac
> index 2f6bc70e..1ee4e90e 100644
> --- a/configure.ac
> +++ b/configure.ac
> @@ -177,10 +177,7 @@ PKG_CHECK_MODULES(XRANDR, xrandr >= 1.3, AC_DEFINE(HAVE_XRANDR, 1, [Have libXran
> # for testdisplay
> PKG_CHECK_MODULES(CAIRO, [cairo >= 1.12.0])
> PKG_CHECK_MODULES(LIBUDEV, [libudev])
> -PKG_CHECK_MODULES(GLIB, [glib-2.0], [glib=yes], [glib=no])
> -if test x"$glib" = xyes; then
> - AC_DEFINE(HAVE_GLIB,1,[Enable glib support])
> -fi
> +PKG_CHECK_MODULES(GLIB, [glib-2.0])
> PKG_CHECK_MODULES(GSL, [gsl], [gsl=yes], [gsl=no])
> AM_CONDITIONAL(HAVE_GSL, [test "x$gsl" = xyes])
>
> @@ -206,9 +203,6 @@ if test "x$enable_chamelium" = xyes; then
> fi
> PKG_CHECK_MODULES(PIXMAN, pixman-1, [],
> [AC_MSG_ERROR([Failed to find pixman, required by chamelium.])])
> - if test x"$glib" != xyes; then
> - AC_MSG_ERROR([Failed to find glib, required by chamelium.])
> - fi
> if test x"$gsl" != xyes; then
> AC_MSG_ERROR([Failed to find gsl, required by chamelium.])
> fi
> diff --git a/lib/igt_core.c b/lib/igt_core.c
> index 06d8b037..3313050c 100644
> --- a/lib/igt_core.c
> +++ b/lib/igt_core.c
> @@ -55,9 +55,7 @@
> #include <limits.h>
> #include <locale.h>
> #include <uwildmat/uwildmat.h>
> -#ifdef HAVE_GLIB
> #include <glib.h>
> -#endif
>
> #include "drmtest.h"
> #include "intel_chipset.h"
> @@ -299,9 +297,7 @@ static struct {
> } log_buffer;
> static pthread_mutex_t log_buffer_mutex = PTHREAD_MUTEX_INITIALIZER;
>
> -#ifdef HAVE_GLIB
> GKeyFile *igt_key_file;
> -#endif
>
> char *igt_frame_dump_path;
>
> @@ -573,7 +569,6 @@ static void oom_adjust_for_doom(void)
>
> }
>
> -#ifdef HAVE_GLIB
> static void common_init_config(void)
> {
> char *key_file_env = NULL;
> @@ -624,7 +619,6 @@ out:
> if (!key_file_env && key_file_loc)
> free(key_file_loc);
> }
> -#endif
>
> static void common_init_env(void)
> {
> @@ -778,9 +772,7 @@ static int common_init(int *argc, char **argv,
> }
> }
>
> -#ifdef HAVE_GLIB
> common_init_config();
> -#endif
>
> out:
> free(short_opts);
> @@ -1435,10 +1427,8 @@ void igt_exit(void)
> {
> igt_exit_called = true;
>
> -#ifdef HAVE_GLIB
> if (igt_key_file)
> g_key_file_free(igt_key_file);
> -#endif
>
> if (run_single_subtest && !run_single_subtest_found) {
> igt_warn("Unknown subtest: %s\n", run_single_subtest);
> diff --git a/lib/igt_rc.h b/lib/igt_rc.h
> index d7a314c5..53e5ce66 100644
> --- a/lib/igt_rc.h
> +++ b/lib/igt_rc.h
> @@ -25,10 +25,8 @@
> #ifndef IGT_RC_H
> #define IGT_RC_H
>
> -#ifdef HAVE_GLIB
> #include <glib.h>
>
> extern GKeyFile *igt_key_file;
>
> -#endif /* HAVE_GLIB */
> #endif /* IGT_RC_H */
> diff --git a/meson.build b/meson.build
> index cd736d8e..98216fc4 100644
> --- a/meson.build
> +++ b/meson.build
> @@ -50,10 +50,7 @@ endif
>
> cairo = dependency('cairo', version : '>1.12.0', required : true)
> libudev = dependency('libudev', required : true)
> -glib = dependency('glib-2.0', required : false)
> -if glib.found()
> - config.set('HAVE_GLIB', 1)
> -endif
> +glib = dependency('glib-2.0', required : true)
>
> gsl = dependency('gsl', required : false)
> alsa = dependency('alsa', required : false)
> --
> 2.14.1
>
--
Daniel Vetter
Software Engineer, Intel Corporation
http://blog.ffwll.ch
_______________________________________________
igt-dev mailing list
igt-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/igt-dev
next prev parent reply other threads:[~2018-06-21 13:59 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-06-21 11:06 [igt-dev] [PATCH i-g-t 1/2] Make GLib mandatory Petri Latvala
2018-06-21 11:06 ` [igt-dev] [PATCH i-g-t 2/2] meson: Add options to control optional parts Petri Latvala
2018-06-21 11:29 ` Petri Latvala
2018-06-21 14:27 ` Daniel Vetter
2018-06-21 16:46 ` Lucas De Marchi
2018-06-22 8:27 ` Daniel Vetter
2018-06-25 7:10 ` [igt-dev] [PATCH i-g-t v3] " Arkadiusz Hiler
2018-06-28 9:29 ` Jani Nikula
2018-06-28 11:46 ` Daniel Vetter
2018-06-28 12:09 ` Jani Nikula
2018-06-21 11:32 ` [igt-dev] ✓ Fi.CI.BAT: success for series starting with [i-g-t,1/2] Make GLib mandatory Patchwork
2018-06-21 13:59 ` Daniel Vetter [this message]
2018-06-21 14:00 ` [igt-dev] [PATCH i-g-t 1/2] " Daniel Vetter
2018-06-21 15:30 ` [igt-dev] ✓ Fi.CI.IGT: success for series starting with [i-g-t,1/2] " Patchwork
2018-06-25 9:52 ` [igt-dev] ✓ Fi.CI.BAT: success for series starting with [i-g-t,1/2] Make GLib mandatory (rev2) Patchwork
2018-06-25 12:18 ` [igt-dev] ✓ Fi.CI.IGT: " Patchwork
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20180621135914.GA2958@phenom.ffwll.local \
--to=daniel@ffwll.ch \
--cc=igt-dev@lists.freedesktop.org \
--cc=petri.latvala@intel.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox