Re: [oe] [PATCH 1/2] efivar: 0.7 -> 0.21

2015-10-09 Thread Martin Jansa
There is no gcc-native recipe.

On Fri, Oct 9, 2015 at 9:20 AM, Khem Raj  wrote:

>
> > On Oct 8, 2015, at 2:59 AM, Martin Jansa  wrote:
> >
> > On Tue, Sep 29, 2015 at 03:04:49PM +0800, kai.k...@windriver.com wrote:
> >> From: Kai Kang 
> >>
> >> Upgrade efivar from 0.7 to 0.21.
> >>
> >> * update HOMEPAGE and git repo.
> >> * add -native recipe to provide command makeguids
> >>  and add patch for target package to use this native makeguids command
> >
> > -native version is failing on hosts with older gcc (like Ubuntu 12.04
> > with 4.6*).
> >
> > http://errors.yoctoproject.org/Errors/Details/20231/
>
> may be use gcc-native ?
>
> >
> >>
> >> Signed-off-by: Kai Kang 
> >> ---
> >> .../efivar/0001-efivar-fix-for-cross-compile.patch | 31
> ++
> >> meta-oe/recipes-extended/efivar/efivar_0.21.bb | 28
> +++
> >> meta-oe/recipes-extended/efivar/efivar_git.bb  | 18 -
> >> 3 files changed, 59 insertions(+), 18 deletions(-)
> >> create mode 100644
> meta-oe/recipes-extended/efivar/efivar/0001-efivar-fix-for-cross-compile.patch
> >> create mode 100644 meta-oe/recipes-extended/efivar/efivar_0.21.bb
> >> delete mode 100644 meta-oe/recipes-extended/efivar/efivar_git.bb
> >>
> >> diff --git
> a/meta-oe/recipes-extended/efivar/efivar/0001-efivar-fix-for-cross-compile.patch
> b/meta-oe/recipes-extended/efivar/efivar/0001-efivar-fix-for-cross-compile.patch
> >> new file mode 100644
> >> index 000..4bd7d95
> >> --- /dev/null
> >> +++
> b/meta-oe/recipes-extended/efivar/efivar/0001-efivar-fix-for-cross-compile.patch
> >> @@ -0,0 +1,31 @@
> >> +From 7036e8b0dca61432970789e5397b6fb02b362c2b Mon Sep 17 00:00:00 2001
> >> +From: Kai Kang 
> >> +Date: Fri, 25 Sep 2015 18:14:31 +0800
> >> +Subject: [PATCH] efivar: fix for cross compile
> >> +
> >> +It builds and calls elf file makeguids to generate a header file which
> >> +doesn't work for cross compile. Fix it.
> >> +
> >> +Signed-off-by: Kai Kang 
> >> +---
> >> + src/Makefile | 4 ++--
> >> + 1 file changed, 2 insertions(+), 2 deletions(-)
> >> +
> >> +diff --git a/src/Makefile b/src/Makefile
> >> +index 6eac858..ef4eb1d 100644
> >> +--- a/src/Makefile
> >>  b/src/Makefile
> >> +@@ -65,8 +65,8 @@ makeguids.o : makeguids.c
> >> + makeguids : makeguids.o fakeguid.o
> >> +$(CC) $(cflags) -o $@ $^ -ldl
> >> +
> >> +-include/efivar/efivar-guids.h : makeguids guids.txt
> >> +-   ./makeguids guids.txt guids.bin names.bin guid-symbols.S $@
> >> ++include/efivar/efivar-guids.h : guids.txt
> >> ++   makeguids guids.txt guids.bin names.bin guid-symbols.S $@
> >> +
> >> + guidlist.o : guids.S include/efivar/efivar-guids.h
> >> +$(CC) $(cflags) -c -o guidlist.o guids.S
> >> +--
> >> +2.6.0.rc2.10.gf4d9753
> >> +
> >> diff --git a/meta-oe/recipes-extended/efivar/efivar_0.21.bb
> b/meta-oe/recipes-extended/efivar/efivar_0.21.bb
> >> new file mode 100644
> >> index 000..2e3b643
> >> --- /dev/null
> >> +++ b/meta-oe/recipes-extended/efivar/efivar_0.21.bb
> >> @@ -0,0 +1,28 @@
> >> +SUMMARY = "Tools to manipulate UEFI variables"
> >> +DESCRIPTION = "efivar provides a simple command line interface to the
> UEFI variable facility"
> >> +HOMEPAGE = "https://github.com/rhinstaller/efivar;
> >> +
> >> +LICENSE = "LGPLv2.1"
> >> +LIC_FILES_CHKSUM =
> "file://COPYING;md5=6626bb1e20189cfa95f2c508ba286393"
> >> +
> >> +DEPENDS_class-target = "popt efivar-native"
> >> +
> >> +SRCREV = "aab6c2a64d90b6e5a63661fb5bd6be8d878b0784"
> >> +SRC_URI = "git://github.com/rhinstaller/efivar.git"
> >> +SRC_URI_append_class-target = "
> file://0001-efivar-fix-for-cross-compile.patch"
> >> +
> >> +S = "${WORKDIR}/git"
> >> +
> >> +do_install() {
> >> +oe_runmake install DESTDIR=${D}
> >> +}
> >> +
> >> +do_compile_class-native() {
> >> +oe_runmake -C src makeguids
> >> +}
> >> +
> >> +do_install_class-native() {
> >> +install -D ${B}/src/makeguids ${D}${bindir}/makeguids
> >> +}
> >> +
> >> +BBCLASSEXTEND = "native"
> >> diff --git a/meta-oe/recipes-extended/efivar/efivar_git.bb
> b/meta-oe/recipes-extended/efivar/efivar_git.bb
> >> deleted file mode 100644
> >> index 18446a0..000
> >> --- a/meta-oe/recipes-extended/efivar/efivar_git.bb
> >> +++ /dev/null
> >> @@ -1,18 +0,0 @@
> >> -SUMMARY = "Tools to manipulate UEFI variables"
> >> -DESCRIPTION = "efivar provides a simple command line interface to the
> UEFI variable facility"
> >> -HOMEPAGE = "https://github.com/vathpela/efivar;
> >> -
> >> -LICENSE = "LGPLv2.1"
> >> -LIC_FILES_CHKSUM =
> "file://COPYING;md5=a6f89e2100d9b6cdffcea4f398e37343"
> >> -
> >> -DEPENDS = "popt"
> >> -
> >> -SRCREV = "c9e1f24a81b5374408bca5616402276e47171cf7"
> >> -PV = "0.7+git${SRCPV}"
> >> -SRC_URI = "git://github.com/vathpela/efivar.git"
> >> -
> >> -S = "${WORKDIR}/git"
> >> -
> >> -do_install() {
> >> -oe_runmake install DESTDIR=${D}
> >> -}
> >> --
> 

Re: [oe] [PATCH 1/2] efivar: 0.7 -> 0.21

2015-10-09 Thread Kang Kai

On 2015年10月09日 16:50, Martin Jansa wrote:

There is no gcc-native recipe.


There are 2 options that the old gcc can NOT recognize: 
'-Wmaybe-uninitialized' and '-std=gnu11'


I think we can drop them and use default value of option '-std=' only 
for native package.


It needs some tiny fixes for C99 mode:

| guid.h:34:2: error: 'for' loop initial declarations are only allowed 
in C99 mode


I'll send the V3 pull request if no objection.

Thanks,
Kai




On Fri, Oct 9, 2015 at 9:20 AM, Khem Raj  wrote:


On Oct 8, 2015, at 2:59 AM, Martin Jansa  wrote:

On Tue, Sep 29, 2015 at 03:04:49PM +0800, kai.k...@windriver.com wrote:

From: Kai Kang 

Upgrade efivar from 0.7 to 0.21.

* update HOMEPAGE and git repo.
* add -native recipe to provide command makeguids
  and add patch for target package to use this native makeguids command

-native version is failing on hosts with older gcc (like Ubuntu 12.04
with 4.6*).

http://errors.yoctoproject.org/Errors/Details/20231/

may be use gcc-native ?


Signed-off-by: Kai Kang 
---
.../efivar/0001-efivar-fix-for-cross-compile.patch | 31

++

meta-oe/recipes-extended/efivar/efivar_0.21.bb | 28

+++

meta-oe/recipes-extended/efivar/efivar_git.bb  | 18 -
3 files changed, 59 insertions(+), 18 deletions(-)
create mode 100644

meta-oe/recipes-extended/efivar/efivar/0001-efivar-fix-for-cross-compile.patch

create mode 100644 meta-oe/recipes-extended/efivar/efivar_0.21.bb
delete mode 100644 meta-oe/recipes-extended/efivar/efivar_git.bb

diff --git

a/meta-oe/recipes-extended/efivar/efivar/0001-efivar-fix-for-cross-compile.patch
b/meta-oe/recipes-extended/efivar/efivar/0001-efivar-fix-for-cross-compile.patch

new file mode 100644
index 000..4bd7d95
--- /dev/null
+++

b/meta-oe/recipes-extended/efivar/efivar/0001-efivar-fix-for-cross-compile.patch

@@ -0,0 +1,31 @@
+From 7036e8b0dca61432970789e5397b6fb02b362c2b Mon Sep 17 00:00:00 2001
+From: Kai Kang 
+Date: Fri, 25 Sep 2015 18:14:31 +0800
+Subject: [PATCH] efivar: fix for cross compile
+
+It builds and calls elf file makeguids to generate a header file which
+doesn't work for cross compile. Fix it.
+
+Signed-off-by: Kai Kang 
+---
+ src/Makefile | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/src/Makefile b/src/Makefile
+index 6eac858..ef4eb1d 100644
+--- a/src/Makefile
 b/src/Makefile
+@@ -65,8 +65,8 @@ makeguids.o : makeguids.c
+ makeguids : makeguids.o fakeguid.o
+$(CC) $(cflags) -o $@ $^ -ldl
+
+-include/efivar/efivar-guids.h : makeguids guids.txt
+-   ./makeguids guids.txt guids.bin names.bin guid-symbols.S $@
++include/efivar/efivar-guids.h : guids.txt
++   makeguids guids.txt guids.bin names.bin guid-symbols.S $@
+
+ guidlist.o : guids.S include/efivar/efivar-guids.h
+$(CC) $(cflags) -c -o guidlist.o guids.S
+--
+2.6.0.rc2.10.gf4d9753
+
diff --git a/meta-oe/recipes-extended/efivar/efivar_0.21.bb

b/meta-oe/recipes-extended/efivar/efivar_0.21.bb

new file mode 100644
index 000..2e3b643
--- /dev/null
+++ b/meta-oe/recipes-extended/efivar/efivar_0.21.bb
@@ -0,0 +1,28 @@
+SUMMARY = "Tools to manipulate UEFI variables"
+DESCRIPTION = "efivar provides a simple command line interface to the

UEFI variable facility"

+HOMEPAGE = "https://github.com/rhinstaller/efivar;
+
+LICENSE = "LGPLv2.1"
+LIC_FILES_CHKSUM =

"file://COPYING;md5=6626bb1e20189cfa95f2c508ba286393"

+
+DEPENDS_class-target = "popt efivar-native"
+
+SRCREV = "aab6c2a64d90b6e5a63661fb5bd6be8d878b0784"
+SRC_URI = "git://github.com/rhinstaller/efivar.git"
+SRC_URI_append_class-target = "

file://0001-efivar-fix-for-cross-compile.patch"

+
+S = "${WORKDIR}/git"
+
+do_install() {
+oe_runmake install DESTDIR=${D}
+}
+
+do_compile_class-native() {
+oe_runmake -C src makeguids
+}
+
+do_install_class-native() {
+install -D ${B}/src/makeguids ${D}${bindir}/makeguids
+}
+
+BBCLASSEXTEND = "native"
diff --git a/meta-oe/recipes-extended/efivar/efivar_git.bb

b/meta-oe/recipes-extended/efivar/efivar_git.bb

deleted file mode 100644
index 18446a0..000
--- a/meta-oe/recipes-extended/efivar/efivar_git.bb
+++ /dev/null
@@ -1,18 +0,0 @@
-SUMMARY = "Tools to manipulate UEFI variables"
-DESCRIPTION = "efivar provides a simple command line interface to the

UEFI variable facility"

-HOMEPAGE = "https://github.com/vathpela/efivar;
-
-LICENSE = "LGPLv2.1"
-LIC_FILES_CHKSUM =

"file://COPYING;md5=a6f89e2100d9b6cdffcea4f398e37343"

-
-DEPENDS = "popt"
-
-SRCREV = "c9e1f24a81b5374408bca5616402276e47171cf7"
-PV = "0.7+git${SRCPV}"
-SRC_URI = "git://github.com/vathpela/efivar.git"
-
-S = "${WORKDIR}/git"
-
-do_install() {
-oe_runmake install DESTDIR=${D}
-}
--
2.6.0.rc2.10.gf4d9753


--
Martin 'JaMa' Jansa jabber: martin.ja...@gmail.com
--
___
Openembedded-devel mailing list

Re: [oe] [PATCH 3/3 v2][meta-multimedia] rygel: Add recipe

2015-10-09 Thread Khem Raj

> On Oct 8, 2015, at 1:10 AM, Manuel Bachmann  wrote:
> 
> Rygel is a UPnP Audio-Video media server, that allows to
> share media files to other devices. It can also become a
> MediaRenderer controlled by UPnP or DLNA Controllers.
> 
> Rygel makes use of the GStreamer library to recognize and
> index media files. UPnp clients will then be able to browse
> through them with the aid of metadata (artist, date...).
> 
> We do not propose to build without GStreamer support
> (because then if cannot parse any actual media file, and
> this is pointless), and for the same reason always include
> the GStreamer engine in the main package ; but allow
> separate packages for plugins.
> 
> (disable tracker plugin for now, because it pulls 3 layers
> and needs us to have a PREFERRED udev provider, which is a
> bit extreme for a first version)
> 
> Signed-off-by: Manuel Bachmann 
> Author: Manuel Bachmann 
> Author: Ross Burton 
> ---
> .../recipes-connectivity/rygel/rygel_0.26.1.bb | 59 ++
> 1 file changed, 59 insertions(+)
> create mode 100644 meta-multimedia/recipes-connectivity/rygel/rygel_0.26.1.bb
> 
> diff --git a/meta-multimedia/recipes-connectivity/rygel/rygel_0.26.1.bb 
> b/meta-multimedia/recipes-connectivity/rygel/rygel_0.26.1.bb
> new file mode 100644
> index 000..3862b1e
> --- /dev/null
> +++ b/meta-multimedia/recipes-connectivity/rygel/rygel_0.26.1.bb
> @@ -0,0 +1,59 @@
> +SUMMARY = "A UPnP AV media server and renderer"
> +DESCRIPTION = "Rygel is a home media solution (UPnP AV MediaServer) that \
> +allow you to easily share audio, video and pictures to other devices. \
> +Additionally, media player software may use Rygel to become a MediaRenderer \
> +that may be controlled remotely by a UPnP or DLNA Controller."
> +HOMEPAGE = "http://live.gnome.org/Rygel;
> +
> +LICENSE = "LGPLv2+"
> +LIC_FILES_CHKSUM = "file://COPYING;md5=5f30f0716dfdd0d91eb439ebec522ec2 \
> +
> file://src/rygel/rygel-main.vala;endline=25;md5=a4cce4d389da1c1638fe68d07ae9d811"
> +
> +DEPENDS = "libxml2 glib-2.0 gssdp gupnp gupnp-av gupnp-dlna gstreamer1.0 
> gstreamer1.0-plugins-base ossp-uuid libgee libsoup-2.4 libmediaart-2.0"
> +RDEPENDS_${PN} = "gstreamer1.0-plugins-base-playback shared-mime-info"
> +
> +GNOME_COMPRESS_TYPE = “xz"

isn’t this default ?

> +SRC_URI[archive.md5sum] = "f182d54913a528bb5b4fb2f291aca0fc"
> +SRC_URI[archive.sha256sum] = 
> "390740609e34399b886ddb9a8f7eca25055ad72048dfdd869edf02999b1e1d8f"
> +
> +inherit gnomebase
> +
> +EXTRA_OECONF = "--disable-introspection --disable-tracker-plugin 
> --with-media-engine=gstreamer"
> +
> +PACKAGECONFIG ?= "external mpris mediathek ruih media-export gst-launch 
> gtk+3"
> +PACKAGECONFIG[external] = 
> "--enable-external-plugin,--disable-external-plugin"
> +PACKAGECONFIG[mpris] = "--enable-mpris-plugin,--disable-mpris-plugin"
> +PACKAGECONFIG[mediathek] = 
> "--enable-mediathek-plugin,--disable-mediathek-plugin"
> +PACKAGECONFIG[ruih] = "--enable-ruih-plugin,--disable-ruih-plugin"
> +PACKAGECONFIG[media-export] = 
> "--enable-media-export-plugin,--disable-media-export-plugin,sqlite3"
> +PACKAGECONFIG[gst-launch] = 
> "--enable-gst-launch-plugin,--disable-gst-launch-plugin"
> +PACKAGECONFIG[gtk+3] = ",--without-ui,gtk+3"
> +
> +LIBV = "2.6"
> +
> +do_install_append() {
> +   # Remove .la files for loadable modules
> +   rm -f ${D}/${libdir}/rygel-${LIBV}/engines/*.la
> +   rm -f ${D}/${libdir}/rygel-${LIBV}/plugins/*.la
> +}
> +
> +FILES_${PN} += "${libdir}/rygel-${LIBV}/engines ${datadir}/dbus-1 
> ${datadir}/icons"
> +FILES_${PN}-dev += "${datadir}/vala”

did you miss to add vala in DEPENDS ?

> +FILES_${PN}-dbg += "${libdir}/rygel-${LIBV}/engines/.debug 
> ${libdir}/rygel-${LIBV}/plugins/.debug"
> +
> +PACKAGES += "${PN}-meta"
> +ALLOW_EMPTY_${PN}-meta = "1"
> +
> +PACKAGES_DYNAMIC = "${PN}-plugin-*"
> +
> +python populate_packages_prepend () {
> +rygel_libdir = d.expand('${libdir}/rygel-${LIBV}')
> +postinst = d.getVar('plugin_postinst', True)
> +pkgs = []
> +
> +pkgs += do_split_packages(d, oe.path.join(rygel_libdir, "plugins"), 
> 'librygel-(.*)\.so$', d.expand('${PN}-plugin-%s'), 'Rygel plugin for %s', 
> postinst=postinst, extra_depends=d.expand('${PN}'))
> +pkgs += do_split_packages(d, oe.path.join(rygel_libdir, "plugins"), 
> '(.*)\.plugin$', d.expand('${PN}-plugin-%s'), 'Rygel plugin for %s', 
> postinst=postinst, extra_depends=d.expand('${PN}'))
> +
> +metapkg = d.getVar('PN', True) + '-meta'
> +d.setVar('RDEPENDS_' + metapkg, ' '.join(pkgs))
> +}
> --
> 1.8.3.1
> 
> --
> ___
> Openembedded-devel mailing list
> Openembedded-devel@lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/openembedded-devel



signature.asc
Description: Message signed with OpenPGP using GPGMail
-- 

[oe] [meta-oe][PATCH v2] meta-oe: recipes-graphics: add libvncserver recipe

2015-10-09 Thread Ioan-Adrian Ratiu
Signed-off-by: Ioan-Adrian Ratiu 
---
 .../libvncserver/libvncserver_0.9.10.bb   | 19 +++
 1 file changed, 19 insertions(+)
 create mode 100644 meta-oe/recipes-graphics/libvncserver/libvncserver_0.9.10.bb

diff --git a/meta-oe/recipes-graphics/libvncserver/libvncserver_0.9.10.bb 
b/meta-oe/recipes-graphics/libvncserver/libvncserver_0.9.10.bb
new file mode 100644
index 000..afa303c
--- /dev/null
+++ b/meta-oe/recipes-graphics/libvncserver/libvncserver_0.9.10.bb
@@ -0,0 +1,19 @@
+DESCRIPTION = "library for easy implementation of a RDP/VNC server"
+HOMEPAGE = "https://libvnc.github.io;
+SECTION = "libs"
+PRIORITY = "optional"
+LICENSE = "GPLv2"
+LIC_FILES_CHKSUM = "file://COPYING;md5=361b6b837cad26c6900a926b62aada5f"
+
+DEPENDS += "zlib jpeg libpng gtk+ libgcrypt nettle gnutls gmp"
+RDEPENDS_${PN} += "libpng gtk+ libgcrypt"
+
+RCONFLICTS_${PN} = "x11vnc"
+
+inherit autotools pkgconfig
+
+SRC_URI  = "git://github.com/LibVNC/libvncserver.git;tag=LibVNCServer-0.9.10"
+
+S = "${WORKDIR}/git"
+
+EXTRA_OEMAKE_append=" SUBDIRS='libvncserver' "
-- 
2.1.4

-- 
___
Openembedded-devel mailing list
Openembedded-devel@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-devel


Re: [oe] [PATCH 1/2] efivar: 0.7 -> 0.21

2015-10-09 Thread Khem Raj

> On Oct 8, 2015, at 2:59 AM, Martin Jansa  wrote:
> 
> On Tue, Sep 29, 2015 at 03:04:49PM +0800, kai.k...@windriver.com wrote:
>> From: Kai Kang 
>> 
>> Upgrade efivar from 0.7 to 0.21.
>> 
>> * update HOMEPAGE and git repo.
>> * add -native recipe to provide command makeguids
>>  and add patch for target package to use this native makeguids command
> 
> -native version is failing on hosts with older gcc (like Ubuntu 12.04
> with 4.6*).
> 
> http://errors.yoctoproject.org/Errors/Details/20231/

may be use gcc-native ?

> 
>> 
>> Signed-off-by: Kai Kang 
>> ---
>> .../efivar/0001-efivar-fix-for-cross-compile.patch | 31 
>> ++
>> meta-oe/recipes-extended/efivar/efivar_0.21.bb | 28 +++
>> meta-oe/recipes-extended/efivar/efivar_git.bb  | 18 -
>> 3 files changed, 59 insertions(+), 18 deletions(-)
>> create mode 100644 
>> meta-oe/recipes-extended/efivar/efivar/0001-efivar-fix-for-cross-compile.patch
>> create mode 100644 meta-oe/recipes-extended/efivar/efivar_0.21.bb
>> delete mode 100644 meta-oe/recipes-extended/efivar/efivar_git.bb
>> 
>> diff --git 
>> a/meta-oe/recipes-extended/efivar/efivar/0001-efivar-fix-for-cross-compile.patch
>>  
>> b/meta-oe/recipes-extended/efivar/efivar/0001-efivar-fix-for-cross-compile.patch
>> new file mode 100644
>> index 000..4bd7d95
>> --- /dev/null
>> +++ 
>> b/meta-oe/recipes-extended/efivar/efivar/0001-efivar-fix-for-cross-compile.patch
>> @@ -0,0 +1,31 @@
>> +From 7036e8b0dca61432970789e5397b6fb02b362c2b Mon Sep 17 00:00:00 2001
>> +From: Kai Kang 
>> +Date: Fri, 25 Sep 2015 18:14:31 +0800
>> +Subject: [PATCH] efivar: fix for cross compile
>> +
>> +It builds and calls elf file makeguids to generate a header file which
>> +doesn't work for cross compile. Fix it.
>> +
>> +Signed-off-by: Kai Kang 
>> +---
>> + src/Makefile | 4 ++--
>> + 1 file changed, 2 insertions(+), 2 deletions(-)
>> +
>> +diff --git a/src/Makefile b/src/Makefile
>> +index 6eac858..ef4eb1d 100644
>> +--- a/src/Makefile
>>  b/src/Makefile
>> +@@ -65,8 +65,8 @@ makeguids.o : makeguids.c
>> + makeguids : makeguids.o fakeguid.o
>> +$(CC) $(cflags) -o $@ $^ -ldl
>> +
>> +-include/efivar/efivar-guids.h : makeguids guids.txt
>> +-   ./makeguids guids.txt guids.bin names.bin guid-symbols.S $@
>> ++include/efivar/efivar-guids.h : guids.txt
>> ++   makeguids guids.txt guids.bin names.bin guid-symbols.S $@
>> +
>> + guidlist.o : guids.S include/efivar/efivar-guids.h
>> +$(CC) $(cflags) -c -o guidlist.o guids.S
>> +--
>> +2.6.0.rc2.10.gf4d9753
>> +
>> diff --git a/meta-oe/recipes-extended/efivar/efivar_0.21.bb 
>> b/meta-oe/recipes-extended/efivar/efivar_0.21.bb
>> new file mode 100644
>> index 000..2e3b643
>> --- /dev/null
>> +++ b/meta-oe/recipes-extended/efivar/efivar_0.21.bb
>> @@ -0,0 +1,28 @@
>> +SUMMARY = "Tools to manipulate UEFI variables"
>> +DESCRIPTION = "efivar provides a simple command line interface to the UEFI 
>> variable facility"
>> +HOMEPAGE = "https://github.com/rhinstaller/efivar;
>> +
>> +LICENSE = "LGPLv2.1"
>> +LIC_FILES_CHKSUM = "file://COPYING;md5=6626bb1e20189cfa95f2c508ba286393"
>> +
>> +DEPENDS_class-target = "popt efivar-native"
>> +
>> +SRCREV = "aab6c2a64d90b6e5a63661fb5bd6be8d878b0784"
>> +SRC_URI = "git://github.com/rhinstaller/efivar.git"
>> +SRC_URI_append_class-target = " 
>> file://0001-efivar-fix-for-cross-compile.patch"
>> +
>> +S = "${WORKDIR}/git"
>> +
>> +do_install() {
>> +oe_runmake install DESTDIR=${D}
>> +}
>> +
>> +do_compile_class-native() {
>> +oe_runmake -C src makeguids
>> +}
>> +
>> +do_install_class-native() {
>> +install -D ${B}/src/makeguids ${D}${bindir}/makeguids
>> +}
>> +
>> +BBCLASSEXTEND = "native"
>> diff --git a/meta-oe/recipes-extended/efivar/efivar_git.bb 
>> b/meta-oe/recipes-extended/efivar/efivar_git.bb
>> deleted file mode 100644
>> index 18446a0..000
>> --- a/meta-oe/recipes-extended/efivar/efivar_git.bb
>> +++ /dev/null
>> @@ -1,18 +0,0 @@
>> -SUMMARY = "Tools to manipulate UEFI variables"
>> -DESCRIPTION = "efivar provides a simple command line interface to the UEFI 
>> variable facility"
>> -HOMEPAGE = "https://github.com/vathpela/efivar;
>> -
>> -LICENSE = "LGPLv2.1"
>> -LIC_FILES_CHKSUM = "file://COPYING;md5=a6f89e2100d9b6cdffcea4f398e37343"
>> -
>> -DEPENDS = "popt"
>> -
>> -SRCREV = "c9e1f24a81b5374408bca5616402276e47171cf7"
>> -PV = "0.7+git${SRCPV}"
>> -SRC_URI = "git://github.com/vathpela/efivar.git"
>> -
>> -S = "${WORKDIR}/git"
>> -
>> -do_install() {
>> -oe_runmake install DESTDIR=${D}
>> -}
>> --
>> 2.6.0.rc2.10.gf4d9753
>> 
> 
> --
> Martin 'JaMa' Jansa jabber: martin.ja...@gmail.com
> --
> ___
> Openembedded-devel mailing list
> Openembedded-devel@lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/openembedded-devel



signature.asc
Description: 

Re: [oe] [meta-oe][PATCH] iptraf: add new recipe

2015-10-09 Thread Khem Raj

> On Oct 8, 2015, at 12:58 AM, Li xin  wrote:
> 
> From: Li Xin 
> 
> IPTraf is a console-based network statistics utility for Linux.
> 
> Signed-off-by: Li Xin 
> ---
> .../0001-src-Fix-error-in-cross-compile.patch  | 138 +
> meta-oe/recipes-devtools/iptraf/iptraf_3.0.0.bb|  33 +
> 2 files changed, 171 insertions(+)
> create mode 100644 
> meta-oe/recipes-devtools/iptraf/iptraf/0001-src-Fix-error-in-cross-compile.patch
> create mode 100644 meta-oe/recipes-devtools/iptraf/iptraf_3.0.0.bb
> 
> diff --git 
> a/meta-oe/recipes-devtools/iptraf/iptraf/0001-src-Fix-error-in-cross-compile.patch
>  
> b/meta-oe/recipes-devtools/iptraf/iptraf/0001-src-Fix-error-in-cross-compile.patch
> new file mode 100644
> index 000..291ed31
> --- /dev/null
> +++ 
> b/meta-oe/recipes-devtools/iptraf/iptraf/0001-src-Fix-error-in-cross-compile.patch
> @@ -0,0 +1,138 @@
> +From 27910ea19260b7f7a3f9c0465addd1dea80cf3bd Mon Sep 17 00:00:00 2001
> +From: Li Xin 
> +Date: Thu, 8 Oct 2015 15:11:17 +0900
> +Subject: [PATCH] src: Fix error in cross-compile
> +
> +The errors are like this:
> +tcptable.h:26:25: fatal error: linux/if_tr.h: No such file or directory
> +ld: cannot find -ltextbox
> +
> +Upstream-Status: pending
> +
> +Signed-off-by: Li Xin 
> +---
> + src/Makefile | 2 +-
> + src/hostmon.c| 2 +-
> + src/install.sh   | 4 ++--
> + src/othptab.c| 2 +-
> + src/packet.c | 2 +-
> + src/tcptable.h   | 2 +-
> + src/tr.c | 2 +-
> + support/Makefile | 3 +--
> + 8 files changed, 9 insertions(+), 10 deletions(-)
> +
> +diff --git a/src/Makefile b/src/Makefile
> +index 2043c2d..0f77bea 100644
> +--- a/src/Makefile
>  b/src/Makefile
> +@@ -39,7 +39,7 @@ LDOPTS = #-static
> + # you may want to change this to point to your ncurses include directory
> + # if the ncurses include files are not in the default location.
> +
> +-INCLUDEDIR  = -I/usr/include/ncurses -I../support
> ++INCLUDEDIR  =  -I../support
> +
> + # You can uncomment this one to disable the backspace key in input fields.
> + # This means you must use the Del key or Ctrl+H combination to erase the
> +diff --git a/src/hostmon.c b/src/hostmon.c
> +index 14df2c8..6571562 100644
> +--- a/src/hostmon.c
>  b/src/hostmon.c
> +@@ -31,7 +31,7 @@ details.
> + #include 
> + #include 
> + #include 
> +-#include 
> ++#include 
> + #include 
> + #include 
> + #include 
> +diff --git a/src/install.sh b/src/install.sh
> +index d2fd360..36d3516 100755
> +--- a/src/install.sh
>  b/src/install.sh
> +@@ -23,9 +23,9 @@ echo
> + echo "*** Installing executable programs and preparing work directories"
> + echo
> + echo ">>> Installing iptraf in $TARGET"
> +-$INSTALL -m 0700 -o root -g root -s iptraf $TARGET
> ++$INSTALL -m 0700 -o root -g root  iptraf $TARGET
> + echo ">>> Installing rvnamed in $TARGET"
> +-$INSTALL -m 0700 -o root -g root -s rvnamed $TARGET
> ++$INSTALL -m 0700 -o root -g root  rvnamed $TARGET
> +
> + if [ ! -d $WORKDIR ]; then
> + echo ">>> Creating IPTraf work directory $WORKDIR"
> +diff --git a/src/othptab.c b/src/othptab.c
> +index 97771d1..a8bb536 100644
> +--- a/src/othptab.c
>  b/src/othptab.c
> +@@ -18,7 +18,7 @@ details.
> +
> + #include 
> + #include 
> +-#include 
> ++#include 
> + #include 
> + #include 
> + #include "arphdr.h"
> +diff --git a/src/packet.c b/src/packet.c
> +index 33fdf2a..1e2b81b 100644
> +--- a/src/packet.c
>  b/src/packet.c
> +@@ -36,7 +36,7 @@ details.
> + #include 
> + #include 
> + #include 
> +-#include 
> ++#include 
> + #include 
> + #include 
> + #include 
> +diff --git a/src/tcptable.h b/src/tcptable.h
> +index 3e17793..d1380b5 100644
> +--- a/src/tcptable.h
>  b/src/tcptable.h
> +@@ -23,7 +23,7 @@
> + #include 
> + #include 
> + #include 
> +-#include 
> ++#include 
> + #include 
> + #include 
> + #include 
> +diff --git a/src/tr.c b/src/tr.c
> +index 40c9e63..11f8045 100644
> +--- a/src/tr.c
>  b/src/tr.c
> +@@ -7,7 +7,7 @@
> +  */
> +
> + #include 
> +-#include 
> ++#include 
> + #include 
> +
> + unsigned int get_tr_ip_offset(unsigned char *pkt)
> +diff --git a/support/Makefile b/support/Makefile
> +index 114bfc3..c962c09 100644
> +--- a/support/Makefile
>  b/support/Makefile
> +@@ -1,4 +1,3 @@
> +-INCLUDEDIR  = -I/usr/include/ncurses
> +
> + OBJS= input.o menurt.o listbox.o winops.o labels.o \
> + msgboxes.o txbox.o
> +@@ -12,7 +11,7 @@ libtextbox.a: $(OBJS)
> + #   gcc -shared -o libtextbox.so $(OBJS)
> +
> + %.o: %.c *.h
> +-gcc -O2 -g -Wall -fPIC $(INCLUDEDIR) -c -o $*.o $<
> ++${CC} -O2 -g -Wall -fPIC  -c -o $*.o $<
> +
> + clean:
> + rm -rf *.o *~ libtextbox.a libtextbox.so
> +--
> +1.8.4.2
> +
> diff --git a/meta-oe/recipes-devtools/iptraf/iptraf_3.0.0.bb 
> b/meta-oe/recipes-devtools/iptraf/iptraf_3.0.0.bb
> new file mode 

Re: [oe] [meta-networking][PATCH] netmap-modules: fix compilation failure

2015-10-09 Thread ChenQi

On 10/08/2015 04:33 PM, akuster808 wrote:

Chen Qi,


On 10/07/2015 10:02 PM, Chen Qi wrote:

If CONFIG_IXGBE is enabled in kernel. This package fails to build with
error messages like below.

|  #error "unsupported ixgbe driver version"
|   ^

...

error: request for member 'count' in something not a structure or union
|   na.num_rx_desc = NM_IXGBE_RX_RING(adapter, 0)->count;
|^
| cc1: some warnings being treated as errors

Fix this problem by disabling igxbe driver in netmap-modules.

Signed-off-by: Chen Qi 
---
  meta-networking/recipes-kernel/netmap/netmap-modules_git.bb | 2 ++
  1 file changed, 2 insertions(+)

diff --git a/meta-networking/recipes-kernel/netmap/netmap-modules_git.bb 
b/meta-networking/recipes-kernel/netmap/netmap-modules_git.bb
index f9ac9cc..c1c319d 100644
--- a/meta-networking/recipes-kernel/netmap/netmap-modules_git.bb
+++ b/meta-networking/recipes-kernel/netmap/netmap-modules_git.bb
@@ -15,6 +15,8 @@ EXTRA_OECONF = "--kernel-dir=${STAGING_KERNEL_BUILDDIR} \
  --driver-suffix="-netmap" \
  "
  
+EXTRA_OECONF += "--no-drivers=ixgbe"

+

Would the following also work?

+PACKAGECONFIG ?= ""
+PACKAGECONFIG[IXGBE] = "--drivers=ixgbe,--no-drivers=ixgbe"

Then we replicate that for the other kernel modules.

- armin


The problem is that if 'IXGBE' is enabled, the compilation fails.
I tried three values for the macro, none of them works.

Best Regards,
Chen Qi


  LDFLAGS := "${@'${LDFLAGS}'.replace('-Wl,-O1', '')}"
  LDFLAGS := "${@'${LDFLAGS}'.replace('-Wl,--as-needed', '')}"
  





--
___
Openembedded-devel mailing list
Openembedded-devel@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-devel


[oe] [PATCH 1/2] efivar: 0.7 -> 0.21

2015-10-09 Thread kai.kang
From: Kai Kang 

Upgrade efivar from 0.7 to 0.21.

* update HOMEPAGE and git repo.
* update license file checksum. It made FSF addresses in COPYING be URLs.
  Ref: https://github.com/rhinstaller/efivar/commit/ca88012
* add -native recipe to provide command makeguids
  and add patch for target package to use this native makeguids command
* add patch to build efivar-native with lower version gcc which doesn't
  support options '-Wmaybe-uninitialized' and '-std=gnu11'

Signed-off-by: Kai Kang 
---
 .../efivar/0001-efivar-fix-for-cross-compile.patch | 31 ++
 ...ptions-not-supported-by-lower-version-gcc.patch | 71 ++
 .../efivar/{efivar_git.bb => efivar_0.21.bb}   | 23 +--
 3 files changed, 119 insertions(+), 6 deletions(-)
 create mode 100644 
meta-oe/recipes-extended/efivar/efivar/0001-efivar-fix-for-cross-compile.patch
 create mode 100644 
meta-oe/recipes-extended/efivar/efivar/efivar-drop-options-not-supported-by-lower-version-gcc.patch
 rename meta-oe/recipes-extended/efivar/{efivar_git.bb => efivar_0.21.bb} (27%)

diff --git 
a/meta-oe/recipes-extended/efivar/efivar/0001-efivar-fix-for-cross-compile.patch
 
b/meta-oe/recipes-extended/efivar/efivar/0001-efivar-fix-for-cross-compile.patch
new file mode 100644
index 000..4bd7d95
--- /dev/null
+++ 
b/meta-oe/recipes-extended/efivar/efivar/0001-efivar-fix-for-cross-compile.patch
@@ -0,0 +1,31 @@
+From 7036e8b0dca61432970789e5397b6fb02b362c2b Mon Sep 17 00:00:00 2001
+From: Kai Kang 
+Date: Fri, 25 Sep 2015 18:14:31 +0800
+Subject: [PATCH] efivar: fix for cross compile
+
+It builds and calls elf file makeguids to generate a header file which
+doesn't work for cross compile. Fix it.
+
+Signed-off-by: Kai Kang 
+---
+ src/Makefile | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/src/Makefile b/src/Makefile
+index 6eac858..ef4eb1d 100644
+--- a/src/Makefile
 b/src/Makefile
+@@ -65,8 +65,8 @@ makeguids.o : makeguids.c
+ makeguids : makeguids.o fakeguid.o
+   $(CC) $(cflags) -o $@ $^ -ldl
+ 
+-include/efivar/efivar-guids.h : makeguids guids.txt
+-  ./makeguids guids.txt guids.bin names.bin guid-symbols.S $@
++include/efivar/efivar-guids.h : guids.txt
++  makeguids guids.txt guids.bin names.bin guid-symbols.S $@
+ 
+ guidlist.o : guids.S include/efivar/efivar-guids.h
+   $(CC) $(cflags) -c -o guidlist.o guids.S
+-- 
+2.6.0.rc2.10.gf4d9753
+
diff --git 
a/meta-oe/recipes-extended/efivar/efivar/efivar-drop-options-not-supported-by-lower-version-gcc.patch
 
b/meta-oe/recipes-extended/efivar/efivar/efivar-drop-options-not-supported-by-lower-version-gcc.patch
new file mode 100644
index 000..7f04b19
--- /dev/null
+++ 
b/meta-oe/recipes-extended/efivar/efivar/efivar-drop-options-not-supported-by-lower-version-gcc.patch
@@ -0,0 +1,71 @@
+gcc options '-Wmaybe-uninitialized' and '-std=gnu11' are not recognized by gcc
+whose version is lower than 4.6, such as on Ubuntu 12.04. Drop them for 
backward
+compatible.
+
+Upstream-Status: Pending
+
+Signed-off-by: Kai Kang 
+---
+diff --git a/Make.defaults b/Make.defaults
+index cc2baa9..118ae56 100644
+--- a/Make.defaults
 b/Make.defaults
+@@ -10,10 +10,9 @@ CFLAGS  ?= -O2 -g
+ 
+ ARCH = $(shell uname -m)
+ clang_cflags =
+-gcc_cflags = -Wmaybe-uninitialized
+ cflags:= $(CFLAGS) \
+   -Werror -Wall -Wsign-compare -Wstrict-aliasing \
+-  -std=gnu11 -fshort-wchar -fPIC \
++  -fshort-wchar -fPIC \
+   -fvisibility=hidden \
+   -D_GNU_SOURCE -I${TOPDIR}/src/include/efivar/ \
+   $(if $(filter $(CC),clang),$(clang_cflags),) \
+diff --git a/src/guid.h b/src/guid.h
+index 9542ee1..0817991 100644
+--- a/src/guid.h
 b/src/guid.h
+@@ -31,7 +31,8 @@ static inline int
+ real_isspace(char c)
+ {
+   char spaces[] = " \f\n\r\t\v";
+-  for (int i = 0; spaces[i] != '\0'; i++)
++  int i;
++  for (i = 0; spaces[i] != '\0'; i++)
+   if (c == spaces[i])
+   return 1;
+   return 0;
+@@ -59,7 +60,8 @@ check_sanity(const char *text, size_t len)
+ static inline int
+ check_segment_sanity(const char *text, size_t len)
+ {
+-  for(unsigned int i = 0; i < len; i++) {
++  unsigned int i;
++  for(i = 0; i < len; i++) {
+   if (text[i] >= '0' && text[i] <= '9')
+   continue;
+   /* "| 0x20" is tolower() without having to worry about
+diff --git a/src/makeguids.c b/src/makeguids.c
+index e9acf15..7e16cb2 100644
+--- a/src/makeguids.c
 b/src/makeguids.c
+@@ -150,7 +150,8 @@ main(int argc, char *argv[])
+ 
+   fprintf(header, "#ifndef EFIVAR_GUIDS_H\n#define EFIVAR_GUIDS_H 1\n\n");
+ 
+-  for (unsigned int i = 0; i < line-1; i++) {
++  unsigned int i, j;
++  for (i = 0; i < line-1; i++) {
+   if (!strcmp(outbuf[i].symbol, "efi_guid_zero"))
+   fprintf(symout, 

[oe] [PATCH 2/2] efibootmgr: 0.6.0 -> 0.12

2015-10-09 Thread kai.kang
From: Kai Kang 

Upgrade efibootmgr from 0.6.0 to 0.12.

* update HOMEPAGE
* drop obsolete patches that source files have been removed
* add dependency efivar
* update CFLAGS to fix print wrong version issue

Signed-off-by: Kai Kang 
---
 .../{efibootmgr_0.6.0.bb => efibootmgr_0.12.bb}| 21 
 .../efibootmgr/files/docbook-fixes.patch   | 28 --
 .../files/w-keep-existing-mbr-signature.patch  | 26 
 3 files changed, 11 insertions(+), 64 deletions(-)
 rename meta-oe/recipes-extended/efibootmgr/{efibootmgr_0.6.0.bb => 
efibootmgr_0.12.bb} (39%)
 delete mode 100644 
meta-oe/recipes-extended/efibootmgr/files/docbook-fixes.patch
 delete mode 100644 
meta-oe/recipes-extended/efibootmgr/files/w-keep-existing-mbr-signature.patch

diff --git a/meta-oe/recipes-extended/efibootmgr/efibootmgr_0.6.0.bb 
b/meta-oe/recipes-extended/efibootmgr/efibootmgr_0.12.bb
similarity index 39%
rename from meta-oe/recipes-extended/efibootmgr/efibootmgr_0.6.0.bb
rename to meta-oe/recipes-extended/efibootmgr/efibootmgr_0.12.bb
index 501ff2a..03aaf13 100644
--- a/meta-oe/recipes-extended/efibootmgr/efibootmgr_0.6.0.bb
+++ b/meta-oe/recipes-extended/efibootmgr/efibootmgr_0.12.bb
@@ -1,26 +1,27 @@
 DESCRIPTION = "Linux user-space application to modify the EFI Boot Manager."
 SUMMARY = "EFI Boot Manager"
-HOMEPAGE = "http://linux.dell.com/efibootmgr/;
+HOMEPAGE = "https://github.com/rhinstaller/efibootmgr;
 SECTION = "base"
 
 LICENSE = "GPLv2+"
 LIC_FILES_CHKSUM = "file://COPYING;md5=0636e73ff0215e8d672dc4c32c317bb3"
 
-DEPENDS = "pciutils zlib"
+DEPENDS = "pciutils zlib efivar"
 
 COMPATIBLE_HOST = "(i.86|x86_64|arm|aarch64).*-linux"
 
-SRC_URI = "http://linux.dell.com/efibootmgr/permalink/efibootmgr-${PV}.tar.gz \
-file://ldflags.patch \
-file://docbook-fixes.patch \
-file://w-keep-existing-mbr-signature.patch \
-"
+SRC_URI = 
"https://github.com/rhinstaller/efibootmgr/releases/download/${BP}/${BP}.tar.bz2
 \
+   file://ldflags.patch \
+  "
 
-SRC_URI[md5sum] = "9e9a31d79e579644de83a14139b66d10"
-SRC_URI[sha256sum] = 
"5167488b92950e60028d1025942ce6bda04638c6fb5e110abb8c8f687844d155"
+SRC_URI[md5sum] = "6647f5cd807bc8484135ba74fcbcc39a"
+SRC_URI[sha256sum] = 
"a66f5850677e86255d93cb1cead04c3c48a823a2b864c579321f2a07f00256e6"
 
-EXTRA_OEMAKE = "'CC=${CC}' 'CFLAGS=${CFLAGS} -I${S}/src/lib -I${S}/src/include 
-fgnu89-inline'"
+EXTRA_OEMAKE = "'CC=${CC}' 'CFLAGS=${CFLAGS} -I${S}/src/include `pkg-config 
--cflags efivar` \
+ -DEFIBOOTMGR_VERSION=\"$(RELEASE_MAJOR).$(RELEASE_MINOR)\" '"
 
 do_install () {
 install -D -p -m0755 src/efibootmgr/efibootmgr ${D}/${sbindir}/efibootmgr
 }
+
+inherit pkgconfig
diff --git a/meta-oe/recipes-extended/efibootmgr/files/docbook-fixes.patch 
b/meta-oe/recipes-extended/efibootmgr/files/docbook-fixes.patch
deleted file mode 100644
index f2dc83b..000
--- a/meta-oe/recipes-extended/efibootmgr/files/docbook-fixes.patch
+++ /dev/null
@@ -1,28 +0,0 @@
-Upstream-Status: Pending
-
-Import this patch from meta-linaro.
-
-Signed-off-by: Kai Kang 
-
-diff --git a/src/man/man8/efibootmgr.8.docbook 
b/src/man/man8/efibootmgr.8.docbook
-index aef..eb8f266 100644
 a/src/man/man8/efibootmgr.8.docbook
-+++ b/src/man/man8/efibootmgr.8.docbook
-@@ -302,7 +302,7 @@
-   Displaying the current settings (must be root).
-   
-   
--
-+
-   [root@localhost ~]# efibootmgr
-   BootCurrent: 0004
-   BootNext: 0003
-@@ -313,7 +313,7 @@
-   Boot0002* Hard Drive(Device:80)/HD(Part1,Sig00112233)   
-   Boot0003* PXE Boot: MAC(00D0B7C15D91)   
-   Boot0004* Linux
--
-+
-   
-   This shows:
-   
diff --git 
a/meta-oe/recipes-extended/efibootmgr/files/w-keep-existing-mbr-signature.patch 
b/meta-oe/recipes-extended/efibootmgr/files/w-keep-existing-mbr-signature.patch
deleted file mode 100644
index 58bd135..000
--- 
a/meta-oe/recipes-extended/efibootmgr/files/w-keep-existing-mbr-signature.patch
+++ /dev/null
@@ -1,26 +0,0 @@
-Upstream-Status: Pending
-
-Import this patch from meta-linaro.
-
-Signed-off-by: Kai Kang 

-Description: Fix -w option to leave an existing unique MBR signature intact
- This makes the implementation match the documentation.
-Author: Colin Watson 
-Bug-Ubuntu: https://bugs.launchpad.net/bugs/1065261
-Forwarded: no
-Last-Update: 2013-02-01
-
-Index: b/src/lib/disk.c
-===
 a/src/lib/disk.c
-+++ b/src/lib/disk.c
-@@ -352,7 +352,7 @@
-   
printf("**\n\n");
-   
-   }
--  else if (opts.write_signature) {
-+  else if (!mbr->unique_mbr_signature && opts.write_signature) {
-   
-   /* MBR 

[oe] [PATCH 0/2] V3: Upgrade efivar and efibootmgr

2015-10-09 Thread kai.kang
From: Kai Kang 

V3:
* add patch to drop 2 gcc options for efivar-native which may NOT recognized by 
old gcc

Built for qemux86-64 and qemuarm on Ubuntu 12.04/14.04, Fedora 20.

And it fails to build with gcc 4.8 & 4.9:

| linux.c: In function 'make_mac_path':
| linux.c:850:9: error: missing braces around initializer 
[-Werror=missing-braces]
|   struct ifreq ifr = { 0, };
|  ^
| linux.c:850:9: error: (near initialization for 'ifr.ifr_ifrn') 
[-Werror=missing-braces]
| cc1: all warnings being treated as errors

It is a knonw issue of gcc and I'll send a patch to oe-core to fix it.

Ref:
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=53119

Kai Kang (2):
  efivar: 0.7 -> 0.21
  efibootmgr: 0.6.0 -> 0.12

 .../{efibootmgr_0.6.0.bb => efibootmgr_0.12.bb}| 21 ---
 .../efibootmgr/files/docbook-fixes.patch   | 28 -
 .../files/w-keep-existing-mbr-signature.patch  | 26 
 .../efivar/0001-efivar-fix-for-cross-compile.patch | 31 ++
 ...ptions-not-supported-by-lower-version-gcc.patch | 71 ++
 .../efivar/{efivar_git.bb => efivar_0.21.bb}   | 23 +--
 6 files changed, 130 insertions(+), 70 deletions(-)
 rename meta-oe/recipes-extended/efibootmgr/{efibootmgr_0.6.0.bb => 
efibootmgr_0.12.bb} (39%)
 delete mode 100644 
meta-oe/recipes-extended/efibootmgr/files/docbook-fixes.patch
 delete mode 100644 
meta-oe/recipes-extended/efibootmgr/files/w-keep-existing-mbr-signature.patch
 create mode 100644 
meta-oe/recipes-extended/efivar/efivar/0001-efivar-fix-for-cross-compile.patch
 create mode 100644 
meta-oe/recipes-extended/efivar/efivar/efivar-drop-options-not-supported-by-lower-version-gcc.patch
 rename meta-oe/recipes-extended/efivar/{efivar_git.bb => efivar_0.21.bb} (27%)

-- 
2.6.0.rc2.10.gf4d9753

-- 
___
Openembedded-devel mailing list
Openembedded-devel@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-devel


Re: [oe] [OE-core] State of bitbake world, Failed tasks 2015-10-02

2015-10-09 Thread Khem Raj
On Fri, Oct 9, 2015 at 8:19 AM, Martin Jansa  wrote:
> On Mon, Oct 05, 2015 at 03:40:39PM +0100, Burton, Ross wrote:
>> On 3 October 2015 at 14:33, Martin Jansa  wrote:
>>
>> > * /openembedded-core/meta/recipes-gnome/libsecret/libsecret_0.18.2.bb,
>> > do_compile
>> >
>>
>> This fails with a giant number of assembler warnings, but works when I try
>> with current master.  Does your build change some tunes?
>
> Yes, it's caused by thumb(1).
>
> I thought it's caused by upgrade to gcc-5.2, but
> ARM_INSTRUCTION_SET = "arm"
> was removed by Alexander when importing libsecret from meta-oe to
> oe-core, without even mentioning it in commit message :/.
>
> The same with webkitgtk now failing to build for thumb.. old webkit-gtk
> already had ARM_INSTRUCTION_SET which was silently removed.
>
> I'll stop accepting recipe removals in meta-oe layers for recipes moved
> to oe-core unless the submitter proves that they weren't modified/broken
> in the process. I hate overlayed/duplicated recipes, but breaking them
> is even worse.
>

agreed. I think it would improve the migration process. Deletion
should be sent after it have been moved
and verified that functionality is not regressing.

> Regards,
>
> --
> Martin 'JaMa' Jansa jabber: martin.ja...@gmail.com
>
> --
> ___
> Openembedded-core mailing list
> openembedded-c...@lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/openembedded-core
>
-- 
___
Openembedded-devel mailing list
Openembedded-devel@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-devel


Re: [oe] [PATCH 1/2] efivar: 0.7 -> 0.21

2015-10-09 Thread Khem Raj
On Fri, Oct 9, 2015 at 8:26 AM, Martin Jansa  wrote:
> I could use one for your internal projects, but this efi recipe is first
> one in world which cannot be built with 4.6 (At least first I know about).
>
> In some recipes it was relatively easy to disable (e.g. efl, elementary
> need --disable-cxx-bindings if you build native version with gcc which
> doesn't support -std=gnu++11).

Soon there will be more as we upgrade autoconf/automake to whatever next
version is going to be, there its going to default to C11, so you
still have time
to move away but its imminent.

>
> On Fri, Oct 9, 2015 at 5:18 PM, Khem Raj  wrote:
>
>> On Fri, Oct 9, 2015 at 1:50 AM, Martin Jansa 
>> wrote:
>> > There is no gcc-native recipe.
>>
>> right, I meant is need one
>>
>> >
>> > On Fri, Oct 9, 2015 at 9:20 AM, Khem Raj  wrote:
>> >
>> >>
>> >> > On Oct 8, 2015, at 2:59 AM, Martin Jansa 
>> wrote:
>> >> >
>> >> > On Tue, Sep 29, 2015 at 03:04:49PM +0800, kai.k...@windriver.com
>> wrote:
>> >> >> From: Kai Kang 
>> >> >>
>> >> >> Upgrade efivar from 0.7 to 0.21.
>> >> >>
>> >> >> * update HOMEPAGE and git repo.
>> >> >> * add -native recipe to provide command makeguids
>> >> >>  and add patch for target package to use this native makeguids
>> command
>> >> >
>> >> > -native version is failing on hosts with older gcc (like Ubuntu 12.04
>> >> > with 4.6*).
>> >> >
>> >> > http://errors.yoctoproject.org/Errors/Details/20231/
>> >>
>> >> may be use gcc-native ?
>> >>
>> >> >
>> >> >>
>> >> >> Signed-off-by: Kai Kang 
>> >> >> ---
>> >> >> .../efivar/0001-efivar-fix-for-cross-compile.patch | 31
>> >> ++
>> >> >> meta-oe/recipes-extended/efivar/efivar_0.21.bb | 28
>> >> +++
>> >> >> meta-oe/recipes-extended/efivar/efivar_git.bb  | 18
>> -
>> >> >> 3 files changed, 59 insertions(+), 18 deletions(-)
>> >> >> create mode 100644
>> >>
>> meta-oe/recipes-extended/efivar/efivar/0001-efivar-fix-for-cross-compile.patch
>> >> >> create mode 100644 meta-oe/recipes-extended/efivar/efivar_0.21.bb
>> >> >> delete mode 100644 meta-oe/recipes-extended/efivar/efivar_git.bb
>> >> >>
>> >> >> diff --git
>> >>
>> a/meta-oe/recipes-extended/efivar/efivar/0001-efivar-fix-for-cross-compile.patch
>> >>
>> b/meta-oe/recipes-extended/efivar/efivar/0001-efivar-fix-for-cross-compile.patch
>> >> >> new file mode 100644
>> >> >> index 000..4bd7d95
>> >> >> --- /dev/null
>> >> >> +++
>> >>
>> b/meta-oe/recipes-extended/efivar/efivar/0001-efivar-fix-for-cross-compile.patch
>> >> >> @@ -0,0 +1,31 @@
>> >> >> +From 7036e8b0dca61432970789e5397b6fb02b362c2b Mon Sep 17 00:00:00
>> 2001
>> >> >> +From: Kai Kang 
>> >> >> +Date: Fri, 25 Sep 2015 18:14:31 +0800
>> >> >> +Subject: [PATCH] efivar: fix for cross compile
>> >> >> +
>> >> >> +It builds and calls elf file makeguids to generate a header file
>> which
>> >> >> +doesn't work for cross compile. Fix it.
>> >> >> +
>> >> >> +Signed-off-by: Kai Kang 
>> >> >> +---
>> >> >> + src/Makefile | 4 ++--
>> >> >> + 1 file changed, 2 insertions(+), 2 deletions(-)
>> >> >> +
>> >> >> +diff --git a/src/Makefile b/src/Makefile
>> >> >> +index 6eac858..ef4eb1d 100644
>> >> >> +--- a/src/Makefile
>> >> >>  b/src/Makefile
>> >> >> +@@ -65,8 +65,8 @@ makeguids.o : makeguids.c
>> >> >> + makeguids : makeguids.o fakeguid.o
>> >> >> +$(CC) $(cflags) -o $@ $^ -ldl
>> >> >> +
>> >> >> +-include/efivar/efivar-guids.h : makeguids guids.txt
>> >> >> +-   ./makeguids guids.txt guids.bin names.bin guid-symbols.S $@
>> >> >> ++include/efivar/efivar-guids.h : guids.txt
>> >> >> ++   makeguids guids.txt guids.bin names.bin guid-symbols.S $@
>> >> >> +
>> >> >> + guidlist.o : guids.S include/efivar/efivar-guids.h
>> >> >> +$(CC) $(cflags) -c -o guidlist.o guids.S
>> >> >> +--
>> >> >> +2.6.0.rc2.10.gf4d9753
>> >> >> +
>> >> >> diff --git a/meta-oe/recipes-extended/efivar/efivar_0.21.bb
>> >> b/meta-oe/recipes-extended/efivar/efivar_0.21.bb
>> >> >> new file mode 100644
>> >> >> index 000..2e3b643
>> >> >> --- /dev/null
>> >> >> +++ b/meta-oe/recipes-extended/efivar/efivar_0.21.bb
>> >> >> @@ -0,0 +1,28 @@
>> >> >> +SUMMARY = "Tools to manipulate UEFI variables"
>> >> >> +DESCRIPTION = "efivar provides a simple command line interface to
>> the
>> >> UEFI variable facility"
>> >> >> +HOMEPAGE = "https://github.com/rhinstaller/efivar;
>> >> >> +
>> >> >> +LICENSE = "LGPLv2.1"
>> >> >> +LIC_FILES_CHKSUM =
>> >> "file://COPYING;md5=6626bb1e20189cfa95f2c508ba286393"
>> >> >> +
>> >> >> +DEPENDS_class-target = "popt efivar-native"
>> >> >> +
>> >> >> +SRCREV = "aab6c2a64d90b6e5a63661fb5bd6be8d878b0784"
>> >> >> +SRC_URI = "git://github.com/rhinstaller/efivar.git"
>> >> >> +SRC_URI_append_class-target = "
>> >> file://0001-efivar-fix-for-cross-compile.patch"
>> >> >> +
>> >> 

Re: [oe] [meta-browser] Recipes draft for Chromium V45 and V47

2015-10-09 Thread Khem Raj
On Fri, Oct 9, 2015 at 4:31 AM, Zoltan Kuscsik
 wrote:
> Hi,
>
> I'm working on updating the Chromium recipes to version 45.
>
> So far it is tested on Wayland builds (ARM 32bit and ARM 64bit):
>
> https://github.com/linaro-home/meta-browser
>
> It still needs some cleanup before upstream, comments are welcome.

xkbcommon change should go into oe-core
tc_malloc disabled, should become a PACKAGECONFIG, its a perf tool
anyway so disabling it is ok.

ozone and VAAPI should also become packageconfigs

fix_64_bit_builds.patch assumes gcc, I did not like it for that
reason, it could have been done in compiler independent way

> Br,
>
> Zoltan
>
> --
> Zoltan Kuscsik
>
> Senior Software Developer, Linaro Digital Home Group
> email: zoltan.kusc...@linaro.org
> IRC: zoli_ on irc.linaro.org
> --
> ___
> Openembedded-devel mailing list
> Openembedded-devel@lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/openembedded-devel
-- 
___
Openembedded-devel mailing list
Openembedded-devel@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-devel


[oe] [meta-browser] Recipes draft for Chromium V45 and V47

2015-10-09 Thread Zoltan Kuscsik
Hi,

I'm working on updating the Chromium recipes to version 45.

So far it is tested on Wayland builds (ARM 32bit and ARM 64bit):

https://github.com/linaro-home/meta-browser

It still needs some cleanup before upstream, comments are welcome.
Br,

Zoltan

-- 
Zoltan Kuscsik

Senior Software Developer, Linaro Digital Home Group
email: zoltan.kusc...@linaro.org
IRC: zoli_ on irc.linaro.org
-- 
___
Openembedded-devel mailing list
Openembedded-devel@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-devel


[oe] State of bitbake world, Failed tasks 2015-10-09

2015-10-09 Thread Martin Jansa
== Tested changes (not included in master yet) - bitbake ==
b4175ee world-image: add extra target

== Tested changes (not included in master yet) - openembedded-core ==
f4fd11a gcr, libsecret, libunwind: force ARM mode
5a665d6 arch-armv7ve: add tune include for armv7ve and use it from cortexa7 and 
cortexa15
d7e9875 tune-*: use mcpu instead of mtune for ARM tunes
2f2d5fb cortexa{7,15,17}: add VFPv4 tunes
14245a4 directfb: add fPIC to CFLAGS
b34f989 guile, mailx, gcc, opensp, gstreamer1.0-libav, libunwind: disable thumb 
where it fails for qemuarm
f10333c icu: force arm mode
e890757 gdb: force arm mode
f8d8210 DO-NOT-MERGE: distutils3.bbclass: Don't use MACHINE variable
8fd5772 libsdl: Add support for libsdl-native
083ab12 WIP: Add KERNEL_EXTRA_ARGS?
86627e0 sstate-sysroot-cruft: Add /usr/src/kernel/.* to whitelist
1814907 report-error: Allow to upload reports automatically
74ea599 qemux86: Add identical qemux86copy variant for tests

== Tested changes (not included in master yet) - meta-openembedded ==
076208a gnome-keyring: blacklist gnome-bluetooth, gvfs: try to build with 
libgnome-keyring only
c911a62 Remove toolchain-layer
ce06187 freerdp: get out of PNBLACKLIST, fix build, improve
5dabcde rygel: Add recipe
477edb2 iptraf: add new recipe
862c6cf openbox: fix sporadic race on compile
310f124 libcap-ng: remove package
7b10933 swig: remove package
6d8e7d8 netmap-modules: fix compilation failure
3328f57 libnetfilter: Avoid using VLAs
d262456 xf86-video-geode: blacklist, fails to build
0f246eb nautilus3: blacklist, fails to build
bd40c4a libmediaart-2.0: Add recipe
48d871a net-snmp: Fix build with gcc5
3bd5c04 libimobiledevice: fix gcc 5 link failure
f44dc82 Revert "freerdp: move to nonworking"
77cb78a Revert "epdfview: move to nonworking"
0a66c70 Revert "rage, emprint, news: Move to nonworking"
f1b5428 Revert "screenshot: Move to nonworking because depends on emprint"
4456401 Revert "gcalctool: move to nonworking"
0c4a2c3 Revert "gnome-terminal, system-tools-backends, slim, benchfft, 
syslog-ng: move to nonworking directories"
a6ff44e Revert "qcanobserver: Move to nonworking"
113b83a Revert "gst123: move to nonworking directory"
84ceaaf gnome-panel*: Use GFDL-1.1 instead of GFDLv1.1
8ff27b3 meta-oe: recipes-devtools: add libubox recipe
96af49e meta-networking: recipes-connectivity: add relayd recipe
85db5db meta-oe: recipes-devtools: add debootstrap recipe
649b7b9 apache2: cleanup buildpaths for target stuffs
1557f3d tornado: upgrade to 4.2.1
00c6ec5 tsocks: Add tsocks to meta-network/recipes-protocols
d9e2b53 networkmanager: fix installed-vs-shipped warning
8157f55 polkit: fix relocation of polkit binaries
b734196 mariadb: Easy linkage of code using libmysqlclient_r
9d1db34 lvm2: add --with-systemdsystemunitdir in configuration
4035513 gd: cleanup buildpaths from gdlib.pc
4fce645 squid: disable atomic operations for powerpc/mips
ccd78a4 kexecboot_0.6: fix build with gcc 5
f215389 opencore-amr: add new recipe
b5ed7ec libiec61883: add new recipe
709af55 libavc1394: add new recipe
5e745ef cdparanoia: add new recipe
1636317 libgudev: skip recipe for distros not using systemd as init
79bc3e7 llvm.inc: fix PACKAGES_DYNAMIC
a705689 webkit-efl: fix build with cmake-3*
1bb614b sblim-sfcCommon: rename to sblim-sfc-common
9b91f3f libdbi-drivers: Blacklist, fails to build with gcc-5
bddf3e9 libuio: Blacklist, fails to build with gcc-5
597dd82 mplayer2: Blacklist, fails to build with gcc-5
4749313 mkvtoolnix: Blacklist, fails to build with gcc-5
c561b5d gtkextra: blacklist, fails to build with gcc-5
37354f0 gdal: blacklist, fails to build with gcc-5
28f9591 elmdentica, azy: blacklist because they are old and fail to build with 
gcc-5
5f442bc qt-creator: blacklist because fails to build and conflicts with 
qt5-creator
2d3b686 gnome-power-manager: Blacklist not compatible with current libnotify
ea497d0 epdf: Blacklist, old and not compatible with current poppler
2c14c4b sessreg: Blacklist, fails to build man pages
246a4d7 libnet-dns-perl: blacklist, fails to build with current perl
db320ce packagekit: blacklist, depends on disabled libopkg API
873bfdb nautilus3: Fix build with B != S
f56b8dd wayland-fits: Add recipe
36a3e99 efl: support wayland, egl
4e2dfbe pyroute2: update to 0.3.14, fix depends, fix license
8933122 modemmanager: depend on libgudev not on udev
e6572b9 networkmanager: depend on libgudev not on udev
e3d4ba4 libgudev: exclude use with systemd <=220
1eaf5af xfce4-screenshooter: ensure output directory is created
1a9c82a plymouth: building documatation sometimes fails to download so disable 
it
8ab981e sshfs-fuse: correct definition of S
ff8c73c lldpd: Add recipe
5a2fbc0 opencv: backport commit to compile with ppc
f1738ce xl2tpd: 1.3.0 -> 1.3.6
1c31bfa inetutils: fix rcp to work with large file

== Tested changes (not included in master yet) - meta-qt5 ==
51b4620 maliit-framework-qt5: fixed paths and enabled qt5-inputcontext
d8a4d97 qtwebengine: enable cmake
394345c qmake5_paths, qtbase: add 

[oe] [meta-oe][PATCH] poppler: Support building against QT4-embedded

2015-10-09 Thread Gary Thomas
These changes allow the poppler package to build using qt4e.
To enable them, add this line to local.conf
  PACKAGECONFIG_append_pn-poppler = " qt4e"

Signed-off-by: Gary Thomas 
Upstream-status: Innapropriate [OE configuration]
---
 .../fix-qt4e-library-dependencies.patch| 28 ++
 meta-oe/recipes-support/poppler/poppler_0.35.0.bb  |  6 -
 2 files changed, 33 insertions(+), 1 deletion(-)
 create mode 100644 
meta-oe/recipes-support/poppler/poppler-0.35.0/fix-qt4e-library-dependencies.patch

diff --git 
a/meta-oe/recipes-support/poppler/poppler-0.35.0/fix-qt4e-library-dependencies.patch
 
b/meta-oe/recipes-support/poppler/poppler-0.35.0/fix-qt4e-library-dependencies.patch
new file mode 100644
index 000..f67e1f5
--- /dev/null
+++ 
b/meta-oe/recipes-support/poppler/poppler-0.35.0/fix-qt4e-library-dependencies.patch
@@ -0,0 +1,28 @@
+Configuration changes needed to allow building with QT4-embedded
+
+Index: poppler-0.35.0/configure.ac
+===
+--- poppler-0.35.0.orig/configure.ac
 poppler-0.35.0/configure.ac
+@@ -654,17 +654,17 @@ AC_ARG_ENABLE(poppler-qt4,
+   enable_poppler_qt4="try")
+ if test x$enable_poppler_qt4 = xyes; then
+   PKG_CHECK_MODULES(POPPLER_QT4, 
+-  QtCore >= 4.7.0 QtGui >= 4.7.0 QtXml >= 4.7.0)
++  QtCoreE >= 4.7.0 QtGuiE >= 4.7.0 QtXmlE >= 4.7.0)
+   PKG_CHECK_MODULES(POPPLER_QT4_TEST, 
+-  QtTest >= 4.7.0)
++  QtTestE >= 4.7.0)
+ elif test x$enable_poppler_qt4 = xtry; then
+   PKG_CHECK_MODULES(POPPLER_QT4,
+-QtCore >= 4.7.0 QtGui >= 4.7.0 QtXml >= 4.7.0,
++QtCoreE >= 4.7.0 QtGuiE >= 4.7.0 QtXmlE >= 4.7.0,
+ [enable_poppler_qt4="yes"],
+ [enable_poppler_qt4="no"])
+   if test x$enable_poppler_qt4 = xyes; then
+ PKG_CHECK_MODULES(POPPLER_QT4_TEST,
+-QtTest >= 4.7.0,
++QtTestE >= 4.7.0,
+ [enable_poppler_qt4="yes"],
+ [enable_poppler_qt4="no"])
+   fi
diff --git a/meta-oe/recipes-support/poppler/poppler_0.35.0.bb 
b/meta-oe/recipes-support/poppler/poppler_0.35.0.bb
index 520aa6b..efb7241 100644
--- a/meta-oe/recipes-support/poppler/poppler_0.35.0.bb
+++ b/meta-oe/recipes-support/poppler/poppler_0.35.0.bb
@@ -20,14 +20,18 @@ PACKAGECONFIG[tiff] = 
"--enable-libtiff,--disable-libtiff,tiff"
 PACKAGECONFIG[curl] = "--enable-libcurl,--disable-libcurl,curl"
 PACKAGECONFIG[openjpeg] = 
"--enable-libopenjpeg=openjpeg2,--disable-libopenjpeg,openjpeg"
 PACKAGECONFIG[qt5] = "--enable-poppler-qt5 
--with-moc-qt5=${STAGING_BINDIR_NATIVE}/qt5/moc,--disable-poppler-qt5,qtbase"
+PACKAGECONFIG[qt4e] = "--enable-poppler-qt4 
--with-moc-qt4=${STAGING_BINDIR_NATIVE}/moc4,--disable-poppler-qt4,qt4-embedded"
 
 EXTRA_OECONF = "\
 --enable-xpdf-headers \
 --disable-gtk-test \
---disable-poppler-qt4 \
 --enable-zlib \
 "
 
+# Adjust library names when building for QT4e
+QT4E_PATCHES = "${@bb.utils.contains('PACKAGECONFIG', 'qt4e', 
'file://fix-qt4e-library-dependencies.patch', '', d)}"
+SRC_URI_append = "${QT4E_PATCHES}"
+
 # check for TARGET_FPU=soft and inform configure of the result so it can 
disable some floating points
 def get_poppler_fpu_setting(bb, d):
 if d.getVar('TARGET_FPU', 1) in [ 'soft' ]:
-- 
1.9.1

-- 
___
Openembedded-devel mailing list
Openembedded-devel@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-devel


Re: [oe] [PATCH v3][meta-oe] freerdp: get out of PNBLACKLIST, fix build, improve

2015-10-09 Thread Martin Jansa
On Thu, Oct 08, 2015 at 10:41:53AM +0200, Manuel Bachmann wrote:
> We make the "freerdp" recipe active again, fix the build
> by pulling a more recent version (the "stable" branches are
> buggy and useless), and fix ARM runtime with -fPIC.
> 
> We can then :
> - make X11 non-mandatory ;
> - add support for Wayland ("wlfreerdp" client) ;
> - add support for DirectFB ("dfreerdp" client) ;
> - add support for GStreamer 1.0 ;
> - make "heavy" features such as pulseaudio, cups...
> non-mandatory.
> 
> We really want to install the "winpr-makecert" tool to have
> TLS, but CMake does not position its RPATH cleanly, so let
> us have a custom patch for that until it gets sorted out.

One more issue, it fails to build for qemuarm:

In file included from
/home/jenkins/oe/world/shr-core/tmp-glibc/work/armv5te-oe-linux-gnueabi/freerdp/1.2.5+gitrAUTOINC+62da9d28c6-r0/git/libfreerdp/primitives/prim_YCoCg_opt.c:32:0:
/home/jenkins/oe/world/shr-core/tmp-glibc/sysroots/x86_64-linux/usr/lib/arm-oe-linux-gnueabi/gcc/arm-oe-linux-gnueabi/5.2.0/include/arm_neon.h:31:2:
error: #error You must enable NEON instructions (e.g. -mfloat-abi=softfp
-mfpu=neon) to use arm_neon.h
 #error You must enable NEON instructions (e.g. -mfloat-abi=softfp
-mfpu=neon) to use arm_neon.h
  ^

http://errors.yoctoproject.org/Errors/Details/20373/
> 
> Signed-off-by: Manuel Bachmann 
> ---
>  meta-oe/recipes-support/freerdp/freerdp.inc| 38 
> +-
>  .../winpr-makecert-Build-with-install-RPATH.patch  | 31 ++
>  meta-oe/recipes-support/freerdp/freerdp_git.bb | 18 +-
>  3 files changed, 70 insertions(+), 17 deletions(-)
>  create mode 100644 
> meta-oe/recipes-support/freerdp/freerdp/winpr-makecert-Build-with-install-RPATH.patch
> 
> diff --git a/meta-oe/recipes-support/freerdp/freerdp.inc 
> b/meta-oe/recipes-support/freerdp/freerdp.inc
> index 34dac4b..af93e83 100644
> --- a/meta-oe/recipes-support/freerdp/freerdp.inc
> +++ b/meta-oe/recipes-support/freerdp/freerdp.inc
> @@ -1,23 +1,38 @@
>  # Copyright (C) 2010-2012 O.S. Systems Software Ltda. All Rights Reserved
>  # Released under the MIT license
>  
> -DESCRIPTION = "FreeRDP RDP client"
> +DESCRIPTION = "FreeRDP RDP client & server library"
>  HOMEPAGE = "http://www.freerdp.com;
> -DEPENDS = "virtual/libx11 openssl libxcursor libxv cups alsa-lib pulseaudio 
> pcsc-lite libxkbfile libxinerama"
> -SECTION = "x11/network"
> +DEPENDS = "openssl alsa-lib pcsc-lite"
> +SECTION = "net"
>  LICENSE = "Apache-2.0"
>  LIC_FILES_CHKSUM = "file://LICENSE;md5=3b83ef96387f14655fc854ddc3c6bd57"
>  
>  inherit pkgconfig cmake
>  
> -EXTRA_OECMAKE += "-DWITH_PULSEAUDIO=ON \
> +EXTRA_OECMAKE += "-DWITH_ALSA=ON \
>-DWITH_PCSC=ON \
> -  -DWITH_CUPS=ON \
>-DWITH_FFMPEG=OFF \
>-DWITH_CUNIT=OFF \
> -  -DWITH_X11=ON \
> -  -DWITH_XKBFILE=ON \
> -  -DWITH_XINERAMA=ON"
> + "
> +
> +PACKAGECONFIG ??= "  \
> +${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'x11', '', 
> d)}\
> +${@bb.utils.contains('DISTRO_FEATURES', 'wayland', 
> 'wayland', '', d)}\
> +${@bb.utils.contains('DISTRO_FEATURES', 'directfb', 
> 'directfb', '', d)}\
> +${@bb.utils.contains('DISTRO_FEATURES', 'pam', 'pam', '', 
> d)}\
> +${@bb.utils.contains('DISTRO_FEATURES', 'pulseaudio', 
> 'pulseaudio', '', d)}\
> +gstreamer cups \
> +"
> +
> +X11_DEPS = "virtual/libx11 libxinerama libxext libxcursor libxv libxi 
> libxrender libxfixes libxdamage libxrandr libxkbfile"
> +PACKAGECONFIG[x11] = "-DWITH_X11=ON -DWITH_XINERAMA=ON -DWITH_XEXT=ON 
> -DWITH_XCURSOR=ON -DWITH_XV=ON -DWITH_XI=ON -DWITH_XRENDER=ON 
> -DWITH_XFIXES=ON -DWITH_XDAMAGE=ON -DWITH_XRANDR=ON 
> -DWITH_XKBFILE=ON,-DWITH_X11=OFF,${X11_DEPS}"
> +PACKAGECONFIG[wayland] = "-DWITH_WAYLAND=ON,-DWITH_WAYLAND=OFF,wayland"
> +PACKAGECONFIG[directfb] = "-DWITH_DIRECTFB=ON,-DWITH_DIRECTFB=OFF,directfb"
> +PACKAGECONFIG[pam] = "-DWITH_PAM=ON,-DWITH_PAM=OFF,libpam"
> +PACKAGECONFIG[pulseaudio] = 
> "-DWITH_PULSEAUDIO=ON,-DWITH_PULSEAUDIO=OFF,pulseaudio"
> +PACKAGECONFIG[gstreamer] = 
> "-DWITH_GSTREAMER_1_0=ON,-DWITH_GSTREAMER_1_0=OFF,gstreamer1.0 
> gstreamer1.0-plugins-base"
> +PACKAGECONFIG[cups] = "-DWITH_CUPS=ON,-DWITH_CUPS=OFF,cups"
>  
>  PACKAGES =+ "libfreerdp"
>  
> @@ -26,6 +41,13 @@ FILES_libfreerdp = "${libdir}/lib*${SOLIBS}"
>  
>  PACKAGES_DYNAMIC += "^libfreerdp-plugin-.*"
>  
> +# we will need winpr-makecert to generate TLS certificates
> +do_install_append () {
> +install -m755 winpr/tools/makecert/cli/winpr-makecert ${D}${bindir}
> +rm -rf ${D}/${libdir}/cmake
> +rm -rf ${D}/${libdir}/freerdp
> +}
> +
>  python populate_packages_prepend () {
>  freerdp_root = d.expand('${libdir}/freerdp')
>  
> diff --git 
> 

Re: [oe] [PATCH 1/2] efivar: 0.7 -> 0.21

2015-10-09 Thread Khem Raj
On Fri, Oct 9, 2015 at 1:50 AM, Martin Jansa  wrote:
> There is no gcc-native recipe.

right, I meant is need one

>
> On Fri, Oct 9, 2015 at 9:20 AM, Khem Raj  wrote:
>
>>
>> > On Oct 8, 2015, at 2:59 AM, Martin Jansa  wrote:
>> >
>> > On Tue, Sep 29, 2015 at 03:04:49PM +0800, kai.k...@windriver.com wrote:
>> >> From: Kai Kang 
>> >>
>> >> Upgrade efivar from 0.7 to 0.21.
>> >>
>> >> * update HOMEPAGE and git repo.
>> >> * add -native recipe to provide command makeguids
>> >>  and add patch for target package to use this native makeguids command
>> >
>> > -native version is failing on hosts with older gcc (like Ubuntu 12.04
>> > with 4.6*).
>> >
>> > http://errors.yoctoproject.org/Errors/Details/20231/
>>
>> may be use gcc-native ?
>>
>> >
>> >>
>> >> Signed-off-by: Kai Kang 
>> >> ---
>> >> .../efivar/0001-efivar-fix-for-cross-compile.patch | 31
>> ++
>> >> meta-oe/recipes-extended/efivar/efivar_0.21.bb | 28
>> +++
>> >> meta-oe/recipes-extended/efivar/efivar_git.bb  | 18 -
>> >> 3 files changed, 59 insertions(+), 18 deletions(-)
>> >> create mode 100644
>> meta-oe/recipes-extended/efivar/efivar/0001-efivar-fix-for-cross-compile.patch
>> >> create mode 100644 meta-oe/recipes-extended/efivar/efivar_0.21.bb
>> >> delete mode 100644 meta-oe/recipes-extended/efivar/efivar_git.bb
>> >>
>> >> diff --git
>> a/meta-oe/recipes-extended/efivar/efivar/0001-efivar-fix-for-cross-compile.patch
>> b/meta-oe/recipes-extended/efivar/efivar/0001-efivar-fix-for-cross-compile.patch
>> >> new file mode 100644
>> >> index 000..4bd7d95
>> >> --- /dev/null
>> >> +++
>> b/meta-oe/recipes-extended/efivar/efivar/0001-efivar-fix-for-cross-compile.patch
>> >> @@ -0,0 +1,31 @@
>> >> +From 7036e8b0dca61432970789e5397b6fb02b362c2b Mon Sep 17 00:00:00 2001
>> >> +From: Kai Kang 
>> >> +Date: Fri, 25 Sep 2015 18:14:31 +0800
>> >> +Subject: [PATCH] efivar: fix for cross compile
>> >> +
>> >> +It builds and calls elf file makeguids to generate a header file which
>> >> +doesn't work for cross compile. Fix it.
>> >> +
>> >> +Signed-off-by: Kai Kang 
>> >> +---
>> >> + src/Makefile | 4 ++--
>> >> + 1 file changed, 2 insertions(+), 2 deletions(-)
>> >> +
>> >> +diff --git a/src/Makefile b/src/Makefile
>> >> +index 6eac858..ef4eb1d 100644
>> >> +--- a/src/Makefile
>> >>  b/src/Makefile
>> >> +@@ -65,8 +65,8 @@ makeguids.o : makeguids.c
>> >> + makeguids : makeguids.o fakeguid.o
>> >> +$(CC) $(cflags) -o $@ $^ -ldl
>> >> +
>> >> +-include/efivar/efivar-guids.h : makeguids guids.txt
>> >> +-   ./makeguids guids.txt guids.bin names.bin guid-symbols.S $@
>> >> ++include/efivar/efivar-guids.h : guids.txt
>> >> ++   makeguids guids.txt guids.bin names.bin guid-symbols.S $@
>> >> +
>> >> + guidlist.o : guids.S include/efivar/efivar-guids.h
>> >> +$(CC) $(cflags) -c -o guidlist.o guids.S
>> >> +--
>> >> +2.6.0.rc2.10.gf4d9753
>> >> +
>> >> diff --git a/meta-oe/recipes-extended/efivar/efivar_0.21.bb
>> b/meta-oe/recipes-extended/efivar/efivar_0.21.bb
>> >> new file mode 100644
>> >> index 000..2e3b643
>> >> --- /dev/null
>> >> +++ b/meta-oe/recipes-extended/efivar/efivar_0.21.bb
>> >> @@ -0,0 +1,28 @@
>> >> +SUMMARY = "Tools to manipulate UEFI variables"
>> >> +DESCRIPTION = "efivar provides a simple command line interface to the
>> UEFI variable facility"
>> >> +HOMEPAGE = "https://github.com/rhinstaller/efivar;
>> >> +
>> >> +LICENSE = "LGPLv2.1"
>> >> +LIC_FILES_CHKSUM =
>> "file://COPYING;md5=6626bb1e20189cfa95f2c508ba286393"
>> >> +
>> >> +DEPENDS_class-target = "popt efivar-native"
>> >> +
>> >> +SRCREV = "aab6c2a64d90b6e5a63661fb5bd6be8d878b0784"
>> >> +SRC_URI = "git://github.com/rhinstaller/efivar.git"
>> >> +SRC_URI_append_class-target = "
>> file://0001-efivar-fix-for-cross-compile.patch"
>> >> +
>> >> +S = "${WORKDIR}/git"
>> >> +
>> >> +do_install() {
>> >> +oe_runmake install DESTDIR=${D}
>> >> +}
>> >> +
>> >> +do_compile_class-native() {
>> >> +oe_runmake -C src makeguids
>> >> +}
>> >> +
>> >> +do_install_class-native() {
>> >> +install -D ${B}/src/makeguids ${D}${bindir}/makeguids
>> >> +}
>> >> +
>> >> +BBCLASSEXTEND = "native"
>> >> diff --git a/meta-oe/recipes-extended/efivar/efivar_git.bb
>> b/meta-oe/recipes-extended/efivar/efivar_git.bb
>> >> deleted file mode 100644
>> >> index 18446a0..000
>> >> --- a/meta-oe/recipes-extended/efivar/efivar_git.bb
>> >> +++ /dev/null
>> >> @@ -1,18 +0,0 @@
>> >> -SUMMARY = "Tools to manipulate UEFI variables"
>> >> -DESCRIPTION = "efivar provides a simple command line interface to the
>> UEFI variable facility"
>> >> -HOMEPAGE = "https://github.com/vathpela/efivar;
>> >> -
>> >> -LICENSE = "LGPLv2.1"
>> >> -LIC_FILES_CHKSUM =
>> "file://COPYING;md5=a6f89e2100d9b6cdffcea4f398e37343"
>> >> -
>> >> -DEPENDS = "popt"
>> >> -
>> >> -SRCREV = 

Re: [oe] [OE-core] State of bitbake world, Failed tasks 2015-10-02

2015-10-09 Thread Martin Jansa
On Mon, Oct 05, 2015 at 03:40:39PM +0100, Burton, Ross wrote:
> On 3 October 2015 at 14:33, Martin Jansa  wrote:
> 
> > * /openembedded-core/meta/recipes-gnome/libsecret/libsecret_0.18.2.bb,
> > do_compile
> >
> 
> This fails with a giant number of assembler warnings, but works when I try
> with current master.  Does your build change some tunes?

Yes, it's caused by thumb(1).

I thought it's caused by upgrade to gcc-5.2, but
ARM_INSTRUCTION_SET = "arm"
was removed by Alexander when importing libsecret from meta-oe to
oe-core, without even mentioning it in commit message :/.

The same with webkitgtk now failing to build for thumb.. old webkit-gtk
already had ARM_INSTRUCTION_SET which was silently removed.

I'll stop accepting recipe removals in meta-oe layers for recipes moved
to oe-core unless the submitter proves that they weren't modified/broken
in the process. I hate overlayed/duplicated recipes, but breaking them
is even worse.

Regards,

-- 
Martin 'JaMa' Jansa jabber: martin.ja...@gmail.com


signature.asc
Description: Digital signature
-- 
___
Openembedded-devel mailing list
Openembedded-devel@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-devel


Re: [oe] [PATCH 1/2] efivar: 0.7 -> 0.21

2015-10-09 Thread Martin Jansa
I could use one for your internal projects, but this efi recipe is first
one in world which cannot be built with 4.6 (At least first I know about).

In some recipes it was relatively easy to disable (e.g. efl, elementary
need --disable-cxx-bindings if you build native version with gcc which
doesn't support -std=gnu++11).

On Fri, Oct 9, 2015 at 5:18 PM, Khem Raj  wrote:

> On Fri, Oct 9, 2015 at 1:50 AM, Martin Jansa 
> wrote:
> > There is no gcc-native recipe.
>
> right, I meant is need one
>
> >
> > On Fri, Oct 9, 2015 at 9:20 AM, Khem Raj  wrote:
> >
> >>
> >> > On Oct 8, 2015, at 2:59 AM, Martin Jansa 
> wrote:
> >> >
> >> > On Tue, Sep 29, 2015 at 03:04:49PM +0800, kai.k...@windriver.com
> wrote:
> >> >> From: Kai Kang 
> >> >>
> >> >> Upgrade efivar from 0.7 to 0.21.
> >> >>
> >> >> * update HOMEPAGE and git repo.
> >> >> * add -native recipe to provide command makeguids
> >> >>  and add patch for target package to use this native makeguids
> command
> >> >
> >> > -native version is failing on hosts with older gcc (like Ubuntu 12.04
> >> > with 4.6*).
> >> >
> >> > http://errors.yoctoproject.org/Errors/Details/20231/
> >>
> >> may be use gcc-native ?
> >>
> >> >
> >> >>
> >> >> Signed-off-by: Kai Kang 
> >> >> ---
> >> >> .../efivar/0001-efivar-fix-for-cross-compile.patch | 31
> >> ++
> >> >> meta-oe/recipes-extended/efivar/efivar_0.21.bb | 28
> >> +++
> >> >> meta-oe/recipes-extended/efivar/efivar_git.bb  | 18
> -
> >> >> 3 files changed, 59 insertions(+), 18 deletions(-)
> >> >> create mode 100644
> >>
> meta-oe/recipes-extended/efivar/efivar/0001-efivar-fix-for-cross-compile.patch
> >> >> create mode 100644 meta-oe/recipes-extended/efivar/efivar_0.21.bb
> >> >> delete mode 100644 meta-oe/recipes-extended/efivar/efivar_git.bb
> >> >>
> >> >> diff --git
> >>
> a/meta-oe/recipes-extended/efivar/efivar/0001-efivar-fix-for-cross-compile.patch
> >>
> b/meta-oe/recipes-extended/efivar/efivar/0001-efivar-fix-for-cross-compile.patch
> >> >> new file mode 100644
> >> >> index 000..4bd7d95
> >> >> --- /dev/null
> >> >> +++
> >>
> b/meta-oe/recipes-extended/efivar/efivar/0001-efivar-fix-for-cross-compile.patch
> >> >> @@ -0,0 +1,31 @@
> >> >> +From 7036e8b0dca61432970789e5397b6fb02b362c2b Mon Sep 17 00:00:00
> 2001
> >> >> +From: Kai Kang 
> >> >> +Date: Fri, 25 Sep 2015 18:14:31 +0800
> >> >> +Subject: [PATCH] efivar: fix for cross compile
> >> >> +
> >> >> +It builds and calls elf file makeguids to generate a header file
> which
> >> >> +doesn't work for cross compile. Fix it.
> >> >> +
> >> >> +Signed-off-by: Kai Kang 
> >> >> +---
> >> >> + src/Makefile | 4 ++--
> >> >> + 1 file changed, 2 insertions(+), 2 deletions(-)
> >> >> +
> >> >> +diff --git a/src/Makefile b/src/Makefile
> >> >> +index 6eac858..ef4eb1d 100644
> >> >> +--- a/src/Makefile
> >> >>  b/src/Makefile
> >> >> +@@ -65,8 +65,8 @@ makeguids.o : makeguids.c
> >> >> + makeguids : makeguids.o fakeguid.o
> >> >> +$(CC) $(cflags) -o $@ $^ -ldl
> >> >> +
> >> >> +-include/efivar/efivar-guids.h : makeguids guids.txt
> >> >> +-   ./makeguids guids.txt guids.bin names.bin guid-symbols.S $@
> >> >> ++include/efivar/efivar-guids.h : guids.txt
> >> >> ++   makeguids guids.txt guids.bin names.bin guid-symbols.S $@
> >> >> +
> >> >> + guidlist.o : guids.S include/efivar/efivar-guids.h
> >> >> +$(CC) $(cflags) -c -o guidlist.o guids.S
> >> >> +--
> >> >> +2.6.0.rc2.10.gf4d9753
> >> >> +
> >> >> diff --git a/meta-oe/recipes-extended/efivar/efivar_0.21.bb
> >> b/meta-oe/recipes-extended/efivar/efivar_0.21.bb
> >> >> new file mode 100644
> >> >> index 000..2e3b643
> >> >> --- /dev/null
> >> >> +++ b/meta-oe/recipes-extended/efivar/efivar_0.21.bb
> >> >> @@ -0,0 +1,28 @@
> >> >> +SUMMARY = "Tools to manipulate UEFI variables"
> >> >> +DESCRIPTION = "efivar provides a simple command line interface to
> the
> >> UEFI variable facility"
> >> >> +HOMEPAGE = "https://github.com/rhinstaller/efivar;
> >> >> +
> >> >> +LICENSE = "LGPLv2.1"
> >> >> +LIC_FILES_CHKSUM =
> >> "file://COPYING;md5=6626bb1e20189cfa95f2c508ba286393"
> >> >> +
> >> >> +DEPENDS_class-target = "popt efivar-native"
> >> >> +
> >> >> +SRCREV = "aab6c2a64d90b6e5a63661fb5bd6be8d878b0784"
> >> >> +SRC_URI = "git://github.com/rhinstaller/efivar.git"
> >> >> +SRC_URI_append_class-target = "
> >> file://0001-efivar-fix-for-cross-compile.patch"
> >> >> +
> >> >> +S = "${WORKDIR}/git"
> >> >> +
> >> >> +do_install() {
> >> >> +oe_runmake install DESTDIR=${D}
> >> >> +}
> >> >> +
> >> >> +do_compile_class-native() {
> >> >> +oe_runmake -C src makeguids
> >> >> +}
> >> >> +
> >> >> +do_install_class-native() {
> >> >> +install -D ${B}/src/makeguids ${D}${bindir}/makeguids
> >> >> +}
> >> >> +
> >> >> +BBCLASSEXTEND = "native"
> >> >> diff