[oe] [meta-oe][PATCH] omgps: add patch to fix build with latest glib from oe-core
Signed-off-by: Martin Jansa martin.ja...@gmail.com --- .../omgps/omgps/fix.build.with.glib.2.34.patch | 122 + meta-oe/recipes-navigation/omgps/omgps_svn.bb | 2 + 2 files changed, 124 insertions(+) create mode 100644 meta-oe/recipes-navigation/omgps/omgps/fix.build.with.glib.2.34.patch diff --git a/meta-oe/recipes-navigation/omgps/omgps/fix.build.with.glib.2.34.patch b/meta-oe/recipes-navigation/omgps/omgps/fix.build.with.glib.2.34.patch new file mode 100644 index 000..e953663 --- /dev/null +++ b/meta-oe/recipes-navigation/omgps/omgps/fix.build.with.glib.2.34.patch @@ -0,0 +1,122 @@ +diff -uNr omgps.orig/src/dbus_intf.c omgps/src/dbus_intf.c +--- omgps.orig/src/dbus_intf.c 2011-12-12 12:22:47.0 +0100 omgps/src/dbus_intf.c 2012-11-14 14:44:45.435381443 +0100 +@@ -171,7 +171,7 @@ + gpsdata-svinfo_valid = TRUE; + + int i, j; +- GValueArray *val; ++ GArray *val; + svinfo_channel_t *sv; + + j = 0; +@@ -179,16 +179,16 @@ + val = satellites-pdata[i]; + + sv = gpsdata-sv_channels[j]; +- sv-sv_id = g_value_get_uint(g_value_array_get_nth(val, 0)); ++ sv-sv_id = g_array_index(val, guint, 0); + +- if (g_value_get_boolean(g_value_array_get_nth(val, 1))) { ++ if (g_array_index(val, gboolean, 1)) { + ++gpsdata-sv_in_use; + sv-flags = 0x01; + } + +- sv-elevation = (int)g_value_get_uint(g_value_array_get_nth(val, 2)); +- sv-azimuth = (int)g_value_get_uint(g_value_array_get_nth(val, 3)); +- sv-cno = g_value_get_uint(g_value_array_get_nth(val, 4)); ++ sv-elevation = (int)g_array_index(val, guint, 2); ++ sv-azimuth = (int)g_array_index(val, guint, 3); ++ sv-cno = g_array_index(val, guint, 4); + if (sv-cno 0) + ++gpsdata-sv_get_signal; + +diff -uNr omgps.orig/src/main.c omgps/src/main.c +--- omgps.orig/src/main.c 2011-12-12 12:22:47.0 +0100 omgps/src/main.c 2012-11-14 14:46:00.34540 +0100 +@@ -489,9 +489,6 @@ + + g_type_init(); + +- if (! g_thread_supported ()) +- g_thread_init(NULL); +- + gdk_threads_init(); + + gdk_threads_enter(); +diff -uNr omgps.orig/src/tab_gpscfg.c omgps/src/tab_gpscfg.c +--- omgps.orig/src/tab_gpscfg.c2011-12-12 12:22:47.0 +0100 omgps/src/tab_gpscfg.c 2012-11-14 15:23:47.526925258 +0100 +@@ -222,7 +222,7 @@ + + static gboolean change_platform_model_cmd(void *model_id) + { +- U1 model = (U1)(int) model_id; ++ U1 model = (U1)GPOINTER_TO_INT(model_id); + int gps_dev_fd = 0; + + /* non ubx means: we need open serial port +@@ -269,7 +269,7 @@ + static void change_platmodel_button_clicked(GtkWidget *widget, gpointer data) + { + int idx = gtk_combo_box_get_active(GTK_COMBO_BOX(platmodel_list)); +- char *model_id = (void *)(int)platmodel_values[idx]; ++ void *model_id = (void *)GINT_TO_POINTER(platmodel_values[idx]); + + if (POLL_ENGINE_TEST(UBX)) { + gtk_widget_set_sensitive(change_platmodel_button, FALSE); +diff -uNr omgps.orig/src/tab_menu.c omgps/src/tab_menu.c +--- omgps.orig/src/tab_menu.c 2011-12-12 12:22:47.0 +0100 omgps/src/tab_menu.c 2012-11-14 15:25:08.217941513 +0100 +@@ -65,7 +65,7 @@ + + static void poll_button_clicked(GtkWidget *widget, gpointer data) + { +- gboolean is_start_bt = (gboolean)data; ++ gboolean is_start_bt = (gboolean) GPOINTER_TO_INT(data); + + if (POLL_STATE_TEST(RUNNING) == is_start_bt) + return; +diff -uNr omgps.orig/src/tab_tile.c omgps/src/tab_tile.c +--- omgps.orig/src/tab_tile.c 2011-12-12 12:22:47.0 +0100 omgps/src/tab_tile.c 2012-11-14 15:25:30.392945800 +0100 +@@ -101,7 +101,7 @@ + static gboolean set_bg_map(GtkTreeModel *model, GtkTreePath *path, GtkTreeIter *iter, gpointer data) + { + map_repo_t *repo; +- gboolean clear = (gboolean)data; ++ gboolean clear = (gboolean)GPOINTER_TO_INT(data); + + int type; + +@@ -240,7 +240,7 @@ + + static void alpha_radio_toggled (GtkWidget *widget, gpointer user_data) + { +- int idx = (int)user_data; ++ int idx = (int)GPOINTER_TO_INT(user_data); + + if (g_view.bg_alpha_idx == idx) + return; +@@ -384,7 +384,7 @@ + + for (i=0; iALPHA_LEVELS; i++) { + g_signal_connect (G_OBJECT (alpha_radios[i]), toggled, +- G_CALLBACK (alpha_radio_toggled), (gpointer)i); ++ G_CALLBACK (alpha_radio_toggled), GINT_TO_POINTER(i)); + gtk_container_add(GTK_CONTAINER (alpha_hbox), alpha_radios[i]); + } + +diff -uNr omgps.orig/src/tab_view.c omgps/src/tab_view.c +--- omgps.orig/src/tab_view.c 2011-12-12 12:22:47.0 +0100 omgps/src/tab_view.c
Re: [oe] Unable to build python-pyqt
On 2012-11-15 00:05, Martin Jansa wrote: On Wed, Nov 14, 2012 at 06:03:22PM -0700, Gary Thomas wrote: I'm trying to build python-pyqt using the latest meta-openembedded alongside Poky/Yocto distribution. It's failing with a slew of errors: | arm-poky-linux-gnueabi-g++ -march=armv7-a -mthumb-interwork -mfloat-abi=hard -mfpu=neon -mtune=cortex-a9 --sysroot=/local/p82_new/tmp/sysroots/my_target -c -pipe -pipe -pipe -O2 -pipe -g -feliminate-unused-debug-types -O2 -pipe -g -feliminate-unused-debug-types -fpermissive -fvisibility-inlines-hidden -fno-strict-aliasing -O2 -O2 -fPIC -fPIC -fPIC -Wall -W -Wall -W -Wall -W -D_REENTRANT -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I/local/p82_new/tmp/sysroots/my_target/usr/share/qtopia/mkspecs/linux-g++ -I. -I/local/p82_new/tmp/sysroots/my_target/usr/include/qtopia/QtCore -I/local/p82_new/tmp/sysroots/my_target/usr/include/qtopia/QtGui -I/local/p82_new/tmp/sysroots/my_target/usr/include/qtopia -I../../QtCore -I../../QtCore -I/local/p82_new/tmp/sysroots/my_target/usr/include/qtopia/Qt -I/local/p82_new/tmp/sysroots/my_target/usr/include/python2.7 -I../qpy/QtCore -I../qpy/QtGui -I../qpy/QtDeclarative -I/local/p82_new/tmp/sysroots/my_target/usr/include/qtopia/QtCore -I/local/p82_new/tmp/sysroots/my_target/usr/include/qtopia/QtGui -I/local/p82_new/tmp/sysroots/my_target/usr/include/qtopia/QtDeclarative -I/local/p82_new/tmp/sysroots/my_target/usr/include/qtopia/QtWebKit -I/local/p82_new/tmp/sysroots/my_target/usr/include/qtopia/QtNetwork -I. -o qpycore_qabstracteventdispatcher.o qpycore_qabstracteventdispatcher.cpp | In file included from ../../QtCore/sipAPIQtCore.h:33:0, | from qpycore_sip.h:32, | from qpycore_qabstracteventdispatcher.cpp:30: | /local/p82_new/tmp/sysroots/my_target/usr/include/sip.h:983:29: error: expected unqualified-id before ';' token | /local/p82_new/tmp/sysroots/my_target/usr/include/sip.h:1202:52: error: expected ',' or '...' before 'new' | In file included from qpycore_sip.h:32:0, | from qpycore_qabstracteventdispatcher.cpp:30: | QtCore/sipAPIQtCore.h:8603:8: error: 'pyqt4ClassTypeDef' does not name a type | QtCore/sipAPIQtCore.h:8747:8: error: 'pyqt4ClassTypeDef' does not name a type | QtCore/sipAPIQtCore.h:8752:8: error: 'pyqt4ClassTypeDef' does not name a type ... | qpycore_qabstracteventdispatcher.cpp: In function 'bool event_filter(void*)': | qpycore_qabstracteventdispatcher.cpp:98:5: error: 'SIP_BLOCK_THREADS' was not declared in this scope | qpycore_qabstracteventdispatcher.cpp:104:5: error: expected ';' before 'PyObject' | qpycore_qabstracteventdispatcher.cpp:107:9: error: 'msg_obj' was not declared in this scope | qpycore_qabstracteventdispatcher.cpp:137:5: error: 'SIP_UNBLOCK_THREADS' was not declared in this scope | qpycore_qabstracteventdispatcher.cpp:139:5: error: expected ';' before 'return' This is using the meta-oe/recipes-devtools/python/python-pyqt_4.9.5.bb Poky/Yocto master 1fd9a16d2 I assume that this package built at the time of the last patch: Yes it did and still does here (4 different hosts) for both qt 4.8.1 and 4.8.3. What distribution layers are you using? What's your target? What compiler are you using (currently I'm at 4.7.2-r13)? I had troubles with sip-native: ERROR: Fetcher failure: Fetch command failed with exit code 8, output: http://www.riverbankcomputing.com/static/Downloads/sip4/sip-4.13.3.tar.gz: 2012-11-15 04:53:17 ERROR 404: Not Found. How do you get around this? I'd like to duplicate what you've done so I can figure out what's wrong. commit 00fe75fb5773cf5602a20a50ed299ed287dd6ebd Author: Martin Jansa martin.ja...@gmail.com Date: Thu Oct 25 00:25:53 2012 +0200 python-pyqt: don't bypass sstate with sip files * discovered with http://patchwork.openembedded.org/patch/38521/ Signed-off-by: Martin Jansa martin.ja...@gmail.com What might I be doing wrong that's breaking the build? I would check what's on those lines and is missing in your build | /local/p82_new/tmp/sysroots/my_target/usr/include/sip.h:983:29: error: expected unqualified-id before ';' token | /local/p82_new/tmp/sysroots/my_target/usr/include/sip.h:1202:52: error: expected ',' or '...' before 'new' Thanks -- Gary Thomas | Consulting for the MLB Associates |Embedded world ___ Openembedded-devel mailing list Openembedded-devel@lists.openembedded.org http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel
Re: [oe] [meta-oe v4 ] inetutils : Update to 1.9.1 * There are difference spaces between inetutils-1.8/COPYING and inetutils-1.9.1/COPYING, so md5sum is changed.6
On Thursday 15 November 2012 18:38:16 Chunrong Guo wrote: Signed-off-by: Chunrong Guo b40...@freescale.com --- Somehow the commit message got mangled here - could you please resend? Also, given you are going to be resending and the recipe is being moved to meta- networking can you use the prefix meta-networking instead of meta-oe? Thanks, Paul -- Paul Eggleton Intel Open Source Technology Centre ___ Openembedded-devel mailing list Openembedded-devel@lists.openembedded.org http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel
[oe] llvm issue
Hi All, when I checkout openjdk-7 on meta-java and bitbake anything I get these errors: ERROR: Unable to parse /data/jenkins/jobs/myTest/workspace/sources/meta-java/recipes-core/llvm/llvm2.9_2.9.bb | ETA: 00:00:15 ERROR: Command execution failed: Exited with 1 NOTE: Error expanding variable populate_packages NOTE: Error during finalise of /data/jenkins/jobs/myTest/workspace/sources/meta-java/recipes-core/llvm/llvm2.8_2.8.bb NOTE: Error expanding variable populate_packages NOTE: Error during finalise of /data/jenkins/jobs/myTest/workspace/sources/meta-java/recipes-core/llvm/llvm2.9_2.9.bb Anyone already know what is wrong here? Cheers! Jaap ___ Openembedded-devel mailing list Openembedded-devel@lists.openembedded.org http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel
Re: [oe] llvm issue
On Thursday 15 November 2012 15:06:30 Jaap de Jong wrote: when I checkout openjdk-7 on meta-java and bitbake anything I get these errors: ERROR: Unable to parse /data/jenkins/jobs/myTest/workspace/sources/meta-java/recipes-core/llvm/llvm 2.9_2.9.bb | ETA: 00:00:15 ERROR: Command execution failed: Exited with 1 NOTE: Error expanding variable populate_packages NOTE: Error during finalise of /data/jenkins/jobs/myTest/workspace/sources/meta-java/recipes-core/llvm/llvm 2.8_2.8.bb NOTE: Error expanding variable populate_packages NOTE: Error during finalise of /data/jenkins/jobs/myTest/workspace/sources/meta-java/recipes-core/llvm/llvm 2.9_2.9.bb Are you using the denzil branch of OE-Core perhaps? I suspect meta-java has been updated to use spaces for python function indentation which only works with danny/master. I don't see a denzil branch in meta-java, perhaps it would be worth adding one...? Cheers, Paul -- Paul Eggleton Intel Open Source Technology Centre ___ Openembedded-devel mailing list Openembedded-devel@lists.openembedded.org http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel
Re: [oe] Unable to build python-pyqt
On 2012-11-15 05:21, Martin Jansa wrote: On Thu, Nov 15, 2012 at 04:58:31AM -0700, Gary Thomas wrote: On 2012-11-15 00:05, Martin Jansa wrote: On Wed, Nov 14, 2012 at 06:03:22PM -0700, Gary Thomas wrote: I'm trying to build python-pyqt using the latest meta-openembedded alongside Poky/Yocto distribution. It's failing with a slew of errors: | arm-poky-linux-gnueabi-g++ -march=armv7-a -mthumb-interwork -mfloat-abi=hard -mfpu=neon -mtune=cortex-a9 --sysroot=/local/p82_new/tmp/sysroots/my_target -c -pipe -pipe -pipe -O2 -pipe -g -feliminate-unused-debug-types -O2 -pipe -g -feliminate-unused-debug-types -fpermissive -fvisibility-inlines-hidden -fno-strict-aliasing -O2 -O2 -fPIC -fPIC -fPIC -Wall -W -Wall -W -Wall -W -D_REENTRANT -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I/local/p82_new/tmp/sysroots/my_target/usr/share/qtopia/mkspecs/linux-g++ -I. -I/local/p82_new/tmp/sysroots/my_target/usr/include/qtopia/QtCore -I/local/p82_new/tmp/sysroots/my_target/usr/include/qtopia/QtGui -I/local/p82_new/tmp/sysroots/my_target/usr/include/qtopia -I../../QtCore -I../../QtCore -I/local/p82_new/tmp/sysroots/my_target/usr/include/qtopia/Qt -I/local/p82_new/tmp/sysroots/my_target/usr/include/python2.7 -I../qpy/QtCore -I../qpy/QtGui -I../qpy/QtDeclarative -I/local/p82_new/tmp/sysroots/my_target/usr/include/qtopia/QtCore -I/local/p82_new/tmp/sysroots/my_target/usr/include/qtopia/QtGui -I/local/p82_new/tmp/sysroots/my_target/usr/include/qtopia/QtDeclarative -I/local/p82_new/tmp/sysroots/my_target/usr/include/qtopia/QtWebKit -I/local/p82_new/tmp/sysroots/my_target/usr/include/qtopia/QtNetwork -I. -o qpycore_qabstracteventdispatcher.o qpycore_qabstracteventdispatcher.cpp | In file included from ../../QtCore/sipAPIQtCore.h:33:0, | from qpycore_sip.h:32, | from qpycore_qabstracteventdispatcher.cpp:30: | /local/p82_new/tmp/sysroots/my_target/usr/include/sip.h:983:29: error: expected unqualified-id before ';' token | /local/p82_new/tmp/sysroots/my_target/usr/include/sip.h:1202:52: error: expected ',' or '...' before 'new' | In file included from qpycore_sip.h:32:0, | from qpycore_qabstracteventdispatcher.cpp:30: | QtCore/sipAPIQtCore.h:8603:8: error: 'pyqt4ClassTypeDef' does not name a type | QtCore/sipAPIQtCore.h:8747:8: error: 'pyqt4ClassTypeDef' does not name a type | QtCore/sipAPIQtCore.h:8752:8: error: 'pyqt4ClassTypeDef' does not name a type ... | qpycore_qabstracteventdispatcher.cpp: In function 'bool event_filter(void*)': | qpycore_qabstracteventdispatcher.cpp:98:5: error: 'SIP_BLOCK_THREADS' was not declared in this scope | qpycore_qabstracteventdispatcher.cpp:104:5: error: expected ';' before 'PyObject' | qpycore_qabstracteventdispatcher.cpp:107:9: error: 'msg_obj' was not declared in this scope | qpycore_qabstracteventdispatcher.cpp:137:5: error: 'SIP_UNBLOCK_THREADS' was not declared in this scope | qpycore_qabstracteventdispatcher.cpp:139:5: error: expected ';' before 'return' This is using the meta-oe/recipes-devtools/python/python-pyqt_4.9.5.bb Poky/Yocto master 1fd9a16d2 I assume that this package built at the time of the last patch: Yes it did and still does here (4 different hosts) for both qt 4.8.1 and 4.8.3. What distribution layers are you using? meta-jama = master:7ecd04df5f040e79c140e87802e48cdf89978ade meta-shr meta-aurora meta-fso meta-android = jansa/test:cfe203305e46f32f5ae3ea788552f9fd681cd790 meta-oe meta-efl meta-gnome meta-gpe meta-multimedia meta-networking meta-initramfs meta-systemd = jansa/test:3bc7f5d5b5c87f321b5f824785f8618a194097b4 meta-osmocombb meta-nokia meta-htc meta-palm meta-openmoko meta-samsung = jansa/test:cfe203305e46f32f5ae3ea788552f9fd681cd790 meta-browser = jansa/test:b8f4a7e489907bbaf99d4059192ddf93ef1e54bc meta-handheld = jansa/spitz:cb3a1aba74900438bc304675262e1f749d34a657 meta-webos-shr= master:d8dfa37c945a33a8bb5644f897e700ad0b593468 meta = jansa/test:3ff3d7ff8e5a1400fbbb7d4873ad1a7dbadd0f29 note that jansa/test branches don't have anything related to python-pyqt, so you can use master branches if they parse now. What's your target? om-gta02, om-gta04, nokia900, tuna, qemux86, qemuarm, qemux86-64, spitz What compiler are you using (currently I'm at 4.7.2-r13)? the same I had troubles with sip-native: ERROR: Fetcher failure: Fetch command failed with exit code 8, output: http://www.riverbankcomputing.com/static/Downloads/sip4/sip-4.13.3.tar.gz: 2012-11-15 04:53:17 ERROR 404: Not Found. How do you get around this? sip-4.13.3.tar.gz on SHR premirror, older versions are moved to SF mirror: http://sourceforge.net/projects/pyqt/files/sip/ Maybe the sip recipes should be updated to use the SourceForge mirrors? I'd like to duplicate what you've done so I can figure out what's wrong. You can follow this: http://shr-project.org/trac/wiki/Building%20SHR This helped a lot, I've been able to build
Re: [oe] llvm issue
On 11/15/2012 04:25 PM, Paul Eggleton wrote: On Thursday 15 November 2012 15:06:30 Jaap de Jong wrote: when I checkout openjdk-7 on meta-java and bitbake anything I get these errors: ERROR: Unable to parse /data/jenkins/jobs/myTest/workspace/sources/meta-java/recipes-core/llvm/llvm 2.9_2.9.bb | ETA: 00:00:15 ERROR: Command execution failed: Exited with 1 NOTE: Error expanding variable populate_packages NOTE: Error during finalise of /data/jenkins/jobs/myTest/workspace/sources/meta-java/recipes-core/llvm/llvm 2.8_2.8.bb NOTE: Error expanding variable populate_packages NOTE: Error during finalise of /data/jenkins/jobs/myTest/workspace/sources/meta-java/recipes-core/llvm/llvm 2.9_2.9.bb Are you using the denzil branch of OE-Core perhaps? I suspect meta-java has been updated to use spaces for python function indentation which only works with danny/master. I don't see a denzil branch in meta-java, perhaps it would be worth adding one...? Yes, I'm using denzil. And for you second question: I'm probably not the one who should answer this, but: yes, that would help! What would be the way to use the 'danny' branch? I don't see any branch of that name under sources/*/ Thanks, Jaap Cheers, Paul ___ Openembedded-devel mailing list Openembedded-devel@lists.openembedded.org http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel