summaryrefslogtreecommitdiff
path: root/recipes/glib-2.0
diff options
context:
space:
mode:
authorSergey Lapin <slapin@ossfans.org>2010-03-22 18:13:56 +0300
committerSergey Lapin <slapin@ossfans.org>2010-03-22 18:13:56 +0300
commit3937c88166a493900a694ea8fe53b860f4099d83 (patch)
tree57597245b6efd4cf27c1f4c9ff21c0515e530c15 /recipes/glib-2.0
parentdf2ace6d59e22b42e50bcf4e8a9c92b580602c2e (diff)
parent3510d2ed15a4b477aa7af802a839e11a87b981ed (diff)
Merge branch 'org.openembedded.dev' of git@git.openembedded.net:openembedded into org.openembedded.dev
Diffstat (limited to 'recipes/glib-2.0')
-rw-r--r--recipes/glib-2.0/glib-2.0-2.20.3/atomic-thumb.patch56
-rw-r--r--recipes/glib-2.0/glib-2.0-2.20.3/configure-libtool.patch45
-rw-r--r--recipes/glib-2.0/glib-2.0_2.20.3.bb12
-rw-r--r--recipes/glib-2.0/glib-2.0_2.22.4.bb5
-rw-r--r--recipes/glib-2.0/glib.inc6
5 files changed, 121 insertions, 3 deletions
diff --git a/recipes/glib-2.0/glib-2.0-2.20.3/atomic-thumb.patch b/recipes/glib-2.0/glib-2.0-2.20.3/atomic-thumb.patch
new file mode 100644
index 0000000000..edb6f35956
--- /dev/null
+++ b/recipes/glib-2.0/glib-2.0-2.20.3/atomic-thumb.patch
@@ -0,0 +1,56 @@
+# gatomic.c uses SWP, which doesn't work in Thumb mode.
+# Put that source file into a separate convenience library which is always built as ARM.
+
+---
+ glib/Makefile.am | 11 ++++++++---
+ 1 file changed, 8 insertions(+), 3 deletions(-)
+
+--- glib-2.20.3.orig/glib/Makefile.am
++++ glib-2.20.3/glib/Makefile.am
+@@ -78,10 +78,11 @@ BUILT_EXTRA_DIST = \
+ glib.rc \
+ galias.h \
+ galiasdef.c
+
+ lib_LTLIBRARIES = libglib-2.0.la
++noinst_LTLIBRARIES = libgatomic.la
+
+ if OS_WIN32_AND_DLL_COMPILATION
+ if MS_LIB_AVAILABLE
+ noinst_DATA = glib-2.0.lib
+
+@@ -94,14 +95,18 @@ install-ms-lib:
+ $(install_ms_lib_cmd)
+
+ uninstall-ms-lib:
+ $(uninstall_ms_lib_cmd)
+
++libgatomic_la_CFLAGS = $(CFLAGS) -mno-thumb
++
++libgatomic_la_SOURCES = \
++ gatomic.c
++
+ libglib_2_0_la_SOURCES = \
+ garray.c \
+ gasyncqueue.c \
+- gatomic.c \
+ gbacktrace.c \
+ gbase64.c \
+ gbookmarkfile.c \
+ gbsearcharray.h \
+ gcache.c \
+@@ -286,12 +291,12 @@ endif
+ else
+ pcre_lib =
+ pcre_inc =
+ endif
+
+-libglib_2_0_la_LIBADD = libcharset/libcharset.la $(printf_la) @GIO@ @GSPAWN@ @PLATFORMDEP@ @ICONV_LIBS@ @G_LIBS_EXTRA@ $(pcre_lib)
+-libglib_2_0_la_DEPENDENCIES = libcharset/libcharset.la $(printf_la) @GIO@ @GSPAWN@ @PLATFORMDEP@ $(glib_win32_res) $(glib_def)
++libglib_2_0_la_LIBADD = libcharset/libcharset.la $(printf_la) @GIO@ @GSPAWN@ @PLATFORMDEP@ @ICONV_LIBS@ @G_LIBS_EXTRA@ $(pcre_lib) libgatomic.la
++libglib_2_0_la_DEPENDENCIES = libcharset/libcharset.la $(printf_la) @GIO@ @GSPAWN@ @PLATFORMDEP@ $(glib_win32_res) $(glib_def) libgatomic.la
+
+ libglib_2_0_la_LDFLAGS = \
+ $(glib_win32_res_ldflag) \
+ -version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE) \
+ -export-dynamic $(no_undefined) $(export_symbols)
diff --git a/recipes/glib-2.0/glib-2.0-2.20.3/configure-libtool.patch b/recipes/glib-2.0/glib-2.0-2.20.3/configure-libtool.patch
new file mode 100644
index 0000000000..6056f2f97c
--- /dev/null
+++ b/recipes/glib-2.0/glib-2.0-2.20.3/configure-libtool.patch
@@ -0,0 +1,45 @@
+---
+ configure.in | 6 +++---
+ 1 file changed, 3 insertions(+), 3 deletions(-)
+
+--- glib-2.20.3.orig/configure.in
++++ glib-2.20.3/configure.in
+@@ -1302,11 +1302,11 @@ G_MODULE_PLUGIN_LIBS=
+ if test x"$glib_native_win32" = xyes; then
+ dnl No use for this on Win32
+ G_MODULE_LDFLAGS=
+ else
+ export SED
+- G_MODULE_LDFLAGS=`(./libtool --config; echo eval echo \\$export_dynamic_flag_spec) | sh`
++ G_MODULE_LDFLAGS=`($host_alias-libtool --config; echo eval echo \\$export_dynamic_flag_spec) | sh`
+ fi
+ dnl G_MODULE_IMPL= don't reset, so cmd-line can override
+ G_MODULE_NEED_USCORE=0
+ G_MODULE_BROKEN_RTLD_GLOBAL=0
+ G_MODULE_HAVE_DLERROR=0
+@@ -1367,11 +1367,11 @@ if test "$G_MODULE_IMPL" = "G_MODULE_IMP
+ LDFLAGS_orig="$LDFLAGS"
+ LIBS="$G_MODULE_LIBS $LIBS"
+ LDFLAGS="$LDFLAGS $G_MODULE_LDFLAGS"
+ dnl *** check for OSF1/5.0 RTLD_GLOBAL brokenness
+ echo "void glib_plugin_test(void) { }" > plugin.c
+- ${SHELL} ./libtool --mode=compile ${CC} -shared \
++ ${SHELL} $host_alias-libtool --mode=compile ${CC} -shared \
+ -export-dynamic -o plugin.o plugin.c 2>&1 >/dev/null
+ AC_CACHE_CHECK([for RTLD_GLOBAL brokenness],
+ glib_cv_rtldglobal_broken,[
+ AC_TRY_RUN([
+ #include <dlfcn.h>
+@@ -1441,11 +1441,11 @@ else
+ G_MODULE_SUPPORTED=true
+ fi
+
+ AC_MSG_CHECKING(for the suffix of module shared libraries)
+ export SED
+-shrext_cmds=`./libtool --config | grep '^shrext_cmds='`
++shrext_cmds=`$host_alias-libtool --config | grep '^shrext_cmds='`
+ eval $shrext_cmds
+ module=yes eval std_shrext=$shrext_cmds
+ # chop the initial dot
+ glib_gmodule_suffix=`echo $std_shrext | sed 's/^\.//'`
+ AC_MSG_RESULT(.$glib_gmodule_suffix)
diff --git a/recipes/glib-2.0/glib-2.0_2.20.3.bb b/recipes/glib-2.0/glib-2.0_2.20.3.bb
new file mode 100644
index 0000000000..f41560b7fd
--- /dev/null
+++ b/recipes/glib-2.0/glib-2.0_2.20.3.bb
@@ -0,0 +1,12 @@
+require glib.inc
+PR = "${INC_PR}.0"
+
+SRC_URI = "\
+ http://ftp.gnome.org/pub/GNOME/sources/glib/2.20/glib-${PV}.tar.bz2;name=tarball \
+ file://glibconfig-sysdefs.h \
+ file://configure-libtool.patch;patch=1 \
+"
+SRC_URI_append_arm = " file://atomic-thumb.patch;patch=1"
+
+SRC_URI[tarball.md5sum] = "1173688c58b4b62809c83bb07a2cf71a"
+SRC_URI[tarball.sha256sum] = "37f098617c2fac11eee4c6289d576300abd0a01825d4c809462f5b698d1127b0"
diff --git a/recipes/glib-2.0/glib-2.0_2.22.4.bb b/recipes/glib-2.0/glib-2.0_2.22.4.bb
index eff5fbd462..c86905e2fa 100644
--- a/recipes/glib-2.0/glib-2.0_2.22.4.bb
+++ b/recipes/glib-2.0/glib-2.0_2.22.4.bb
@@ -22,7 +22,7 @@ SRC_URI_append_arm = " file://atomic-thumb.patch;patch=1"
SRC_URI_append_armv6 = " file://gatomic_armv6.patch;patch=1"
SRC_URI_append_armv7a = " file://gatomic_armv6.patch;patch=1"
-PR = "r0"
+PR = "r1"
inherit autotools gettext
@@ -41,7 +41,8 @@ do_install_append() {
sed -i -e s:${STAGING_BINDIR_NATIVE}:${bindir}:g ${D}${bindir}/glib-mkenums || true
}
-DEPENDS_virtclass-native = "gettext-native gtk-doc-native"
+DEPENDS_virtclass-native = "gettext-native gtk-doc-native \
+ pkgconfig-native"
EXTRA_OECONF_virtclass-native = ""
do_configure_prepend_virtclass-native() {
diff --git a/recipes/glib-2.0/glib.inc b/recipes/glib-2.0/glib.inc
index 53d8d99199..5cc697f070 100644
--- a/recipes/glib-2.0/glib.inc
+++ b/recipes/glib-2.0/glib.inc
@@ -10,7 +10,7 @@ DEPENDS += "glib-2.0-native gtk-doc"
DEPENDS += "virtual/libiconv virtual/libintl"
PACKAGES =+ "gobject-2.0 gmodule-2.0 gthread-2.0 gio-2.0 glib-2.0-utils "
-INC_PR = "r5"
+INC_PR = "r6"
LEAD_SONAME = "libglib-2.0.*"
FILES_glib-2.0-utils = "${bindir}/*"
@@ -28,6 +28,10 @@ FILES_gthread-2.0_chinook-compat = ""
FILES_gmodule-2.0_chinook-compat = ""
FILES_gobject-2.0_chinook-compat = ""
FILES_gio-2.0_chinook-compat = ""
+FILES_gthread-2.0_maemo5-compat = ""
+FILES_gmodule-2.0_maemo5-compat = ""
+FILES_gobject-2.0_maemo5-compat = ""
+FILES_gio-2.0_maemo5-compat = ""
EXTRA_OECONF = "--disable-debug "