gobject-introspection: update frome meta-oe
PATCH 1/2 gobject-introspection: update frome meta-oe
OE-Core uses very old version of gobject-introspection. The recipe says 0.10.8, but in reality it's GOBJECT_INTROSPECTION_0_6_3-41-gefa7266. That version e.g. doesn't compile with python 2.7 (default in some versions), etc.
--- .../gnome/gobject-introspection/configure.patch | 27 ---------------- .../gnome/gobject-introspection/pathfix.patch | 27 ---------------- .../use-usr-bin-env-for-python.patch | 20 ++++++++++++ .../gnome/gobject-introspection_git.bb | 32 +++++++++++-------- 4 files changed, 38 insertions(+), 68 deletions(-) delete mode 100644 meta/recipes-gnome/gnome/gobject-introspection/configure.patch delete mode 100644 meta/recipes-gnome/gnome/gobject-introspection/pathfix.patch create mode 100644 meta/recipes-gnome/gnome/gobject-introspection/use-usr-bin-env-for-python.patch
meta/recipes-gnome/gnome/gobject-introspection/configure.patch deleted +0 -27
@@ -1,27 +0,0 @@ -Upstream-Status: Inappropriate [configuration] - -Index: git/common.mk -=================================================================== ---- git.orig/common.mk 2009-08-19 11:11:26.000000000 +0100 -+++ git/common.mk 2009-08-19 11:12:05.000000000 +0100 -@@ -4,7 +4,7 @@ - UNINSTALLED_INTROSPECTION_SRCDIR=$(top_srcdir) \ - UNINSTALLED_INTROSPECTION_BUILDDIR=$(top_builddir) - SCANNER_ARGS = -v --add-include-path=$(top_builddir)/gir --add-include-path=. --SCANNER = $(AM_V_GEN) env LPATH=.libs $(CHECK_DEBUG) $(SCANNER_ENV) $(SCANNER_BIN) $(SCANNER_ARGS) -+SCANNER = $(AM_V_GEN) env LPATH=.libs $(CHECK_DEBUG) $(SCANNER_ENV) g-ir-scanner $(SCANNER_ARGS) - SCANNER_LIBS = \ - $(top_srcdir)/giscanner/*.py \ - $(top_builddir)/giscanner/libgiscanner.la \ -Index: git/configure.ac -=================================================================== ---- git.orig/configure.ac 2009-08-19 11:11:26.000000000 +0100 -+++ git/configure.ac 2009-08-19 11:11:28.000000000 +0100 -@@ -201,7 +201,6 @@ - pyexecdir=`echo $pyexecdir | tr '\\\\' '/'` - ;; - esac --AM_CHECK_PYTHON_HEADERS(,AC_MSG_ERROR([Python headers not found])) - - AC_CONFIG_FILES([ - Makefile
meta/recipes-gnome/gnome/gobject-introspection/pathfix.patch deleted +0 -27
@@ -1,27 +0,0 @@ -Upstream-Status: Pending - -Index: git/giscanner/dumper.py -=================================================================== ---- git.orig/giscanner/dumper.py 2010-11-29 15:14:35.000000000 -0800 -+++ git/giscanner/dumper.py 2010-11-29 15:14:57.115747154 -0800 -@@ -82,7 +82,7 @@ - self._tmpdir = tempfile.mkdtemp('', 'tmp-introspect', dir=os.getcwd()) - - self._compiler_cmd = os.environ.get('CC', 'gcc') -- self._linker_cmd = os.environ.get('LD', self._compiler_cmd) -+ self._linker_cmd = os.environ.get('CCLD', self._compiler_cmd) - self._pkgconfig_cmd = os.environ.get('PKG_CONFIG', 'pkg-config') - - self._uninst_srcdir = os.environ.get( -Index: git/giscanner/scannermain.py -=================================================================== ---- git.orig/giscanner/scannermain.py 2010-11-29 15:14:35.000000000 -0800 -+++ git/giscanner/scannermain.py 2010-11-29 15:14:57.120747321 -0800 -@@ -283,6 +283,7 @@ - shown_include_warning = False - for include in options.includes: - if os.sep in include: -+ continue - raise ValueError("Invalid include path %r" % (include, )) - include_obj = Include.from_string(include) - transformer.register_include(include_obj)
meta/recipes-gnome/gnome/gobject-introspection/use-usr-bin-env-for-python.patch new file +20 -0
@@ -0,0 +1,20 @@ +Index: gobject-introspection-0.9.10/tools/g-ir-annotation-tool.in +=================================================================== +--- gobject-introspection-0.9.10.orig/tools/g-ir-annotation-tool.in ++++ gobject-introspection-0.9.10/tools/g-ir-annotation-tool.in +@@ -1,4 +1,4 @@ +-#!@PYTHON@ ++#!/usr/bin/env python + # -*- Mode: Python -*- + # GObject-Introspection - a framework for introspecting GObject libraries + # Copyright (C) 2008 Johan Dahlin +Index: gobject-introspection-0.9.10/tools/g-ir-scanner.in +=================================================================== +--- gobject-introspection-0.9.10.orig/tools/g-ir-scanner.in ++++ gobject-introspection-0.9.10/tools/g-ir-scanner.in +@@ -1,4 +1,4 @@ +-#!@PYTHON@ ++#!/usr/bin/env python + # -*- Mode: Python -*- + # GObject-Introspection - a framework for introspecting GObject libraries + # Copyright (C) 2008 Johan Dahlin
meta/recipes-gnome/gnome/gobject-introspection_git.bb +18 -14
@@ -1,29 +1,33 @@ -SRC_URI = "git://git.gnome.org/gobject-introspection;protocol=git \ - file://configure.patch \ - file://pathfix.patch" +# NOTE: WIP! This recipe does not cross-compile atm., only -native +DEPENDS = "glib-2.0 libffi python-native gobject-introspection-native" +DEPENDS_virtclass-native = "glib-2.0-native libffi-native python-native bison-native flex-native" +BBCLASSEXTEND = "native" -SRC_URI_virtclass-native = "git://git.gnome.org/gobject-introspection;protocol=git \ - file://pathfix.patch" +SRC_URI = "git://git.gnome.org/gobject-introspection;protocol=git \ + file://use-usr-bin-env-for-python.patch \ +" LICENSE = "GPLv2+ & LGPLv2+" LIC_FILES_CHKSUM = "file://COPYING.tools;md5=94d55d512a9ba36caa9b7df079bae19f \ file://COPYING.lib;md5=3bf50002aefd002f49e7bb854063f7e7" -SRCREV = "efa7266bcf78478ce62e8dd778a4f0417bfd4d15" -PV = "0.10.8+git${SRCPV}" -PR = "r4" +SRCREV = "8d64bc23d2b837421ecf9c7b0e4b8d5d95ca0d21" +PV = "1.29.0+gitr${SRCPV}" +DEFAULT_PREFERENCE = "-1" S = "${WORKDIR}/git" -DEPENDS = "libffi python-native gobject-introspection-native" -DEPENDS_virtclass-native = "libffi-native python-native bison-native flex-native" - inherit autotools -TARGET_CFLAGS += "-I${STAGING_INCDIR_NATIVE}/python2.5" +BBCLASSEXTEND = "native" do_configure_prepend () { - echo "EXTRA_DIST = " > ${S}/gtk-doc.make + echo "EXTRA_DIST = " > ${S}/gtk-doc.make } -BBCLASSEXTEND = "native" +EXTRA_OECONF = "\ + --disable-gtk-doc \ + --disable-gtk-doc-html \ + --disable-gtk-doc-pdf \ + --disable-tests \ +"
Signature · 1 line
1.7.7.1
PATCH 2/2 screenshot: rename to sato-screenshot
To remove a name conflict with e17's screenshot tool (and possibly other screenshot tools, as screenshot is a generic term), rename screenshot to sato-screenshot.
--- .../sato-screenshot/files/fix_ldadd_order.patch | 15 +++++++++++++ .../sato-screenshot/sato-screenshot_git.bb | 23 ++++++++++++++++++++ .../screenshot/files/fix_ldadd_order.patch | 15 ------------- meta/recipes-sato/screenshot/screenshot_git.bb | 23 -------------------- meta/recipes-sato/tasks/task-core-x11.bb | 2 +- 5 files changed, 39 insertions(+), 39 deletions(-) create mode 100644 meta/recipes-sato/sato-screenshot/files/fix_ldadd_order.patch create mode 100644 meta/recipes-sato/sato-screenshot/sato-screenshot_git.bb delete mode 100644 meta/recipes-sato/screenshot/files/fix_ldadd_order.patch delete mode 100644 meta/recipes-sato/screenshot/screenshot_git.bb
meta/recipes-sato/sato-screenshot/files/fix_ldadd_order.patch new file +15 -0
@@ -0,0 +1,15 @@ +Fix the ordering of LDADD options to fix a compilation failure. + +Signed-off-by: Scott Garman <[email protected]> + +Upstream-Status: Inappropriate [configuration] + +diff -urN screenshot.orig//Makefile.am screenshot/Makefile.am +--- screenshot.orig//Makefile.am 2010-06-29 11:55:00.000000000 -0700 ++++ screenshot/Makefile.am 2011-03-01 11:09:01.215813968 -0800 +@@ -23,4 +23,4 @@ + # A standalone tool for running from a terminal and scripts + bin_PROGRAMS = screenshot + screenshot_SOURCES = main.c +-screenshot_LDADD = $(GTK_LIBS) libshot.la ++screenshot_LDADD = libshot.la $(GTK_LIBS)
meta/recipes-sato/sato-screenshot/sato-screenshot_git.bb new file +23 -0
@@ -0,0 +1,23 @@ +DESCRIPTION = "An ultra-simple screen capture utility, aimed at handheld devices" +HOMEPAGE = "http://www.o-hand.com" +BUGTRACKER = "http://bugzilla.openedhand.com/" + +LICENSE = "GPLv2 & GPLv2+" +LIC_FILES_CHKSUM = "file://COPYING;md5=94d55d512a9ba36caa9b7df079bae19f \ + file://main.c;endline=9;md5=023e14d6404d0a961eb97cbd011fc141 \ + file://screenshot-ui.h;endline=9;md5=638d9ffa83e9325a36df224166ed6ad0" + +DEPENDS = "matchbox-panel-2" +SRCREV = "c792e4edc758bab21e0b01814979eacf0b1af945" +PV = "0.1+git${SRCPV}" +PR = "r0" + +SRC_URI = "git://git.yoctoproject.org/screenshot;protocol=git \ + file://fix_ldadd_order.patch" + +S = "${WORKDIR}/git" + +inherit autotools pkgconfig + +FILES_${PN} += "${libdir}/matchbox-panel/*.so" +FILES_${PN}-dbg += "${libdir}/matchbox-panel/.debug"
meta/recipes-sato/screenshot/files/fix_ldadd_order.patch deleted +0 -15
@@ -1,15 +0,0 @@ -Fix the ordering of LDADD options to fix a compilation failure. - -Signed-off-by: Scott Garman <[email protected]> - -Upstream-Status: Inappropriate [configuration] - -diff -urN screenshot.orig//Makefile.am screenshot/Makefile.am ---- screenshot.orig//Makefile.am 2010-06-29 11:55:00.000000000 -0700 -+++ screenshot/Makefile.am 2011-03-01 11:09:01.215813968 -0800 -@@ -23,4 +23,4 @@ - # A standalone tool for running from a terminal and scripts - bin_PROGRAMS = screenshot - screenshot_SOURCES = main.c --screenshot_LDADD = $(GTK_LIBS) libshot.la -+screenshot_LDADD = libshot.la $(GTK_LIBS)
meta/recipes-sato/screenshot/screenshot_git.bb deleted +0 -23
@@ -1,23 +0,0 @@ -DESCRIPTION = "An ultra-simple screen capture utility, aimed at handheld devices" -HOMEPAGE = "http://www.o-hand.com" -BUGTRACKER = "http://bugzilla.openedhand.com/" - -LICENSE = "GPLv2 & GPLv2+" -LIC_FILES_CHKSUM = "file://COPYING;md5=94d55d512a9ba36caa9b7df079bae19f \ - file://main.c;endline=9;md5=023e14d6404d0a961eb97cbd011fc141 \ - file://screenshot-ui.h;endline=9;md5=638d9ffa83e9325a36df224166ed6ad0" - -DEPENDS = "matchbox-panel-2" -SRCREV = "c792e4edc758bab21e0b01814979eacf0b1af945" -PV = "0.1+git${SRCPV}" -PR = "r0" - -SRC_URI = "git://git.yoctoproject.org/${BPN};protocol=git \ - file://fix_ldadd_order.patch" - -S = "${WORKDIR}/git" - -inherit autotools pkgconfig - -FILES_${PN} += "${libdir}/matchbox-panel/*.so" -FILES_${PN}-dbg += "${libdir}/matchbox-panel/.debug"
meta/recipes-sato/tasks/task-core-x11.bb +1 -1
@@ -61,7 +61,7 @@ RDEPENDS_task-core-apps-x11-core = "\ leafpad \ ${FILEMANAGER} \ matchbox-terminal \ - screenshot" + sato-screenshot" RDEPENDS_task-core-apps-x11-games = "\
Signature · 1 line
1.7.7.1
Saul Wold
AppliedQuoted 150 lines · Dmitry Eremin-Solenikov
OE-Core uses very old version of gobject-introspection. The recipe says 0.10.8, but in reality it's GOBJECT_INTROSPECTION_0_6_3-41-gefa7266. That version e.g. doesn't compile with python 2.7 (default in some versions), etc.
Signed-off-by Dmitry Eremin-Solenikov<[email protected]>--- .../gnome/gobject-introspection/configure.patch | 27 ---------------- .../gnome/gobject-introspection/pathfix.patch | 27 ---------------- .../use-usr-bin-env-for-python.patch | 20 ++++++++++++ .../gnome/gobject-introspection_git.bb | 32 +++++++++++-------- 4 files changed, 38 insertions(+), 68 deletions(-)delete mode 100644
meta/recipes-gnome/gnome/gobject-introspection/configure.patchdelete mode 100644meta/recipes-gnome/gnome/gobject-introspection/pathfix.patchcreate mode 100644meta/recipes-gnome/gnome/gobject-introspection/use-usr-bin-env-for-python.patchmeta/recipes-gnome/gnome/gobject-introspection/configure.patch deleted +0
-27@@ -1,27 +0,0 @@ -Upstream-Status: Inappropriate [configuration] - -Index: git/common.mk -=================================================================== ---- git.orig/common.mk 2009-08-19 11:11:26.000000000 +0100 -+++ git/common.mk 2009-08-19 11:12:05.000000000 +0100 -@@ -4,7 +4,7 @@ - UNINSTALLED_INTROSPECTION_SRCDIR=$(top_srcdir) \ - UNINSTALLED_INTROSPECTION_BUILDDIR=$(top_builddir) - SCANNER_ARGS = -v --add-include-path=$(top_builddir)/gir --add-include-path=. --SCANNER = $(AM_V_GEN) env LPATH=.libs $(CHECK_DEBUG) $(SCANNER_ENV) $(SCANNER_BIN) $(SCANNER_ARGS) -+SCANNER = $(AM_V_GEN) env LPATH=.libs $(CHECK_DEBUG) $(SCANNER_ENV) g-ir-scanner $(SCANNER_ARGS) - SCANNER_LIBS = \ - $(top_srcdir)/giscanner/*.py \ - $(top_builddir)/giscanner/libgiscanner.la \ -Index: git/configure.ac -=================================================================== ---- git.orig/configure.ac 2009-08-19 11:11:26.000000000 +0100 -+++ git/configure.ac 2009-08-19 11:11:28.000000000 +0100 -@@ -201,7 +201,6 @@ - pyexecdir=`echo $pyexecdir | tr '\\\\' '/'` - ;; - esac --AM_CHECK_PYTHON_HEADERS(,AC_MSG_ERROR([Python headers not found])) - - AC_CONFIG_FILES([ - Makefilemeta/recipes-gnome/gnome/gobject-introspection/pathfix.patch deleted +0
-27@@ -1,27 +0,0 @@ -Upstream-Status: Pending - -Index: git/giscanner/dumper.py -=================================================================== ---- git.orig/giscanner/dumper.py 2010-11-29 15:14:35.000000000 -0800 -+++ git/giscanner/dumper.py 2010-11-29 15:14:57.115747154 -0800 -@@ -82,7 +82,7 @@ - self._tmpdir = tempfile.mkdtemp('', 'tmp-introspect', dir=os.getcwd()) - - self._compiler_cmd = os.environ.get('CC', 'gcc') -- self._linker_cmd = os.environ.get('LD', self._compiler_cmd) -+ self._linker_cmd = os.environ.get('CCLD', self._compiler_cmd) - self._pkgconfig_cmd = os.environ.get('PKG_CONFIG', 'pkg-config') - - self._uninst_srcdir = os.environ.get( -Index: git/giscanner/scannermain.py -=================================================================== ---- git.orig/giscanner/scannermain.py 2010-11-29 15:14:35.000000000 -0800 -+++ git/giscanner/scannermain.py 2010-11-29 15:14:57.120747321 -0800 -@@ -283,6 +283,7 @@ - shown_include_warning = False - for include in options.includes: - if os.sep in include: -+ continue - raise ValueError("Invalid include path %r" % (include, )) - include_obj = Include.from_string(include) - transformer.register_include(include_obj)meta/recipes-gnome/gnome/gobject-introspection/use-usr-bin-env-for-python.patch new file +20
-0@@ -0,0 +1,20 @@ +Index: gobject-introspection-0.9.10/tools/g-ir-annotation-tool.in +=================================================================== +--- gobject-introspection-0.9.10.orig/tools/g-ir-annotation-tool.in ++++ gobject-introspection-0.9.10/tools/g-ir-annotation-tool.in +@@ -1,4 +1,4 @@ +-#!@PYTHON@ ++#!/usr/bin/env python + # -*- Mode: Python -*- + # GObject-Introspection - a framework for introspecting GObject libraries + # Copyright (C) 2008 Johan Dahlin +Index: gobject-introspection-0.9.10/tools/g-ir-scanner.in +=================================================================== +--- gobject-introspection-0.9.10.orig/tools/g-ir-scanner.in ++++ gobject-introspection-0.9.10/tools/g-ir-scanner.in +@@ -1,4 +1,4 @@ +-#!@PYTHON@ ++#!/usr/bin/env python + # -*- Mode: Python -*- + # GObject-Introspection - a framework for introspecting GObject libraries + # Copyright (C) 2008 Johan Dahlinmeta/recipes-gnome/gnome/gobject-introspection_git.bb +11
-13@@ -1,29 +1,33 @@ -SRC_URI = "git://git.gnome.org/gobject-introspection;protocol=git \ - file://configure.patch \ - file://pathfix.patch" +# NOTE: WIP! This recipe does not cross-compile atm., only -native +DEPENDS = "glib-2.0 libffi python-native gobject-introspection-native" +DEPENDS_virtclass-native = "glib-2.0-native libffi-native python-native bison-native flex-native" +BBCLASSEXTEND = "native" -SRC_URI_virtclass-native = "git://git.gnome.org/gobject-introspection;protocol=git \ - file://pathfix.patch" +SRC_URI = "git://git.gnome.org/gobject-introspection;protocol=git \ + file://use-usr-bin-env-for-python.patch \ +" LICENSE = "GPLv2+& LGPLv2+" LIC_FILES_CHKSUM = "file://COPYING.tools;md5=94d55d512a9ba36caa9b7df079bae19f \ file://COPYING.lib;md5=3bf50002aefd002f49e7bb854063f7e7" -SRCREV = "efa7266bcf78478ce62e8dd778a4f0417bfd4d15" -PV = "0.10.8+git${SRCPV}" -PR = "r4" +SRCREV = "8d64bc23d2b837421ecf9c7b0e4b8d5d95ca0d21" +PV = "1.29.0+gitr${SRCPV}" +DEFAULT_PREFERENCE = "-1" S = "${WORKDIR}/git" -DEPENDS = "libffi python-native gobject-introspection-native" -DEPENDS_virtclass-native = "libffi-native python-native bison-native flex-native" - inherit autotools -TARGET_CFLAGS += "-I${STAGING_INCDIR_NATIVE}/python2.5" +BBCLASSEXTEND = "native" do_configure_prepend () { - echo "EXTRA_DIST = "> ${S}/gtk-doc.make
meta/recipes-gnome/gnome/gobject-introspection_git.bb line 33
Quoted 10 lines
meta/recipes-gnome/gnome/gobject-introspection_git.bb +7
-1+ echo "EXTRA_DIST = "> ${S}/gtk-doc.make } -BBCLASSEXTEND = "native" +EXTRA_OECONF = "\ + --disable-gtk-doc \ + --disable-gtk-doc-html \ + --disable-gtk-doc-pdf \ + --disable-tests \ +"
Merged into OE-Core
Thanks
Sau!