Re: [OE-core] [PATCH 0/1] insane.bbclass: print more info for build-deps and file-rdeps

2016-02-17 Thread Robert Yang


Ping.

// Robert

On 01/21/2016 03:57 PM, Robert Yang wrote:

The following changes since commit 8084c185c43cb7e7f5e29d31939dfd308f8a0f93:

   udev: Add 2 patches to support 4.4 kernel (2016-01-20 09:20:06 +)

are available in the git repository at:

   git://git.openembedded.org/openembedded-core-contrib rbt/insane
   
http://cgit.openembedded.org/cgit.cgi/openembedded-core-contrib/log/?h=rbt/insane

Robert Yang (1):
   insane.bbclass: print more info for build-deps and file-rdeps

  meta/classes/insane.bbclass |9 ++---
  1 file changed, 6 insertions(+), 3 deletions(-)


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


[OE-core] [PATCH] cml1.bbclass: fix do_menuconfig

2016-02-17 Thread Markus Lehtonen
The functionality got broken after bitbake commit
8bf33a8e92c0e188fa392030025756196c96fcbb
which disabled the (bitbake) variable expansion inside python functions.

Signed-off-by: Markus Lehtonen 
---
 meta/classes/cml1.bbclass | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/meta/classes/cml1.bbclass b/meta/classes/cml1.bbclass
index 95cf584..4067dc0 100644
--- a/meta/classes/cml1.bbclass
+++ b/meta/classes/cml1.bbclass
@@ -26,7 +26,8 @@ python do_menuconfig() {
 except OSError:
 mtime = 0
 
-oe_terminal("${SHELL} -c \"make ${KCONFIG_CONFIG_COMMAND}; if [ \$? -ne 0 
]; then echo 'Command failed.'; printf 'Press any key to continue... '; read r; 
fi\"", '${PN} Configuration', d)
+oe_terminal("${SHELL} -c \"make %s; if [ \$? -ne 0 ]; then echo 'Command 
failed.'; printf 'Press any key to continue... '; read r; fi\"" % 
d.getVar('KCONFIG_CONFIG_COMMAND'),
+d.getVar('PN', True ) + ' Configuration', d)
 
 # FIXME this check can be removed when the minimum bitbake version has 
been bumped
 if hasattr(bb.build, 'write_taint'):
-- 
2.6.2

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


[OE-core] [PATCH 4/5] coreutils: upgrade to 8.25

2016-02-17 Thread Chen Qi
Signed-off-by: Chen Qi 
---
 .../0001-Unset-need_charset_alias-when-building-for-musl.patch| 0
 .../{coreutils-8.24 => coreutils-8.25}/fix-selinux-flask.patch| 0
 .../man-decouple-manpages-from-build.patch| 0
 .../remove-usr-local-lib-from-m4.patch| 0
 .../coreutils/{coreutils_8.24.bb => coreutils_8.25.bb}| 8 
 5 files changed, 4 insertions(+), 4 deletions(-)
 rename meta/recipes-core/coreutils/{coreutils-8.24 => 
coreutils-8.25}/0001-Unset-need_charset_alias-when-building-for-musl.patch 
(100%)
 rename meta/recipes-core/coreutils/{coreutils-8.24 => 
coreutils-8.25}/fix-selinux-flask.patch (100%)
 rename meta/recipes-core/coreutils/{coreutils-8.24 => 
coreutils-8.25}/man-decouple-manpages-from-build.patch (100%)
 rename meta/recipes-core/coreutils/{coreutils-8.24 => 
coreutils-8.25}/remove-usr-local-lib-from-m4.patch (100%)
 rename meta/recipes-core/coreutils/{coreutils_8.24.bb => coreutils_8.25.bb} 
(94%)

diff --git 
a/meta/recipes-core/coreutils/coreutils-8.24/0001-Unset-need_charset_alias-when-building-for-musl.patch
 
b/meta/recipes-core/coreutils/coreutils-8.25/0001-Unset-need_charset_alias-when-building-for-musl.patch
similarity index 100%
rename from 
meta/recipes-core/coreutils/coreutils-8.24/0001-Unset-need_charset_alias-when-building-for-musl.patch
rename to 
meta/recipes-core/coreutils/coreutils-8.25/0001-Unset-need_charset_alias-when-building-for-musl.patch
diff --git a/meta/recipes-core/coreutils/coreutils-8.24/fix-selinux-flask.patch 
b/meta/recipes-core/coreutils/coreutils-8.25/fix-selinux-flask.patch
similarity index 100%
rename from meta/recipes-core/coreutils/coreutils-8.24/fix-selinux-flask.patch
rename to meta/recipes-core/coreutils/coreutils-8.25/fix-selinux-flask.patch
diff --git 
a/meta/recipes-core/coreutils/coreutils-8.24/man-decouple-manpages-from-build.patch
 
b/meta/recipes-core/coreutils/coreutils-8.25/man-decouple-manpages-from-build.patch
similarity index 100%
rename from 
meta/recipes-core/coreutils/coreutils-8.24/man-decouple-manpages-from-build.patch
rename to 
meta/recipes-core/coreutils/coreutils-8.25/man-decouple-manpages-from-build.patch
diff --git 
a/meta/recipes-core/coreutils/coreutils-8.24/remove-usr-local-lib-from-m4.patch 
b/meta/recipes-core/coreutils/coreutils-8.25/remove-usr-local-lib-from-m4.patch
similarity index 100%
rename from 
meta/recipes-core/coreutils/coreutils-8.24/remove-usr-local-lib-from-m4.patch
rename to 
meta/recipes-core/coreutils/coreutils-8.25/remove-usr-local-lib-from-m4.patch
diff --git a/meta/recipes-core/coreutils/coreutils_8.24.bb 
b/meta/recipes-core/coreutils/coreutils_8.25.bb
similarity index 94%
rename from meta/recipes-core/coreutils/coreutils_8.24.bb
rename to meta/recipes-core/coreutils/coreutils_8.25.bb
index 6a09c59..650008e 100644
--- a/meta/recipes-core/coreutils/coreutils_8.24.bb
+++ b/meta/recipes-core/coreutils/coreutils_8.25.bb
@@ -20,10 +20,10 @@ SRC_URI = 
"${GNU_MIRROR}/coreutils/${BP}.tar.xz;name=tarball \
file://0001-Unset-need_charset_alias-when-building-for-musl.patch \
   "
 
-SRC_URI[tarball.md5sum] = "40efdbce865d2458d8da0a9dcee7c16c"
-SRC_URI[tarball.sha256sum] = 
"a2d75286a4b9ef3a13039c2da3868a61be4ee9f17d8ae380a35a97e506972170"
-SRC_URI[manpages.md5sum] = "728a91a5c1095a33cffb9959bb891963"
-SRC_URI[manpages.sha256sum] = 
"cf0333b5f134a331e0b46e2ddf90666f8bdc3281c1ca2c7ccbb75b437589ce37"
+SRC_URI[tarball.md5sum] = "070e43ba7f618d747414ef56ab248a48"
+SRC_URI[tarball.sha256sum] = 
"31e67c057a5b32a582f26408c789e11c2e8d676593324849dcf5779296cdce87"
+SRC_URI[manpages.md5sum] = "415cc0552bc4e480b27ce8b2aebfdeb5"
+SRC_URI[manpages.sha256sum] = 
"2ee31c3a6d2276f49c5515375d4a0c1047580da6ac10536898e0f0de81707f29"
 
 EXTRA_OECONF_class-native = "--without-gmp"
 EXTRA_OECONF_class-target = "--enable-install-program=arch 
--libexecdir=${libdir}"
-- 
1.9.1

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


[OE-core] [PATCH 5/5] cups: upgrade to 2.1.3

2016-02-17 Thread Chen Qi
Signed-off-by: Chen Qi 
---
 meta/recipes-extended/cups/cups.inc | 2 +-
 meta/recipes-extended/cups/{cups_2.0.4.bb => cups_2.1.3.bb} | 4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)
 rename meta/recipes-extended/cups/{cups_2.0.4.bb => cups_2.1.3.bb} (40%)

diff --git a/meta/recipes-extended/cups/cups.inc 
b/meta/recipes-extended/cups/cups.inc
index 3f81e2c..4b2d214 100644
--- a/meta/recipes-extended/cups/cups.inc
+++ b/meta/recipes-extended/cups/cups.inc
@@ -3,7 +3,7 @@ SECTION = "console/utils"
 LICENSE = "GPLv2 & LGPLv2"
 DEPENDS = "gnutls libpng jpeg dbus dbus-glib zlib libusb"
 
-SRC_URI = "http://www.cups.org/software/${PV}/${BP}-source.tar.bz2 \
+SRC_URI = "https://www.cups.org/software/${PV}/${BP}-source.tar.bz2 \
file://use_echo_only_in_init.patch \
file://0001-don-t-try-to-run-generated-binaries.patch \
file://cups_serverbin.patch \
diff --git a/meta/recipes-extended/cups/cups_2.0.4.bb 
b/meta/recipes-extended/cups/cups_2.1.3.bb
similarity index 40%
rename from meta/recipes-extended/cups/cups_2.0.4.bb
rename to meta/recipes-extended/cups/cups_2.1.3.bb
index bad73b3..aef211d 100644
--- a/meta/recipes-extended/cups/cups_2.0.4.bb
+++ b/meta/recipes-extended/cups/cups_2.1.3.bb
@@ -2,5 +2,5 @@ require cups.inc
 
 LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=6c5a350596fba02754bd96eb6df3afd0"
 
-SRC_URI[md5sum] = "f5c847d9a4fac6c4c66fb0526a7afaae"
-SRC_URI[sha256sum] = 
"e1d5e68d9f24faca317aeaebc164c34102813bc0f1d69c00b3a59b49c49f4abd"
+SRC_URI[md5sum] = "62b8fafd590e75f72316915790b0850a"
+SRC_URI[sha256sum] = 
"36a70d43584aea2617da914b9331e23341c3501a8254c4d2eae9c11ec01fd4d3"
-- 
1.9.1

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


[OE-core] [PATCH 3/5] findutils: upgrade to 4.5.19

2016-02-17 Thread Chen Qi
Signed-off-by: Chen Qi 
---
 .../findutils/{findutils_4.5.14.bb => findutils_4.5.19.bb}| 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
 rename meta/recipes-extended/findutils/{findutils_4.5.14.bb => 
findutils_4.5.19.bb} (77%)

diff --git a/meta/recipes-extended/findutils/findutils_4.5.14.bb 
b/meta/recipes-extended/findutils/findutils_4.5.19.bb
similarity index 77%
rename from meta/recipes-extended/findutils/findutils_4.5.14.bb
rename to meta/recipes-extended/findutils/findutils_4.5.19.bb
index a58a82f..de39a89 100644
--- a/meta/recipes-extended/findutils/findutils_4.5.14.bb
+++ b/meta/recipes-extended/findutils/findutils_4.5.19.bb
@@ -8,8 +8,8 @@ DEPENDS = "bison-native"
 
 SRC_URI += "file://0001-Unset-need_charset_alias-when-building-for-musl.patch"
 
-SRC_URI[md5sum] = "a8a8176282fd28e8d1234c84d847fa66"
-SRC_URI[sha256sum] = 
"0de3cf625a5c9f154eee3171e072515ffdde405244dd00502af617ac57b73ae2"
+SRC_URI[md5sum] = "1428516452520b51cf893c05500eda3d"
+SRC_URI[sha256sum] = 
"e9bc769d78573c91b1d4e504ad39621b870db6fa38fde923acf6896399f16f8e"
 
 # http://savannah.gnu.org/bugs/?27299
 CACHED_CONFIGUREVARS += "${@bb.utils.contains('DISTRO_FEATURES', 
'libc-posix-clang-wchar', 'gl_cv_func_wcwidth_works=yes', '', d)}"
-- 
1.9.1

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


[OE-core] [PATCH 0/5] Package Upgrade -- 20160218

2016-02-17 Thread Chen Qi
The following changes since commit 31af4a37c429bb1db8bfc64242b2963220f9a0e1:

  oeqa/parselogs: Whitelist dmi firmware failure message in 4.4 kernels 
(2016-02-16 23:53:43 +)

are available in the git repository at:

  git://git.openembedded.org/openembedded-core-contrib ChenQi/PU20160218
  
http://cgit.openembedded.org/cgit.cgi/openembedded-core-contrib/log/?h=ChenQi/PU20160218

Chen Qi (5):
  grep: upgrade to 2.23
  diffstat: upgrade to 1.61
  findutils: upgrade to 4.5.19
  coreutils: upgrade to 8.25
  cups: upgrade to 2.1.3

 .../0001-Unset-need_charset_alias-when-building-for-musl.patch| 0
 .../{coreutils-8.24 => coreutils-8.25}/fix-selinux-flask.patch| 0
 .../man-decouple-manpages-from-build.patch| 0
 .../remove-usr-local-lib-from-m4.patch| 0
 .../coreutils/{coreutils_8.24.bb => coreutils_8.25.bb}| 8 
 .../diffstat/{diffstat_1.60.bb => diffstat_1.61.bb}   | 4 ++--
 meta/recipes-extended/cups/cups.inc   | 2 +-
 meta/recipes-extended/cups/{cups_2.0.4.bb => cups_2.1.3.bb}   | 4 ++--
 .../findutils/{findutils_4.5.14.bb => findutils_4.5.19.bb}| 4 ++--
 meta/recipes-extended/grep/{grep_2.22.bb => grep_2.23.bb} | 4 ++--
 10 files changed, 13 insertions(+), 13 deletions(-)
 rename meta/recipes-core/coreutils/{coreutils-8.24 => 
coreutils-8.25}/0001-Unset-need_charset_alias-when-building-for-musl.patch 
(100%)
 rename meta/recipes-core/coreutils/{coreutils-8.24 => 
coreutils-8.25}/fix-selinux-flask.patch (100%)
 rename meta/recipes-core/coreutils/{coreutils-8.24 => 
coreutils-8.25}/man-decouple-manpages-from-build.patch (100%)
 rename meta/recipes-core/coreutils/{coreutils-8.24 => 
coreutils-8.25}/remove-usr-local-lib-from-m4.patch (100%)
 rename meta/recipes-core/coreutils/{coreutils_8.24.bb => coreutils_8.25.bb} 
(94%)
 rename meta/recipes-devtools/diffstat/{diffstat_1.60.bb => diffstat_1.61.bb} 
(85%)
 rename meta/recipes-extended/cups/{cups_2.0.4.bb => cups_2.1.3.bb} (40%)
 rename meta/recipes-extended/findutils/{findutils_4.5.14.bb => 
findutils_4.5.19.bb} (77%)
 rename meta/recipes-extended/grep/{grep_2.22.bb => grep_2.23.bb} (88%)

-- 
1.9.1

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


[OE-core] [PATCH 1/5] grep: upgrade to 2.23

2016-02-17 Thread Chen Qi
Signed-off-by: Chen Qi 
---
 meta/recipes-extended/grep/{grep_2.22.bb => grep_2.23.bb} | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
 rename meta/recipes-extended/grep/{grep_2.22.bb => grep_2.23.bb} (88%)

diff --git a/meta/recipes-extended/grep/grep_2.22.bb 
b/meta/recipes-extended/grep/grep_2.23.bb
similarity index 88%
rename from meta/recipes-extended/grep/grep_2.22.bb
rename to meta/recipes-extended/grep/grep_2.23.bb
index 8092a0f..13ff32d 100644
--- a/meta/recipes-extended/grep/grep_2.22.bb
+++ b/meta/recipes-extended/grep/grep_2.23.bb
@@ -9,8 +9,8 @@ SRC_URI = "${GNU_MIRROR}/grep/grep-${PV}.tar.xz \
file://0001-Unset-need_charset_alias-when-building-for-musl.patch \
   "
 
-SRC_URI[md5sum] = "e1015e951a49a82b02e38891026ef5df"
-SRC_URI[sha256sum] = 
"ca91d22f017bfcb503d4bc3b44295491c89a33a3df0c3d8b8614f2d3831836eb"
+SRC_URI[md5sum] = "f46aa9d0d2577b9212a104348a286787"
+SRC_URI[sha256sum] = 
"54fc478ee1ce17780109820ef30730c9e18715a949f7d5c6afc673adb2a56ecf"
 
 inherit autotools gettext texinfo
 
-- 
1.9.1

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


[OE-core] [PATCH 2/5] diffstat: upgrade to 1.61

2016-02-17 Thread Chen Qi
Signed-off-by: Chen Qi 
---
 meta/recipes-devtools/diffstat/{diffstat_1.60.bb => diffstat_1.61.bb} | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
 rename meta/recipes-devtools/diffstat/{diffstat_1.60.bb => diffstat_1.61.bb} 
(85%)

diff --git a/meta/recipes-devtools/diffstat/diffstat_1.60.bb 
b/meta/recipes-devtools/diffstat/diffstat_1.61.bb
similarity index 85%
rename from meta/recipes-devtools/diffstat/diffstat_1.60.bb
rename to meta/recipes-devtools/diffstat/diffstat_1.61.bb
index 25ba4da..0ec41c3 100644
--- a/meta/recipes-devtools/diffstat/diffstat_1.60.bb
+++ b/meta/recipes-devtools/diffstat/diffstat_1.61.bb
@@ -11,8 +11,8 @@ SRC_URI = 
"ftp://invisible-island.net/diffstat/diffstat-${PV}.tgz \
file://run-ptest \
 "
 
-SRC_URI[md5sum] = "ba889da4c06b547aa2d78fa96800ae6f"
-SRC_URI[sha256sum] = 
"2032e418b43bae70d548e32da901ebc4ac12972381de1314bebde0b126fb0123"
+SRC_URI[md5sum] = "c048a32d55d8bd6724f382baf41f325f"
+SRC_URI[sha256sum] = 
"25359e0c27183f997b36c9202583b5dc2df390c20e22a92606af4bf7856a55ee"
 
 S = "${WORKDIR}/diffstat-${PV}"
 
-- 
1.9.1

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


[OE-core] Error building core-image-sato

2016-02-17 Thread winiston
Dear,

I tried to build core-image-sato. It spits out the following error.

winiston@winiston-VirtualBox:~/poky/build$ bitbake core-image-sato
Parsing recipes: 100% |###| ETA:  00:00:00
Parsing of 1060 .bb files complete (0 cached, 1060 parsed). 1496 targets, 138 
skipped, 0 masked, 0 errors.
NOTE: Resolving any missing task queue dependencies
ERROR: Nothing RPROVIDES 'xf86-input-tslib' (but 
/home/winiston/poky/meta/recipes-graphics/packagegroups/packagegroup-core-x11-xserver.bb
 RDEPENDS on or otherwise requires it)
NOTE: Runtime target 'xf86-input-tslib' is unbuildable, removing...
Missing or unbuildable dependency chain was: ['xf86-input-tslib']
NOTE: Runtime target 'packagegroup-core-x11-xserver' is unbuildable, removing...
Missing or unbuildable dependency chain was: ['packagegroup-core-x11-xserver', 
'xf86-input-tslib']
NOTE: Runtime target 'packagegroup-core-x11-base' is unbuildable, removing...
Missing or unbuildable dependency chain was: ['packagegroup-core-x11-base', 
'packagegroup-core-x11-xserver', 'xf86-input-tslib']
ERROR: Required build target 'core-image-sato' has no buildable providers.
Missing or unbuildable dependency chain was: ['core-image-sato', 
'packagegroup-core-x11-base', 'packagegroup-core-x11-xserver', 
'xf86-input-tslib']

Summary: There were 2 ERROR messages shown, returning a non-zero exit code.
winiston@winiston-VirtualBox:~/poky/build$ 

How do I resolve this error?

Regards,
Winiston.P
Futura Automation Pvt Ltd.

Ph :91-80-28375290 / 28375295
Fax :91-80-28375291
-- 
___
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core


Re: [OE-core] [PATCH 1/1] kernel: Add KERNEL_IMAGETYPES to build multi types kernel at one time

2016-02-17 Thread Andre McCurdy
On Wed, Feb 17, 2016 at 2:01 AM,   wrote:
> From: He Zhe 
>
> Add KERNEL_IMAGETYPES to support building packaging and installing
> multi types of kernel images, such as zImage uImage, at one time.
> KERNEL_IMAGETYPE works as before.
>
> Fixes [YOCTO #6945].
>
> Signed-off-by: He Zhe 
> ---
>  meta/classes/kernel-fitimage.bbclass|  20 ++--
>  meta/classes/kernel-grub.bbclass|  44 ++---
>  meta/classes/kernel-uimage.bbclass  |  22 +++--
>  meta/classes/kernel.bbclass | 169 
> ++--
>  meta/conf/documentation.conf|   1 +
>  meta/recipes-kernel/linux/linux-dtb.inc |  49 +
>  6 files changed, 202 insertions(+), 103 deletions(-)
>
> diff --git a/meta/classes/kernel-fitimage.bbclass 
> b/meta/classes/kernel-fitimage.bbclass
> index f1b409c..51df19d 100644
> --- a/meta/classes/kernel-fitimage.bbclass
> +++ b/meta/classes/kernel-fitimage.bbclass
> @@ -1,8 +1,8 @@
>  inherit kernel-uboot
>
>  python __anonymous () {
> -kerneltype = d.getVar('KERNEL_IMAGETYPE', True)
> -if kerneltype == 'fitImage':
> +kerneltypes = d.getVar('KERNEL_IMAGETYPES', True) or ""
> +if 'fitImage' in kerneltypes.split():
>  depends = d.getVar("DEPENDS", True)
>  depends = "%s u-boot-mkimage-native dtc-native" % depends
>  d.setVar("DEPENDS", depends)
> @@ -10,7 +10,9 @@ python __anonymous () {
> # Override KERNEL_IMAGETYPE_FOR_MAKE variable, which is internal
> # to kernel.bbclass . We have to override it, since we pack zImage
> # (at least for now) into the fitImage .
> -d.setVar("KERNEL_IMAGETYPE_FOR_MAKE", "zImage")
> +typeformake = d.getVar("KERNEL_IMAGETYPE_FOR_MAKE", True) or ""
> +if 'fitImage' in typeformake.split():
> +d.setVar('KERNEL_IMAGETYPE_FOR_MAKE', 
> typeformake.replace('fitImage', 'zImage'))
>
>  image = d.getVar('INITRAMFS_IMAGE', True)
>  if image:
> @@ -154,7 +156,7 @@ EOF
>  }
>
>  do_assemble_fitimage() {
> -   if test "x${KERNEL_IMAGETYPE}" = "xfitImage" ; then
> +   if echo ${KERNEL_IMAGETYPES} | grep -Pq "\bfitImage\b"; then
> kernelcount=1
> dtbcount=""
> rm -f fit-image.its
> @@ -217,14 +219,14 @@ addtask assemble_fitimage before do_install after 
> do_compile
>
>  kernel_do_deploy_append() {
> # Update deploy directory
> -   if test "x${KERNEL_IMAGETYPE}" = "xfitImage" ; then
> +   if echo ${KERNEL_IMAGETYPES} | grep -Pq "\bfitImage\b"; then
> cd ${B}
> echo "Copying fit-image.its source file..."
> -   
> its_base_name="${KERNEL_IMAGETYPE}-its-${PV}-${PR}-${MACHINE}-${DATETIME}"
> -   its_symlink_name=${KERNEL_IMAGETYPE}-its-${MACHINE}
> +   
> its_base_name="fitImage-its-${PV}-${PR}-${MACHINE}-${DATETIME}"
> +   its_symlink_name=fitImage-its-${MACHINE}
> install -m 0644 fit-image.its 
> ${DEPLOYDIR}/${its_base_name}.its
> -   
> linux_bin_base_name="${KERNEL_IMAGETYPE}-linux.bin-${PV}-${PR}-${MACHINE}-${DATETIME}"
> -   
> linux_bin_symlink_name=${KERNEL_IMAGETYPE}-linux.bin-${MACHINE}
> +   
> linux_bin_base_name="fitImage-linux.bin-${PV}-${PR}-${MACHINE}-${DATETIME}"
> +   linux_bin_symlink_name=fitImage-linux.bin-${MACHINE}
> install -m 0644 linux.bin 
> ${DEPLOYDIR}/${linux_bin_base_name}.bin
>
> cd ${DEPLOYDIR}
> diff --git a/meta/classes/kernel-grub.bbclass 
> b/meta/classes/kernel-grub.bbclass
> index a63f482..f7dcc07 100644
> --- a/meta/classes/kernel-grub.bbclass
> +++ b/meta/classes/kernel-grub.bbclass
> @@ -10,41 +10,44 @@
>  #   updates the new kernel as the boot priority.
>  #
>
> -pkg_preinst_kernel-image_append () {
> +python __anonymous () {
> +import re
> +
> +preinst = '''
> # Parsing confliction
> [ -f "$D/boot/grub/menu.list" ] && grubcfg="$D/boot/grub/menu.list"
> [ -f "$D/boot/grub/grub.cfg" ] && grubcfg="$D/boot/grub/grub.cfg"
> if [ -n "$grubcfg" ]; then
> # Dereference symlink to avoid confliction with new kernel 
> name.
> -   if grep -q "/${KERNEL_IMAGETYPE} \+root=" $grubcfg; then
> -   if [ -L "$D/boot/${KERNEL_IMAGETYPE}" ]; then
> -   kimage=`realpath $D/boot/${KERNEL_IMAGETYPE} 
> 2>/dev/null`
> +   if grep -q "/KERNEL_IMAGETYPE \+root=" $grubcfg; then
> +   if [ -L "$D/boot/KERNEL_IMAGETYPE" ]; then
> +   kimage=`realpath $D/boot/KERNEL_IMAGETYPE 
> 2>/dev/null`
> if [ -f "$D$kimage" ]; then
> -   sed -i "s:${KERNEL_IMAGETYPE} 
> \+root=:${kimage##*/} root=:" $grubcfg
> +   sed -i "s:KERNEL_IMAGETYPE 
> 

Re: [OE-core] [PATCH v2 2/2] scripts/oe-selftest: Use site.USER_SITE to run coverage configuration code for sub-process

2016-02-17 Thread Christopher Larson
On Wed, Feb 17, 2016 at 2:57 PM  wrote:

> From: Humberto Ibarra 
>
> Coverage in oe-selftest currently requires to create or modify
> a sitecustomize.py file according the coverage tool setup instructions
> (http://coverage.readthedocs.org/). This file has to be located in
> the system's python folder, which is not a good solution since this
> folder is not accesible to non-privileged users.
>
> The best solution so far is to create this file in the home directory.
> This is implemented by creating the temporal file in the user site
> default folder.
>
> [Yocto #8930]
>
> Signed-off-by: Humberto Ibarra 
> ---
>  scripts/oe-selftest | 46 ++
>  1 file changed, 34 insertions(+), 12 deletions(-)
>
> diff --git a/scripts/oe-selftest b/scripts/oe-selftest
> index f3865e4..25ca632 100755
> --- a/scripts/oe-selftest
> +++ b/scripts/oe-selftest
> @@ -553,6 +553,7 @@ def main():
>
>  def buildResultClass(args):
>  """Build a Result Class to use in the testcase execution"""
> +import site
>
>  class StampedResult(unittest.TextTestResult):
>  """
> @@ -568,26 +569,41 @@ def buildResultClass(args):
>
>  def startTestRun(self):
>  """ Setup coverage before running any testcase """
> +
> +# variable holding the coverage configuration file allowing
> subprocess to be measured
> +self.coveragepth = None
> +
> +# indicates the system if coverage is currently installed
> +self.coverage_installed = True
> +
>  if args.coverage or args.coverage_source or
> args.coverage_include or args.coverage_omit:
>  try:
>  # check if user can do coverage
>  import coverage
> -log.info("Coverage is enabled")
> -
> -# In case the user has not set the variable
> COVERAGE_PROCESS_START,
> -# create a default one and export it. The
> COVERAGE_PROCESS_START
> -# value indicates where the coverage configuration
> file resides
> -# More info on https://pypi.python.org/pypi/coverage
> -if not os.environ.get('COVERAGE_PROCESS_START'):
> -os.environ['COVERAGE_PROCESS_START'] =
> coverage_setup(args.run_tests, args.run_all_tests, args.coverage_source,
> args.coverage_include, args.coverage_omit)
> -
> -self.coverage_installed = True
>  except:
>  log.warn('\n'.join(["python coverage is not
> installed",
>  "Make sure your coverage takes into account
> sub-process",
>  "More info on
> https://pypi.python.org/pypi/coverage;]))
>  self.coverage_installed = False
>
> +if self.coverage_installed:
> +log.info("Coverage is enabled")
> +
> +# In case the user has not set the variable
> COVERAGE_PROCESS_START,
> +# create a default one and export it. The
> COVERAGE_PROCESS_START
> +# value indicates where the coverage configuration file
> resides
> +# More info on https://pypi.python.org/pypi/coverage
> +if not os.environ.get('COVERAGE_PROCESS_START'):
> +os.environ['COVERAGE_PROCESS_START'] =
> coverage_setup(args.run_tests, args.run_all_tests, args.coverage_source,
> args.coverage_include, args.coverage_omit)
> +
> +# Use default site.USER_SITE and write corresponding
> config file
> +site.ENABLE_USER_SITE = True
> +if not os.path.exists(site.USER_SITE):
> +os.makedirs(site.USER_SITE)
> +self.coveragepth = os.path.join(site.USER_SITE,
> "coverage.pth")
> +with open(self.coveragepth, 'w') as cps:
> +cps.write('import sys,site;
> sys.path.extend(site.getsitepackages()); import coverage;
> coverage.process_startup();')
> +
>  def stopTestRun(self):
>  """ Report coverage data after the testcases are run """
>
> @@ -599,8 +615,14 @@ def buildResultClass(args):
>
>  log.info("Coverage Report")
>  log.info("===")
> -
> -coverage_report()
> +try:
> +coverage_report()
> +# remove the pth file
> +finally:
> +try:
> +os.remove(self.coveragepth)
> +except OSError:
> +pass
>

I didn't notice this before, but if there's a legitimate failure to remove
the file, resulting in it still being in the user's site area, I doubt you
want to suppress such a failure. If you're specifically suppressing a
removal of a file which is 

[OE-core] [PATCH] oe-core: Fix base-files wrong softlink of /var/run and /var/lock

2016-02-17 Thread fupan.li
From: fli 

OE-CORE's fs-perms.txt force /var/run to link /run and
/var/lock to /run/lock, so in order to match with it,
make base-files /var/run and /var/lock link the absolute
path too.

Signed-off-by: fli 
---
 meta/recipes-core/base-files/base-files_3.0.14.bb | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/meta/recipes-core/base-files/base-files_3.0.14.bb 
b/meta/recipes-core/base-files/base-files_3.0.14.bb
index f643c8b..82c97da 100644
--- a/meta/recipes-core/base-files/base-files_3.0.14.bb
+++ b/meta/recipes-core/base-files/base-files_3.0.14.bb
@@ -103,8 +103,8 @@ do_install () {
ln -sf volatile/$d ${D}${localstatedir}/$d
done
 
-   ln -snf ../run ${D}${localstatedir}/run
-   ln -snf ../run/lock ${D}${localstatedir}/lock
+   ln -snf /run ${D}${localstatedir}/run
+   ln -snf /run/lock ${D}${localstatedir}/lock
 
${BASEFILESISSUEINSTALL}
 
-- 
1.9.1

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


Re: [OE-core] [jethro][PATCH v2] glibc CVE-2015-7547

2016-02-17 Thread Richard Purdie
On Wed, 2016-02-17 at 11:02 -0800, Armin Kuster wrote:
> V2  includes changes not committed  before sending.
> 
> This is being submitted to comply to Yocto compatability.
> 
> Master is affected but waiting for 2.23 to be merged before sending
> patches.

Thanks for this.

I've queued up the various CVE glibc patches in master-next, they're
testing on the autobuilder now I'll merge these for master tomorrow
assuming no issues.

For jethro, we've just got a build out of QA, I think we'll likely
release, release note the CVE, then push this onto the jethro branch
straight after.

Cheers,

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


Re: [OE-core] [PATCH 1/1] useradd_base.bbclass: fix simultaneous with flock

2016-02-17 Thread Burton, Ross
On 17 February 2016 at 05:40, Kang Kai  wrote:

> I prefer to keep such check. There is more than one case that causes
> operation error such as pass wrong parameters. The messages are  helpful
> for developers.
>


In that case the groupadd will return an error code.  What situations with
proper locking will result in groupadd running successfully but the group
not being added?

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


[OE-core] [PATCH v2 0/2] Coverage filtering and configuration file for sub-process in $HOME

2016-02-17 Thread humberto . ibarra . lopez
From: Humberto Ibarra 

Enables filtering to the files to be measured with coverage and adds temporal 
file to enable subprocessing

Humberto Ibarra (2):
  scripts/oe-selftest: Add filtering to the coverage data  gathered
by oe-selftest
  scripts/oe-selftest: Use site.USER_SITE to run coverage configuration 
   code for sub-process

 scripts/oe-selftest | 76 -
 1 file changed, 58 insertions(+), 18 deletions(-)

-- 
1.9.1

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


[OE-core] [PATCH v2 2/2] scripts/oe-selftest: Use site.USER_SITE to run coverage configuration code for sub-process

2016-02-17 Thread humberto . ibarra . lopez
From: Humberto Ibarra 

Coverage in oe-selftest currently requires to create or modify
a sitecustomize.py file according the coverage tool setup instructions
(http://coverage.readthedocs.org/). This file has to be located in
the system's python folder, which is not a good solution since this
folder is not accesible to non-privileged users.

The best solution so far is to create this file in the home directory.
This is implemented by creating the temporal file in the user site
default folder.

[Yocto #8930]

Signed-off-by: Humberto Ibarra 
---
 scripts/oe-selftest | 46 ++
 1 file changed, 34 insertions(+), 12 deletions(-)

diff --git a/scripts/oe-selftest b/scripts/oe-selftest
index f3865e4..25ca632 100755
--- a/scripts/oe-selftest
+++ b/scripts/oe-selftest
@@ -553,6 +553,7 @@ def main():
 
 def buildResultClass(args):
 """Build a Result Class to use in the testcase execution"""
+import site
 
 class StampedResult(unittest.TextTestResult):
 """
@@ -568,26 +569,41 @@ def buildResultClass(args):
 
 def startTestRun(self):
 """ Setup coverage before running any testcase """
+
+# variable holding the coverage configuration file allowing 
subprocess to be measured
+self.coveragepth = None
+
+# indicates the system if coverage is currently installed
+self.coverage_installed = True
+
 if args.coverage or args.coverage_source or args.coverage_include 
or args.coverage_omit:
 try:
 # check if user can do coverage
 import coverage
-log.info("Coverage is enabled")
-
-# In case the user has not set the variable 
COVERAGE_PROCESS_START,
-# create a default one and export it. The 
COVERAGE_PROCESS_START
-# value indicates where the coverage configuration file 
resides
-# More info on https://pypi.python.org/pypi/coverage
-if not os.environ.get('COVERAGE_PROCESS_START'):
-os.environ['COVERAGE_PROCESS_START'] = 
coverage_setup(args.run_tests, args.run_all_tests, args.coverage_source, 
args.coverage_include, args.coverage_omit)
-
-self.coverage_installed = True
 except:
 log.warn('\n'.join(["python coverage is not installed",
 "Make sure your coverage takes into account 
sub-process",
 "More info on https://pypi.python.org/pypi/coverage;]))
 self.coverage_installed = False
 
+if self.coverage_installed:
+log.info("Coverage is enabled")
+
+# In case the user has not set the variable 
COVERAGE_PROCESS_START,
+# create a default one and export it. The 
COVERAGE_PROCESS_START
+# value indicates where the coverage configuration file resides
+# More info on https://pypi.python.org/pypi/coverage
+if not os.environ.get('COVERAGE_PROCESS_START'):
+os.environ['COVERAGE_PROCESS_START'] = 
coverage_setup(args.run_tests, args.run_all_tests, args.coverage_source, 
args.coverage_include, args.coverage_omit)
+
+# Use default site.USER_SITE and write corresponding config 
file
+site.ENABLE_USER_SITE = True
+if not os.path.exists(site.USER_SITE):
+os.makedirs(site.USER_SITE)
+self.coveragepth = os.path.join(site.USER_SITE, "coverage.pth")
+with open(self.coveragepth, 'w') as cps:
+cps.write('import sys,site; 
sys.path.extend(site.getsitepackages()); import coverage; 
coverage.process_startup();')
+
 def stopTestRun(self):
 """ Report coverage data after the testcases are run """
 
@@ -599,8 +615,14 @@ def buildResultClass(args):
 
 log.info("Coverage Report")
 log.info("===")
-
-coverage_report()
+try:
+coverage_report()
+# remove the pth file
+finally:
+try:
+os.remove(self.coveragepth)
+except OSError:
+pass
 
 return StampedResult
 
-- 
1.9.1

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


[OE-core] [PATCH v2 1/2] scripts/oe-selftest: Add filtering to the coverage data gathered by oe-selftest

2016-02-17 Thread humberto . ibarra . lopez
From: Humberto Ibarra 

When --coverage is used, oe-selftest gathers coverage data from the testcases
executed. The command lacks a way of filtering which files to gather coverage
data from.

This patch adds three options to specify which files should be considered.
The --coverage-source option specifies folders, while --coverage-include and
--coverage-omit specify patterns to have an extra level of filtering.

Some examples:

1. oe-selftest --run-all-tests --coverage

Gathers coverage data from the default poky folders

2. oe-selftest --run-all-tests --coverage --coverage-include 
/home/me/poky/scripts/*

Gathers coverage data only for the files located under '/home/me/poky/scripts'

3. oe-selftest --run-all-tests -coverage --coverage-omit /home/me/poky/meta*

Gathers coverage data. Files inside all the folders starting with 'meta' under
'/home/me/poky' are omited

4. oe-selftest --run-all-tests --coverage --coverage-source 
/home/me/poky/bitbake

Gathers coverage data only from files inside the folder: '/home/me/poky/bitbake'

[Yocto #8920]

Signed-off-by: Humberto Ibarra 
---
 scripts/oe-selftest | 32 +---
 1 file changed, 25 insertions(+), 7 deletions(-)

diff --git a/scripts/oe-selftest b/scripts/oe-selftest
index 4eb404b..f3865e4 100755
--- a/scripts/oe-selftest
+++ b/scripts/oe-selftest
@@ -78,6 +78,9 @@ def get_args_parser():
 group.add_argument('--list-modules', required=False, action="store_true", 
dest="list_modules", default=False, help='List all available test modules.')
 group.add_argument('--list-classes', required=False, action="store_true", 
dest="list_allclasses", default=False, help='List all available test classes.')
 parser.add_argument('--coverage', action="store_true", help="Run code 
coverage when testing")
+parser.add_argument('--coverage-source', dest="coverage_source", 
nargs="+", help="Specifiy the directories to take coverage from")
+parser.add_argument('--coverage-include', dest="coverage_include", 
nargs="+", help="Specify extra patterns to include into the coverage 
measurement")
+parser.add_argument('--coverage-omit', dest="coverage_omit", nargs="+", 
help="Specify with extra patterns to exclude from the coverage measurement")
 group.add_argument('--run-tests-by', required=False, dest='run_tests_by', 
default=False, nargs='*',
help='run-tests-by  ')
 group.add_argument('--list-tests-by', required=False, 
dest='list_tests_by', default=False, nargs='*',
@@ -369,7 +372,7 @@ def list_tags():
 
 print 'Tags:\t%s' % ', '.join(str(x) for x in tags)
 
-def coverage_setup(run_tests, run_all_tests):
+def coverage_setup(run_tests, run_all_tests, coverage_source, 
coverage_include, coverage_omit):
 """ Set up the coverage measurement for the testcases to be run """
 builddir = os.environ.get("BUILDDIR")
 coveragerc = "%s/.coveragerc" % builddir
@@ -384,10 +387,25 @@ def coverage_setup(run_tests, run_all_tests):
 cps.write("branch = True\n")
 # Measure just BBLAYERS, scripts and bitbake folders
 cps.write("source = \n")
-for layer in get_bb_var('BBLAYERS').split():
-cps.write("%s\n" % layer)
-cps.write("%s\n" % os.path.dirname(os.path.realpath(__file__)))
-cps.write("%s\n" % 
os.path.join(os.path.dirname(os.path.dirname(os.path.realpath(__file__))),'bitbake'))
+if coverage_source:
+for directory in coverage_source:
+if not os.path.isdir(directory):
+log.warn("Directory %s is not valid.", directory)
+cps.write("%s\n" % directory)
+else:
+for layer in get_bb_var('BBLAYERS').split():
+cps.write("%s\n" % layer)
+cps.write("%s\n" % os.path.dirname(os.path.realpath(__file__)))
+cps.write("%s\n" % 
os.path.join(os.path.dirname(os.path.dirname(os.path.realpath(__file__))),'bitbake'))
+
+if coverage_include:
+cps.write("include = \n")
+for pattern in coverage_include:
+cps.write("%s\n" % pattern)
+if coverage_omit:
+cps.write("omit = \n")
+for pattern in coverage_omit:
+cps.write("%s\n" % pattern)
 
 return coveragerc
 
@@ -550,7 +568,7 @@ def buildResultClass(args):
 
 def startTestRun(self):
 """ Setup coverage before running any testcase """
-if args.coverage:
+if args.coverage or args.coverage_source or args.coverage_include 
or args.coverage_omit:
 try:
 # check if user can do coverage
 import coverage
@@ -561,7 +579,7 @@ def buildResultClass(args):
 # value indicates where the coverage configuration file 
resides
 # More info on 

Re: [OE-core] [PATCH 2/2] scripts/oe-selftest: Use site.USER_SITE to run coverage configuration code for sub-process

2016-02-17 Thread Ibarra Lopez, Humberto
Yes, thanks for the heads up. I will send version 2.

Humberto

From: Christopher Larson [mailto:clar...@kergoth.com]
Sent: Tuesday, February 16, 2016 4:20 PM
To: Ibarra Lopez, Humberto ; 
openembedded-core@lists.openembedded.org
Subject: Re: [OE-core] [PATCH 2/2] scripts/oe-selftest: Use site.USER_SITE to 
run coverage configuration code for sub-process

Shouldn't this use a try/finally to ensure the user's site area is properly 
cleaned up if coverage_report() raises an exception? I doubt you want to risk 
leaving that around.

On Tue, Feb 16, 2016 at 1:10 PM 
> wrote:
From: Humberto Ibarra 
>

Coverage in oe-selftest currently requires to create or modify
a sitecustomize.py file according the coverage tool setup instructions
(http://coverage.readthedocs.org/). This file has to be located in
the system's python folder, which is not a good solution since this
folder is not accesible to non-privileged users.

The best solution so far is to create this file in the home directory.
This is implemented by creating the temporal file in the user site
default folder.

[Yocto #8930]

Signed-off-by: Humberto Ibarra 
>
---
 scripts/oe-selftest | 41 +++--
 1 file changed, 31 insertions(+), 10 deletions(-)

diff --git a/scripts/oe-selftest b/scripts/oe-selftest
index f3865e4..3159d22 100755
--- a/scripts/oe-selftest
+++ b/scripts/oe-selftest
@@ -553,6 +553,7 @@ def main():

 def buildResultClass(args):
 """Build a Result Class to use in the testcase execution"""
+import site

 class StampedResult(unittest.TextTestResult):
 """
@@ -568,26 +569,41 @@ def buildResultClass(args):

 def startTestRun(self):
 """ Setup coverage before running any testcase """
+
+# variable holding the coverage configuration file allowing 
subprocess to be measured
+self.coveragepth = None
+
+# indicates the system if coverage is currently installed
+self.coverage_installed = True
+
 if args.coverage or args.coverage_source or args.coverage_include 
or args.coverage_omit:
 try:
 # check if user can do coverage
 import coverage
-log.info("Coverage is enabled")
-
-# In case the user has not set the variable 
COVERAGE_PROCESS_START,
-# create a default one and export it. The 
COVERAGE_PROCESS_START
-# value indicates where the coverage configuration file 
resides
-# More info on https://pypi.python.org/pypi/coverage
-if not os.environ.get('COVERAGE_PROCESS_START'):
-os.environ['COVERAGE_PROCESS_START'] = 
coverage_setup(args.run_tests, args.run_all_tests, args.coverage_source, 
args.coverage_include, args.coverage_omit)
-
-self.coverage_installed = True
 except:
 log.warn('\n'.join(["python coverage is not installed",
 "Make sure your coverage takes into account 
sub-process",
 "More info on https://pypi.python.org/pypi/coverage;]))
 self.coverage_installed = False

+if self.coverage_installed:
+log.info("Coverage is enabled")
+
+# In case the user has not set the variable 
COVERAGE_PROCESS_START,
+# create a default one and export it. The 
COVERAGE_PROCESS_START
+# value indicates where the coverage configuration file resides
+# More info on https://pypi.python.org/pypi/coverage
+if not os.environ.get('COVERAGE_PROCESS_START'):
+os.environ['COVERAGE_PROCESS_START'] = 
coverage_setup(args.run_tests, args.run_all_tests, args.coverage_source, 
args.coverage_include, args.coverage_omit)
+
+# Use default site.USER_SITE and write corresponding config 
file
+site.ENABLE_USER_SITE = True
+if not os.path.exists(site.USER_SITE):
+os.makedirs(site.USER_SITE)
+self.coveragepth = os.path.join(site.USER_SITE, "coverage.pth")
+with open(self.coveragepth, 'w') as cps:
+cps.write('import sys,site; 
sys.path.extend(site.getsitepackages()); import coverage; 
coverage.process_startup();')
+
 def stopTestRun(self):
 """ Report coverage data after the testcases are run """

@@ -601,6 +617,11 @@ def buildResultClass(args):
 log.info("===")

 coverage_report()
+# remove the pth file
+ 

[OE-core] [PATCH] curl: re-enable proxy support by default

2016-02-17 Thread Andre McCurdy
Proxy support is a feature, so should not have been disabled in
the previous commit (which disabled support for legacy protocols):

  
http://git.openembedded.org/openembedded-core/commit/?id=b26634900d487a22eef41e9e077d35fb347d4c29

Signed-off-by: Andre McCurdy 
---
 meta/recipes-support/curl/curl_7.47.1.bb | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/meta/recipes-support/curl/curl_7.47.1.bb 
b/meta/recipes-support/curl/curl_7.47.1.bb
index 0872dbe..7e2664c 100644
--- a/meta/recipes-support/curl/curl_7.47.1.bb
+++ b/meta/recipes-support/curl/curl_7.47.1.bb
@@ -17,9 +17,9 @@ SRC_URI[sha256sum] = 
"ddc643ab9382e24bbe4747d43df189a0a6ce38fcb33df041b9cb0b3cd4
 
 inherit autotools pkgconfig binconfig multilib_header
 
-PACKAGECONFIG ??= "${@bb.utils.contains("DISTRO_FEATURES", "ipv6", "ipv6", "", 
d)} gnutls zlib"
-PACKAGECONFIG_class-native = "ipv6 ssl zlib"
-PACKAGECONFIG_class-nativesdk = "ipv6 ssl zlib"
+PACKAGECONFIG ??= "${@bb.utils.contains("DISTRO_FEATURES", "ipv6", "ipv6", "", 
d)} gnutls proxy zlib"
+PACKAGECONFIG_class-native = "ipv6 proxy ssl zlib"
+PACKAGECONFIG_class-nativesdk = "ipv6 proxy ssl zlib"
 
 PACKAGECONFIG[dict] = "--enable-dict,--disable-dict,"
 PACKAGECONFIG[gnutls] = "--with-gnutls,--without-gnutls,gnutls"
-- 
1.9.1

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


[OE-core] [jethro][PATCH] glibc: Security fix CVE-2015-7547

2016-02-17 Thread Armin Kuster
From: Armin Kuster 

CVE-2015-7547: getaddrinfo() stack-based buffer overflow

Signed-off-by: Armin Kuster 
---
 meta/recipes-core/glibc/glibc/CVE-2015-7547.patch | 642 ++
 meta/recipes-core/glibc/glibc_2.22.bb |   1 +
 2 files changed, 643 insertions(+)
 create mode 100644 meta/recipes-core/glibc/glibc/CVE-2015-7547.patch

diff --git a/meta/recipes-core/glibc/glibc/CVE-2015-7547.patch 
b/meta/recipes-core/glibc/glibc/CVE-2015-7547.patch
new file mode 100644
index 000..4e539f8
--- /dev/null
+++ b/meta/recipes-core/glibc/glibc/CVE-2015-7547.patch
@@ -0,0 +1,642 @@
+From e9db92d3acfe1822d56d11abcea5bfc4c41cf6ca Mon Sep 17 00:00:00 2001
+From: Carlos O'Donell 
+Date: Tue, 16 Feb 2016 21:26:37 -0500
+Subject: [PATCH] CVE-2015-7547: getaddrinfo() stack-based buffer overflow (Bug
+ 18665).
+
+* A stack-based buffer overflow was found in libresolv when invoked from
+  libnss_dns, allowing specially crafted DNS responses to seize control
+  of execution flow in the DNS client.  The buffer overflow occurs in
+  the functions send_dg (send datagram) and send_vc (send TCP) for the
+  NSS module libnss_dns.so.2 when calling getaddrinfo with AF_UNSPEC
+  family.  The use of AF_UNSPEC triggers the low-level resolver code to
+  send out two parallel queries for A and .  A mismanagement of the
+  buffers used for those queries could result in the response of a query
+  writing beyond the alloca allocated buffer created by
+  _nss_dns_gethostbyname4_r.  Buffer management is simplified to remove
+  the overflow.  Thanks to the Google Security Team and Red Hat for
+  reporting the security impact of this issue, and Robert Holiday of
+  Ciena for reporting the related bug 18665. (CVE-2015-7547)
+
+See also:
+https://sourceware.org/ml/libc-alpha/2016-02/msg00416.html
+https://sourceware.org/ml/libc-alpha/2016-02/msg00418.html
+
+Upstream-Status: Backport
+CVE: CVE-2015-7547
+
+https://sourceware.org/git/?p=glibc.git;a=commit;h=e9db92d3acfe1822d56d11abcea5bfc4c41cf6ca
+minor tweeking to apply to Changelog and res_send.c
+
+Signed-off-by: Armin Kuster 
+
+---
+ ChangeLog |  17 ++-
+ NEWS  |  14 +++
+ resolv/nss_dns/dns-host.c | 111 +++-
+ resolv/res_query.c|   3 +
+ resolv/res_send.c | 260 +++---
+ 5 files changed, 339 insertions(+), 66 deletions(-)
+
+Index: git/NEWS
+===
+--- git.orig/NEWS
 git/NEWS
+@@ -105,6 +105,20 @@ Security related changes:
+   depending on the length of the string passed as an argument to the
+   functions.  Reported by Joseph Myers.
+ 
++* A stack-based buffer overflow was found in libresolv when invoked from
++  libnss_dns, allowing specially crafted DNS responses to seize control
++  of execution flow in the DNS client.  The buffer overflow occurs in
++  the functions send_dg (send datagram) and send_vc (send TCP) for the
++  NSS module libnss_dns.so.2 when calling getaddrinfo with AF_UNSPEC
++  family.  The use of AF_UNSPEC triggers the low-level resolver code to
++  send out two parallel queries for A and .  A mismanagement of the
++  buffers used for those queries could result in the response of a query
++  writing beyond the alloca allocated buffer created by
++  _nss_dns_gethostbyname4_r.  Buffer management is simplified to remove
++  the overflow.  Thanks to the Google Security Team and Red Hat for
++  reporting the security impact of this issue, and Robert Holiday of
++  Ciena for reporting the related bug 18665. (CVE-2015-7547)
++
+ * The following bugs are resolved with this release:
+ 
+   6652, 10672, 12674, 12847, 12926, 13862, 14132, 14138, 14171, 14498,
+Index: git/resolv/nss_dns/dns-host.c
+===
+--- git.orig/resolv/nss_dns/dns-host.c
 git/resolv/nss_dns/dns-host.c
+@@ -1031,7 +1031,10 @@ gaih_getanswer_slice (const querybuf *an
+   int h_namelen = 0;
+ 
+   if (ancount == 0)
+-return NSS_STATUS_NOTFOUND;
++{
++  *h_errnop = HOST_NOT_FOUND;
++  return NSS_STATUS_NOTFOUND;
++}
+ 
+   while (ancount-- > 0 && cp < end_of_message && had_error == 0)
+ {
+@@ -1208,7 +1211,14 @@ gaih_getanswer_slice (const querybuf *an
+   /* Special case here: if the resolver sent a result but it only
+  contains a CNAME while we are looking for a T_A or T_ record,
+  we fail with NOTFOUND instead of TRYAGAIN.  */
+-  return canon == NULL ? NSS_STATUS_TRYAGAIN : NSS_STATUS_NOTFOUND;
++  if (canon != NULL)
++{
++  *h_errnop = HOST_NOT_FOUND;
++  return NSS_STATUS_NOTFOUND;
++}
++
++  *h_errnop = NETDB_INTERNAL;
++  return NSS_STATUS_TRYAGAIN;
+ }
+ 
+ 
+@@ -1222,11 +1232,101 @@ gaih_getanswer (const querybuf *answer1,
+ 
+   enum nss_status status = NSS_STATUS_NOTFOUND;
+ 
++  /* Combining 

[OE-core] [jethro][PATCH v2] glibc CVE-2015-7547

2016-02-17 Thread Armin Kuster
V2  includes changes not committed  before sending.

This is being submitted to comply to Yocto compatability.

Master is affected but waiting for 2.23 to be merged before sending patches.

Armin Kuster (1):
  glibc: Security fix CVE-2015-7547

 meta/recipes-core/glibc/glibc/CVE-2015-7547.patch | 642 ++
 meta/recipes-core/glibc/glibc_2.22.bb |   1 +
 2 files changed, 643 insertions(+)
 create mode 100644 meta/recipes-core/glibc/glibc/CVE-2015-7547.patch

-- 
2.3.5

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


[OE-core] [jethro][PATCH] glibc: Security fix CVE-2015-7547

2016-02-17 Thread Armin Kuster
From: Armin Kuster 

CVE-2015-7547: getaddrinfo() stack-based buffer overflow

Signed-off-by: Armin Kuster 
---
 meta/recipes-core/glibc/glibc/CVE-2015-7547.patch | 643 ++
 meta/recipes-core/glibc/glibc_2.22.bb |   1 +
 2 files changed, 644 insertions(+)
 create mode 100644 meta/recipes-core/glibc/glibc/CVE-2015-7547.patch

diff --git a/meta/recipes-core/glibc/glibc/CVE-2015-7547.patch 
b/meta/recipes-core/glibc/glibc/CVE-2015-7547.patch
new file mode 100644
index 000..ab25a95
--- /dev/null
+++ b/meta/recipes-core/glibc/glibc/CVE-2015-7547.patch
@@ -0,0 +1,643 @@
+From e9db92d3acfe1822d56d11abcea5bfc4c41cf6ca Mon Sep 17 00:00:00 2001
+From: Carlos O'Donell 
+Date: Tue, 16 Feb 2016 21:26:37 -0500
+Subject: [PATCH] CVE-2015-7547: getaddrinfo() stack-based buffer overflow (Bug
+ 18665).
+
+* A stack-based buffer overflow was found in libresolv when invoked from
+  libnss_dns, allowing specially crafted DNS responses to seize control
+  of execution flow in the DNS client.  The buffer overflow occurs in
+  the functions send_dg (send datagram) and send_vc (send TCP) for the
+  NSS module libnss_dns.so.2 when calling getaddrinfo with AF_UNSPEC
+  family.  The use of AF_UNSPEC triggers the low-level resolver code to
+  send out two parallel queries for A and .  A mismanagement of the
+  buffers used for those queries could result in the response of a query
+  writing beyond the alloca allocated buffer created by
+  _nss_dns_gethostbyname4_r.  Buffer management is simplified to remove
+  the overflow.  Thanks to the Google Security Team and Red Hat for
+  reporting the security impact of this issue, and Robert Holiday of
+  Ciena for reporting the related bug 18665. (CVE-2015-7547)
+
+See also:
+https://sourceware.org/ml/libc-alpha/2016-02/msg00416.html
+https://sourceware.org/ml/libc-alpha/2016-02/msg00418.html
+
+Upstream-Status: Backport
+CVE:  CVE-2015-7547
+
+https://sourceware.org/git/?p=glibc.git;a=commit;h=e9db92d3acfe1822d56d11abcea5bfc4c41cf6ca
+
+minor hand tweeking for Changelog and res_send to get patch applied
+
+Signed-off-by: Armin Kuster 
+
+---
+ ChangeLog |  17 ++-
+ NEWS  |  14 +++
+ resolv/nss_dns/dns-host.c | 111 +++-
+ resolv/res_query.c|   3 +
+ resolv/res_send.c | 260 +++---
+ 5 files changed, 339 insertions(+), 66 deletions(-)
+
+Index: git/ChangeLog
+===
+--- git.orig/ChangeLog
 git/ChangeLog
+@@ -1,3 +1,18 @@
++2016-02-15  Carlos O'Donell  
++
++   [BZ #18665]
++   * resolv/nss_dns/dns-host.c (gaih_getanswer_slice): Always set
++   *herrno_p.
++   (gaih_getanswer): Document functional behviour. Return tryagain
++   if any result is tryagain.
++   * resolv/res_query.c (__libc_res_nsearch): Set buffer size to zero
++   when freed.
++   * resolv/res_send.c: Add copyright text.
++   (__libc_res_nsend): Document that MAXPACKET is expected.
++   (send_vc): Document. Remove buffer reuse.
++   (send_dg): Document. Remove buffer reuse. Set *thisanssizp to set the
++   size of the buffer. Add Dprint for truncated UDP buffer.
++
+ 2015-08-10  Maxim Ostapenko  
+ 
+   [BZ #18778]
+Index: git/NEWS
+===
+--- git.orig/NEWS
 git/NEWS
+@@ -96,6 +96,20 @@ Version 2.22
+ 
+ Version 2.21
+ 
++* A stack-based buffer overflow was found in libresolv when invoked from
++  libnss_dns, allowing specially crafted DNS responses to seize control
++  of execution flow in the DNS client.  The buffer overflow occurs in
++  the functions send_dg (send datagram) and send_vc (send TCP) for the
++  NSS module libnss_dns.so.2 when calling getaddrinfo with AF_UNSPEC
++  family.  The use of AF_UNSPEC triggers the low-level resolver code to
++  send out two parallel queries for A and .  A mismanagement of the
++  buffers used for those queries could result in the response of a query
++  writing beyond the alloca allocated buffer created by
++  _nss_dns_gethostbyname4_r.  Buffer management is simplified to remove
++  the overflow.  Thanks to the Google Security Team and Red Hat for
++  reporting the security impact of this issue, and Robert Holiday of
++  Ciena for reporting the related bug 18665. (CVE-2015-7547)
++
+ * The following bugs are resolved with this release:
+ 
+   6652, 10672, 12674, 12847, 12926, 13862, 14132, 14138, 14171, 14498,
+Index: git/resolv/nss_dns/dns-host.c
+===
+--- git.orig/resolv/nss_dns/dns-host.c
 git/resolv/nss_dns/dns-host.c
+@@ -1031,7 +1031,10 @@ gaih_getanswer_slice (const querybuf *an
+   int h_namelen = 0;
+ 
+   if (ancount == 0)
+-return 

[OE-core] [jethro][PATCH] glibc CVE-2015-7547

2016-02-17 Thread Armin Kuster
This is being submitted to comply to Yocto compatability.

Master is affected but waiting for 2.23 to be merged before sending patches.

Armin Kuster (1):
  glibc: Security fix CVE-2015-7547

 meta/recipes-core/glibc/glibc/CVE-2015-7547.patch | 643 ++
 meta/recipes-core/glibc/glibc_2.22.bb |   1 +
 2 files changed, 644 insertions(+)
 create mode 100644 meta/recipes-core/glibc/glibc/CVE-2015-7547.patch

-- 
2.3.5

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


[OE-core] [PATCH 1/2] testimage: add DEFAULT_TEST_SUITES for more images

2016-02-17 Thread Alex Franco
Add these generic variables, to reuse test suite lists in more
specific default test suites variables for actual images:

DEFAULT_TEST_SUITES_minimal
DEFAULT_TEST_SUITES_network
DEFAULT_TEST_SUITES_dev

Add these default test suites variables:

DEFAULT_TEST_SUITES_pn-core-image-minimal-dev
DEFAULT_TEST_SUITES_pn-core-image-full-cmdline
DEFAULT_TEST_SUITES_pn-core-image-x11
DEFAULT_TEST_SUITES_pn-core-image-lsb

[YOCTO #8410]

Signed-off-by: Alex Franco 
---
 meta/classes/testimage.bbclass | 8 
 1 file changed, 8 insertions(+)

diff --git a/meta/classes/testimage.bbclass b/meta/classes/testimage.bbclass
index eed27be..cce8cea 100644
--- a/meta/classes/testimage.bbclass
+++ b/meta/classes/testimage.bbclass
@@ -33,9 +33,17 @@ TEST_EXPORT_DIR ?= "${TMPDIR}/testimage/${PN}"
 TEST_EXPORT_ONLY ?= "0"
 
 RPMTESTSUITE = "${@bb.utils.contains('IMAGE_PKGTYPE', 'rpm', 'smart rpm', '', 
d)}"
+MINTESTSUITE = "ping"
+NETTESTSUITE = "${MINTESTSUITE} ssh df date scp syslog"
+DEVTESTSUITE = "gcc kernelmodule ldd"
 
 DEFAULT_TEST_SUITES = "ping auto"
 DEFAULT_TEST_SUITES_pn-core-image-minimal = "ping"
+DEFAULT_TEST_SUITES_pn-core-image-minimal-dev = "${MINTESTSUITE}"
+DEFAULT_TEST_SUITES_pn-core-image-full-cmdline = "${NETTESTSUITE} perl python 
logrotate"
+DEFAULT_TEST_SUITES_pn-core-image-x11 = "${MINTESTSUITE}"
+DEFAULT_TEST_SUITES_pn-core-image-lsb = "${NETTESTSUITE} buildcvs 
buildiptables buildsudoku \
+connman pam parselogs ${RPMTESTSUITE}"
 DEFAULT_TEST_SUITES_pn-core-image-sato = "ping ssh df connman syslog xorg scp 
date parselogs ${RPMTESTSUITE} \
 ${@bb.utils.contains('IMAGE_PKGTYPE', 'rpm', 'python', '', d)}"
 DEFAULT_TEST_SUITES_pn-core-image-sato-sdk = "ping ssh df connman syslog xorg 
scp date perl ldd gcc kernelmodule python parselogs ${RPMTESTSUITE}"
-- 
2.6.2

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


[OE-core] [PATCH 0/2] testimage: add/modify DEFAULT_TEST_SUITES

2016-02-17 Thread Alex Franco
- Add generic variables to reuse values in default test suites
- Add more default test suites variables
- Modify existing test suites to use generic vars when possible

[YOCTO #8410]

Alex Franco (2):
  testimage: add DEFAULT_TEST_SUITES for more images
  testimage: reuse generic test suites

 meta/classes/testimage.bbclass | 22 --
 1 file changed, 16 insertions(+), 6 deletions(-)

--
2.6.2

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


[OE-core] [PATCH 2/2] testimage: reuse generic test suites

2016-02-17 Thread Alex Franco
Modify existing default test suites to use the recently added
generic vars whenever possible.

[YOCTO #8410]

Signed-off-by: Alex Franco 
---
 meta/classes/testimage.bbclass | 12 +++-
 1 file changed, 7 insertions(+), 5 deletions(-)

diff --git a/meta/classes/testimage.bbclass b/meta/classes/testimage.bbclass
index cce8cea..8276568 100644
--- a/meta/classes/testimage.bbclass
+++ b/meta/classes/testimage.bbclass
@@ -37,17 +37,19 @@ MINTESTSUITE = "ping"
 NETTESTSUITE = "${MINTESTSUITE} ssh df date scp syslog"
 DEVTESTSUITE = "gcc kernelmodule ldd"
 
-DEFAULT_TEST_SUITES = "ping auto"
-DEFAULT_TEST_SUITES_pn-core-image-minimal = "ping"
+DEFAULT_TEST_SUITES = "${MINTESTSUITE} auto"
+DEFAULT_TEST_SUITES_pn-core-image-minimal = "${MINTESTSUITE}"
 DEFAULT_TEST_SUITES_pn-core-image-minimal-dev = "${MINTESTSUITE}"
 DEFAULT_TEST_SUITES_pn-core-image-full-cmdline = "${NETTESTSUITE} perl python 
logrotate"
 DEFAULT_TEST_SUITES_pn-core-image-x11 = "${MINTESTSUITE}"
 DEFAULT_TEST_SUITES_pn-core-image-lsb = "${NETTESTSUITE} buildcvs 
buildiptables buildsudoku \
 connman pam parselogs ${RPMTESTSUITE}"
-DEFAULT_TEST_SUITES_pn-core-image-sato = "ping ssh df connman syslog xorg scp 
date parselogs ${RPMTESTSUITE} \
+DEFAULT_TEST_SUITES_pn-core-image-sato = "${NETTESTSUITE} connman xorg 
parselogs ${RPMTESTSUITE} \
 ${@bb.utils.contains('IMAGE_PKGTYPE', 'rpm', 'python', '', d)}"
-DEFAULT_TEST_SUITES_pn-core-image-sato-sdk = "ping ssh df connman syslog xorg 
scp date perl ldd gcc kernelmodule python parselogs ${RPMTESTSUITE}"
-DEFAULT_TEST_SUITES_pn-core-image-lsb-sdk = "ping buildcvs buildiptables 
buildsudoku connman date df gcc kernelmodule ldd pam parselogs perl python scp 
${RPMTESTSUITE} ssh syslog logrotate"
+DEFAULT_TEST_SUITES_pn-core-image-sato-sdk = "${NETTESTSUITE} connman xorg 
perl python \
+${DEVTESTSUITE} parselogs ${RPMTESTSUITE}"
+DEFAULT_TEST_SUITES_pn-core-image-lsb-sdk = "${NETTESTSUITE} buildcvs 
buildiptables buildsudoku \
+connman ${DEVTESTSUITE} pam perl python parselogs ${RPMTESTSUITE}"
 DEFAULT_TEST_SUITES_pn-meta-toolchain = "auto"
 
 # aarch64 has no graphics
-- 
2.6.2

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


[OE-core] [PATCH 4/4] pulseaudio: 6.0 -> 8.0

2016-02-17 Thread Tanu Kaskinen
Release notes for 7.0:
https://wiki.freedesktop.org/www/Software/PulseAudio/Notes/7.0/

Release notes for 8.0:
https://wiki.freedesktop.org/www/Software/PulseAudio/Notes/8.0/

7.0 added support for soxr resamplers, but neither oe-core nor meta-oe
have libsoxr packaged. The default resampler is still speexdsp based,
so most people wouldn't be using the soxr resamplers anyway. If
someone cares enough to package soxr, then we can enable the feature.

Bash completions moved in 7.0 from /etc to the standard location under
/usr/share/bash-completion. We now use the bash-completion class to
package the completion files.

The private library libpulsecore moved from /usr/lib to
/usr/lib/pulseaudio.

The new routing features advertised in the 8.0 release notes are
reverted for now, because they caused regressions. I'll remove the
revert once a proper fix is available.

Removed two patches, because they are included in the new release.

Rebased three patches.

Updated Upstream-Status tags to reflect the current situation.

Signed-off-by: Tanu Kaskinen 
---
 meta/recipes-multimedia/pulseaudio/pulseaudio.inc  |   8 +-
 ...le-switch-on-port-available-Route-to-pref.patch | 268 +
 .../0001-card-add-pa_card_profile.ports.patch  | 101 +++-
 ...-client-conf-Add-allow-autospawn-for-root.patch |   7 +-
 ...onf-parser-add-support-for-.d-directories.patch | 196 ---
 ...oth-fail-if-user-requested-profile-doesn-.patch |   7 +-
 ...-move-profile-selection-after-pa_card_new.patch | 131 +-
 ...vailability-for-some-unavailable-profiles.patch |  32 ++-
 .../pulseaudio/fix-git-version-gen.patch   |  24 --
 .../{pulseaudio_6.0.bb => pulseaudio_8.0.bb}   |   7 +-
 10 files changed, 413 insertions(+), 368 deletions(-)
 create mode 100644 
meta/recipes-multimedia/pulseaudio/pulseaudio/0001-Revert-module-switch-on-port-available-Route-to-pref.patch
 delete mode 100644 
meta/recipes-multimedia/pulseaudio/pulseaudio/0001-conf-parser-add-support-for-.d-directories.patch
 delete mode 100644 
meta/recipes-multimedia/pulseaudio/pulseaudio/fix-git-version-gen.patch
 rename meta/recipes-multimedia/pulseaudio/{pulseaudio_6.0.bb => 
pulseaudio_8.0.bb} (72%)

diff --git a/meta/recipes-multimedia/pulseaudio/pulseaudio.inc 
b/meta/recipes-multimedia/pulseaudio/pulseaudio.inc
index b278115..0b05ce4 100644
--- a/meta/recipes-multimedia/pulseaudio/pulseaudio.inc
+++ b/meta/recipes-multimedia/pulseaudio/pulseaudio.inc
@@ -12,7 +12,7 @@ DEPENDS = "libatomic-ops libsndfile1 libtool"
 DEPENDS += "udev alsa-lib glib-2.0 gconf"
 DEPENDS += "json-c gdbm speexdsp libxml-parser-perl-native libcap"
 
-inherit autotools pkgconfig useradd gettext perlnative bluetooth systemd
+inherit autotools bash-completion pkgconfig useradd gettext perlnative 
bluetooth systemd
 
 # *.desktop rules wont be generated during configure and build will fail
 # if using --disable-nls
@@ -32,6 +32,10 @@ EXTRA_OECONF = "\
 ac_cv_header_valgrind_memcheck_h=no \
 "
 
+# soxr (the SoX Resampler library) doesn't seem to be currently packaged in
+# oe-core nor meta-oe, so let's not add a PACKAGECONFIG entry for it for now.
+EXTRA_OECONF += "--without-soxr"
+
 PACKAGECONFIG ??= "${@bb.utils.contains('DISTRO_FEATURES', 'bluetooth', 
'${BLUEZ}', '', d)} \
${@bb.utils.contains('DISTRO_FEATURES', 'zeroconf', 
'avahi', '', d)} \
${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'x11', '', 
d)} \
@@ -101,7 +105,7 @@ RREPLACES_pulseaudio-server = "libpulse-bin libpulse-conf"
 
 PACKAGES_DYNAMIC += "^pulseaudio-lib-.* ^pulseaudio-module-.*"
 
-FILES_libpulsecore = "${libdir}/libpulsecore*.so"
+FILES_libpulsecore = "${libdir}/pulseaudio/libpulsecore*.so"
 FILES_libpulsecommon = "${libdir}/pulseaudio/libpulsecommon*.so"
 
 # client.conf configures the behaviour of libpulse, so it belongs in the same
diff --git 
a/meta/recipes-multimedia/pulseaudio/pulseaudio/0001-Revert-module-switch-on-port-available-Route-to-pref.patch
 
b/meta/recipes-multimedia/pulseaudio/pulseaudio/0001-Revert-module-switch-on-port-available-Route-to-pref.patch
new file mode 100644
index 000..1c1e2fb
--- /dev/null
+++ 
b/meta/recipes-multimedia/pulseaudio/pulseaudio/0001-Revert-module-switch-on-port-available-Route-to-pref.patch
@@ -0,0 +1,268 @@
+From b8b9b3da94a0c27090ceba243fdf54fb518c5489 Mon Sep 17 00:00:00 2001
+From: Tanu Kaskinen 
+Date: Mon, 1 Feb 2016 15:34:59 +0200
+Subject: [PATCH] Revert "module-switch-on-port-available: Route to preferred
+ profile"
+
+This reverts commit e87100d41ef6d14f8dc7f803582191d9f8d8f183.
+
+The reverted commit had some unwanted consequences:
+https://bugs.freedesktop.org/show_bug.cgi?id=93903
+https://bugs.freedesktop.org/show_bug.cgi?id=93946
+
+The first regression has a fix here:
+https://patchwork.freedesktop.org/patch/72053/
+
+The second regression, however, doesn't have a fix yet. Therefore,
+it's best to revert the offending patch for now.
+

[OE-core] [PATCH 3/4] alsa-plugins: 1.0.29 -> 1.1.0

2016-02-17 Thread Tanu Kaskinen
Changelog: http://alsa-project.org/main/index.php/Changes_v1.0.29_v1.1.0

The licensing of the libsamplerate plugin was relaxed a bit: if the
licensee has a commercial license for libsamplerate, the plugin can be
used under the terms of LGPL instead of GPL.

Both old patches are included in the new release, so dropped them.

Added a new patch to fix building against libspeexdsp 1.2rc3.

Signed-off-by: Tanu Kaskinen 
---
 ...nclude-sys-select.h-for-fd_set-definition.patch | 31 --
 ...nclude-speexdsp_types.h-not-speex_types.h.patch | 71 --
 ...ph-include-config.h-from-rate_speexrate.c.patch | 35 +++
 ...lsa-plugins_1.0.29.bb => alsa-plugins_1.1.0.bb} | 16 ++---
 4 files changed, 44 insertions(+), 109 deletions(-)
 delete mode 100644 
meta/recipes-multimedia/alsa/alsa-plugins/0001-arcam-av-Include-sys-select.h-for-fd_set-definition.patch
 delete mode 100644 
meta/recipes-multimedia/alsa/alsa-plugins/0001-include-speexdsp_types.h-not-speex_types.h.patch
 create mode 100644 
meta/recipes-multimedia/alsa/alsa-plugins/0001-pph-include-config.h-from-rate_speexrate.c.patch
 rename meta/recipes-multimedia/alsa/{alsa-plugins_1.0.29.bb => 
alsa-plugins_1.1.0.bb} (87%)

diff --git 
a/meta/recipes-multimedia/alsa/alsa-plugins/0001-arcam-av-Include-sys-select.h-for-fd_set-definition.patch
 
b/meta/recipes-multimedia/alsa/alsa-plugins/0001-arcam-av-Include-sys-select.h-for-fd_set-definition.patch
deleted file mode 100644
index c70c72c..000
--- 
a/meta/recipes-multimedia/alsa/alsa-plugins/0001-arcam-av-Include-sys-select.h-for-fd_set-definition.patch
+++ /dev/null
@@ -1,31 +0,0 @@
-From d28c655be3ac4fcb8024555983884f832ee18787 Mon Sep 17 00:00:00 2001
-From: Khem Raj 
-Date: Fri, 29 May 2015 15:17:30 -0700
-Subject: [PATCH] arcam-av: Include sys/select.h for fd_set definition
-
-fixes build errors on non-glibc based systems
-
-arcam-av/arcam_av.c:389:2: error: unknown type name 'fd_set'
-
-Signed-off-by: Khem Raj 

-Upstream-Status: Submitted
-
- arcam-av/arcam_av.c | 1 +
- 1 file changed, 1 insertion(+)
-
-diff --git a/arcam-av/arcam_av.c b/arcam-av/arcam_av.c
-index 0491fc6..fff96f9 100644
 a/arcam-av/arcam_av.c
-+++ b/arcam-av/arcam_av.c
-@@ -31,6 +31,7 @@
- #include 
- 
- #include 
-+#include 
- #include 
- #include 
- #include 
--- 
-2.1.4
-
diff --git 
a/meta/recipes-multimedia/alsa/alsa-plugins/0001-include-speexdsp_types.h-not-speex_types.h.patch
 
b/meta/recipes-multimedia/alsa/alsa-plugins/0001-include-speexdsp_types.h-not-speex_types.h.patch
deleted file mode 100644
index e5199fb..000
--- 
a/meta/recipes-multimedia/alsa/alsa-plugins/0001-include-speexdsp_types.h-not-speex_types.h.patch
+++ /dev/null
@@ -1,71 +0,0 @@
-From ca41e96a49a568128354f65f90a769debf5435f1 Mon Sep 17 00:00:00 2001
-From: Tanu Kaskinen 
-Date: Thu, 9 Jul 2015 11:58:12 +0300
-Subject: [PATCH] include speexdsp_types.h, not speex_types.h
-
-Speexdsp was separated from speex in 1.2rc2. speex_types.h is not
-shipped by speexdsp, so alsa-plugins shouldn't use that file. speexdsp
-has speexdsp_types.h, which has the same contents as speex_types.h.
-
-speexdsp_types.h is a new file introduced in 1.2rc2, so this change
-bumps the minimum supported speexdsp version. The version check in
-configure.ac will actually break if speexdsp 1.2 ever gets released,
-because pkg-config thinks that "1.2" < "1.2rc2", but I think it's
-useful to fail if the installed speexdsp version is 1.2rc1 (which I
-believe is very common on current distributions). If a non-rc version
-of speexdsp will ever get released, I hope version number 1.2 will be
-skipped for this reason. (A non-rc version seems unlikely, since
-1.2rc1 was released years ago, so it's pretty likely that the project
-is stuck on so called "release candidates" forever...)
-
-Upstream-Status: Submitted 
(http://thread.gmane.org/gmane.linux.alsa.devel/141149)
-
-Signed-off-by: Tanu Kaskinen 

- configure.ac  | 2 +-
- pph/arch.h| 2 +-
- pph/speex_resampler.h | 2 +-
- 3 files changed, 3 insertions(+), 3 deletions(-)
-
-diff --git a/configure.ac b/configure.ac
-index 902a6d7..c554d22 100644
 a/configure.ac
-+++ b/configure.ac
-@@ -108,7 +108,7 @@ AC_SUBST(AVCODEC_CFLAGS)
- AC_SUBST(AVCODEC_LIBS)
- AC_SUBST(AVCODEC_HEADER)
- 
--PKG_CHECK_MODULES(speexdsp, [speexdsp >= 1.2], [HAVE_SPEEXDSP="yes"], 
[HAVE_SPEEXDSP=""])
-+PKG_CHECK_MODULES(speexdsp, [speexdsp >= 1.2rc2], [HAVE_SPEEXDSP="yes"], 
[HAVE_SPEEXDSP=""])
- AM_CONDITIONAL(HAVE_SPEEXDSP, test "$HAVE_SPEEXDSP" = "yes")
- 
- AC_ARG_WITH([speex],
-diff --git a/pph/arch.h b/pph/arch.h
-index e2d731a..a07d0d9 100644
 a/pph/arch.h
-+++ b/pph/arch.h
-@@ -36,7 +36,7 @@
- #define ARCH_H
- 
- #ifndef OUTSIDE_SPEEX
--#include "speex/speex_types.h"
-+#include "speex/speexdsp_types.h"
- #endif
- 
- #define ABS(x) ((x) < 0 ? (-(x)) : (x))  /**< Absolute integer value. 

[OE-core] [PATCH 2/4] alsa-utils: 1.0.29 -> 1.1.0

2016-02-17 Thread Tanu Kaskinen
Changelog: http://alsa-project.org/main/index.php/Changes_v1.0.29_v1.1.0

This release introduces two new tools:
 - alsatplg for converting topology data from text representation to a
   binary format consumed by the kernel
 - alsabat; "bat" stands for "basic audio tester"

Backported a patch from upstream that renames bat to alsabat.

Rebased patch "0001-alsactl-don-t-let-systemd-unit-restore-the-volume-wh.patch".

Dropped patches "alsa-utils-aplay-interrupt-signal-handling.patch" and
"assume-storing-is-success-if-not-sound-card-device.patch", because
the issues have been fixed upstream.

Signed-off-by: Tanu Kaskinen 
---
 ...ripts_1.0.29.bb => alsa-utils-scripts_1.1.0.bb} |   0
 ...1-alsabat-rename-to-avoid-naming-conflict.patch | 153 +
 ...-t-let-systemd-unit-restore-the-volume-wh.patch |  20 +--
 ...lsa-utils-aplay-interrupt-signal-handling.patch |  48 ---
 ...oring-is-success-if-not-sound-card-device.patch |  34 -
 .../{alsa-utils_1.0.29.bb => alsa-utils_1.1.0.bb}  |  15 +-
 6 files changed, 175 insertions(+), 95 deletions(-)
 rename meta/recipes-multimedia/alsa/{alsa-utils-scripts_1.0.29.bb => 
alsa-utils-scripts_1.1.0.bb} (100%)
 create mode 100644 
meta/recipes-multimedia/alsa/alsa-utils/0001-alsabat-rename-to-avoid-naming-conflict.patch
 delete mode 100644 
meta/recipes-multimedia/alsa/alsa-utils/alsa-utils-aplay-interrupt-signal-handling.patch
 delete mode 100644 
meta/recipes-multimedia/alsa/alsa-utils/assume-storing-is-success-if-not-sound-card-device.patch
 rename meta/recipes-multimedia/alsa/{alsa-utils_1.0.29.bb => 
alsa-utils_1.1.0.bb} (85%)

diff --git a/meta/recipes-multimedia/alsa/alsa-utils-scripts_1.0.29.bb 
b/meta/recipes-multimedia/alsa/alsa-utils-scripts_1.1.0.bb
similarity index 100%
rename from meta/recipes-multimedia/alsa/alsa-utils-scripts_1.0.29.bb
rename to meta/recipes-multimedia/alsa/alsa-utils-scripts_1.1.0.bb
diff --git 
a/meta/recipes-multimedia/alsa/alsa-utils/0001-alsabat-rename-to-avoid-naming-conflict.patch
 
b/meta/recipes-multimedia/alsa/alsa-utils/0001-alsabat-rename-to-avoid-naming-conflict.patch
new file mode 100644
index 000..b6d7d4f
--- /dev/null
+++ 
b/meta/recipes-multimedia/alsa/alsa-utils/0001-alsabat-rename-to-avoid-naming-conflict.patch
@@ -0,0 +1,153 @@
+From 28c29dece6c434e7d3d01e80ba7ddf6fba65 Mon Sep 17 00:00:00 2001
+From: "Lu, Han" 
+Date: Wed, 3 Feb 2016 14:20:33 +0800
+Subject: [PATCH] alsabat: rename to avoid naming conflict
+
+alsa-utils as well as bareos-bat (as well a some Bacula packages)
+all contain a program called /usr/bin/bat, which causes conflicts on
+various distributions ("basic audio tester" vs "bareos administration
+tool"("bacula administration tool")).
+Rename to avoid conflict.
+
+Signed-off-by: Lu, Han 
+Signed-off-by: Takashi Iwai 
+
+Upstream-Status: Accepted [expected in version 1.1.1]
+
+Signed-off-by: Tanu Kaskinen 
+---
+ bat/Makefile.am  | 10 +-
+ bat/{bat.1 => alsabat.1} | 43 ++-
+ bat/bat.c|  2 +-
+ 3 files changed, 28 insertions(+), 27 deletions(-)
+ rename bat/{bat.1 => alsabat.1} (72%)
+
+diff --git a/bat/Makefile.am b/bat/Makefile.am
+index 842ae6b..985f00c 100644
+--- a/bat/Makefile.am
 b/bat/Makefile.am
+@@ -1,9 +1,9 @@
+-bin_PROGRAMS = bat
+-man_MANS = bat.1
++bin_PROGRAMS = alsabat
++man_MANS = alsabat.1
+ 
+-EXTRA_DIST = bat.1
++EXTRA_DIST = alsabat.1
+ 
+-bat_SOURCES = \
++alsabat_SOURCES = \
+   bat.c \
+   common.c \
+   analyze.c \
+@@ -21,4 +21,4 @@ noinst_HEADERS = \
+ AM_CPPFLAGS = \
+ -Wall -I$(top_srcdir)/include
+ 
+-bat_LDADD = @FFTW_LIB@
++alsabat_LDADD = @FFTW_LIB@
+diff --git a/bat/bat.1 b/bat/alsabat.1
+similarity index 72%
+rename from bat/bat.1
+rename to bat/alsabat.1
+index e00fc27..8d0b9c0 100644
+--- a/bat/bat.1
 b/bat/alsabat.1
+@@ -1,23 +1,23 @@
+-.TH BAT 1 "20th October 2015"
++.TH ALSABAT 1 "20th October 2015"
+ .SH NAME
+-bat \- command\-line sound tester for ALSA sound card driver
++alsabat \- command\-line sound tester for ALSA sound card driver
+ 
+ .SH SYNOPSIS
+-\fBbat\fP [\fIflags\fP]
++\fBalsabat\fP [\fIflags\fP]
+ 
+ .SH DESCRIPTION
+-\fBBAT(Basic Audio Tester)\fP is a simple command\-line utility intended
+-to help automate audio driver and sound server testing with little human
+-interaction. BAT can be used to test audio quality, stress test features
+-and test audio before and after PM state changes.
++\fBALSABAT(ALSA Basic Audio Tester)\fP is a simple command\-line utility
++intended to help automate audio driver and sound server testing with little
++human interaction. ALSABAT can be used to test audio quality, stress test
++features and test audio before and after PM state changes.
+ 
+-BAT's design is relatively simple. BAT plays an audio stream and captures
+-the same stream in either a digital or analog loop back. It then compares
+-the captured 

[OE-core] [PATCH 1/4] alsa-tools: 1.0.29 -> 1.1.0

2016-02-17 Thread Tanu Kaskinen
Changelog: http://alsa-project.org/main/index.php/Changes_v1.0.29_v1.1.0

There are almost no changes in the new version: just one invalid macro
was removed from the cspctl man page.

Rebased patches "autotools.patch" and "makefile_no_gtk.patch".

Signed-off-by: Tanu Kaskinen 
---
 meta/recipes-multimedia/alsa/alsa-tools/autotools.patch   | 2 +-
 meta/recipes-multimedia/alsa/alsa-tools/makefile_no_gtk.patch | 2 +-
 .../alsa/{alsa-tools_1.0.29.bb => alsa-tools_1.1.0.bb}| 4 ++--
 3 files changed, 4 insertions(+), 4 deletions(-)
 rename meta/recipes-multimedia/alsa/{alsa-tools_1.0.29.bb => 
alsa-tools_1.1.0.bb} (91%)

diff --git a/meta/recipes-multimedia/alsa/alsa-tools/autotools.patch 
b/meta/recipes-multimedia/alsa/alsa-tools/autotools.patch
index 59391d6..319f25d 100644
--- a/meta/recipes-multimedia/alsa/alsa-tools/autotools.patch
+++ b/meta/recipes-multimedia/alsa/alsa-tools/autotools.patch
@@ -20,7 +20,7 @@ diff -ruN alsa-tools-1.0.24.1-orig//Makefile 
alsa-tools-1.0.24.1/Makefile
 --- alsa-tools-1.0.24.1-orig//Makefile 2011-07-06 11:27:40.207665000 +0800
 +++ alsa-tools-1.0.24.1/Makefile   2011-07-14 15:08:08.877665009 +0800
 @@ -1,8 +1,8 @@
- VERSION = 1.0.29
+ VERSION = 1.1.0
  TOP = .
 -SUBDIRS = as10k1 envy24control hdsploader hdspconf hdspmixer \
 +SUBDIRS = as10k1 envy24control \
diff --git a/meta/recipes-multimedia/alsa/alsa-tools/makefile_no_gtk.patch 
b/meta/recipes-multimedia/alsa/alsa-tools/makefile_no_gtk.patch
index c957609..9bd6848 100644
--- a/meta/recipes-multimedia/alsa/alsa-tools/makefile_no_gtk.patch
+++ b/meta/recipes-multimedia/alsa/alsa-tools/makefile_no_gtk.patch
@@ -14,7 +14,7 @@ index 2457a1c..72346d9 100644
 --- a/Makefile
 +++ b/Makefile
 @@ -1,9 +1,9 @@
- VERSION = 1.0.29
+ VERSION = 1.1.0
  TOP = .
 -SUBDIRS = as10k1 envy24control \
 -mixartloader pcxhrloader rmedigicontrol sb16_csp seq sscape_ctl \
diff --git a/meta/recipes-multimedia/alsa/alsa-tools_1.0.29.bb 
b/meta/recipes-multimedia/alsa/alsa-tools_1.1.0.bb
similarity index 91%
rename from meta/recipes-multimedia/alsa/alsa-tools_1.0.29.bb
rename to meta/recipes-multimedia/alsa/alsa-tools_1.1.0.bb
index fdf396e..9e633f1 100644
--- a/meta/recipes-multimedia/alsa/alsa-tools_1.0.29.bb
+++ b/meta/recipes-multimedia/alsa/alsa-tools_1.1.0.bb
@@ -16,8 +16,8 @@ SRC_URI = "ftp://ftp.alsa-project.org/pub/tools/${BP}.tar.bz2 
\
file://0001-as10k1-Make-output_tram_line-static-inline.patch \
   "
 
-SRC_URI[md5sum] = "f339a3cd24f748c9d007bdff0e98775b"
-SRC_URI[sha256sum] = 
"94abf0ab5a73f0710c70d4fb3dc1003af5bae2d2ed721d59d245b41ad0f2fbd1"
+SRC_URI[md5sum] = "b476a5afaa3ea323083ad59d259d"
+SRC_URI[sha256sum] = 
"7d34558c590a50294b36576d257316a1ac5cd951eb8cd7d330e09f8cc757ab51"
 
 inherit autotools-brokensep pkgconfig
 
-- 
2.7.0

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


[OE-core] [PATCH 0/4] Audio recipe updates

2016-02-17 Thread Tanu Kaskinen
The following changes since commit 31af4a37c429bb1db8bfc64242b2963220f9a0e1:

  oeqa/parselogs: Whitelist dmi firmware failure message in 4.4 kernels 
(2016-02-16 23:53:43 +)

are available in the git repository at:

  git://git.openembedded.org/openembedded-core-contrib tanuk/updates
  
http://cgit.openembedded.org/cgit.cgi/openembedded-core-contrib/log/?h=tanuk/updates

Tanu Kaskinen (4):
  alsa-tools: 1.0.29 -> 1.1.0
  alsa-utils: 1.0.29 -> 1.1.0
  alsa-plugins: 1.0.29 -> 1.1.0
  pulseaudio: 6.0 -> 8.0

 ...nclude-sys-select.h-for-fd_set-definition.patch |  31 ---
 ...nclude-speexdsp_types.h-not-speex_types.h.patch |  71 --
 ...ph-include-config.h-from-rate_speexrate.c.patch |  35 +++
 ...lsa-plugins_1.0.29.bb => alsa-plugins_1.1.0.bb} |  16 +-
 .../alsa/alsa-tools/autotools.patch|   2 +-
 .../alsa/alsa-tools/makefile_no_gtk.patch  |   2 +-
 .../{alsa-tools_1.0.29.bb => alsa-tools_1.1.0.bb}  |   4 +-
 ...ripts_1.0.29.bb => alsa-utils-scripts_1.1.0.bb} |   0
 ...1-alsabat-rename-to-avoid-naming-conflict.patch | 153 
 ...-t-let-systemd-unit-restore-the-volume-wh.patch |  20 +-
 ...lsa-utils-aplay-interrupt-signal-handling.patch |  48 
 ...oring-is-success-if-not-sound-card-device.patch |  34 ---
 .../{alsa-utils_1.0.29.bb => alsa-utils_1.1.0.bb}  |  15 +-
 meta/recipes-multimedia/pulseaudio/pulseaudio.inc  |   8 +-
 ...le-switch-on-port-available-Route-to-pref.patch | 268 +
 .../0001-card-add-pa_card_profile.ports.patch  | 101 +++-
 ...-client-conf-Add-allow-autospawn-for-root.patch |   7 +-
 ...onf-parser-add-support-for-.d-directories.patch | 196 ---
 ...oth-fail-if-user-requested-profile-doesn-.patch |   7 +-
 ...-move-profile-selection-after-pa_card_new.patch | 131 +-
 ...vailability-for-some-unavailable-profiles.patch |  32 ++-
 .../pulseaudio/fix-git-version-gen.patch   |  24 --
 .../{pulseaudio_6.0.bb => pulseaudio_8.0.bb}   |   7 +-
 23 files changed, 636 insertions(+), 576 deletions(-)
 delete mode 100644 
meta/recipes-multimedia/alsa/alsa-plugins/0001-arcam-av-Include-sys-select.h-for-fd_set-definition.patch
 delete mode 100644 
meta/recipes-multimedia/alsa/alsa-plugins/0001-include-speexdsp_types.h-not-speex_types.h.patch
 create mode 100644 
meta/recipes-multimedia/alsa/alsa-plugins/0001-pph-include-config.h-from-rate_speexrate.c.patch
 rename meta/recipes-multimedia/alsa/{alsa-plugins_1.0.29.bb => 
alsa-plugins_1.1.0.bb} (87%)
 rename meta/recipes-multimedia/alsa/{alsa-tools_1.0.29.bb => 
alsa-tools_1.1.0.bb} (91%)
 rename meta/recipes-multimedia/alsa/{alsa-utils-scripts_1.0.29.bb => 
alsa-utils-scripts_1.1.0.bb} (100%)
 create mode 100644 
meta/recipes-multimedia/alsa/alsa-utils/0001-alsabat-rename-to-avoid-naming-conflict.patch
 delete mode 100644 
meta/recipes-multimedia/alsa/alsa-utils/alsa-utils-aplay-interrupt-signal-handling.patch
 delete mode 100644 
meta/recipes-multimedia/alsa/alsa-utils/assume-storing-is-success-if-not-sound-card-device.patch
 rename meta/recipes-multimedia/alsa/{alsa-utils_1.0.29.bb => 
alsa-utils_1.1.0.bb} (85%)
 create mode 100644 
meta/recipes-multimedia/pulseaudio/pulseaudio/0001-Revert-module-switch-on-port-available-Route-to-pref.patch
 delete mode 100644 
meta/recipes-multimedia/pulseaudio/pulseaudio/0001-conf-parser-add-support-for-.d-directories.patch
 delete mode 100644 
meta/recipes-multimedia/pulseaudio/pulseaudio/fix-git-version-gen.patch
 rename meta/recipes-multimedia/pulseaudio/{pulseaudio_6.0.bb => 
pulseaudio_8.0.bb} (72%)

-- 
2.7.0

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


[OE-core] [PATCH v5 1/3] gpg_sign: add local ipk package signing functionality

2016-02-17 Thread Ioan-Adrian Ratiu
Implement local ipk signing logic inside the gpg backend and add a new
bbclass which configures signing similar to how rpm does it.

The ipk signing process is a bit different from rpm:
- Signatures are stored outside ipk files; opkg connects to a feed
server and downloads them to verify a package.
- Signatures are of two types (both supported by opkg): binary or
ascii armoured. By default we sign using ascii armoured.
- Public keys are stored on targets to verify ipks using the
opkg-keyrings recipe.

Signed-off-by: Ioan-Adrian Ratiu 
---
 meta/classes/package_ipk.bbclass |  6 +
 meta/classes/sign_ipk.bbclass| 55 
 meta/lib/oe/gpg_sign.py  | 39 
 3 files changed, 100 insertions(+)
 create mode 100644 meta/classes/sign_ipk.bbclass

diff --git a/meta/classes/package_ipk.bbclass b/meta/classes/package_ipk.bbclass
index 51bee28..4f5bbd0 100644
--- a/meta/classes/package_ipk.bbclass
+++ b/meta/classes/package_ipk.bbclass
@@ -246,6 +246,12 @@ python do_package_ipk () {
 bb.utils.unlockfile(lf)
 raise bb.build.FuncFailed("opkg-build execution failed")
 
+if d.getVar('IPK_SIGN_PACKAGES', True) == '1':
+ipkver = "%s-%s" % (d.getVar('PKGV'), d.getVar('PKGR'))
+ipk_to_sign = "%s/%s_%s_%s.ipk" % (pkgoutdir, pkgname, ipkver, 
d.getVar('PACKAGE_ARCH', True))
+d.setVar('IPK_TO_SIGN', ipk_to_sign)
+bb.build.exec_func("sign_ipk", d)
+
 cleanupcontrol(root)
 bb.utils.unlockfile(lf)
 
diff --git a/meta/classes/sign_ipk.bbclass b/meta/classes/sign_ipk.bbclass
new file mode 100644
index 000..cb22bb4
--- /dev/null
+++ b/meta/classes/sign_ipk.bbclass
@@ -0,0 +1,55 @@
+# Class for generating signed IPK packages.
+#
+# Configuration variables used by this class:
+# IPK_GPG_PASSPHRASE_FILE
+#   Path to a file containing the passphrase of the signing key.
+# IPK_GPG_NAME
+#   Name of the key to sign with.
+# IPK_GPG_BACKEND
+#   Optional variable for specifying the backend to use for signing.
+#   Currently the only available option is 'local', i.e. local signing
+#   on the build host.
+# IPK_GPG_SIGNATURE_TYPE
+#   Optional variable for specifying the type of gpg signatures, can 
be:
+# 1. Ascii armored (ASC), default if not set
+# 2. Binary (BIN)
+# GPG_BIN
+#   Optional variable for specifying the gpg binary/wrapper to use for
+#   signing.
+# GPG_PATH
+#   Optional variable for specifying the gnupg "home" directory:
+#
+
+inherit sanity
+
+IPK_SIGN_PACKAGES = '1'
+IPK_GPG_BACKEND ?= 'local'
+IPK_GPG_SIGNATURE_TYPE ?= 'ASC'
+
+python () {
+# Check configuration
+for var in ('IPK_GPG_NAME', 'IPK_GPG_PASSPHRASE_FILE'):
+if not d.getVar(var, True):
+raise_sanity_error("You need to define %s in the config" % var, d)
+
+sigtype = d.getVar("IPK_GPG_SIGNATURE_TYPE", True)
+if sigtype.upper() != "ASC" and sigtype.upper() != "BIN":
+raise_sanity_error("Bad value for IPK_GPG_SIGNATURE_TYPE (%s), use 
either ASC or BIN" % sigtype)
+}
+
+python sign_ipk () {
+from oe.gpg_sign import get_signer
+
+ipk_file = d.getVar('IPK_TO_SIGN')
+bb.debug(1, 'Signing ipk: %s' % ipk_file)
+
+signer = get_signer(d, d.getVar('IPK_GPG_BACKEND', True))
+
+sig_type = d.getVar('IPK_GPG_SIGNATURE_TYPE', True)
+is_ascii_sig = (sig_type.upper() != "BIN")
+
+signer.sign_ipk(ipk_file,
+d.getVar('IPK_GPG_NAME', True),
+d.getVar('IPK_GPG_PASSPHRASE_FILE', True),
+is_ascii_sig)
+}
diff --git a/meta/lib/oe/gpg_sign.py b/meta/lib/oe/gpg_sign.py
index ada1b2f..138499b 100644
--- a/meta/lib/oe/gpg_sign.py
+++ b/meta/lib/oe/gpg_sign.py
@@ -1,5 +1,6 @@
 """Helper module for GPG signing"""
 import os
+import sys
 
 import bb
 import oe.utils
@@ -50,6 +51,44 @@ class LocalSigner(object):
 bb.error('rpmsign failed: %s' % proc.before.strip())
 raise bb.build.FuncFailed("Failed to sign RPM packages")
 
+def sign_ipk(self, ipkfile, keyid, passphrase_file, armor=True):
+"""Sign IPK files"""
+import subprocess
+from subprocess import Popen
+
+cmd = [self.gpg_bin, "-q", "--batch", "--yes", "-b", "-u", keyid]
+if self.gpg_path:
+cmd += ["--homedir", self.gpg_path]
+if armor:
+cmd += ["--armor"]
+
+try:
+keypipe = os.pipe()
+
+# Need to add '\n' in case the passfile does not have it
+with open(passphrase_file) as fobj:
+os.write(keypipe[1], fobj.readline() + '\n')
+
+cmd += ["--passphrase-fd",  str(keypipe[0])]
+cmd += [ipkfile]
+
+gpg_proc = Popen(cmd, stdin=subprocess.PIPE)
+gpg_proc.wait()
+
+os.close(keypipe[1]);

[OE-core] [PATCH v5 3/3] package_manager: sign IPK package feeds

2016-02-17 Thread Ioan-Adrian Ratiu
Create gpg signed ipk package feeds using the gpg backend if configured.

Signed-off-by: Ioan-Adrian Ratiu 
---
 meta/classes/sign_package_feed.bbclass | 10 +-
 meta/lib/oe/package_manager.py | 17 +++--
 2 files changed, 24 insertions(+), 3 deletions(-)

diff --git a/meta/classes/sign_package_feed.bbclass 
b/meta/classes/sign_package_feed.bbclass
index 63ca02f..2b0548a 100644
--- a/meta/classes/sign_package_feed.bbclass
+++ b/meta/classes/sign_package_feed.bbclass
@@ -10,6 +10,10 @@
 #   Optional variable for specifying the backend to use for signing.
 #   Currently the only available option is 'local', i.e. local signing
 #   on the build host.
+# PACKAGE_FEED_GPG_SIGNATURE_TYPE
+#   Optional variable for specifying the type of gpg signature, can be:
+#   1. Ascii armored (ASC), default if not set
+#   2. Binary (BIN)
 # GPG_BIN
 #   Optional variable for specifying the gpg binary/wrapper to use for
 #   signing.
@@ -20,7 +24,7 @@ inherit sanity
 
 PACKAGE_FEED_SIGN = '1'
 PACKAGE_FEED_GPG_BACKEND ?= 'local'
-
+PACKAGE_FEED_GPG_SIGNATURE_TYPE ?= 'ASC'
 
 python () {
 # Check sanity of configuration
@@ -28,6 +32,10 @@ python () {
 if not d.getVar(var, True):
 raise_sanity_error("You need to define %s in the config" % var, d)
 
+sigtype = d.getVar("PACKAGE_FEED_GPG_SIGNATURE_TYPE", True)
+if sigtype.upper() != "ASC" and sigtype.upper() != "BIN":
+raise_sanity_error("Bad value for PACKAGE_FEED_GPG_SIGNATURE_TYPE 
(%s), use either ASC or BIN" % sigtype)
+
 # Set expected location of the public key
 d.setVar('PACKAGE_FEED_GPG_PUBKEY',
  os.path.join(d.getVar('STAGING_ETCDIR_NATIVE', False),
diff --git a/meta/lib/oe/package_manager.py b/meta/lib/oe/package_manager.py
index b30a4da..606ba24 100644
--- a/meta/lib/oe/package_manager.py
+++ b/meta/lib/oe/package_manager.py
@@ -163,11 +163,16 @@ class OpkgIndexer(Indexer):
  "MULTILIB_ARCHS"]
 
 opkg_index_cmd = bb.utils.which(os.getenv('PATH'), "opkg-make-index")
+if self.d.getVar('PACKAGE_FEED_SIGN', True) == '1':
+signer = get_signer(self.d, 
self.d.getVar('PACKAGE_FEED_GPG_BACKEND', True))
+else:
+signer = None
 
 if not os.path.exists(os.path.join(self.deploy_dir, "Packages")):
 open(os.path.join(self.deploy_dir, "Packages"), "w").close()
 
 index_cmds = []
+index_sign_files = []
 for arch_var in arch_vars:
 archs = self.d.getVar(arch_var, True)
 if archs is None:
@@ -186,6 +191,8 @@ class OpkgIndexer(Indexer):
 index_cmds.append('%s -r %s -p %s -m %s' %
   (opkg_index_cmd, pkgs_file, pkgs_file, 
pkgs_dir))
 
+index_sign_files.append(pkgs_file)
+
 if len(index_cmds) == 0:
 bb.note("There are no packages in %s!" % self.deploy_dir)
 return
@@ -193,9 +200,15 @@ class OpkgIndexer(Indexer):
 result = oe.utils.multiprocess_exec(index_cmds, create_index)
 if result:
 bb.fatal('%s' % ('\n'.join(result)))
-if self.d.getVar('PACKAGE_FEED_SIGN', True) == '1':
-raise NotImplementedError('Package feed signing not implementd for 
ipk')
 
+if signer:
+feed_sig_type = self.d.getVar('PACKAGE_FEED_GPG_SIGNATURE_TYPE', 
True)
+is_ascii_sig = (feed_sig_type.upper() != "BIN")
+for f in index_sign_files:
+signer.detach_sign(f,
+   self.d.getVar('PACKAGE_FEED_GPG_NAME', 
True),
+   
self.d.getVar('PACKAGE_FEED_GPG_PASSPHRASE_FILE', True),
+   armor=is_ascii_sig)
 
 
 class DpkgIndexer(Indexer):
-- 
2.7.1

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


[OE-core] [PATCH v5 2/3] gpg_sign: detached_sign: add signature type support

2016-02-17 Thread Ioan-Adrian Ratiu
Add support for multiple types of signatures (binary or ascii)
in export_pubkey(). There is no change in behaviour for the function,
the previous implicit default is the new parameter "armor" default.

Signed-off-by: Ioan-Adrian Ratiu 
---
 meta/lib/oe/gpg_sign.py | 6 --
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/meta/lib/oe/gpg_sign.py b/meta/lib/oe/gpg_sign.py
index 138499b..14888c0 100644
--- a/meta/lib/oe/gpg_sign.py
+++ b/meta/lib/oe/gpg_sign.py
@@ -13,12 +13,14 @@ class LocalSigner(object):
 self.gpg_path = d.getVar('GPG_PATH', True)
 self.rpm_bin = bb.utils.which(os.getenv('PATH'), "rpm")
 
-def export_pubkey(self, output_file, keyid):
+def export_pubkey(self, output_file, keyid, armor=True):
 """Export GPG public key to a file"""
-cmd = '%s --batch --yes --export --armor -o %s ' % \
+cmd = '%s --batch --yes --export -o %s ' % \
 (self.gpg_bin, output_file)
 if self.gpg_path:
 cmd += "--homedir %s " % self.gpg_path
+if armor:
+cmd += "--armor "
 cmd += keyid
 status, output = oe.utils.getstatusoutput(cmd)
 if status:
-- 
2.7.1

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


[OE-core] [PATCH v5 0/3] IPK signing for the gpg_sign module

2016-02-17 Thread Ioan-Adrian Ratiu
This patch series extends the gpg_sign module to support ipk signing.

v5 is a rebase on top of Markus' refactoring of the gpg_sign module.
Most notably signature types have been reworked to function parameters
with default values in accordance with the refactoring.

Ioan-Adrian Ratiu (3):
  gpg_sign: add local ipk package signing functionality
  gpg_sign: detached_sign: add signature type support
  package_manager: sign IPK package feeds

 meta/classes/package_ipk.bbclass   |  6 
 meta/classes/sign_ipk.bbclass  | 55 ++
 meta/classes/sign_package_feed.bbclass | 10 ++-
 meta/lib/oe/gpg_sign.py| 45 ++--
 meta/lib/oe/package_manager.py | 17 +--
 5 files changed, 128 insertions(+), 5 deletions(-)
 create mode 100644 meta/classes/sign_ipk.bbclass

-- 
2.7.1

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


[OE-core] [PATCH v2] avahi: update to version 0.6.32

2016-02-17 Thread Maxin B. John
0.6.31 -> 0.6.32

a. Switched to the new repository hosted in github.
b. Removed the following Upstreamed/Backported patches
   1. 0001-Don-t-log-warnings-about-invalid-packets-Fixes-lathi.patch
   2. 0001-avahi-fix-avahi-status-command-error-prompt.patch
   3. avahi_fix_install_issue.patch
   4. fix_for_automake_1.12.x.patch
   5. out-of-tree.patch
   6. reuseport-check.patch
c. Added UPSTREAM_CHECK_URI

[YOCTO #7553]

Signed-off-by: Maxin B. John 
---
 .../{avahi-ui_0.6.31.bb => avahi-ui_0.6.32.bb} |   6 +-
 meta/recipes-connectivity/avahi/avahi.inc  |  14 +-
 .../avahi/{avahi_0.6.31.bb => avahi_0.6.32.bb} |   6 +-
 ...arnings-about-invalid-packets-Fixes-lathi.patch | 158 -
 ...ahi-fix-avahi-status-command-error-prompt.patch |  52 ---
 .../avahi/files/avahi_fix_install_issue.patch  |  32 -
 .../avahi/files/fix_for_automake_1.12.x.patch  |  34 -
 .../avahi/files/out-of-tree.patch  |  32 -
 .../avahi/files/reuseport-check.patch  |  30 
 9 files changed, 8 insertions(+), 356 deletions(-)
 rename meta/recipes-connectivity/avahi/{avahi-ui_0.6.31.bb => 
avahi-ui_0.6.32.bb} (94%)
 rename meta/recipes-connectivity/avahi/{avahi_0.6.31.bb => avahi_0.6.32.bb} 
(81%)
 delete mode 100644 
meta/recipes-connectivity/avahi/files/0001-Don-t-log-warnings-about-invalid-packets-Fixes-lathi.patch
 delete mode 100644 
meta/recipes-connectivity/avahi/files/0001-avahi-fix-avahi-status-command-error-prompt.patch
 delete mode 100644 
meta/recipes-connectivity/avahi/files/avahi_fix_install_issue.patch
 delete mode 100644 
meta/recipes-connectivity/avahi/files/fix_for_automake_1.12.x.patch
 delete mode 100644 meta/recipes-connectivity/avahi/files/out-of-tree.patch
 delete mode 100644 meta/recipes-connectivity/avahi/files/reuseport-check.patch

diff --git a/meta/recipes-connectivity/avahi/avahi-ui_0.6.31.bb 
b/meta/recipes-connectivity/avahi/avahi-ui_0.6.32.bb
similarity index 94%
rename from meta/recipes-connectivity/avahi/avahi-ui_0.6.31.bb
rename to meta/recipes-connectivity/avahi/avahi-ui_0.6.32.bb
index 604ee9e..aafb52e 100644
--- a/meta/recipes-connectivity/avahi/avahi-ui_0.6.31.bb
+++ b/meta/recipes-connectivity/avahi/avahi-ui_0.6.32.bb
@@ -12,10 +12,8 @@ ANY_OF_DISTRO_FEATURES = "${GTK2DISTROFEATURES}"
 PACKAGECONFIG ??= "python"
 PACKAGECONFIG[python] = "--enable-python,--disable-python,python-native python"
 
-PR = "${INC_PR}.0"
-
-SRC_URI[md5sum] = "2f22745b8f7368ad5a0a3fddac343f2d"
-SRC_URI[sha256sum] = 
"8372719b24e2dd75de6f59bb1315e600db4fd092805bd1201ed0cb651a2dab48"
+SRC_URI[md5sum] = "22b5e705d3eabb31d26f2e1e7b074013"
+SRC_URI[sha256sum] = 
"d54991185d514a0aba54ebeb408d7575b60f5818a772e28fa0e18b98bc1db454"
 
 DEPENDS += "avahi gtk+ libglade"
 
diff --git a/meta/recipes-connectivity/avahi/avahi.inc 
b/meta/recipes-connectivity/avahi/avahi.inc
index 3d22e4c..faa8ee8 100644
--- a/meta/recipes-connectivity/avahi/avahi.inc
+++ b/meta/recipes-connectivity/avahi/avahi.inc
@@ -7,28 +7,21 @@ configuration from the link-local 169.254.0.0/16 range 
without the need for a ce
 server.'
 AUTHOR = "Lennart Poettering "
 HOMEPAGE = "http://avahi.org;
-BUGTRACKER = "http://avahi.org/report;
+BUGTRACKER = "https://github.com/lathiat/avahi/issues;
 SECTION = "network"
 
 # major part is under LGPLv2.1+, but several .dtd, .xsl, initscripts and
 # python scripts are under GPLv2+
 LICENSE = "GPLv2+ & LGPLv2.1+"
 
-INC_PR = "r11"
-
 DEPENDS = "expat libcap libdaemon dbus glib-2.0"
 
-SRC_URI = "http://avahi.org/download/avahi-${PV}.tar.gz \
+SRC_URI = 
"https://github.com/lathiat/avahi/releases/download/v${PV}/avahi-${PV}.tar.gz \
   file://00avahi-autoipd \
   file://99avahi-autoipd \
   file://initscript.patch \
-  file://avahi_fix_install_issue.patch \
-  file://fix_for_automake_1.12.x.patch \
-  file://out-of-tree.patch \
-  file://0001-avahi-fix-avahi-status-command-error-prompt.patch \
-  file://reuseport-check.patch \
-  
file://0001-Don-t-log-warnings-about-invalid-packets-Fixes-lathi.patch \
   "
+UPSTREAM_CHECK_URI = "https://github.com/lathiat/avahi/releases/;
 
 USERADD_PACKAGES = "avahi-daemon avahi-autoipd"
 USERADD_PARAM_avahi-daemon = "--system --home /var/run/avahi-daemon \
@@ -53,6 +46,7 @@ EXTRA_OECONF = "--disable-introspection \
  --disable-qt4 \
  --disable-python \
  --disable-doxygen-doc \
+ --disable-manpages \
  ${EXTRA_OECONF_SYSVINIT} \
  ${EXTRA_OECONF_SYSTEMD} \
  ${AVAHI_GTK} \
diff --git a/meta/recipes-connectivity/avahi/avahi_0.6.31.bb 
b/meta/recipes-connectivity/avahi/avahi_0.6.32.bb
similarity index 81%
rename from meta/recipes-connectivity/avahi/avahi_0.6.31.bb
rename to meta/recipes-connectivity/avahi/avahi_0.6.32.bb
index 5d796a2..6670106 100644
--- a/meta/recipes-connectivity/avahi/avahi_0.6.31.bb
+++ 

[OE-core] [PATCH] adt-installer: Drop since its replaced by the extensible SDK

2016-02-17 Thread Richard Purdie
The extensible SDK replaces adt-installer so this can be removed now,
all future effort in this direction will be placed onto that.

This includes a layer version change so the autobuilder knows when to
stop building adt-installer.

[YOCTO #6404]

Signed-off-by: Richard Purdie 

diff --git a/meta/conf/conf-notes.txt b/meta/conf/conf-notes.txt
index 66e6319..2f2932b 100644
--- a/meta/conf/conf-notes.txt
+++ b/meta/conf/conf-notes.txt
@@ -2,7 +2,6 @@ Common targets are:
 core-image-minimal
 core-image-sato
 meta-toolchain
-adt-installer
 meta-ide-support
 
 You can also run generated qemu images with a command like 'runqemu qemux86'
diff --git a/meta/conf/distro/include/distro_alias.inc 
b/meta/conf/distro/include/distro_alias.inc
index c2ad07e2..d37aefb 100644
--- a/meta/conf/distro/include/distro_alias.inc
+++ b/meta/conf/distro/include/distro_alias.inc
@@ -9,7 +9,6 @@
 #
 # Please keep this list in alphabetical order.
 #
-DISTRO_PN_ALIAS_pn-adt-installer = "Intel"
 DISTRO_PN_ALIAS_pn-alsa-state = "OE-Core"
 DISTRO_PN_ALIAS_pn-alsa-utils-alsaconf = "OE-Core"
 DISTRO_PN_ALIAS_pn-alsa-utils-scripts = "OE-Core"
diff --git a/meta/conf/layer.conf b/meta/conf/layer.conf
index a892fba..8ee61aa 100644
--- a/meta/conf/layer.conf
+++ b/meta/conf/layer.conf
@@ -9,7 +9,7 @@ BBFILE_PRIORITY_core = "5"
 
 # This should only be incremented on significant changes that will
 # cause compatibility issues with other layers
-LAYERVERSION_core = "7"
+LAYERVERSION_core = "8"
 
 BBLAYERS_LAYERINDEX_NAME_core = "openembedded-core"
 
diff --git a/meta/recipes-core/meta/meta-world-pkgdata.bb 
b/meta/recipes-core/meta/meta-world-pkgdata.bb
index 48a9027..3c5db50 100644
--- a/meta/recipes-core/meta/meta-world-pkgdata.bb
+++ b/meta/recipes-core/meta/meta-world-pkgdata.bb
@@ -33,7 +33,7 @@ do_install[noexec] = "1"
 
 do_configure[deptask] = ""
 
-WORLD_PKGDATA_EXCLUDE ?= "adt-installer"
+WORLD_PKGDATA_EXCLUDE ?= ""
 
 python calculate_extra_depends() {
 exclude = '${WORLD_PKGDATA_EXCLUDE}'.split()
diff --git a/meta/recipes-devtools/installer/adt-installer/adt_installer 
b/meta/recipes-devtools/installer/adt-installer/adt_installer
deleted file mode 100755
index b8cfb2e..000
--- a/meta/recipes-devtools/installer/adt-installer/adt_installer
+++ /dev/null
@@ -1,420 +0,0 @@
-#!/bin/bash
-# Yocto ADT Installer
-#
-# Copyright 2010-2011 by Intel Corp.
-#
-# Permission is hereby granted, free of charge, to any person obtaining a copy 
-# of this software and associated documentation files (the "Software"), to 
deal 
-# in the Software without restriction, including without limitation the rights 
-# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 
-# copies of the Software, and to permit persons to whom the Software is 
-# furnished to do so, subject to the following conditions:
-
-# The above copyright notice and this permission notice shall be included in 
-# all copies or substantial portions of the Software.
-
-# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 
-# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 
-# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 
-# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 
-# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 
FROM, 
-# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 
-# THE SOFTWARE.
-
-
-usage ()
-{
-
-  INST_ARCH=`uname -m`
-  INST_OS=`uname -o| tr '[A-Z]' '[a-z]'`
-  INST_KR=`uname -r| tr '[A-Z]' '[a-z]'`
-
-  echo_info 
"#"
-  echo_info "# Welcome to Yocto Application Developement Tools (ADT) Installer"
-  echo_info "# "
-  echo_info "# Host Machine:\t\t\t\t"$INST_ARCH
-  echo_info "# OS info:\t\t\t\t$INST_KR"  
-  echo_info "# Yocto ADT version to be installed:\t$YOCTOADT_VERSION"
-  echo_info "# supported target architectures:\t$YOCTOADT_SUPPORTED_TARGETS"
-  echo_info "# supported target root_fs images:\t$YOCTOADT_SUPPORTED_ROOTFS"
-  echo_info 
"#\n"
-
-  echo_info "Systemwide installation. Installation will occur under 
$INSTALL_FOLDER\n"
-  echo_info 
""
-  echo_info "# Your system installation configurations from adt_installer.conf"
-  echo_info 
""
-
-  echo_info "# Cross toolchains:\t\t$YOCTOADT_TARGETS"
-  echo_info "# Install Qemu:\t\t\t$YOCTOADT_QEMU"
-  echo_info "# Install NFS utilities:\t$YOCTOADT_NFS_UTIL"
-  #echo_info "# Install bitbake + UI:\t\t$YOCTOADT_BITBAKE"
-  #echo_info "# Install metadata:\t$YOCTOADT_METADATA"
-  #echo_info 
"\n"
-
-echo_info 

[OE-core] [PATCH] no-static-libs.inc: Add libcap-native

2016-02-17 Thread Richard Purdie
We need to disable static flags for libcap-native as well.

Signed-off-by: Richard Purdie 

diff --git a/meta/conf/distro/include/no-static-libs.inc 
b/meta/conf/distro/include/no-static-libs.inc
index fd312f1..8a2f3a2 100644
--- a/meta/conf/distro/include/no-static-libs.inc
+++ b/meta/conf/distro/include/no-static-libs.inc
@@ -7,6 +7,7 @@ DISABLE_STATIC_pn-nativesdk-qemu = ""
 DISABLE_STATIC_pn-pciutils = ""
 # libcap aborts on unrecognised option
 DISABLE_STATIC_pn-libcap = ""
+DISABLE_STATIC_pn-libcap-native = ""
 # libpcap aborts on unrecognised option
 DISABLE_STATIC_pn-libpcap = ""
 # needed by gdb


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


[OE-core] [PATCH] libsdl2: Fix build with static libraries disabled

2016-02-17 Thread Richard Purdie
libsdl2 was using foo.o in Makefile dependencies but if libtool is
being used then those are the statically linked intermediate files. 
 When static libraries are globally disabled they won't be generated by
libtool so the build fails.

Instead, use the libtool intermediate wrapper .lo files so the build
succeeds.

Signed-off-by: Richard Purdie 

diff --git a/meta/recipes-graphics/libsdl2/libsdl2/linkage.patch 
b/meta/recipes-graphics/libsdl2/libsdl2/linkage.patch
new file mode 100644
index 000..08315e7
--- /dev/null
+++ b/meta/recipes-graphics/libsdl2/libsdl2/linkage.patch
@@ -0,0 +1,46 @@
+When building use the libtool intermediate .lo files instead of explicitly 
using
+the .o files. Under libtool foo.lo is the libtool intermediate wrapper, foo.o 
is
+a static build, and .libs/foo.o is a shared build.
+
+If static libraries have been disabled globally then libtool won't generate 
them
+and explicit references to foo.o won't be satisfied.
+
+Upstream-Status: Pending
+RP
+2016/1/16
+
+
+Index: SDL2-2.0.3/configure.in
+===
+--- SDL2-2.0.3.orig/configure.in
 SDL2-2.0.3/configure.in
+@@ -3136,23 +3136,23 @@ done
+ 
+ VERSION_OBJECTS=`echo $VERSION_SOURCES`
+ VERSION_DEPENDS=`echo $VERSION_SOURCES`
+-VERSION_OBJECTS=`echo "$VERSION_OBJECTS" | sed 's,[[^ ]]*/\([[^ 
]]*\)\.rc,$(objects)/\1.o,g'`
++VERSION_OBJECTS=`echo "$VERSION_OBJECTS" | sed 's,[[^ ]]*/\([[^ 
]]*\)\.rc,$(objects)/\1.lo,g'`
+ VERSION_DEPENDS=`echo "$VERSION_DEPENDS" | sed "s,\\([[^ ]]*\\)/\\([[^ 
]]*\\)\\.rc,
+-\\$(objects)/\\2.o: \\1/\\2.rc
++\\$(objects)/\\2.lo: \\1/\\2.rc
+   \\$(WINDRES) \\$< \\$@,g"`
+ 
+ SDLMAIN_OBJECTS=`echo $SDLMAIN_SOURCES`
+ SDLMAIN_DEPENDS=`echo $SDLMAIN_SOURCES`
+-SDLMAIN_OBJECTS=`echo "$SDLMAIN_OBJECTS" | sed 's,[[^ ]]*/\([[^ 
]]*\)\.c,$(objects)/\1.o,g'`
++SDLMAIN_OBJECTS=`echo "$SDLMAIN_OBJECTS" | sed 's,[[^ ]]*/\([[^ 
]]*\)\.c,$(objects)/\1.lo,g'`
+ SDLMAIN_DEPENDS=`echo "$SDLMAIN_DEPENDS" | sed "s,\\([[^ ]]*\\)/\\([[^ 
]]*\\)\\.c,
+-\\$(objects)/\\2.o: \\1/\\2.c
++\\$(objects)/\\2.lo: \\1/\\2.c
+   \\$(LIBTOOL) --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) 
$DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@,g"`
+ 
+ SDLTEST_OBJECTS=`echo $SDLTEST_SOURCES`
+ SDLTEST_DEPENDS=`echo $SDLTEST_SOURCES`
+-SDLTEST_OBJECTS=`echo "$SDLTEST_OBJECTS" | sed 's,[[^ ]]*/\([[^ 
]]*\)\.c,$(objects)/\1.o,g'`
++SDLTEST_OBJECTS=`echo "$SDLTEST_OBJECTS" | sed 's,[[^ ]]*/\([[^ 
]]*\)\.c,$(objects)/\1.lo,g'`
+ SDLTEST_DEPENDS=`echo "$SDLTEST_DEPENDS" | sed "s,\\([[^ ]]*\\)/\\([[^ 
]]*\\)\\.c,
+-\\$(objects)/\\2.o: \\1/\\2.c
++\\$(objects)/\\2.lo: \\1/\\2.c
+   \\$(LIBTOOL) --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) 
$DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@,g"`
+ 
+ # Set runtime shared library paths as needed
diff --git a/meta/recipes-graphics/libsdl2/libsdl2_2.0.3.bb 
b/meta/recipes-graphics/libsdl2/libsdl2_2.0.3.bb
index 61d9c1e..0dc1a85 100644
--- a/meta/recipes-graphics/libsdl2/libsdl2_2.0.3.bb
+++ b/meta/recipes-graphics/libsdl2/libsdl2_2.0.3.bb
@@ -14,7 +14,8 @@ PROVIDES = "virtual/libsdl2"
 
 DEPENDS_class-nativesdk = "${@bb.utils.contains('DISTRO_FEATURES', 'x11', 
'virtual/nativesdk-libx11 nativesdk-libxrandr nativesdk-libxrender 
nativesdk-libxext', '', d)}"
 
-SRC_URI = "http://www.libsdl.org/release/SDL2-${PV}.tar.gz;
+SRC_URI = "http://www.libsdl.org/release/SDL2-${PV}.tar.gz \
+   file://linkage.patch"
 
 S = "${WORKDIR}/SDL2-${PV}"
 



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


[OE-core] [PATCH] uboot-inc: Backport patch to fix Beaglebone Black bootloader

2016-02-17 Thread Erkka Kääriä
Beaglebone Black boot started failing after upstream patch 755324c432f, and was
fixed in 7205442e6. Unfortunately, the u-boot upgrade from 2015.10 to 2016.01
only includes the former patch. The latter patch is backported to fix this.

Signed-off-by: Erkka Kääriä 
---
 meta/recipes-bsp/u-boot/u-boot.inc |  3 +-
 .../0001-am335x_evm.h-unsed-CONFIG_BOOTDELAY.patch | 34 ++
 2 files changed, 36 insertions(+), 1 deletion(-)
 create mode 100644 
meta/recipes-bsp/u-boot/u-boot/0001-am335x_evm.h-unsed-CONFIG_BOOTDELAY.patch

diff --git a/meta/recipes-bsp/u-boot/u-boot.inc 
b/meta/recipes-bsp/u-boot/u-boot.inc
index 41eb205..ac8f338 100644
--- a/meta/recipes-bsp/u-boot/u-boot.inc
+++ b/meta/recipes-bsp/u-boot/u-boot.inc
@@ -6,7 +6,8 @@ PROVIDES = "virtual/bootloader"
 LICENSE = "GPLv2+"
 LIC_FILES_CHKSUM = 
"file://Licenses/README;md5=0507cd7da8e7ad6d6701926ec9b84c95"
 
-SRC_URI = "git://git.denx.de/u-boot.git;branch=master"
+SRC_URI = "git://git.denx.de/u-boot.git;branch=master \
+   file://0001-am335x_evm.h-unsed-CONFIG_BOOTDELAY.patch"
 
 S = "${WORKDIR}/git"
 
diff --git 
a/meta/recipes-bsp/u-boot/u-boot/0001-am335x_evm.h-unsed-CONFIG_BOOTDELAY.patch 
b/meta/recipes-bsp/u-boot/u-boot/0001-am335x_evm.h-unsed-CONFIG_BOOTDELAY.patch
new file mode 100644
index 000..70c87c4
--- /dev/null
+++ 
b/meta/recipes-bsp/u-boot/u-boot/0001-am335x_evm.h-unsed-CONFIG_BOOTDELAY.patch
@@ -0,0 +1,34 @@
+From 7205442e621db54ea06c3bca2d793e1ae2214f9c Mon Sep 17 00:00:00 2001
+From: Tom Rini 
+Date: Thu, 10 Dec 2015 16:46:01 -0500
+Subject: [PATCH] am335x_evm.h: unsed CONFIG_BOOTDELAY
+
+Now that ti_armv7_common.h uses config_distro_defaults.h we don't need
+to include it again and then undef CONFIG_BOOTDELAY
+
+Signed-off-by: Tom Rini 
+
+Upstream-Status: Backport
+
+---
+ include/configs/am335x_evm.h | 4 
+ 1 file changed, 4 deletions(-)
+
+diff --git a/include/configs/am335x_evm.h b/include/configs/am335x_evm.h
+index c51db8c..cf6a606 100644
+--- a/include/configs/am335x_evm.h
 b/include/configs/am335x_evm.h
+@@ -18,10 +18,6 @@
+
+ #include 
+
+-/* Don't override the distro default bootdelay */
+-#undef CONFIG_BOOTDELAY
+-#include 
+-
+ #ifndef CONFIG_SPL_BUILD
+ #ifndef CONFIG_FIT
+ # define CONFIG_FIT
+--
+2.7.0
+
-- 
2.7.0

-
Intel Finland Oy
Registered Address: PL 281, 00181 Helsinki 
Business Identity Code: 0357606 - 4 
Domiciled in Helsinki 

This e-mail and any attachments may contain confidential material for
the sole use of the intended recipient(s). Any review or distribution
by others is strictly prohibited. If you are not the intended
recipient, please contact the sender and delete all copies.
-- 
___
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core


[OE-core] [PATCH] busybox: drop patches that are not valid anymore

2016-02-17 Thread Maxin B. John
1. Removed following patches
a) busybox-appletlib-dependency.patch
 - Kbuild rules handles that dependency
b) get_header_tar.patch
 - tar applet uses a different code path to handle that scenario now.

2. Updated the upstream-status of fail_on_no_media.patch as Denied.

Signed-off-by: Maxin B. John 
---
 .../busybox/busybox-appletlib-dependency.patch | 37 --
 .../busybox/busybox/fail_on_no_media.patch |  3 +-
 .../busybox/busybox/get_header_tar.patch   | 22 -
 meta/recipes-core/busybox/busybox_1.24.1.bb|  2 --
 meta/recipes-core/busybox/busybox_git.bb   |  2 --
 5 files changed, 2 insertions(+), 64 deletions(-)
 delete mode 100644 
meta/recipes-core/busybox/busybox/busybox-appletlib-dependency.patch
 delete mode 100644 meta/recipes-core/busybox/busybox/get_header_tar.patch

diff --git 
a/meta/recipes-core/busybox/busybox/busybox-appletlib-dependency.patch 
b/meta/recipes-core/busybox/busybox/busybox-appletlib-dependency.patch
deleted file mode 100644
index de2dbcc..000
--- a/meta/recipes-core/busybox/busybox/busybox-appletlib-dependency.patch
+++ /dev/null
@@ -1,37 +0,0 @@
-Upstream-Status: Pending
-
-# copy commit message from OE as the patch comment:
-#commit 98c24291aa165f53423c27ae033831ce0b3bb676
-#Author: Roman I Khimov 
-#Date:   Thu Mar 26 23:03:58 2009 +
-#
-#busybox: update appletlib dependency patch
-#
-#Previous version still failed from time to time on clean-start builds
-#with 4 bitbake threads and '-j16'. Building busybox as sole target worked
-#well.
-#
-#The reason is that previous version introduced a race between applets make
-#processes spawned from top-level Makefile and from libbb Makefile.
-#
-#Fix it with high-level dependency that doesn't create races.
-#
-#Signed-off-by: Koen Kooi 
-#
-# above comment added by Kevin Tian , 2010-07-06
-
-Index: busybox-1.13.2/Makefile
-===
 busybox-1.13.2.orig/Makefile   2009-03-19 15:44:37.419270265 +0300
-+++ busybox-1.13.2/Makefile2009-03-19 15:45:57.737521296 +0300
-@@ -471,6 +471,10 @@
-   util-linux/ \
-   util-linux/volume_id/ \
- 
-+# Lib interdeps
-+# libbb uses headers generated in applets
-+libbb: applets
-+
- endif # KBUILD_EXTMOD
- 
- ifeq ($(dot-config),1)
diff --git a/meta/recipes-core/busybox/busybox/fail_on_no_media.patch 
b/meta/recipes-core/busybox/busybox/fail_on_no_media.patch
index 6745f16..820acc2 100644
--- a/meta/recipes-core/busybox/busybox/fail_on_no_media.patch
+++ b/meta/recipes-core/busybox/busybox/fail_on_no_media.patch
@@ -1,4 +1,5 @@
-Upstream-Status: Pending
+Upstream-Status: Denied
+[https://www.mail-archive.com/busybox@busybox.net/msg22354.html]
 
 The current behaviour of busybox is to try all fstype when automounting
 even when no media exists.  The util-linux mount command bails when no
diff --git a/meta/recipes-core/busybox/busybox/get_header_tar.patch 
b/meta/recipes-core/busybox/busybox/get_header_tar.patch
deleted file mode 100644
index 0e528ff..000
--- a/meta/recipes-core/busybox/busybox/get_header_tar.patch
+++ /dev/null
@@ -1,22 +0,0 @@
-Upstream-Status: Pending
-
-# copy commit message from OE as the patch comment:
-#commit 5a0e1d473ca7aca5ffefffe9a2ec44ae7a1f35bc
-#Author: Frans Meulenbroeks 
-#Date:   Wed Feb 11 22:40:21 2009 +0100
-#
-#busybox: fix tar problem with filenames that are exactly 100 bytes
-#
-# above comment added by Kevin Tian , 2010-07-06
-
 busybox-1.13.2/archival/libarchive/get_header_tar.c.orig   2008-11-09 
18:28:02.0 +0100
-+++ busybox-1.13.2/archival/libarchive/get_header_tar.c2009-02-11 
22:34:52.0 +0100
-@@ -252,6 +252,8 @@
-   file_header->name = concat_path_file(tar.prefix, 
tar.name);
-   } else
-   file_header->name = xstrdup(tar.name);
-+  if (strlen(file_header->name) > 100) 
-+  file_header->name[100] = 0;
-   }
- 
-   /* Set bits 12-15 of the files mode */
diff --git a/meta/recipes-core/busybox/busybox_1.24.1.bb 
b/meta/recipes-core/busybox/busybox_1.24.1.bb
index 72c5c79..174ca47 100644
--- a/meta/recipes-core/busybox/busybox_1.24.1.bb
+++ b/meta/recipes-core/busybox/busybox_1.24.1.bb
@@ -1,8 +1,6 @@
 require busybox.inc
 
 SRC_URI = "http://www.busybox.net/downloads/busybox-${PV}.tar.bz2;name=tarball 
\
-   file://get_header_tar.patch \
-   file://busybox-appletlib-dependency.patch \
file://busybox-udhcpc-no_deconfig.patch \
file://find-touchscreen.sh \
file://busybox-cron \
diff --git a/meta/recipes-core/busybox/busybox_git.bb 
b/meta/recipes-core/busybox/busybox_git.bb
index 

[OE-core] [PATCH] pcmciautils: Update SRC_URI

2016-02-17 Thread Richard Purdie
Switch to use KERNELORG_MIRROR.
Use .xz tarball instead of bz2 as not all kernel mirrors carry .bz2 now.

This resolves various checkuri issues on the autobuilder infrastructure.

Signed-off-by: Richard Purdie 

diff --git a/meta/recipes-bsp/pcmciautils/pcmciautils.inc 
b/meta/recipes-bsp/pcmciautils/pcmciautils.inc
index 9d1c55b..581bff4 100644
--- a/meta/recipes-bsp/pcmciautils/pcmciautils.inc
+++ b/meta/recipes-bsp/pcmciautils/pcmciautils.inc
@@ -8,7 +8,7 @@ LIC_FILES_CHKSUM = 
"file://COPYING;md5=94d55d512a9ba36caa9b7df079bae19f"
 DEPENDS = "udev sysfsutils flex-native"
 RDEPENDS_${PN} = "udev module-init-tools"
 
-SRC_URI = "http://mirror.linux.org.au/linux/utils/kernel/pcmcia/${BP}.tar.bz2;
+SRC_URI = "${KERNELORG_MIRROR}/linux/utils/kernel/pcmcia/${BP}.tar.xz"
 
 S = "${WORKDIR}/pcmciautils-${PV}"
 
diff --git a/meta/recipes-bsp/pcmciautils/pcmciautils_018.bb 
b/meta/recipes-bsp/pcmciautils/pcmciautils_018.bb
index d3dde7e..3556a45 100644
--- a/meta/recipes-bsp/pcmciautils/pcmciautils_018.bb
+++ b/meta/recipes-bsp/pcmciautils/pcmciautils_018.bb
@@ -5,8 +5,8 @@ SRC_URI += "file://makefile_fix.patch \
 file://lex_sys_types.patch \
 "
 
-SRC_URI[md5sum] = "5d85669b3440baa4532363da6caaf1b4"
-SRC_URI[sha256sum] = 
"79e6ae441278e178c07501d492394ed2c0326fdb66894f6d040ec811b0dc8ed5"
+SRC_URI[md5sum] = "885431c3cefb76ffdad8cb985134e996"
+SRC_URI[sha256sum] = 
"57c27be8f04ef4d535bcfa988567316cc57659fe69068327486dab53791e6558"
 
 PR = "r1"
 


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


[OE-core] [PATCH] debianutils: Upgrade 4.5.1 -> 4.7

2016-02-17 Thread Richard Purdie
Tarball now uses the standard ${BPN}-${PV} so drop custom S setting.

Signed-off-by: Richard Purdie 
---
 .../debianutils/{debianutils_4.5.1.bb => debianutils_4.7.bb}  | 8 +++-
 1 file changed, 3 insertions(+), 5 deletions(-)
 rename meta/recipes-support/debianutils/{debianutils_4.5.1.bb => 
debianutils_4.7.bb} (85%)

diff --git a/meta/recipes-support/debianutils/debianutils_4.5.1.bb 
b/meta/recipes-support/debianutils/debianutils_4.7.bb
similarity index 85%
rename from meta/recipes-support/debianutils/debianutils_4.5.1.bb
rename to meta/recipes-support/debianutils/debianutils_4.7.bb
index 884d4bd..6a1d5bf 100644
--- a/meta/recipes-support/debianutils/debianutils_4.5.1.bb
+++ b/meta/recipes-support/debianutils/debianutils_4.7.bb
@@ -3,15 +3,13 @@ SECTION = "base"
 LICENSE = "GPLv2 & SMAIL_GPL"
 LIC_FILES_CHKSUM = 
"file://debian/copyright;md5=f01a5203d50512fc4830b4332b696a9f"
 
-SRC_URI = 
"http://snapshot.debian.org/archive/debian/20151006T155028Z//pool/main/d/${BPN}/${BPN}_${PV}.tar.xz;
+SRC_URI = 
"http://snapshot.debian.org/archive/debian/20160204T040501Z/pool/main/d/${BPN}/${BPN}_${PV}.tar.xz;
 # the package is taken from snapshots.debian.org; that source is static and 
goes stale
 # so we check the latest upstream from a directory that does get updated
 UPSTREAM_CHECK_URI = "${DEBIAN_MIRROR}/main/d/${BPN}/"
 
-SRC_URI[md5sum] = "487524518cd5833a6a4f7007b5d1bd5b"
-SRC_URI[sha256sum] = 
"a531c23e0105fe01cfa928457a8343a1e947e2621b3cd4d05f4e9656020c63b7"
-
-S = "${WORKDIR}/${BPN}"
+SRC_URI[md5sum] = "00186f527b35e2cecd4db593c6d512d0"
+SRC_URI[sha256sum] = 
"a269cacd40f52f2fa5d5636357714a49e8538459c16d2efaa23711fe53d9"
 
 inherit autotools update-alternatives
 

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


[OE-core] [PATCH] debianutils: Fix SRC_URI to use debian snapshot

2016-02-17 Thread Richard Purdie
This allows checkuri to pass since the old version is no longer in the 
debian pool.

Signed-off-by: Richard Purdie 

diff --git a/meta/recipes-support/debianutils/debianutils_4.5.1.bb 
b/meta/recipes-support/debianutils/debianutils_4.5.1.bb
index 77ab6da..884d4bd 100644
--- a/meta/recipes-support/debianutils/debianutils_4.5.1.bb
+++ b/meta/recipes-support/debianutils/debianutils_4.5.1.bb
@@ -3,7 +3,10 @@ SECTION = "base"
 LICENSE = "GPLv2 & SMAIL_GPL"
 LIC_FILES_CHKSUM = 
"file://debian/copyright;md5=f01a5203d50512fc4830b4332b696a9f"
 
-SRC_URI = "${DEBIAN_MIRROR}/main/d/${BPN}/${BPN}_${PV}.tar.xz"
+SRC_URI = 
"http://snapshot.debian.org/archive/debian/20151006T155028Z//pool/main/d/${BPN}/${BPN}_${PV}.tar.xz;
+# the package is taken from snapshots.debian.org; that source is static and 
goes stale
+# so we check the latest upstream from a directory that does get updated
+UPSTREAM_CHECK_URI = "${DEBIAN_MIRROR}/main/d/${BPN}/"
 
 SRC_URI[md5sum] = "487524518cd5833a6a4f7007b5d1bd5b"
 SRC_URI[sha256sum] = 
"a531c23e0105fe01cfa928457a8343a1e947e2621b3cd4d05f4e9656020c63b7"


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


[OE-core] [PATCH] busybox: Add musl config for _git recipe

2016-02-17 Thread Maxin B. John
busybox_git recipe also requires musl specific configuration

Signed-off-by: Maxin B. John 
---
 meta/recipes-core/busybox/busybox_git.bb | 1 +
 1 file changed, 1 insertion(+)

diff --git a/meta/recipes-core/busybox/busybox_git.bb 
b/meta/recipes-core/busybox/busybox_git.bb
index 220977a..e590543 100644
--- a/meta/recipes-core/busybox/busybox_git.bb
+++ b/meta/recipes-core/busybox/busybox_git.bb
@@ -44,5 +44,6 @@ SRC_URI = "git://busybox.net/busybox.git \
file://getopts.cfg \
file://resize.cfg \
 "
+SRC_URI_append_libc-musl = " file://musl.cfg "
 
 DEFAULT_PREFERENCE = "-1"
-- 
2.4.0

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


[OE-core] [PATCH 1/1] kernel: Add KERNEL_IMAGETYPES to build multi types kernel at one time

2016-02-17 Thread zhe.he
From: He Zhe 

Add KERNEL_IMAGETYPES to support building packaging and installing
multi types of kernel images, such as zImage uImage, at one time.
KERNEL_IMAGETYPE works as before.

Fixes [YOCTO #6945].

Signed-off-by: He Zhe 
---
 meta/classes/kernel-fitimage.bbclass|  20 ++--
 meta/classes/kernel-grub.bbclass|  44 ++---
 meta/classes/kernel-uimage.bbclass  |  22 +++--
 meta/classes/kernel.bbclass | 169 ++--
 meta/conf/documentation.conf|   1 +
 meta/recipes-kernel/linux/linux-dtb.inc |  49 +
 6 files changed, 202 insertions(+), 103 deletions(-)

diff --git a/meta/classes/kernel-fitimage.bbclass 
b/meta/classes/kernel-fitimage.bbclass
index f1b409c..51df19d 100644
--- a/meta/classes/kernel-fitimage.bbclass
+++ b/meta/classes/kernel-fitimage.bbclass
@@ -1,8 +1,8 @@
 inherit kernel-uboot
 
 python __anonymous () {
-kerneltype = d.getVar('KERNEL_IMAGETYPE', True)
-if kerneltype == 'fitImage':
+kerneltypes = d.getVar('KERNEL_IMAGETYPES', True) or ""
+if 'fitImage' in kerneltypes.split():
 depends = d.getVar("DEPENDS", True)
 depends = "%s u-boot-mkimage-native dtc-native" % depends
 d.setVar("DEPENDS", depends)
@@ -10,7 +10,9 @@ python __anonymous () {
# Override KERNEL_IMAGETYPE_FOR_MAKE variable, which is internal
# to kernel.bbclass . We have to override it, since we pack zImage
# (at least for now) into the fitImage .
-d.setVar("KERNEL_IMAGETYPE_FOR_MAKE", "zImage")
+typeformake = d.getVar("KERNEL_IMAGETYPE_FOR_MAKE", True) or ""
+if 'fitImage' in typeformake.split():
+d.setVar('KERNEL_IMAGETYPE_FOR_MAKE', 
typeformake.replace('fitImage', 'zImage'))
 
 image = d.getVar('INITRAMFS_IMAGE', True)
 if image:
@@ -154,7 +156,7 @@ EOF
 }
 
 do_assemble_fitimage() {
-   if test "x${KERNEL_IMAGETYPE}" = "xfitImage" ; then
+   if echo ${KERNEL_IMAGETYPES} | grep -Pq "\bfitImage\b"; then
kernelcount=1
dtbcount=""
rm -f fit-image.its
@@ -217,14 +219,14 @@ addtask assemble_fitimage before do_install after 
do_compile
 
 kernel_do_deploy_append() {
# Update deploy directory
-   if test "x${KERNEL_IMAGETYPE}" = "xfitImage" ; then
+   if echo ${KERNEL_IMAGETYPES} | grep -Pq "\bfitImage\b"; then
cd ${B}
echo "Copying fit-image.its source file..."
-   
its_base_name="${KERNEL_IMAGETYPE}-its-${PV}-${PR}-${MACHINE}-${DATETIME}"
-   its_symlink_name=${KERNEL_IMAGETYPE}-its-${MACHINE}
+   its_base_name="fitImage-its-${PV}-${PR}-${MACHINE}-${DATETIME}"
+   its_symlink_name=fitImage-its-${MACHINE}
install -m 0644 fit-image.its ${DEPLOYDIR}/${its_base_name}.its
-   
linux_bin_base_name="${KERNEL_IMAGETYPE}-linux.bin-${PV}-${PR}-${MACHINE}-${DATETIME}"
-   linux_bin_symlink_name=${KERNEL_IMAGETYPE}-linux.bin-${MACHINE}
+   
linux_bin_base_name="fitImage-linux.bin-${PV}-${PR}-${MACHINE}-${DATETIME}"
+   linux_bin_symlink_name=fitImage-linux.bin-${MACHINE}
install -m 0644 linux.bin 
${DEPLOYDIR}/${linux_bin_base_name}.bin
 
cd ${DEPLOYDIR}
diff --git a/meta/classes/kernel-grub.bbclass b/meta/classes/kernel-grub.bbclass
index a63f482..f7dcc07 100644
--- a/meta/classes/kernel-grub.bbclass
+++ b/meta/classes/kernel-grub.bbclass
@@ -10,41 +10,44 @@
 #   updates the new kernel as the boot priority.
 #
 
-pkg_preinst_kernel-image_append () {
+python __anonymous () {
+import re
+
+preinst = '''
# Parsing confliction
[ -f "$D/boot/grub/menu.list" ] && grubcfg="$D/boot/grub/menu.list"
[ -f "$D/boot/grub/grub.cfg" ] && grubcfg="$D/boot/grub/grub.cfg"
if [ -n "$grubcfg" ]; then
# Dereference symlink to avoid confliction with new kernel name.
-   if grep -q "/${KERNEL_IMAGETYPE} \+root=" $grubcfg; then
-   if [ -L "$D/boot/${KERNEL_IMAGETYPE}" ]; then
-   kimage=`realpath $D/boot/${KERNEL_IMAGETYPE} 
2>/dev/null`
+   if grep -q "/KERNEL_IMAGETYPE \+root=" $grubcfg; then
+   if [ -L "$D/boot/KERNEL_IMAGETYPE" ]; then
+   kimage=`realpath $D/boot/KERNEL_IMAGETYPE 
2>/dev/null`
if [ -f "$D$kimage" ]; then
-   sed -i "s:${KERNEL_IMAGETYPE} 
\+root=:${kimage##*/} root=:" $grubcfg
+   sed -i "s:KERNEL_IMAGETYPE 
\+root=:${kimage##*/} root=:" $grubcfg
fi
fi
fi
 
# Rename old kernel if it conflicts with new kernel name.
-   if grep -q "/${KERNEL_IMAGETYPE}-${KERNEL_VERSION} \+root=" 
$grubcfg; then

[OE-core] [PATCH 0/1] Yocto Bug #6945

2016-02-17 Thread zhe.he
From: He Zhe 

This patch has been discussed previously and modified according to Richard's
suggestions, and adjusted against the latest code context.

The following changes since commit 152914f2983c5d69001de1d46ce99547fa1e75fe:

  oeqa/parselogs: Whitelist dmi firmware failure message in 4.4 kernels 
(2016-02-16 23:54:05 +)

are available in the git repository at:

  git://git.yoctoproject.org/poky-contrib zhe/yocto-bug-6945
  
http://git.yoctoproject.org/cgit/cgit.cgi/poky-contrib/commit/?h=zhe/yocto-bug-6945

for you to fetch changes up to d36ac8034f8914c57c27a514b9a692c3c1377f42:

  kernel: Add KERNEL_IMAGETYPES to build multi types kernel at one time 
(2016-02-17 04:37:59 -0500)



He Zhe (1):
  kernel: Add KERNEL_IMAGETYPES to build multi types kernel at one time

 meta/classes/kernel-fitimage.bbclass|  20 ++--
 meta/classes/kernel-grub.bbclass|  44 ++---
 meta/classes/kernel-uimage.bbclass  |  22 +++--
 meta/classes/kernel.bbclass | 169 ++--
 meta/conf/documentation.conf|   1 +
 meta/recipes-kernel/linux/linux-dtb.inc |  49 +
 6 files changed, 202 insertions(+), 103 deletions(-)

-- 
1.9.1

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


[OE-core] [PATCH] nfs-utils: bugfix: adjust name of statd service unit

2016-02-17 Thread Ulrich Ölmann
Upstream nfs-utils use 'rpc-statd.service' and Yocto introduced
'nfs-statd.service' instead but forgot to update the mount.nfs helper
'start-statd' accordingly.

Signed-off-by: Ulrich Ölmann 
---
 .../files/bugfix-adjust-statd-service-name.patch   | 34 ++
 .../nfs-utils/nfs-utils_1.3.3.bb   |  1 +
 2 files changed, 35 insertions(+)
 create mode 100644 
meta/recipes-connectivity/nfs-utils/files/bugfix-adjust-statd-service-name.patch

diff --git 
a/meta/recipes-connectivity/nfs-utils/files/bugfix-adjust-statd-service-name.patch
 
b/meta/recipes-connectivity/nfs-utils/files/bugfix-adjust-statd-service-name.patch
new file mode 100644
index 000..14bd403
--- /dev/null
+++ 
b/meta/recipes-connectivity/nfs-utils/files/bugfix-adjust-statd-service-name.patch
@@ -0,0 +1,34 @@
+From 398fed3bb0350cb1229e54e7020ae0e044c206d1 Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Ulrich=20=C3=96lmann?= 
+Date: Wed, 17 Feb 2016 08:33:45 +0100
+Subject: bugfix: adjust statd service name
+MIME-Version: 1.0
+Content-Type: text/plain; charset=UTF-8
+Content-Transfer-Encoding: 8bit
+
+Upstream uses 'rpc-statd.service' and Yocto introduced 'nfs-statd.service'
+instead but forgot to update the mount.nfs helper 'start-statd' accordingly.
+
+Upstream-Status: Inappropriate [other]
+
+Signed-off-by: Ulrich Ölmann 
+---
+ utils/statd/start-statd | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/utils/statd/start-statd b/utils/statd/start-statd
+index 8211a90..3c2aa6f 100755
+--- a/utils/statd/start-statd
 b/utils/statd/start-statd
+@@ -16,7 +16,7 @@ fi
+ # First try systemd if it's installed.
+ if [ -d /run/systemd/system ]; then
+ # Quit only if the call worked.
+-systemctl start rpc-statd.service && exit
++systemctl start nfs-statd.service && exit
+ fi
+ 
+ # Fall back to launching it ourselves.
+-- 
+2.1.4
+
diff --git a/meta/recipes-connectivity/nfs-utils/nfs-utils_1.3.3.bb 
b/meta/recipes-connectivity/nfs-utils/nfs-utils_1.3.3.bb
index ea00656..a6268f3 100644
--- a/meta/recipes-connectivity/nfs-utils/nfs-utils_1.3.3.bb
+++ b/meta/recipes-connectivity/nfs-utils/nfs-utils_1.3.3.bb
@@ -32,6 +32,7 @@ SRC_URI = 
"${KERNELORG_MIRROR}/linux/utils/nfs-utils/${PV}/nfs-utils-${PV}.tar.x
file://nfs-utils-Do-not-pass-CFLAGS-to-gcc-while-building.patch \
file://nfs-utils-debianize-start-statd.patch \

file://0001-nfs-utils-statd-fix-a-segfault-caused-by-improper-us.patch \
+   file://bugfix-adjust-statd-service-name.patch \
 "
 
 SRC_URI[md5sum] = "cd6b568c2e9301cc3bfac09d87fbbc0b"
-- 
2.7.0

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


[OE-core] [PATCH] avahi: update to version 0.6.32

2016-02-17 Thread Maxin B. John
0.6.31 -> 0.6.32

a. Switched to the new repository hosted in github.
b. Removed the following Upstreamed/Backported patches
   1. 0001-Don-t-log-warnings-about-invalid-packets-Fixes-lathi.patch
   2. 0001-avahi-fix-avahi-status-command-error-prompt.patch
   3. avahi_fix_install_issue.patch
   4. fix_for_automake_1.12.x.patch
   5. out-of-tree.patch
   6. reuseport-check.patch

[YOCTO #7553]

Signed-off-by: Maxin B. John 
---
 .../{avahi-ui_0.6.31.bb => avahi-ui_0.6.32.bb} |   6 +-
 meta/recipes-connectivity/avahi/avahi.inc  |  13 +-
 .../avahi/{avahi_0.6.31.bb => avahi_0.6.32.bb} |   6 +-
 ...arnings-about-invalid-packets-Fixes-lathi.patch | 158 -
 ...ahi-fix-avahi-status-command-error-prompt.patch |  52 ---
 .../avahi/files/avahi_fix_install_issue.patch  |  32 -
 .../avahi/files/fix_for_automake_1.12.x.patch  |  34 -
 .../avahi/files/out-of-tree.patch  |  32 -
 .../avahi/files/reuseport-check.patch  |  30 
 9 files changed, 7 insertions(+), 356 deletions(-)
 rename meta/recipes-connectivity/avahi/{avahi-ui_0.6.31.bb => 
avahi-ui_0.6.32.bb} (94%)
 rename meta/recipes-connectivity/avahi/{avahi_0.6.31.bb => avahi_0.6.32.bb} 
(81%)
 delete mode 100644 
meta/recipes-connectivity/avahi/files/0001-Don-t-log-warnings-about-invalid-packets-Fixes-lathi.patch
 delete mode 100644 
meta/recipes-connectivity/avahi/files/0001-avahi-fix-avahi-status-command-error-prompt.patch
 delete mode 100644 
meta/recipes-connectivity/avahi/files/avahi_fix_install_issue.patch
 delete mode 100644 
meta/recipes-connectivity/avahi/files/fix_for_automake_1.12.x.patch
 delete mode 100644 meta/recipes-connectivity/avahi/files/out-of-tree.patch
 delete mode 100644 meta/recipes-connectivity/avahi/files/reuseport-check.patch

diff --git a/meta/recipes-connectivity/avahi/avahi-ui_0.6.31.bb 
b/meta/recipes-connectivity/avahi/avahi-ui_0.6.32.bb
similarity index 94%
rename from meta/recipes-connectivity/avahi/avahi-ui_0.6.31.bb
rename to meta/recipes-connectivity/avahi/avahi-ui_0.6.32.bb
index 604ee9e..aafb52e 100644
--- a/meta/recipes-connectivity/avahi/avahi-ui_0.6.31.bb
+++ b/meta/recipes-connectivity/avahi/avahi-ui_0.6.32.bb
@@ -12,10 +12,8 @@ ANY_OF_DISTRO_FEATURES = "${GTK2DISTROFEATURES}"
 PACKAGECONFIG ??= "python"
 PACKAGECONFIG[python] = "--enable-python,--disable-python,python-native python"
 
-PR = "${INC_PR}.0"
-
-SRC_URI[md5sum] = "2f22745b8f7368ad5a0a3fddac343f2d"
-SRC_URI[sha256sum] = 
"8372719b24e2dd75de6f59bb1315e600db4fd092805bd1201ed0cb651a2dab48"
+SRC_URI[md5sum] = "22b5e705d3eabb31d26f2e1e7b074013"
+SRC_URI[sha256sum] = 
"d54991185d514a0aba54ebeb408d7575b60f5818a772e28fa0e18b98bc1db454"
 
 DEPENDS += "avahi gtk+ libglade"
 
diff --git a/meta/recipes-connectivity/avahi/avahi.inc 
b/meta/recipes-connectivity/avahi/avahi.inc
index 3d22e4c..f813084 100644
--- a/meta/recipes-connectivity/avahi/avahi.inc
+++ b/meta/recipes-connectivity/avahi/avahi.inc
@@ -7,27 +7,19 @@ configuration from the link-local 169.254.0.0/16 range 
without the need for a ce
 server.'
 AUTHOR = "Lennart Poettering "
 HOMEPAGE = "http://avahi.org;
-BUGTRACKER = "http://avahi.org/report;
+BUGTRACKER = "https://github.com/lathiat/avahi/issues;
 SECTION = "network"
 
 # major part is under LGPLv2.1+, but several .dtd, .xsl, initscripts and
 # python scripts are under GPLv2+
 LICENSE = "GPLv2+ & LGPLv2.1+"
 
-INC_PR = "r11"
-
 DEPENDS = "expat libcap libdaemon dbus glib-2.0"
 
-SRC_URI = "http://avahi.org/download/avahi-${PV}.tar.gz \
+SRC_URI = 
"https://github.com/lathiat/avahi/releases/download/v${PV}/avahi-${PV}.tar.gz \
   file://00avahi-autoipd \
   file://99avahi-autoipd \
   file://initscript.patch \
-  file://avahi_fix_install_issue.patch \
-  file://fix_for_automake_1.12.x.patch \
-  file://out-of-tree.patch \
-  file://0001-avahi-fix-avahi-status-command-error-prompt.patch \
-  file://reuseport-check.patch \
-  
file://0001-Don-t-log-warnings-about-invalid-packets-Fixes-lathi.patch \
   "
 
 USERADD_PACKAGES = "avahi-daemon avahi-autoipd"
@@ -53,6 +45,7 @@ EXTRA_OECONF = "--disable-introspection \
  --disable-qt4 \
  --disable-python \
  --disable-doxygen-doc \
+ --disable-manpages \
  ${EXTRA_OECONF_SYSVINIT} \
  ${EXTRA_OECONF_SYSTEMD} \
  ${AVAHI_GTK} \
diff --git a/meta/recipes-connectivity/avahi/avahi_0.6.31.bb 
b/meta/recipes-connectivity/avahi/avahi_0.6.32.bb
similarity index 81%
rename from meta/recipes-connectivity/avahi/avahi_0.6.31.bb
rename to meta/recipes-connectivity/avahi/avahi_0.6.32.bb
index 5d796a2..6670106 100644
--- a/meta/recipes-connectivity/avahi/avahi_0.6.31.bb
+++ b/meta/recipes-connectivity/avahi/avahi_0.6.32.bb
@@ -12,10 +12,8 @@ LIC_FILES_CHKSUM = 
"file://LICENSE;md5=2d5025d4aa3495befef8f17206a5b0a1 \
 

[OE-core] [PATCH] musl: Upgrade to 1.1.13+

2016-02-17 Thread Khem Raj
Rich Felker (3):
  fix assumption in fputs that fwrite returning 0 implies an error
  fix unlikely corner cases in getopt's message printing
  in crypt-sha*, reject excessive rounds as error rather than clamping

Signed-off-by: Khem Raj 
---
 meta/recipes-core/musl/musl_git.bb | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/meta/recipes-core/musl/musl_git.bb 
b/meta/recipes-core/musl/musl_git.bb
index 8c54db8..4151308 100644
--- a/meta/recipes-core/musl/musl_git.bb
+++ b/meta/recipes-core/musl/musl_git.bb
@@ -3,9 +3,9 @@
 
 require musl.inc
 
-SRCREV = "0ed932f34f11663e6b3ddfa866b1798a5938a3dc"
+SRCREV = "cf115059ba0ecd611008c89c78c37b62f8e6d6af"
 
-PV = "1.1.12+git${SRCPV}"
+PV = "1.1.13+git${SRCPV}"
 
 # mirror is at git://github.com/kraj/musl.git
 
-- 
1.9.1

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


[OE-core] [PATCH 1/2] pseudo: Fix build when security flags are enabled

2016-02-17 Thread Khem Raj
filter out PIE options

Signed-off-by: Khem Raj 
---
 .../files/0001-configure-Prune-PIE-flags.patch | 44 ++
 meta/recipes-devtools/pseudo/pseudo_1.7.5.bb   |  1 +
 2 files changed, 45 insertions(+)
 create mode 100644 
meta/recipes-devtools/pseudo/files/0001-configure-Prune-PIE-flags.patch

diff --git 
a/meta/recipes-devtools/pseudo/files/0001-configure-Prune-PIE-flags.patch 
b/meta/recipes-devtools/pseudo/files/0001-configure-Prune-PIE-flags.patch
new file mode 100644
index 000..43504ea
--- /dev/null
+++ b/meta/recipes-devtools/pseudo/files/0001-configure-Prune-PIE-flags.patch
@@ -0,0 +1,44 @@
+From b5545c08e6c674c49aef14b47a56a3e92df4d2a7 Mon Sep 17 00:00:00 2001
+From: Khem Raj 
+Date: Wed, 17 Feb 2016 07:36:34 +
+Subject: [pseudo][PATCH] configure: Prune PIE flags
+
+LDFLAGS are not taken from environment and CFLAGS is used for LDFLAGS
+however when using security options -fpie and -pie options are coming
+as part of ARCH_FLAGS and they get into LDFLAGS of shared objects as
+well so we end up with conflicting options -shared -pie, which gold
+rejects outright and bfd linker lets the one appearning last in cmdline
+take effect. This create quite a unpleasant situation in OE when
+security flags are enabled and gold or not-gold options are used
+it errors out but errors are not same.
+
+Anyway, with this patch we filter pie options from ARCH_FLAGS
+ouright and take control of generating PIC objects
+
+Helps with errors like
+
+| 
/mnt/oe/build/tmp-glibc/sysroots/x86_64-linux/usr/libexec/x86_64-oe-linux/gcc/x86_64-oe-linux/5.3.0/ld:
 pseudo_client.o: relocation R_X86_64_PC32 against symbol 
`pseudo_util_debug_flags' can not be used when making a shared object; 
recompile with -fPIC
+| 
/mnt/oe/build/tmp-glibc/sysroots/x86_64-linux/usr/libexec/x86_64-oe-linux/gcc/x86_64-oe-linux/5.3.0/ld:
 final link failed: Bad value
+| collect2: error: ld returned 1 exit status
+| make: *** [lib/pseudo/lib64/libpseudo.so] Error 1
+
+Signed-off-by: Khem Raj 
+---
+Upstream-Status: Submitted
+
+ configure | 2 ++
+ 1 file changed, 2 insertions(+)
+
+diff --git a/configure b/configure
+index e5ef9ce..83b0890 100755
+--- a/configure
 b/configure
+@@ -339,3 +339,5 @@ sed -e '
+   s,@ARCH@,'"$opt_arch"',g
+   s,@BITS@,'"$opt_bits"',g
+ ' < Makefile.in > Makefile
++
++sed -i -e 's/\-[f]*pie//g' Makefile
+-- 
+1.8.3.1
+
diff --git a/meta/recipes-devtools/pseudo/pseudo_1.7.5.bb 
b/meta/recipes-devtools/pseudo/pseudo_1.7.5.bb
index 195a508..88bd1f5 100644
--- a/meta/recipes-devtools/pseudo/pseudo_1.7.5.bb
+++ b/meta/recipes-devtools/pseudo/pseudo_1.7.5.bb
@@ -2,6 +2,7 @@ require pseudo.inc
 
 SRC_URI = " \
 http://downloads.yoctoproject.org/releases/pseudo/${BPN}-${PV}.tar.bz2 \
+file://0001-configure-Prune-PIE-flags.patch \
 file://fallback-passwd \
 file://fallback-group \
 "
-- 
1.8.3.1

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


[OE-core] [PATCH 2/2] libnewt: Fix build with PIE flags

2016-02-17 Thread Khem Raj
security flags add -pie -fpie to CFLAGS which is not
right options for compiling .so files, they are only
useful for compiling executables

Signed-off-by: Khem Raj 
---
 meta/recipes-extended/newt/files/pie-flags.patch | 36 
 meta/recipes-extended/newt/libnewt_0.52.18.bb|  2 ++
 2 files changed, 38 insertions(+)
 create mode 100644 meta/recipes-extended/newt/files/pie-flags.patch

diff --git a/meta/recipes-extended/newt/files/pie-flags.patch 
b/meta/recipes-extended/newt/files/pie-flags.patch
new file mode 100644
index 000..8883e26
--- /dev/null
+++ b/meta/recipes-extended/newt/files/pie-flags.patch
@@ -0,0 +1,36 @@
+specify -fPIC after CFLAGS so it can override the CFLAGS containing -pie and 
-fpie
+this makes sure the objects that go into shared objects are compiled with -fPIC
+and not with -fpie. We can not use -fpie on objects which will go into .so 
files
+Fixes errors like
+
+| 
/mnt/oe/build/tmp-glibc/sysroots/x86_64-linux/usr/libexec/x86_64-oe-linux/gcc/x86_64-oe-linux/5.3.0/ld:
 shared/newt.o: relocation R_X86_64_PC32 against undefined symbol 
`SLtt_Screen_Rows@@SLANG2' can not be used when making a shared object; 
recompile with -fPIC
+| 
/mnt/oe/build/tmp-glibc/sysroots/x86_64-linux/usr/libexec/x86_64-oe-linux/gcc/x86_64-oe-linux/5.3.0/ld:
 final link failed: Bad value
+| collect2: error: ld returned 1 exit status
+| make: *** [libnewt.so.0.52.18] Error 1
+
+Signed-off-by: Khem Raj 
+Upstream-Status: Pending
+Index: newt-0.52.18/Makefile.in
+===
+--- newt-0.52.18.orig/Makefile.in
 newt-0.52.18/Makefile.in
+@@ -96,8 +96,8 @@ _snack.$(SOEXT):   snack.c $(LIBNEWTSH)
+   PIFLAGS=`$$pyconfig --includes`; \
+   PLDFLAGS=`$$pyconfig --ldflags`; \
+   PLFLAGS=`$$pyconfig --libs`; \
+-  echo $(CC) $(SHCFLAGS) $(CPPFLAGS) $$PIFLAGS $$PCFLAGS -c -o 
$$ver/snack.o snack.c; \
+-  $(CC) $(SHCFLAGS) $(CPPFLAGS) $$PIFLAGS $$PCFLAGS -c -o 
$$ver/snack.o snack.c; \
++  echo $(CC) $(CPPFLAGS) $(SHCFLAGS) $$PIFLAGS $$PCFLAGS -c -o 
$$ver/snack.o snack.c; \
++  $(CC) $(CPPFLAGS) $(SHCFLAGS) $$PIFLAGS $$PCFLAGS -c -o 
$$ver/snack.o snack.c; \
+   echo $(CC) --shared $$PLDFLAGS $$PLFLAGS $(LDFLAGS) -o 
$$ver/_snack.$(SOEXT) $$ver/snack.o -L.  -lnewt $(LIBS); \
+   $(CC) --shared $$PLDFLAGS $$PLFLAGS $(LDFLAGS) -o 
$$ver/_snack.$(SOEXT) $$ver/snack.o -L.  -lnewt $(LIBS); \
+   done || :
+@@ -135,7 +135,7 @@ $(LIBNEWTSH): $(SHAREDOBJS)
+   ln -fs $(LIBNEWTSH) $(LIBNEWTSONAME)
+ 
+ $(SHAREDDIR)/%.o : %.c $(SHAREDDIR)
+-  $(CC) $(SHCFLAGS) -c $(CFLAGS) $(CPPFLAGS) -o $@ $<
++  $(CC) -c $(CFLAGS) $(CPPFLAGS) $(SHCFLAGS) -o $@ $<
+ 
+ install: $(LIBNEWT) install-sh whiptail
+   [ -d $(instroot)/$(bindir) ] || install -m 755 -d $(instroot)/$(bindir)
diff --git a/meta/recipes-extended/newt/libnewt_0.52.18.bb 
b/meta/recipes-extended/newt/libnewt_0.52.18.bb
index 293c1a8..9a2964b 100644
--- a/meta/recipes-extended/newt/libnewt_0.52.18.bb
+++ b/meta/recipes-extended/newt/libnewt_0.52.18.bb
@@ -22,6 +22,7 @@ SRC_URI = 
"https://fedorahosted.org/releases/n/e/newt/newt-${PV}.tar.gz \
file://fix_SHAREDDIR.patch \
file://cross_ar.patch \
file://Makefile.in-Add-tinfo-library-to-the-linking-librari.patch \
+   file://pie-flags.patch \
 "
 
 SRC_URI[md5sum] = "685721bee1a318570704b19dcf31d268"
@@ -37,6 +38,7 @@ CLEANBROKEN = "1"
 
 export STAGING_INCDIR
 export STAGING_LIBDIR
+export CPPFLAGS
 
 export BUILD_SYS
 export HOST_SYS
-- 
1.8.3.1

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