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

2015-10-12 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 1/2] efivar: 0.7 -> 0.21

2015-10-12 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] [meta-oe][PATCH 0/2] V4: Upgrade efivar and efibootmgr

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

V4:
* add option '-m 0755' of command 'install' in efivar bb file

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.1

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


[oe] [meta-xfce][PATCH] vim: do not autoenable the mouse

2015-10-12 Thread jackie.huang
From: Jackie Huang 

The mouse being autoenabled is just annoying in xfce4-terminal (mouse
drag make vim go into visual mode and there is no right click menu),
so remove the setting for mouse.

Signed-off-by: Jackie Huang 
---
 meta-xfce/recipes-support/vim/vim_%.bbappend | 6 ++
 1 file changed, 6 insertions(+)
 create mode 100644 meta-xfce/recipes-support/vim/vim_%.bbappend

diff --git a/meta-xfce/recipes-support/vim/vim_%.bbappend 
b/meta-xfce/recipes-support/vim/vim_%.bbappend
new file mode 100644
index 000..abd3128
--- /dev/null
+++ b/meta-xfce/recipes-support/vim/vim_%.bbappend
@@ -0,0 +1,6 @@
+do_install_append() {
+   # The mouse being autoenabled is just annoying in xfce4-terminal (mouse
+   # drag make vim go into visual mode and there is no right click menu),
+   # delete the block.
+   sed -i '/the mouse works just fine/,+4d' ${D}/${datadir}/${PN}/vimrc
+}
-- 
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-multimedia] mkvtoolnix: fix Boost 1.58 build, update to 7.9.0

2015-10-12 Thread Manuel Bachmann
I found a way to enable it conditionally ; requires the latest version,
though.
Thus, sending a v2 with new title right now.

Regards,

*Manuel Bachmann, Graphics Engineer www.iot.bzh  *


2015-10-08 12:47 GMT+02:00 Martin Jansa :

> On Thu, Oct 08, 2015 at 12:14:57PM +0200, Manuel Bachmann wrote:
> > Hmm, interesting, didn't try with meta-qt.
> > I guess it can be done ; will try and let you know.
>
> At least make it explicitly disabled, so that it doesn't fail when
> auto-detected from sysroot.
>
> >
> > Regards,
> >
> > *Manuel Bachmann, Graphics Engineer www.iot.bzh  *
> >
> >
> > 2015-10-08 12:03 GMT+02:00 Martin Jansa :
> >
> > > On Sat, Oct 03, 2015 at 11:22:39PM +0200, Manuel Bachmann wrote:
> > > > mkvtoolnix does not compile with newest Boost 1.58, mostly
> > > > due to the following bugs :
> > > > https://github.com/mbunkus/mkvtoolnix/issues/1172
> > > > https://github.com/mbunkus/mkvtoolnix/issues/1176
> > > >
> > > > Update to the version immediately subsequent to their
> > > > fixes, and adapt configure steps accordingly.
> > > >
> > > > Signed-off-by: Manuel Bachmann 
> > > > ---
> > > >  meta-multimedia/recipes-mkv/mkvtoolnix/mkvtoolnix_git.bb | 15
> > > +++
> > > >  1 file changed, 11 insertions(+), 4 deletions(-)
> > > >
> > > > diff --git a/meta-multimedia/recipes-mkv/mkvtoolnix/
> mkvtoolnix_git.bb
> > > b/meta-multimedia/recipes-mkv/mkvtoolnix/mkvtoolnix_git.bb
> > > > index dd613b3..da10153 100644
> > > > --- a/meta-multimedia/recipes-mkv/mkvtoolnix/mkvtoolnix_git.bb
> > > > +++ b/meta-multimedia/recipes-mkv/mkvtoolnix/mkvtoolnix_git.bb
> > > > @@ -6,9 +6,16 @@ LIC_FILES_CHKSUM =
> > > "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263"
> > > >
> > > >  DEPENDS = "curl boost expat zlib libebml libmatroska libogg
> libvorbis
> > > bzip2 lzo file ruby-native"
> > > >
> > > > -PV = "7.1.0+git${SRCPV}"
> > > > -SRCREV = "0c89ff941bfdd9f3378312f293a84f13cf3e2a96"
> > > > -SRC_URI = "git://github.com/mbunkus/mkvtoolnix.git"
> > > > +PV = "7.9.0+git${SRCPV}"
> > > > +SRCREV_mkvtoolnix = "1a8b23b1e82ed180a5aaeb43537f2426be252985"
> > > > +SRCREV_libebml = "04b34b0dbded40e0cec93cafa6a4f4c8e90c3206"
> > > > +SRCREV_libmatroska = "db5d627b5bf48516c9e0b540254c0d36595760c3"
> > > > +SRCREV_FORMAT = "mkvtoolnix"
> > > > +SRC_URI = " \
> > > > +   git://github.com/mbunkus/mkvtoolnix.git;name=mkvtoolnix
> \
> > > > +   git://
> > >
> github.com/Matroska-Org/libebml.git;name=libebml;destsuffix=git/lib/libebml
> > > \
> > > > +   git://
> > >
> github.com/Matroska-Org/libmatroska.git;name=libmatroska;destsuffix=git/lib/libmatroska
> > > \
> > > > +  "
> > > >
> > > >  S = "${WORKDIR}/git"
> > > >
> > > > @@ -28,7 +35,7 @@ EXTRA_OECONF = "
> --with-boost-libdir=${STAGING_LIBDIR}
> > > \
> > > >
> > > >  # remove some hardcoded searchpaths
> > > >  do_configure_prepend() {
> > > > -sed -i -e s:/usr/local/lib:${STAGING_LIBDIR}:g -e
> > > s:/usr/local/include:${STAGING_INCDIR}:g ${S}/ac/ebml.m4
> > > > +sed -i -e s:/usr/local/lib:${STAGING_LIBDIR}:g -e
> > > s:/usr/local/include:${STAGING_INCDIR}:g ${S}/ac/qt5.m4
> > >
> > > It still fails in do_configure
> > > configure:8231: checking for the Qt version
> > >
> /home/jenkins/oe/world/shr-core/tmp-glibc/sysroots/x86_64-linux/usr/bin/moc
> > > uses
> > > configure:8239: result: too old: 4.8.7
> > >
> > > Can we use some PACKAGECONFIGs to disable qt{4,5}?
> > >
> > > >  }
> > > >
> > > >  # Yeah, no makefile
> > > > --
> > > > 1.8.3.1
> > > >
> > > > --
> > > > ___
> > > > Openembedded-devel mailing list
> > > > Openembedded-devel@lists.openembedded.org
> > > > http://lists.openembedded.org/mailman/listinfo/openembedded-devel
> > >
> > > --
> > > 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
> > >
> > >
> > --
> > ___
> > Openembedded-devel mailing list
> > Openembedded-devel@lists.openembedded.org
> > http://lists.openembedded.org/mailman/listinfo/openembedded-devel
>
> --
> 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
>
>
-- 
___
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-12 Thread Kang Kai

On 2015年10月10日 11:31, kai.k...@windriver.com wrote:

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, 

[oe] [PATCH 3/4][meta-multimedia] media-service-upnp: Update to 0.5.0

2015-10-12 Thread Manuel Bachmann
Update to latest version (requires gupnp-dlna 0.9.4).

Signed-off-by: Manuel Bachmann 
---
 .../dleyna/media-service-upnp_0.4.0.bb | 24 --
 .../dleyna/media-service-upnp_0.5.0.bb | 24 ++
 2 files changed, 24 insertions(+), 24 deletions(-)
 delete mode 100644 
meta-multimedia/recipes-multimedia/dleyna/media-service-upnp_0.4.0.bb
 create mode 100644 
meta-multimedia/recipes-multimedia/dleyna/media-service-upnp_0.5.0.bb

diff --git 
a/meta-multimedia/recipes-multimedia/dleyna/media-service-upnp_0.4.0.bb 
b/meta-multimedia/recipes-multimedia/dleyna/media-service-upnp_0.4.0.bb
deleted file mode 100644
index 871eb6a..000
--- a/meta-multimedia/recipes-multimedia/dleyna/media-service-upnp_0.4.0.bb
+++ /dev/null
@@ -1,24 +0,0 @@
-SUMMARY = "discover, browse and search UPNP/DLNA media servers"
-HOMEPAGE = "https://01.org/dleyna/;
-
-LICENSE = "LGPLv2.1"
-LIC_FILES_CHKSUM = "file://COPYING;md5=4fbd65380cdd255951079008b364516c \
-
file://src/media-service-upnp.c;beginline=1;endline=21;md5=584eb103b4f6f3432c43d169b6a123a1"
-
-DEPENDS = "dbus glib-2.0 gssdp gupnp gupnp-av gupnp-dlna libsoup-2.4"
-
-SRC_URI = "git://github.com/01org/${BPN}.git"
-SRCREV = "1996ecbe4a06c95d22f7d958e32e3d28f7a4a2e9"
-S = "${WORKDIR}/git"
-
-inherit autotools pkgconfig
-
-do_install_append() {
-install -d ${D}${bindir}
-install -m 0755 dms-info ${D}${bindir}
-}
-
-PACKAGES =+ "${PN}-tests"
-
-FILES_${PN} += "${datadir}/dbus-1/services/*.service"
-FILES_${PN}-tests = "${bindir}/dms-info"
diff --git 
a/meta-multimedia/recipes-multimedia/dleyna/media-service-upnp_0.5.0.bb 
b/meta-multimedia/recipes-multimedia/dleyna/media-service-upnp_0.5.0.bb
new file mode 100644
index 000..baaf42b
--- /dev/null
+++ b/meta-multimedia/recipes-multimedia/dleyna/media-service-upnp_0.5.0.bb
@@ -0,0 +1,24 @@
+SUMMARY = "discover, browse and search UPNP/DLNA media servers"
+HOMEPAGE = "https://01.org/dleyna/;
+
+LICENSE = "LGPLv2.1"
+LIC_FILES_CHKSUM = "file://COPYING;md5=4fbd65380cdd255951079008b364516c \
+
file://src/media-service-upnp.c;beginline=1;endline=21;md5=584eb103b4f6f3432c43d169b6a123a1"
+
+DEPENDS = "dbus glib-2.0 gssdp gupnp gupnp-av gupnp-dlna libsoup-2.4"
+
+SRC_URI = "git://github.com/01org/${BPN}.git"
+SRCREV = "0dbc74a79aa07a8f8c7d32e1d2de6c4d3a0f95bc"
+S = "${WORKDIR}/git"
+
+inherit autotools pkgconfig
+
+do_install_append() {
+install -d ${D}${bindir}
+install -m 0755 dms-info ${D}${bindir}
+}
+
+PACKAGES =+ "${PN}-tests"
+
+FILES_${PN} += "${datadir}/dbus-1/services/*.service"
+FILES_${PN}-tests = "${bindir}/dms-info"
-- 
1.8.3.1

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


[oe] [PATCH v2 2/4][meta-multimedia] gupnp-dlna: Update to 0.9.4, support gstreamer

2015-10-12 Thread Manuel Bachmann
Minor update.
As we now have GStreamer 1.0+, add a PACKAGECONFIG option
to build the additional "gupnp-dlna-gst" library if it is
present.
This is most notably needed by Rygel.

Signed-off-by: Manuel Bachmann 
---
 .../recipes-connectivity/gupnp/gupnp-dlna_0.9.2.bb   | 20 
 .../recipes-connectivity/gupnp/gupnp-dlna_0.9.4.bb   | 19 +++
 2 files changed, 19 insertions(+), 20 deletions(-)
 delete mode 100644 
meta-multimedia/recipes-connectivity/gupnp/gupnp-dlna_0.9.2.bb
 create mode 100644 
meta-multimedia/recipes-connectivity/gupnp/gupnp-dlna_0.9.4.bb

diff --git a/meta-multimedia/recipes-connectivity/gupnp/gupnp-dlna_0.9.2.bb 
b/meta-multimedia/recipes-connectivity/gupnp/gupnp-dlna_0.9.2.bb
deleted file mode 100644
index b7e71cf..000
--- a/meta-multimedia/recipes-connectivity/gupnp/gupnp-dlna_0.9.2.bb
+++ /dev/null
@@ -1,20 +0,0 @@
-SUMMARY = "Helpers for AV applications using DLNA"
-LICENSE = "LGPLv2"
-LIC_FILES_CHKSUM = "file://COPYING;md5=4fbd65380cdd255951079008b364516c \
-
file://libgupnp-dlna/gupnp-dlna-profile.h;beginline=1;endline=22;md5=1b85459f65cb1e73a885ca137aab6274"
-
-DEPENDS = "libxml2 glib-2.0"
-
-SRC_URI = "http://download.gnome.org/sources/${BPN}/0.9/${BPN}-${PV}.tar.xz;
-SRC_URI[md5sum] = "d972f9b03f0f3793cb895eb034ea314f"
-SRC_URI[sha256sum] = 
"c28d5650604c7da4f193e6b85049a4885f3a01f1996df768d55b5cb898a9fc53"
-
-inherit autotools pkgconfig
-
-require no-vala.inc
-
-# The GStreamer metadata backend requires GStreamer 1.0, so skip this until we
-# have that packaged.
-EXTRA_OECONF = "--disable-gstreamer-metadata-backend"
-
-FILES_${PN} += "${datadir}/gupnp-dlna-2.0/dlna-profiles"
diff --git a/meta-multimedia/recipes-connectivity/gupnp/gupnp-dlna_0.9.4.bb 
b/meta-multimedia/recipes-connectivity/gupnp/gupnp-dlna_0.9.4.bb
new file mode 100644
index 000..17ec52f
--- /dev/null
+++ b/meta-multimedia/recipes-connectivity/gupnp/gupnp-dlna_0.9.4.bb
@@ -0,0 +1,19 @@
+SUMMARY = "Helpers for AV applications using DLNA"
+LICENSE = "LGPLv2"
+LIC_FILES_CHKSUM = "file://COPYING;md5=4fbd65380cdd255951079008b364516c \
+
file://libgupnp-dlna/gupnp-dlna-profile.h;beginline=1;endline=22;md5=1b85459f65cb1e73a885ca137aab6274"
+
+DEPENDS = "libxml2 glib-2.0"
+
+SRC_URI = "http://download.gnome.org/sources/${BPN}/0.9/${BPN}-${PV}.tar.xz;
+SRC_URI[md5sum] = "f93665e535a512e4d515a86311435cb6"
+SRC_URI[sha256sum] = 
"69969713f36c0e815fbbbcfdfb3ad9bd447cfd10d0fd86227d82dfd8edb6c807"
+
+inherit autotools pkgconfig
+
+require no-vala.inc
+
+PACKAGECONFIG ?= "gstreamer"
+PACKAGECONFIG[gstreamer] = 
"--enable-gstreamer-metadata-backend,--disable-gstreamer-metadata-backend,gstreamer1.0
 gstreamer1.0-plugins-base"
+
+FILES_${PN} += "${datadir}/gupnp-dlna-2.0/dlna-profiles"
-- 
1.8.3.1

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


[oe] [PATCH v3 4/4][meta-multimedia] rygel: Add recipe

2015-10-12 Thread Manuel Bachmann
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 | 58 ++
 1 file changed, 58 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..af3f2be
--- /dev/null
+++ b/meta-multimedia/recipes-connectivity/rygel/rygel_0.26.1.bb
@@ -0,0 +1,58 @@
+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"
+SRC_URI[archive.md5sum] = "f182d54913a528bb5b4fb2f291aca0fc"
+SRC_URI[archive.sha256sum] = 
"390740609e34399b886ddb9a8f7eca25055ad72048dfdd869edf02999b1e1d8f"
+
+inherit gnomebase vala
+
+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}-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


[oe] [PATCH v3 4/4][meta-multimedia] rygel: Add recipe

2015-10-12 Thread Manuel Bachmann
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 | 58 ++
 1 file changed, 58 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..af3f2be
--- /dev/null
+++ b/meta-multimedia/recipes-connectivity/rygel/rygel_0.26.1.bb
@@ -0,0 +1,58 @@
+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"
+SRC_URI[archive.md5sum] = "f182d54913a528bb5b4fb2f291aca0fc"
+SRC_URI[archive.sha256sum] = 
"390740609e34399b886ddb9a8f7eca25055ad72048dfdd869edf02999b1e1d8f"
+
+inherit gnomebase vala
+
+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}-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


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

2015-10-12 Thread Manuel Bachmann
Hi Khem,

Good remark, thanks, I wasn't inheriting vala !

For this and for the "media-service-upnp" build problem noticed by Martin,
sending a whole new series right now.

Regards,

*Manuel Bachmann, Graphics Engineer www.iot.bzh  *


2015-10-09 9:18 GMT+02:00 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, 

[oe] [PATCH v2 1/4][meta-multimedia] libmediaart-2.0: Add recipe

2015-10-12 Thread Manuel Bachmann
libmediaart 1.9.0 is a new version of the libmediaart
library, API-incompatible with the older 0.x one.

libmediaart-2.0 is needed to build Rygel, but as the 1.0
version is still needed, let us build them both if required.

Signed-off-by: Manuel Bachmann 
---
 .../recipes-support/libmediaart/libmediaart-2.0_1.9.0.bb   |  7 +++
 .../recipes-support/libmediaart/libmediaart.inc| 14 ++
 .../recipes-support/libmediaart/libmediaart_0.7.0.bb   | 14 +-
 3 files changed, 22 insertions(+), 13 deletions(-)
 create mode 100644 
meta-multimedia/recipes-support/libmediaart/libmediaart-2.0_1.9.0.bb
 create mode 100644 meta-multimedia/recipes-support/libmediaart/libmediaart.inc

diff --git 
a/meta-multimedia/recipes-support/libmediaart/libmediaart-2.0_1.9.0.bb 
b/meta-multimedia/recipes-support/libmediaart/libmediaart-2.0_1.9.0.bb
new file mode 100644
index 000..44f135a
--- /dev/null
+++ b/meta-multimedia/recipes-support/libmediaart/libmediaart-2.0_1.9.0.bb
@@ -0,0 +1,7 @@
+require libmediaart.inc
+
+SRC_URI = "${GNOME_MIRROR}/libmediaart/1.9/libmediaart-${PV}.tar.xz"
+SRC_URI[md5sum] = "0b65d64398d2f3dff89534c9dfffab4f"
+SRC_URI[sha256sum] = 
"94668adb29d4dc3115b0fd105942ebd5ca6f5f9dbb2afa8a191a73a747dd506f"
+
+S = "${WORKDIR}/libmediaart-${PV}"
diff --git a/meta-multimedia/recipes-support/libmediaart/libmediaart.inc 
b/meta-multimedia/recipes-support/libmediaart/libmediaart.inc
new file mode 100644
index 000..a117e9b
--- /dev/null
+++ b/meta-multimedia/recipes-support/libmediaart/libmediaart.inc
@@ -0,0 +1,14 @@
+SUMMARY = "Library tasked with managing, extracting and handling media art 
caches"
+
+LICENSE = "LGPLv2+ & GPLv2+"
+LIC_FILES_CHKSUM = "file://COPYING.LESSER;md5=4fbd65380cdd255951079008b364516c 
\
+
file://libmediaart/extract.c;endline=18;md5=dff2b6328ab067b5baadc135f9876c36 \
+
file://tests/mediaarttest.c;endline=18;md5=067106eaa1f7a9d918759a096667f18e"
+
+DEPENDS = "glib-2.0 gdk-pixbuf"
+
+GNOME_COMPRESS_TYPE = "xz"
+
+inherit gnomebase gtk-doc
+
+EXTRA_OECONF = "--disable-introspection --disable-qt --enable-gdkpixbuf"
diff --git a/meta-multimedia/recipes-support/libmediaart/libmediaart_0.7.0.bb 
b/meta-multimedia/recipes-support/libmediaart/libmediaart_0.7.0.bb
index ed7f079..eb45974 100644
--- a/meta-multimedia/recipes-support/libmediaart/libmediaart_0.7.0.bb
+++ b/meta-multimedia/recipes-support/libmediaart/libmediaart_0.7.0.bb
@@ -1,16 +1,4 @@
-SUMMARY = "Library tasked with managing, extracting and handling media art 
caches"
+require libmediaart.inc
 
-LICENSE = "LGPLv2+ & GPLv2+"
-LIC_FILES_CHKSUM = "file://COPYING.LESSER;md5=4fbd65380cdd255951079008b364516c 
\
-
file://libmediaart/extract.c;endline=18;md5=dff2b6328ab067b5baadc135f9876c36 \
-
file://tests/mediaarttest.c;endline=18;md5=067106eaa1f7a9d918759a096667f18e"
-
-DEPENDS = "glib-2.0 gdk-pixbuf"
-
-GNOME_COMPRESS_TYPE = "xz"
 SRC_URI[archive.md5sum] = "1a44933d4cd0064e3c76d8d0ddacddc9"
 SRC_URI[archive.sha256sum] = 
"3a9dffcad862aed7c0921579b93080d694b8a66f3676bfee8037867f653a1cd3"
-
-inherit gnomebase gtk-doc
-
-EXTRA_OECONF = "--disable-introspection --disable-qt --enable-gdkpixbuf"
-- 
1.8.3.1

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


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

2015-10-12 Thread Nicolas Dechesne
hi,

On Fri, Oct 9, 2015 at 1:31 PM, Zoltan Kuscsik
 wrote:
> So far it is tested on Wayland builds (ARM 32bit and ARM 64bit):
>
> https://github.com/linaro-home/meta-browser

just for the record.. I am using/testing this set of recipes on
IFC6410 (armv7) and DragonBoard 410c (armv8), and so far so good.

it would be good if the helper script google-chrome could parse a
'default' config file, so that as a downstream user it is easy for me
to hook my own customizations in this script, something like

. /etc/default/google-chrome

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


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

2015-10-12 Thread Manuel Bachmann
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.

Signed-off-by: Manuel Bachmann 
---
 meta-oe/recipes-support/freerdp/freerdp.inc| 39 +-
 .../winpr-makecert-Build-with-install-RPATH.patch  | 31 +
 meta-oe/recipes-support/freerdp/freerdp_git.bb | 18 +-
 3 files changed, 71 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..2937bc5 100644
--- a/meta-oe/recipes-support/freerdp/freerdp.inc
+++ b/meta-oe/recipes-support/freerdp/freerdp.inc
@@ -1,23 +1,39 @@
 # 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"
+  -DWITH_NEON=OFF \
+ "
+
+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 +42,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 
a/meta-oe/recipes-support/freerdp/freerdp/winpr-makecert-Build-with-install-RPATH.patch
 
b/meta-oe/recipes-support/freerdp/freerdp/winpr-makecert-Build-with-install-RPATH.patch
new file mode 100644
index 000..d279d6d
--- /dev/null
+++ 
b/meta-oe/recipes-support/freerdp/freerdp/winpr-makecert-Build-with-install-RPATH.patch
@@ -0,0 +1,31 @@
+From 253eafc8c8da83fc2b1a99a9e43824efc6105c7a Mon Sep 17 00:00:00 2001
+From: Manuel Bachmann 
+Date: Sun, 4 Oct 2015 10:44:49 +0200
+Subject: [PATCH] winpr-makecert: Build with install RPATH
+
+As we are installing "winpr-makecert" manually, we do want
+to refer to the library in DESTDIR, not the one resting in
+the build tree.
+
+Signed-off-by: Manuel Bachmann 
+---
+ winpr/tools/makecert/cli/CMakeLists.txt | 4 
+ 1 file changed, 4 insertions(+)
+
+diff --git a/winpr/tools/makecert/cli/CMakeLists.txt 

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

2015-10-12 Thread Manuel Bachmann
Correct ; sending a v4 fixing this right now.

Regards,

*Manuel Bachmann, Graphics Engineer www.iot.bzh  *


2015-10-09 16:48 GMT+02:00 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 

[oe] [meta-oe][PATCH 4/4] rrdtool: fix multilib problem

2015-10-12 Thread Chen Qi
When building rrdtool with multilib enabled, we would meet the following error.

ERROR: QA Issue: rrdtool: Files/directories were installed but not shipped in 
any package:
  /usr/lib
  /usr/lib/python2.7
  /usr/lib/python2.7/site-packages
  /usr/lib/python2.7/site-packages/rrdtool.so
  

Fix this problem by using nonarch_libdir instead of libdir.

Signed-off-by: Chen Qi 
---
 meta-oe/recipes-extended/rrdtool/rrdtool_1.5.4.bb | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/meta-oe/recipes-extended/rrdtool/rrdtool_1.5.4.bb 
b/meta-oe/recipes-extended/rrdtool/rrdtool_1.5.4.bb
index 6331393..cc87d1a 100644
--- a/meta-oe/recipes-extended/rrdtool/rrdtool_1.5.4.bb
+++ b/meta-oe/recipes-extended/rrdtool/rrdtool_1.5.4.bb
@@ -121,8 +121,8 @@ RDEPENDS_${PN}-perl = "perl perl-module-lib 
perl-module-getopt-long perl-module-
 
 DESCRIPTION_${PN}-python = \
 "The ${PN}-python package includes RRDtool bindings for python."
-FILES_${PN}-python = "${libdir}/python${PYTHON_BASEVERSION}/site-packages/*"
+FILES_${PN}-python = 
"${nonarch_libdir}/python${PYTHON_BASEVERSION}/site-packages/*"
 RDEPENDS_${PN}-python = "python"
 
 FILES_${PN}-dbg += "${libdir}/perl/vendor_perl/*/auto/RRDs/.debug \
-${libdir}/python${PYTHON_BASEVERSION}/site-packages/.debug"
+${nonarch_libdir}/python${PYTHON_BASEVERSION}/site-packages/.debug"
-- 
1.9.1

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


[oe] [meta-oe][PATCH 2/4] rrdtool: fix file locations

2015-10-12 Thread Chen Qi
When we build rrdtool, we would meet the following QA issue.

  QA Issue: /usr/share/rrdtool/examples/stripes.py_rrdtool-perl contained
  in package rrdtool-perl requires /usr/bin/python, but no providers found
  in its RDEPENDS [file-rdeps]

The problem is that /usr/share/rrdtool/examples not only contain perl examples,
but also contains python examples.

Besides, ${datadir}/examples don't exist, fix it to be 
${datadir}/rrdtool/examples.

Signed-off-by: Chen Qi 
---
 meta-oe/recipes-extended/rrdtool/rrdtool_1.5.4.bb | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/meta-oe/recipes-extended/rrdtool/rrdtool_1.5.4.bb 
b/meta-oe/recipes-extended/rrdtool/rrdtool_1.5.4.bb
index f2ded65..07d70c7 100644
--- a/meta-oe/recipes-extended/rrdtool/rrdtool_1.5.4.bb
+++ b/meta-oe/recipes-extended/rrdtool/rrdtool_1.5.4.bb
@@ -106,11 +106,11 @@ do_compile_append() {
 
 PACKAGES =+ "${PN}-perl ${PN}-python"
 
-FILES_${PN}-doc += "${datadir}/examples"
+FILES_${PN}-doc += "${datadir}/rrdtool/examples"
 
 DESCRIPTION_${PN}-perl = \
 "The ${PN}-perl package includes RRDtool bindings for perl."
-FILES_${PN}-perl = "${libdir}/perl/vendor_perl/*/*.pm 
${datadir}/rrdtool/examples \
+FILES_${PN}-perl = "${libdir}/perl/vendor_perl/*/*.pm \
 ${libdir}/perl/vendor_perl/*/auto/RRDs/RRDs.*"
 RDEPENDS_${PN}-perl = "perl perl-module-lib perl-module-getopt-long 
perl-module-time-hires \
 perl-module-io-file perl-module-ipc-open2 perl-module-io-socket"
-- 
1.9.1

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


[oe] [meta-oe][PATCH 1/4] rrdtool: fix useless-rpath QA issue

2015-10-12 Thread Chen Qi
When building rrdtool, we would meet the following error.

  ERROR: QA Issue: rrdtool-python: work/core2-64-poky-linux/rrdtool
  /1.5.4-r0/packages-split/rrdtool-python/usr/lib/python2.7/site-packages
  /rrdtool.so contains probably-redundant RPATH /usr/lib [useless-rpaths]

Fix this issue by removing the redundante RPATH section from rrdtool.so.

As we use '--disable-rpath' in EXTRA_OECONF, we don't need to the `sed'
line in do_configure.

Signed-off-by: Chen Qi 
---
 meta-oe/recipes-extended/rrdtool/rrdtool_1.5.4.bb | 6 +-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/meta-oe/recipes-extended/rrdtool/rrdtool_1.5.4.bb 
b/meta-oe/recipes-extended/rrdtool/rrdtool_1.5.4.bb
index 91a30cf..f2ded65 100644
--- a/meta-oe/recipes-extended/rrdtool/rrdtool_1.5.4.bb
+++ b/meta-oe/recipes-extended/rrdtool/rrdtool_1.5.4.bb
@@ -71,7 +71,6 @@ do_configure() {
 PYTHON_INCLUDES="-I=/usr/include/python${PYTHON_BASEVERSION}"' \
 ${S}/m4/acinclude.m4
 #remove the hardcoded $(libdir) rpath
-sed -i -e 's|--rpath=$(libdir)||g' ${S}/bindings/Makefile.am
 
 autotools_do_configure
 
@@ -100,6 +99,11 @@ do_configure() {
 ${B}/examples/*.pl
 }
 
+do_compile_append() {
+# Remove useless rpath
+find ${B}/bindings/python/build -name "rrdtool.so" | xargs chrpath -d
+}
+
 PACKAGES =+ "${PN}-perl ${PN}-python"
 
 FILES_${PN}-doc += "${datadir}/examples"
-- 
1.9.1

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


[oe] [meta-oe][PATCH 3/4] rrdtool: add systemd support and fix QA issue

2015-10-12 Thread Chen Qi
When building rrdtool in a building directory where systemd is configured
to be the init system, we would meet the following error.

ERROR: QA Issue: rrdtool: Files/directories were installed but not shipped in 
any package:
   /lib
   /lib/systemd
   /lib/systemd/system
   /lib/systemd/system/rrdcached.socket
   /lib/systemd/system/rrdcached.service

Fix this problem by adding systemd support to the rrdtool recipe.

Signed-off-by: Chen Qi 
---
 meta-oe/recipes-extended/rrdtool/rrdtool_1.5.4.bb | 8 ++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/meta-oe/recipes-extended/rrdtool/rrdtool_1.5.4.bb 
b/meta-oe/recipes-extended/rrdtool/rrdtool_1.5.4.bb
index 07d70c7..6331393 100644
--- a/meta-oe/recipes-extended/rrdtool/rrdtool_1.5.4.bb
+++ b/meta-oe/recipes-extended/rrdtool/rrdtool_1.5.4.bb
@@ -15,11 +15,13 @@ SRC_URI = "\
 
 S = "${WORKDIR}/git"
 
-inherit autotools-brokensep gettext pythonnative perlnative python-dir 
cpan-base
+inherit autotools-brokensep gettext pythonnative perlnative python-dir 
cpan-base systemd
+
+SYSTEMD_SERVICE_${PN} = "rrdcached.socket rrdcached.service"
 
 EXTRA_AUTORECONF = "-I m4"
 
-PACKAGECONFIG ??= "python perl"
+PACKAGECONFIG ??= "python perl ${@bb.utils.contains('DISTRO_FEATURES', 
'systemd', 'systemd', '', d)}"
 
 PACKAGECONFIG[python] = "--enable-python=yes \
 
am_cv_python_pythondir=${STAGING_LIBDIR}/python${PYTHON_BASEVERSION}/site-packages
 \
@@ -33,6 +35,8 @@ ac_cv_path_PERL_CC='${CC}',  \
 
 PACKAGECONFIG[dbi] = "--enable-libdbi,--disable-libdbi,libdbi"
 
+PACKAGECONFIG[systemd] = 
"--with-systemdsystemunitdir=${systemd_unitdir}/system/,--without-systemdsystemunitdir,systemd,"
+
 EXTRA_OECONF = " \
 --enable-shared \
 --disable-libwrap \
-- 
1.9.1

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