update + usabilty/build enhancements
cover update + usabilty/build enhancements
1. maintenance
2-6. Update & increase usabilty
7-13. Avoid cloning externel sources during configure/compile (tested with
network disconnected)
The following changes since commit c04f105227101977a0f5ed8d41dd6fbe71138eea:
rrdtool: adding the capability of native-builds to get rrdtool-oo in meta-cpan running (2015-10-26 21:37:38 +0100)
are available in the git repository at:
git://github.com/schnitzeltony/meta-openembedded.git patches
for you to fetch changes up to d7cf562d04d4408ffc1b98b71fb970e64648dcf1:
fontforge: avoid cloning uthash during do_compile (2015-10-30 13:02:34 +0100)
----------------------------------------------------------------
Andreas Müller (13):
xfce4-vala: unbreak by telling configure vala API version
xfce-polkit: initial add 0.2 packagegroup-xfce-extended: xfce-polkit
gparted: update to 0.24.0
gparted: add gtk-icon-cache to inherit
gparted: add polkit support
gnulib: move meta-networking -> meta-oe bootstrap.bbclass: initial add
netcf: use bootstrap.bbclass
gnulib: add native extend
fontforge: use bootstrap.bbclass
uthash: add native extend
fontforge: avoid cloning uthash during do_compile
meta-gnome/recipes-extended/gparted/files/gparted_polkit | 10 ++++++++++
meta-gnome/recipes-extended/gparted/files/org.yoctoproject.pkexec.run-gparted.policy | 20 ++++++++++++++++++++
meta-gnome/recipes-extended/gparted/gparted_0.23.0.bb | 18 ------------------
meta-gnome/recipes-extended/gparted/gparted_0.24.0.bb | 38 ++++++++++++++++++++++++++++++++++++++
meta-networking/recipes-support/netcf/netcf_git.bb | 8 +-------
meta-oe/classes/bootstrap.bbclass | 20 ++++++++++++++++++++
meta-oe/recipes-graphics/fontforge/fontforge_20150824.bb | 13 +++++++------
{meta-networking/recipes-support/netcf => meta-oe/recipes-support/gnulib}/gnulib_git.bb | 2 ++
meta-oe/recipes-support/uthash/uthash_1.9.7.bb | 2 ++
meta-xfce/recipes-apps/xfce-polkit/xfce-polkit_0.2.bb | 11 +++++++++++
meta-xfce/recipes-bindings/vala/xfce4-vala_4.10.3.bb | 4 ++--
meta-xfce/recipes-xfce/packagegroups/packagegroup-xfce-extended.bb | 2 ++
12 files changed, 115 insertions(+), 33 deletions(-)
create mode 100644 meta-gnome/recipes-extended/gparted/files/gparted_polkit
create mode 100644 meta-gnome/recipes-extended/gparted/files/org.yoctoproject.pkexec.run-gparted.policy
delete mode 100644 meta-gnome/recipes-extended/gparted/gparted_0.23.0.bb
create mode 100644 meta-gnome/recipes-extended/gparted/gparted_0.24.0.bb
create mode 100644 meta-oe/classes/bootstrap.bbclass
rename {meta-networking/recipes-support/netcf => meta-oe/recipes-support/gnulib}/gnulib_git.bb (97%)
create mode 100644 meta-xfce/recipes-apps/xfce-polkit/xfce-polkit_0.2.bbSignature · 1 line
2.1.0
PATCH 1/13 xfce4-vala: unbreak by telling configure vala API version
--- meta-xfce/recipes-bindings/vala/xfce4-vala_4.10.3.bb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
meta-xfce/recipes-bindings/vala/xfce4-vala_4.10.3.bb +2 -2
@@ -5,12 +5,12 @@ DEPENDS = "libxfce4util garcon xfconf libxfce4ui xfce4-panel exo vala xfce4-dev- inherit xfce -PNBLACKLIST[xfce4-vala] ?= "Fails to build since vala upgrade to 0.26.1" - SRC_URI = "http://archive.xfce.org/src/bindings/${BPN}/${@xfce_verdir("${PV}")}/${BPN}-${PV}.tar.bz2" SRC_URI[md5sum] = "0bbb1d6e473e0fe9b335b7b1b49d8a71" SRC_URI[sha256sum] = "07a8f2b7c09fcdd3d86e0c52adea3c58ca011d0142a93997a01b4af77260ae7b" +EXTRA_OECONF = "-with-vala-api=0.28" + FILES_${PN} += "${datadir}/vala-*/vapi" RDEPENDS_${PN} = "vala"
Signature · 1 line
2.1.0
PATCH 2/13 xfce-polkit: initial add 0.2
In reply to Andreas Müller--- meta-xfce/recipes-apps/xfce-polkit/xfce-polkit_0.2.bb | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 meta-xfce/recipes-apps/xfce-polkit/xfce-polkit_0.2.bb
meta-xfce/recipes-apps/xfce-polkit/xfce-polkit_0.2.bb new file +11 -0
@@ -0,0 +1,11 @@ +SUMMARY = "A simple PolicyKit authentication agent for XFCE" +LICENSE = "GPLv2" +LIC_FILES_CHKSUM = "file://COPYING;md5=758b03f872a88c99fc36d50c5932091c" + +DEPENDS = "libxfce4ui polkit" + +inherit xfce-app + +SRC_URI = "git://github.com/ncopa/${BPN}.git" +SRCREV = "6ad1ee833c9e22e4dd72a8f7d54562d046965283" +S = "${WORKDIR}/git"
Signature · 1 line
2.1.0
PATCH 3/13 packagegroup-xfce-extended: xfce-polkit
In reply to Andreas Müller--- meta-xfce/recipes-xfce/packagegroups/packagegroup-xfce-extended.bb | 2 ++ 1 file changed, 2 insertions(+)
meta-xfce/recipes-xfce/packagegroups/packagegroup-xfce-extended.bb +2 -0
@@ -50,6 +50,8 @@ RRECOMMENDS_${PN} = " \ xfce4-hotcorner-plugin \ ${@bb.utils.contains('DISTRO_FEATURES', 'pulseaudio', 'xfce4-pulseaudio-plugin', '', d)} \ \ + xfce-polkit \ + \ thunar-media-tags-plugin \ thunar-archive-plugin \ \
Signature · 1 line
2.1.0
PATCH 4/13 gparted: update to 0.24.0
In reply to Andreas MüllerDepending on gnome-doc-utils-native fixes (detected when building from scratch):
| gnome-doc-utils.make:63: error: HAVE_GNOME_DOC_UTILS does not appear in AM_CONDITIONAL | help/Makefile.am:1: 'gnome-doc-utils.make' included from here | gnome-doc-utils.make:133: error: ENABLE_SK does not appear in AM_CONDITIONAL | help/Makefile.am:1: 'gnome-doc-utils.make' included from here | gnome-doc-utils.make:182: error: ENABLE_SK does not appear in AM_CONDITIONAL | help/Makefile.am:1: 'gnome-doc-utils.make' included from here | ... | autoreconf: automake failed with exit status: 1 | ERROR: autoreconf execution failed.
---
.../gparted/{gparted_0.23.0.bb => gparted_0.24.0.bb} | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
rename meta-gnome/recipes-extended/gparted/{gparted_0.23.0.bb => gparted_0.24.0.bb} (70%)meta-gnome/recipes-extended/gparted/gparted_0.24.0.bb renamed from meta-gnome/recipes-extended/gparted/gparted_0.23.0.bb +3 -3
@@ -6,10 +6,10 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=94d55d512a9ba36caa9b7df079bae19f" inherit autotools pkgconfig SRC_URI = "${SOURCEFORGE_MIRROR}/project/${BPN}/${BPN}/${BPN}-${PV}/${BPN}-${PV}.tar.bz2" -SRC_URI[md5sum] = "5901dca33ced32213cccb13a2713dea8" -SRC_URI[sha256sum] = "7fd1dddf29814c2982f55ab765b8918561e1b5dabf792012c66b4d3ba25da754" +SRC_URI[md5sum] = "b8480274c68876acff5965d4346710e7" +SRC_URI[sha256sum] = "02398ab33894a59b0bd8707e598c46d8bb56f1413cd54de48eed61e2920ecd60" -DEPENDS = "glib-2.0 gtkmm parted" +DEPENDS = "glib-2.0 gtkmm parted gnome-doc-utils-native" EXTRA_OECONF = "--disable-scrollkeeper --disable-doc"
Signature · 1 line
2.1.0
PATCH 5/13 gparted: add gtk-icon-cache to inherit
In reply to Andreas Müller--- meta-gnome/recipes-extended/gparted/gparted_0.24.0.bb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
meta-gnome/recipes-extended/gparted/gparted_0.24.0.bb +1 -1
@@ -3,7 +3,7 @@ HOMEPAGE = "http://gparted.org/index.php" LICENSE = "GPLv2" LIC_FILES_CHKSUM = "file://COPYING;md5=94d55d512a9ba36caa9b7df079bae19f" -inherit autotools pkgconfig +inherit autotools pkgconfig gtk-icon-cache SRC_URI = "${SOURCEFORGE_MIRROR}/project/${BPN}/${BPN}/${BPN}-${PV}/${BPN}-${PV}.tar.bz2" SRC_URI[md5sum] = "b8480274c68876acff5965d4346710e7"
Signature · 1 line
2.1.0
PATCH 6/13 gparted: add polkit support
In reply to Andreas Müller* This was missing for me and is a good test case for xfce-polkit asking for root's password.
* Decision to use polkit (installed?) is made at runtime. Unfortunately this cool solution was not my idea but stolen from [1]
[1] http://pkgs.fedoraproject.org/cgit/gparted.git
--- .../recipes-extended/gparted/files/gparted_polkit | 10 +++++++++ .../org.yoctoproject.pkexec.run-gparted.policy | 20 ++++++++++++++++++ .../recipes-extended/gparted/gparted_0.24.0.bb | 24 ++++++++++++++++++++-- 3 files changed, 52 insertions(+), 2 deletions(-) create mode 100644 meta-gnome/recipes-extended/gparted/files/gparted_polkit create mode 100644 meta-gnome/recipes-extended/gparted/files/org.yoctoproject.pkexec.run-gparted.policy
meta-gnome/recipes-extended/gparted/files/gparted_polkit new file +10 -0
@@ -0,0 +1,10 @@ +#!/bin/sh + +# polkit installed? +if [ $(which pkexec) ]; then + pkexec --disable-internal-agent "%sbindir%/gparted" "$@" +else + %sbindir%/gparted "$@" +fi + +
meta-gnome/recipes-extended/gparted/files/org.yoctoproject.pkexec.run-gparted.policy new file +20 -0
@@ -0,0 +1,20 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE policyconfig PUBLIC + "-//freedesktop//DTD PolicyKit Policy Configuration 1.0//EN" + "http://www.freedesktop.org/standards/PolicyKit/1/policyconfig.dtd"> +<policyconfig> + + <action id="org.yoctoproject.pkexec.run-gparted"> + <description>Run the GParted program</description> + <message>Authentication is required to run the GParted Partition Editor</message> + <icon_name>gparted</icon_name> + <defaults> + <allow_any>auth_admin</allow_any> + <allow_inactive>auth_admin</allow_inactive> + <allow_active>auth_admin</allow_active> + </defaults> + <annotate key="org.freedesktop.policykit.exec.path">/usr/sbin/gparted</annotate> + <annotate key="org.freedesktop.policykit.exec.allow_gui">true</annotate> + </action> + +</policyconfig>
meta-gnome/recipes-extended/gparted/gparted_0.24.0.bb +22 -2
@@ -5,14 +5,34 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=94d55d512a9ba36caa9b7df079bae19f" inherit autotools pkgconfig gtk-icon-cache -SRC_URI = "${SOURCEFORGE_MIRROR}/project/${BPN}/${BPN}/${BPN}-${PV}/${BPN}-${PV}.tar.bz2" +SRC_URI = " \ + ${SOURCEFORGE_MIRROR}/project/${BPN}/${BPN}/${BPN}-${PV}/${BPN}-${PV}.tar.bz2 \ + file://org.yoctoproject.pkexec.run-gparted.policy \ + file://gparted_polkit \ +" SRC_URI[md5sum] = "b8480274c68876acff5965d4346710e7" SRC_URI[sha256sum] = "02398ab33894a59b0bd8707e598c46d8bb56f1413cd54de48eed61e2920ecd60" DEPENDS = "glib-2.0 gtkmm parted gnome-doc-utils-native" +do_install_append() { + # Add a script which checks if polkit is installed. + # If yes: a policy is requested from polkit / otherwise start as usual + install ${WORKDIR}/gparted_polkit ${D}${sbindir} + sed -i 's:%sbindir%:${sbindir}:g' ${D}${sbindir}/gparted_polkit + # relink menu entry to use our script + sed -i 's:${sbindir}/gparted:${sbindir}/gparted_polkit:g' ${D}${datadir}/applications/gparted.desktop + + install -d ${D}${datadir}/polkit-1/actions + install ${WORKDIR}/org.yoctoproject.pkexec.run-gparted.policy ${D}${datadir}/polkit-1/actions/org.yoctoproject.pkexec.run-gparted.policy +} + EXTRA_OECONF = "--disable-scrollkeeper --disable-doc" -FILES_${PN} += "${datadir}/icons ${datadir}/appdata" +FILES_${PN} += " \ + ${datadir}/appdata \ + ${datadir}/icons \ + ${datadir}/polkit-1 \ +" RDEPENDS_${PN} = "dosfstools mtools e2fsprogs"
Signature · 1 line
2.1.0
PATCH 7/13 gnulib: move meta-networking -> meta-oe
In reply to Andreas MüllerA more common place is required for gnulib because of other recipes (e.g fontforge) will depend on it
---
.../netcf => meta-oe/recipes-support/gnulib}/gnulib_git.bb | 0
1 file changed, 0 insertions(+), 0 deletions(-)
rename {meta-networking/recipes-support/netcf => meta-oe/recipes-support/gnulib}/gnulib_git.bb (100%)meta-oe/recipes-support/gnulib/gnulib_git.bb renamed from meta-networking/recipes-support/netcf/gnulib_git.bb +0 -0
Signature · 1 line
2.1.0
PATCH 8/13 bootstrap.bbclass: initial add
In reply to Andreas Müllerbootstrap is another magic script which is intended run before autotools. The class created runs this script at the right time and ensures that sources of gnulib are not cloned during configure.
--- meta-oe/classes/bootstrap.bbclass | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 meta-oe/classes/bootstrap.bbclass
meta-oe/classes/bootstrap.bbclass new file +20 -0
@@ -0,0 +1,20 @@ +# Inherit this class if you want to build with bootstrap/autotools +inherit autotools + +DEPENDS += "gnulib" + +do_configure_prepend() { + currdir=`pwd` + cd ${S} + + # avoid bootstrap cloning gnulib on every configure + cat >.gitmodules <<EOF +[submodule "gnulib"] + path = gnulib + url = git://git.sv.gnu.org/gnulib +EOF + cp -rf ${STAGING_DATADIR}/gnulib ${S} + + ./bootstrap + cd $currdir +}
Signature · 1 line
2.1.0
Re: [PATCH 08/13] bootstrap.bbclass: initial add
Quoted 7 lines · Andreas Müller
bootstrap is another magic script which is intended run before autotools. The class created runs this script at the right time and ensures that sources of gnulib are not cloned during configure.
Signed-off-by Andreas Müller <[email protected]>--- meta-oe/classes/bootstrap.bbclass | 20 ++++++++++++++++++++
lets call is autotools-bootstrap otherwise looks ok
Quoted 37 lines
1 file changed, 20 insertions(+) create mode 100644 meta-oe/classes/bootstrap.bbclassmeta-oe/classes/bootstrap.bbclass new file +20
-1@@ -0,0 +1,20 @@ +# Inherit this class if you want to build with bootstrap/autotools +inherit autotools + +DEPENDS += "gnulib" + +do_configure_prepend() { + currdir=`pwd` + cd ${S} + + # avoid bootstrap cloning gnulib on every configure + cat >.gitmodules <<EOF +[submodule "gnulib"] + path = gnulib + url = git://git.sv.gnu.org/gnulib +EOF + cp -rf ${STAGING_DATADIR}/gnulib ${S} + + ./bootstrap + cd $currdir +} --2.1.0
--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel
PATCH 9/13 netcf: use bootstrap.bbclass
In reply to Andreas Müller--- meta-networking/recipes-support/netcf/netcf_git.bb | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-)
meta-networking/recipes-support/netcf/netcf_git.bb +1 -7
@@ -16,19 +16,13 @@ DEPENDS += "augeas libnl libxslt libxml2 gnulib" S = "${WORKDIR}/git" -inherit gettext autotools-brokensep pkgconfig systemd +inherit gettext bootstrap pkgconfig systemd EXTRA_OECONF_append_class-target = " --with-driver=redhat" PACKAGECONFIG ??= "${@bb.utils.contains("DISTRO_FEATURES", "systemd", "systemd", "", d)}" PACKAGECONFIG[systemd] = "--with-sysinit=systemd,--with-sysinit=initscripts," -do_configure_prepend() { - cd ${S} - rm -f .gitmodules - ./bootstrap --gnulib-srcdir=${STAGING_DATADIR}/gnulib -} - do_install_append() { if ${@base_contains('DISTRO_FEATURES', 'systemd', 'true', 'false', d)}; then install -d ${D}${systemd_unitdir}/system
Signature · 1 line
2.1.0
PATCH 10/13 gnulib: add native extend
In reply to Andreas Müllerfontforge-native will require it
--- meta-oe/recipes-support/gnulib/gnulib_git.bb | 2 ++ 1 file changed, 2 insertions(+)
meta-oe/recipes-support/gnulib/gnulib_git.bb +2 -0
@@ -30,3 +30,5 @@ do_packagedata[noexec] = "1" do_package_write_ipk[noexec] = "1" do_package_write_deb[noexec] = "1" do_package_write_rpm[noexec] = "1" + +BBCLASSEXTEND = "native"
Signature · 1 line
2.1.0
PATCH 11/13 fontforge: use bootstrap.bbclass
In reply to Andreas Müller--- meta-oe/recipes-graphics/fontforge/fontforge_20150824.bb | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-)
meta-oe/recipes-graphics/fontforge/fontforge_20150824.bb +3 -9
@@ -6,10 +6,11 @@ LIC_FILES_CHKSUM = " \ file://LICENSE;md5=3f922b42ed0033fa0fd4cd3268f6429c \ " -inherit autotools pkgconfig pythonnative distro_features_check - DEPENDS = "glib-2.0 pango giflib tiff libxml2 jpeg python libtool" DEPENDS_append_class-target = " libxi" + +inherit bootstrap pkgconfig pythonnative distro_features_check + REQUIRED_DISTRO_FEATURES_append_class-target = " x11" SRC_URI = "git://github.com/${BPN}/${BPN}.git"
@@ -19,13 +20,6 @@ S = "${WORKDIR}/git" EXTRA_OECONF_append_class-native = " with_x=no --disable-python-extension --disable-python-scripting" -do_configure_prepend() { - currdir=`pwd` - cd ${S} - ./bootstrap --force - cd $currdir -} - EXTRA_OEMAKE = "CFLAGS='${CFLAGS} -I${B}/uthash/src'" PACKAGES =+ "${PN}-python-dbg ${PN}-python"
Signature · 1 line
2.1.0
PATCH 12/13 uthash: add native extend
In reply to Andreas Müllerfontforge-native will require it
--- meta-oe/recipes-support/uthash/uthash_1.9.7.bb | 2 ++ 1 file changed, 2 insertions(+)
meta-oe/recipes-support/uthash/uthash_1.9.7.bb +2 -0
@@ -12,3 +12,5 @@ do_install () { install -dm755 ${D}${includedir} install -m 0644 ${S}/src/*.h ${D}${includedir} } + +BBCLASSEXTEND = "native"
Signature · 1 line
2.1.0
PATCH 13/13 fontforge: avoid cloning uthash during do_compile
In reply to Andreas Müller--- meta-oe/recipes-graphics/fontforge/fontforge_20150824.bb | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-)
meta-oe/recipes-graphics/fontforge/fontforge_20150824.bb +9 -2
@@ -6,7 +6,7 @@ LIC_FILES_CHKSUM = " \ file://LICENSE;md5=3f922b42ed0033fa0fd4cd3268f6429c \ " -DEPENDS = "glib-2.0 pango giflib tiff libxml2 jpeg python libtool" +DEPENDS = "glib-2.0 pango giflib tiff libxml2 jpeg python libtool uthash" DEPENDS_append_class-target = " libxi" inherit bootstrap pkgconfig pythonnative distro_features_check
@@ -20,7 +20,14 @@ S = "${WORKDIR}/git" EXTRA_OECONF_append_class-native = " with_x=no --disable-python-extension --disable-python-scripting" -EXTRA_OEMAKE = "CFLAGS='${CFLAGS} -I${B}/uthash/src'" +do_configure_prepend() { + # uthash sources are expected in uthash/src + currdir=`pwd` + cd ${S} + mkdir -p uthash/src + cp ${STAGING_INCDIR}/ut*.h uthash/src + cd $currdir +} PACKAGES =+ "${PN}-python-dbg ${PN}-python"
Signature · 1 line
2.1.0
Re: [PATCH 13/13] fontforge: avoid cloning uthash during do_compile
Quoted 19 lines · Andreas Müller
Signed-off-by Andreas Müller <[email protected]>--- meta-oe/recipes-graphics/fontforge/fontforge_20150824.bb | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-)meta-oe/recipes-graphics/fontforge/fontforge_20150824.bb +1
-1@@ -6,7 +6,7 @@ LIC_FILES_CHKSUM = " \ file://LICENSE;md5=3f922b42ed0033fa0fd4cd3268f6429c \ " -DEPENDS = "glib-2.0 pango giflib tiff libxml2 jpeg python libtool" +DEPENDS = "glib-2.0 pango giflib tiff libxml2 jpeg python libtool uthash" DEPENDS_append_class-target = " libxi" inherit bootstrap pkgconfig pythonnative distro_features_check
meta-oe/recipes-graphics/fontforge/fontforge_20150824.bb S = "${WORKDIR}/git" · line 28
Quoted 10 lines
meta-oe/recipes-graphics/fontforge/fontforge_20150824.bb +6
-1@@ -20,7 +20,14 @@ S = "${WORKDIR}/git" EXTRA_OECONF_append_class-native = " with_x=no --disable-python-extension --disable-python-scripting" -EXTRA_OEMAKE = "CFLAGS='${CFLAGS} -I${B}/uthash/src'" +do_configure_prepend() { + # uthash sources are expected in uthash/src + currdir=`pwd` + cd ${S} + mkdir -p uthash/src + cp ${STAGING_INCDIR}/ut*.h uthash/src
why not teach the component's build system to refer it from sysroot and avoid copying this.
Quoted 13 lines
meta-oe/recipes-graphics/fontforge/fontforge_20150824.bb +2
-1+ cd $currdir +} PACKAGES =+ "${PN}-python-dbg ${PN}-python" --2.1.0
--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel
Re: [PATCH 13/13] fontforge: avoid cloning uthash during do_compile
Quoted 24 lines · Khem Raj
Quoted 22 lines · Andreas Müller
Signed-off-by Andreas Müller <[email protected]>--- meta-oe/recipes-graphics/fontforge/fontforge_20150824.bb | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-)meta-oe/recipes-graphics/fontforge/fontforge_20150824.bb +1
-1@@ -6,7 +6,7 @@ LIC_FILES_CHKSUM = " \ file://LICENSE;md5=3f922b42ed0033fa0fd4cd3268f6429c \ " -DEPENDS = "glib-2.0 pango giflib tiff libxml2 jpeg python libtool" +DEPENDS = "glib-2.0 pango giflib tiff libxml2 jpeg python libtool uthash" DEPENDS_append_class-target = " libxi" inherit bootstrap pkgconfig pythonnative distro_features_check@@ -20,7 +20,14 @@ S = "${WORKDIR}/git" EXTRA_OECONF_append_class-native = " with_x=no --disable-python-extension --disable-python-scripting"
Quoted 10 lines
meta-oe/recipes-graphics/fontforge/fontforge_20150824.bb S = "${WORKDIR}/git" · line 28
Quoted 7 lines
meta-oe/recipes-graphics/fontforge/fontforge_20150824.bb +6
-1-EXTRA_OEMAKE = "CFLAGS='${CFLAGS} -I${B}/uthash/src'" +do_configure_prepend() { + # uthash sources are expected in uthash/src + currdir=`pwd` + cd ${S} + mkdir -p uthash/src + cp ${STAGING_INCDIR}/ut*.h uthash/srcwhy not teach the component's build system to refer it from sysroot and avoid copying this.
Simple answer: This solution is far more simple: Headers are exactly there where Makefile would put them by cloning. Have no idea how many files expect a fixed location for the uthash headers.
Andreas
Re: [PATCH 13/13] fontforge: avoid cloning uthash during do_compile
Quoted 35 lines · Andreas Müller
Quoted 24 lines · Khem Raj
Quoted 22 lines · Andreas Müller
Signed-off-by Andreas Müller <[email protected]>--- meta-oe/recipes-graphics/fontforge/fontforge_20150824.bb | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-)meta-oe/recipes-graphics/fontforge/fontforge_20150824.bb +1
-1@@ -6,7 +6,7 @@ LIC_FILES_CHKSUM = " \ file://LICENSE;md5=3f922b42ed0033fa0fd4cd3268f6429c \ " -DEPENDS = "glib-2.0 pango giflib tiff libxml2 jpeg python libtool" +DEPENDS = "glib-2.0 pango giflib tiff libxml2 jpeg python libtool uthash" DEPENDS_append_class-target = " libxi" inherit bootstrap pkgconfig pythonnative distro_features_check@@ -20,7 +20,14 @@ S = "${WORKDIR}/git" EXTRA_OECONF_append_class-native = " with_x=no --disable-python-extension --disable-python-scripting"Quoted 10 lines
meta-oe/recipes-graphics/fontforge/fontforge_20150824.bb S = "${WORKDIR}/git" · line 28
Quoted 7 lines
meta-oe/recipes-graphics/fontforge/fontforge_20150824.bb +6
-1-EXTRA_OEMAKE = "CFLAGS='${CFLAGS} -I${B}/uthash/src'" +do_configure_prepend() { + # uthash sources are expected in uthash/src + currdir=`pwd` + cd ${S} + mkdir -p uthash/src + cp ${STAGING_INCDIR}/ut*.h uthash/srcwhy not teach the component's build system to refer it from sysroot and avoid copying this.
Quoted 4 lines
Simple answer: This solution is far more simple: Headers are exactly there where
Makefilewould put them by cloning. Have no idea how many files expect a fixed location for the uthash headers.
whereever they are used in sources use #include <foo.h> and make sure that it respects -I$(STAGING_INCDIR) that should do it.
Quoted 6 lines
Andreas
--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel
Re: [PATCH 13/13] fontforge: avoid cloning uthash during do_compile
Quoted 37 lines · Khem Raj
Quoted 35 lines · Andreas Müller
Quoted 34 lines · Khem Raj
Quoted 19 lines · Andreas Müller
Signed-off-by Andreas Müller <[email protected]>--- meta-oe/recipes-graphics/fontforge/fontforge_20150824.bb | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-)meta-oe/recipes-graphics/fontforge/fontforge_20150824.bb +1
-1@@ -6,7 +6,7 @@ LIC_FILES_CHKSUM = " \ file://LICENSE;md5=3f922b42ed0033fa0fd4cd3268f6429c \ " -DEPENDS = "glib-2.0 pango giflib tiff libxml2 jpeg python libtool" +DEPENDS = "glib-2.0 pango giflib tiff libxml2 jpeg python libtool uthash" DEPENDS_append_class-target = " libxi" inherit bootstrap pkgconfig pythonnative distro_features_checkmeta-oe/recipes-graphics/fontforge/fontforge_20150824.bb S = "${WORKDIR}/git" · line 28
Quoted 10 lines
meta-oe/recipes-graphics/fontforge/fontforge_20150824.bb +6
-1@@ -20,7 +20,14 @@ S = "${WORKDIR}/git" EXTRA_OECONF_append_class-native = " with_x=no --disable-python-extension --disable-python-scripting" -EXTRA_OEMAKE = "CFLAGS='${CFLAGS} -I${B}/uthash/src'" +do_configure_prepend() { + # uthash sources are expected in uthash/src + currdir=`pwd` + cd ${S} + mkdir -p uthash/src + cp ${STAGING_INCDIR}/ut*.h uthash/srcwhy not teach the component's build system to refer it from sysroot and avoid copying this.
Quoted 8 lines
Quoted 4 lines
Simple answer: This solution is far more simple: Headers are exactly there where
Makefilewould put them by cloning. Have no idea how many files expect a fixed location for the uthash headers.whereever they are used in sources use #include <
foo.h> and make sure that it respects -I$(STAGING_INCDIR) that should do it.
I know for sure - but because of this is done by patches this might cause additional maintenance when updating to next version of fontforge. But let's stop this here - Seems important to you to fix an error which nobody has detected before in a very clean way so I will look into that and probably send V2.
Andreas
Re: [PATCH 13/13] fontforge: avoid cloning uthash during do_compile
Quoted 10 lines · Andreas Müller
Quoted 3 lines · Khem Raj
whereever they are used in sources use #include <
foo.h> and make sure that it respects -I$(STAGING_INCDIR) that should do it.I know for sure - but because of this is done by patches this might cause additional maintenance when updating to next version of fontforge. But let's stop this here - Seems important to you to fix an error which nobody has detected before in a very clean way so I will look into that and probably send V2.
I checked - it is even more simple: just avoiding git clone in Makefile by creating a fake directory - that's it. V2 will be send next week.
Andreas