diff options
-rw-r--r-- | meta/conf/distro/include/poky-fixed-revisions.inc | 4 | ||||
-rw-r--r-- | meta/packages/glib-2.0/glib-2.0-2.22.3/glib-gettextize-dir.patch | 11 | ||||
-rw-r--r-- | meta/packages/glib-2.0/glib-2.0-2.22.3/glibconfig-sysdefs.h | 6 | ||||
-rw-r--r-- | meta/packages/glib-2.0/glib-2.0-2.24.1/60_wait-longer-for-threads-to-die.patch | 29 | ||||
-rw-r--r-- | meta/packages/glib-2.0/glib-2.0-2.24.1/configure-libtool.patch (renamed from meta/packages/glib-2.0/glib-2.0-2.22.3/configure-libtool.patch) | 0 | ||||
-rw-r--r-- | meta/packages/glib-2.0/glib-2.0-2.24.1/gatomic-proper-pointer-get-cast.patch | 37 | ||||
-rw-r--r-- | meta/packages/glib-2.0/glib-2.0-2.24.1/glib-gettextize-dir.patch | 19 | ||||
-rw-r--r-- | meta/packages/glib-2.0/glib-2.0_2.22.3.bb | 11 | ||||
-rw-r--r-- | meta/packages/glib-2.0/glib-2.0_2.24.1.bb | 11 | ||||
-rw-r--r-- | meta/packages/glib-2.0/glib.inc | 41 |
10 files changed, 117 insertions, 52 deletions
diff --git a/meta/conf/distro/include/poky-fixed-revisions.inc b/meta/conf/distro/include/poky-fixed-revisions.inc index 72dcdcf564..edadc1b4b0 100644 --- a/meta/conf/distro/include/poky-fixed-revisions.inc +++ b/meta/conf/distro/include/poky-fixed-revisions.inc | |||
@@ -9,8 +9,8 @@ PREFERRED_VERSION_libmatchbox ?= "1.9" | |||
9 | PREFERRED_VERSION_gtk-sato-engine ?= "0.3.1" | 9 | PREFERRED_VERSION_gtk-sato-engine ?= "0.3.1" |
10 | PREFERRED_VERSION_matchbox-theme-sato ?= "0.1" | 10 | PREFERRED_VERSION_matchbox-theme-sato ?= "0.1" |
11 | 11 | ||
12 | PREFERRED_VERSION_glib-2.0 ?= "2.22.3" | 12 | PREFERRED_VERSION_glib-2.0 ?= "2.24.1" |
13 | PREFERRED_VERSION_glib-2.0-native ?= "2.22.3" | 13 | PREFERRED_VERSION_glib-2.0-native ?= "2.24.1" |
14 | PREFERRED_VERSION_atk ?= "1.24.0" | 14 | PREFERRED_VERSION_atk ?= "1.24.0" |
15 | PREFERRED_VERSION_cairo ?= "1.8.2" | 15 | PREFERRED_VERSION_cairo ?= "1.8.2" |
16 | PREFERRED_VERSION_pango ?= "1.22.2" | 16 | PREFERRED_VERSION_pango ?= "1.22.2" |
diff --git a/meta/packages/glib-2.0/glib-2.0-2.22.3/glib-gettextize-dir.patch b/meta/packages/glib-2.0/glib-2.0-2.22.3/glib-gettextize-dir.patch deleted file mode 100644 index efe3325578..0000000000 --- a/meta/packages/glib-2.0/glib-2.0-2.22.3/glib-gettextize-dir.patch +++ /dev/null | |||
@@ -1,11 +0,0 @@ | |||
1 | --- glib-2.10.3/glib-gettextize.in.old 2006-06-21 12:46:45.000000000 +0100 | ||
2 | +++ glib-2.10.3/glib-gettextize.in 2006-06-21 12:48:14.000000000 +0100 | ||
3 | @@ -49,7 +49,7 @@ | ||
4 | ;; | ||
5 | esac | ||
6 | |||
7 | -gettext_dir=$prefix/share/glib-2.0/gettext | ||
8 | +gettext_dir=@datadir@/glib-2.0/gettext | ||
9 | |||
10 | while test $# -gt 0; do | ||
11 | case "$1" in | ||
diff --git a/meta/packages/glib-2.0/glib-2.0-2.22.3/glibconfig-sysdefs.h b/meta/packages/glib-2.0/glib-2.0-2.22.3/glibconfig-sysdefs.h deleted file mode 100644 index 1329e7f21c..0000000000 --- a/meta/packages/glib-2.0/glib-2.0-2.22.3/glibconfig-sysdefs.h +++ /dev/null | |||
@@ -1,6 +0,0 @@ | |||
1 | #define GLIB_SYSDEF_POLLIN =1 | ||
2 | #define GLIB_SYSDEF_POLLOUT =4 | ||
3 | #define GLIB_SYSDEF_POLLPRI =2 | ||
4 | #define GLIB_SYSDEF_POLLERR =8 | ||
5 | #define GLIB_SYSDEF_POLLHUP =16 | ||
6 | #define GLIB_SYSDEF_POLLNVAL =32 | ||
diff --git a/meta/packages/glib-2.0/glib-2.0-2.24.1/60_wait-longer-for-threads-to-die.patch b/meta/packages/glib-2.0/glib-2.0-2.24.1/60_wait-longer-for-threads-to-die.patch new file mode 100644 index 0000000000..1676b3e257 --- /dev/null +++ b/meta/packages/glib-2.0/glib-2.0-2.24.1/60_wait-longer-for-threads-to-die.patch | |||
@@ -0,0 +1,29 @@ | |||
1 | # copy from OE, said to borrow from Ubuntu. Not in glib-2.0 upstream yet. Add for sanity. | ||
2 | # | ||
3 | # by Kevin Tian <kevin.tian@intel.com>, 06/25/2010 | ||
4 | --- glib/tests/threadpool-test.c.old 2008-02-12 06:11:21.000000000 +0100 | ||
5 | +++ glib/tests/threadpool-test.c 2008-02-12 06:11:52.000000000 +0100 | ||
6 | @@ -5,8 +5,8 @@ | ||
7 | |||
8 | #include <glib.h> | ||
9 | |||
10 | -#define DEBUG_MSG(x) | ||
11 | -/* #define DEBUG_MSG(args) g_printerr args ; g_printerr ("\n"); */ | ||
12 | +/* #define DEBUG_MSG(x) */ | ||
13 | +#define DEBUG_MSG(args) g_printerr args ; g_printerr ("\n"); | ||
14 | |||
15 | #define WAIT 5 /* seconds */ | ||
16 | #define MAX_THREADS 10 | ||
17 | @@ -124,10 +124,10 @@ | ||
18 | DEBUG_MSG (("[unused] stopping unused threads")); | ||
19 | g_thread_pool_stop_unused_threads (); | ||
20 | |||
21 | - DEBUG_MSG (("[unused] waiting ONE second for threads to die")); | ||
22 | + DEBUG_MSG (("[unused] waiting FIVE second for threads to die")); | ||
23 | |||
24 | /* Some time for threads to die. */ | ||
25 | - g_usleep (G_USEC_PER_SEC); | ||
26 | + g_usleep (5 * G_USEC_PER_SEC); | ||
27 | |||
28 | DEBUG_MSG (("[unused] stopped idle threads, %d remain, %d threads still exist", | ||
29 | g_thread_pool_get_num_unused_threads (), | ||
diff --git a/meta/packages/glib-2.0/glib-2.0-2.22.3/configure-libtool.patch b/meta/packages/glib-2.0/glib-2.0-2.24.1/configure-libtool.patch index 3ba79b8986..3ba79b8986 100644 --- a/meta/packages/glib-2.0/glib-2.0-2.22.3/configure-libtool.patch +++ b/meta/packages/glib-2.0/glib-2.0-2.24.1/configure-libtool.patch | |||
diff --git a/meta/packages/glib-2.0/glib-2.0-2.24.1/gatomic-proper-pointer-get-cast.patch b/meta/packages/glib-2.0/glib-2.0-2.24.1/gatomic-proper-pointer-get-cast.patch new file mode 100644 index 0000000000..1f3920f03a --- /dev/null +++ b/meta/packages/glib-2.0/glib-2.0-2.24.1/gatomic-proper-pointer-get-cast.patch | |||
@@ -0,0 +1,37 @@ | |||
1 | # handle cast warning. borrow from OE, but updated with a better fix from glib | ||
2 | # developing tree. | ||
3 | # | ||
4 | # by Kevin Tian <kevin.tian@intel.com>, 06/25/2010 | ||
5 | commit bf2719c815d719d1899b4bdb1b81ff6798471094 | ||
6 | Author: Lars Ellenberg <lars.ellenberg@linbit.com> | ||
7 | Date: Thu Apr 15 19:03:05 2010 +0200 | ||
8 | |||
9 | Cast to volatile to avoid warnings from -Wcast-qual | ||
10 | |||
11 | https://bugzilla.gnome.org/show_bug.cgi?id=457641 | ||
12 | |||
13 | diff --git a/glib/gatomic.h b/glib/gatomic.h | ||
14 | index 7d9c318..22b28d9 100644 | ||
15 | --- a/glib/gatomic.h | ||
16 | +++ b/glib/gatomic.h | ||
17 | @@ -64,16 +64,16 @@ void g_atomic_pointer_set (volatile gpointer G_GNUC_MAY_ALI | ||
18 | #else | ||
19 | # define g_atomic_int_get(atomic) \ | ||
20 | ((void) sizeof (gchar [sizeof (*(atomic)) == sizeof (gint) ? 1 : -1]), \ | ||
21 | - (g_atomic_int_get) ((volatile gint G_GNUC_MAY_ALIAS *) (void *) (atomic))) | ||
22 | + (g_atomic_int_get) ((volatile gint G_GNUC_MAY_ALIAS *) (volatile void *) (atomic))) | ||
23 | # define g_atomic_int_set(atomic, newval) \ | ||
24 | ((void) sizeof (gchar [sizeof (*(atomic)) == sizeof (gint) ? 1 : -1]), \ | ||
25 | - (g_atomic_int_set) ((volatile gint G_GNUC_MAY_ALIAS *) (void *) (atomic), (newval))) | ||
26 | + (g_atomic_int_set) ((volatile gint G_GNUC_MAY_ALIAS *) (volatile void *) (atomic), (newval))) | ||
27 | # define g_atomic_pointer_get(atomic) \ | ||
28 | ((void) sizeof (gchar [sizeof (*(atomic)) == sizeof (gpointer) ? 1 : -1]), \ | ||
29 | - (g_atomic_pointer_get) ((volatile gpointer G_GNUC_MAY_ALIAS *) (void *) (atomic))) | ||
30 | + (g_atomic_pointer_get) ((volatile gpointer G_GNUC_MAY_ALIAS *) (volatile void *) (atomic))) | ||
31 | # define g_atomic_pointer_set(atomic, newval) \ | ||
32 | ((void) sizeof (gchar [sizeof (*(atomic)) == sizeof (gpointer) ? 1 : -1]), \ | ||
33 | - (g_atomic_pointer_set) ((volatile gpointer G_GNUC_MAY_ALIAS *) (void *) (atomic), (newval))) | ||
34 | + (g_atomic_pointer_set) ((volatile gpointer G_GNUC_MAY_ALIAS *) (volatile void *) (atomic), (newval))) | ||
35 | #endif /* G_ATOMIC_OP_MEMORY_BARRIER_NEEDED */ | ||
36 | |||
37 | #define g_atomic_int_inc(atomic) (g_atomic_int_add ((atomic), 1)) | ||
diff --git a/meta/packages/glib-2.0/glib-2.0-2.24.1/glib-gettextize-dir.patch b/meta/packages/glib-2.0/glib-2.0-2.24.1/glib-gettextize-dir.patch new file mode 100644 index 0000000000..c44e491556 --- /dev/null +++ b/meta/packages/glib-2.0/glib-2.0-2.24.1/glib-gettextize-dir.patch | |||
@@ -0,0 +1,19 @@ | |||
1 | # an very old patch cherry-picked in every glib-2.0 patch directory. The earliest container | ||
2 | # for it is 2.6.5 in OE. The earliest commit for it is c8e5702127e507e82e6f68a4b8c546803accea9d | ||
3 | # in OE side which ports from previous bitkeeper SCM. In OE side it's only used til 2.12.4. | ||
4 | # | ||
5 | # keep it since it's always cleaner to not hardcode destination path. Use @datadir@ is more | ||
6 | # portable here. mark for upstream | ||
7 | # | ||
8 | # by Kevin Tian <kevin.tian@intel.com>, 06/25/2010 | ||
9 | --- glib-2.10.3/glib-gettextize.in.old 2006-06-21 12:46:45.000000000 +0100 | ||
10 | +++ glib-2.10.3/glib-gettextize.in 2006-06-21 12:48:14.000000000 +0100 | ||
11 | @@ -49,7 +49,7 @@ | ||
12 | ;; | ||
13 | esac | ||
14 | |||
15 | -gettext_dir=$prefix/share/glib-2.0/gettext | ||
16 | +gettext_dir=@datadir@/glib-2.0/gettext | ||
17 | |||
18 | while test $# -gt 0; do | ||
19 | case "$1" in | ||
diff --git a/meta/packages/glib-2.0/glib-2.0_2.22.3.bb b/meta/packages/glib-2.0/glib-2.0_2.22.3.bb deleted file mode 100644 index 26d91a9cfa..0000000000 --- a/meta/packages/glib-2.0/glib-2.0_2.22.3.bb +++ /dev/null | |||
@@ -1,11 +0,0 @@ | |||
1 | require glib.inc | ||
2 | |||
3 | PR = "r1" | ||
4 | |||
5 | SRC_URI = "http://ftp.gnome.org/pub/GNOME/sources/glib/2.22/glib-${PV}.tar.bz2 \ | ||
6 | file://glibconfig-sysdefs.h \ | ||
7 | file://configure-libtool.patch;patch=1" | ||
8 | |||
9 | SRC_URI_append_virtclass-native = " file://glib-gettextize-dir.patch;patch=1" | ||
10 | |||
11 | BBCLASSEXTEND = "native" | ||
diff --git a/meta/packages/glib-2.0/glib-2.0_2.24.1.bb b/meta/packages/glib-2.0/glib-2.0_2.24.1.bb new file mode 100644 index 0000000000..d8d1cc52d2 --- /dev/null +++ b/meta/packages/glib-2.0/glib-2.0_2.24.1.bb | |||
@@ -0,0 +1,11 @@ | |||
1 | require glib.inc | ||
2 | |||
3 | PR = "r0" | ||
4 | |||
5 | SRC_URI = "http://ftp.gnome.org/pub/GNOME/sources/glib/2.24/glib-${PV}.tar.bz2 \ | ||
6 | file://configure-libtool.patch \ | ||
7 | file://gatomic-proper-pointer-get-cast.patch \ | ||
8 | file://60_wait-longer-for-threads-to-die.patch" | ||
9 | |||
10 | SRC_URI_append_virtclass-native = " file://glib-gettextize-dir.patch" | ||
11 | BBCLASSEXTEND = "native" | ||
diff --git a/meta/packages/glib-2.0/glib.inc b/meta/packages/glib-2.0/glib.inc index f4167e8bf8..6e7f6a3347 100644 --- a/meta/packages/glib-2.0/glib.inc +++ b/meta/packages/glib-2.0/glib.inc | |||
@@ -1,35 +1,32 @@ | |||
1 | DESCRIPTION = "GLib is a general-purpose utility library, \ | 1 | DESCRIPTION = "GLib is a general-purpose utility library, which provides many useful data types, macros, type conversions, string utilities, file utilities, a main loop abstraction, and so on. It works on many UNIX-like platforms, Windows, OS/2 and BeOS" |
2 | which provides many useful data types, macros, \ | 2 | # pcre is under BSD; |
3 | type conversions, string utilities, file utilities, a main \ | 3 | # docs/reference/COPYING is with a 'public domai'-like license! |
4 | loop abstraction, and so on. It works on many \ | 4 | LICENSE = "LGPLv2+ & BSD & public domain" |
5 | UNIX-like platforms, Windows, OS/2 and BeOS." | 5 | LIC_FILES_CHKSUM = "file://COPYING;md5=3bf50002aefd002f49e7bb854063f7e7 \ |
6 | LICENSE = "LGPL" | 6 | file://glib/glib.h;startline=4;endline=17;md5=a4332fe58b076f29d07c9c066d2967b6 \ |
7 | file://gmodule/COPYING;md5=3bf50002aefd002f49e7bb854063f7e7 \ | ||
8 | file://gmodule/gmodule.h;startline=4;endline=17;md5=76ab161b37202cd004073c42fac276ed \ | ||
9 | file://glib/pcre/COPYING;md5=266ebc3ff74ee9ce6fad65577667c0f4 \ | ||
10 | file://glib/pcre/pcre.h;startline=11;endline=35;md5=000109ccf7c4c470b74046e2cc59f7e3 \ | ||
11 | file://docs/reference/COPYING;md5=f51a5100c17af6bae00735cd791e1fcc" | ||
12 | BUGTRACKER = "http://bugzilla.gnome.org" | ||
7 | SECTION = "libs" | 13 | SECTION = "libs" |
8 | PRIORITY = "optional" | 14 | |
9 | DEPENDS = "glib-2.0-native gtk-doc-native virtual/libiconv virtual/libintl" | 15 | require glib-2.0.inc |
16 | |||
17 | DEPENDS = "glib-2.0-native gtk-doc-native virtual/libiconv virtual/libintl zip" | ||
10 | DEPENDS_virtclass-native = "gtk-doc-native pkgconfig-native gettext-native" | 18 | DEPENDS_virtclass-native = "gtk-doc-native pkgconfig-native gettext-native" |
11 | PACKAGES =+ "glib-2.0-utils " | 19 | PACKAGES =+ "glib-2.0-utils " |
12 | 20 | ||
13 | LEAD_SONAME = "libglib-2.0.*" | 21 | LEAD_SONAME = "libglib-2.0.*" |
14 | FILES_glib-2.0-utils = "${bindir}/*" | 22 | FILES_glib-2.0-utils = "${bindir}/*" |
15 | 23 | ||
16 | EXTRA_OECONF = "--enable-included-printf=no" | ||
17 | |||
18 | S = "${WORKDIR}/glib-${PV}" | ||
19 | |||
20 | inherit autotools pkgconfig gettext | 24 | inherit autotools pkgconfig gettext |
21 | 25 | ||
22 | require glib-2.0.inc | 26 | S = "${WORKDIR}/glib-${PV}" |
23 | |||
24 | acpaths = "" | ||
25 | do_configure_prepend () { | ||
26 | install -m 0644 ${WORKDIR}/glibconfig-sysdefs.h . | ||
27 | } | ||
28 | 27 | ||
29 | do_install_append () { | 28 | EXTRA_OECONF = "--disable-debug --enable-included-printf=no" |
30 | install -d ${D}${includedir}/glib-2.0/glib | 29 | EXTRA_OECONF_virtclass-native = "" |
31 | install -m 0755 ${S}/glibconfig.h ${D}${includedir}/glib-2.0/glibconfig.h | ||
32 | } | ||
33 | 30 | ||
34 | FILES_${PN} = "${libdir}/lib*${SOLIBS}" | 31 | FILES_${PN} = "${libdir}/lib*${SOLIBS}" |
35 | FILES_${PN}-dev += "${libdir}/glib-2.0/include" | 32 | FILES_${PN}-dev += "${libdir}/glib-2.0/include" |