[OE-core] [PATCH] [v2] lz4: update to 131

2015-08-17 Thread Armin Kuster
Clean up SRC_URI.

Signed-off-by: Armin Kuster akuster...@gmail.com
---
 meta/recipes-support/lz4/lz4.bb | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/meta/recipes-support/lz4/lz4.bb b/meta/recipes-support/lz4/lz4.bb
index 0b0c632..18e56d0 100644
--- a/meta/recipes-support/lz4/lz4.bb
+++ b/meta/recipes-support/lz4/lz4.bb
@@ -4,11 +4,11 @@ DESCRIPTION = LZ4 is a very fast lossless compression 
algorithm, providing comp
 LICENSE = BSD
 LIC_FILES_CHKSUM = file://lib/LICENSE;md5=0b0d063f37a4477b54af2459477dcafd
 
-SRCREV = 5780864c0ce08622238a267c46fb489d7066cad4
+SRCREV = d86dc916771c126afb797637dda9f6421c0cb998
 
-PV = 128+git${SRCPV}
+PV = 131+git${SRCPV}
 
-SRC_URI = git://github.com/Cyan4973/lz4.git;protocol=http
+SRC_URI = git://github.com/Cyan4973/lz4.git
 
 S = ${WORKDIR}/git
 
-- 
2.3.5

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


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

2015-08-17 Thread He Zhe
Ping.

On 08/10/2015 08:46 PM, zhe...@windriver.com wrote:
 From: He Zhe zhe...@windriver.com

  - 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 it did.
  - v2: Update with the latest oe-core
  - v3: Add KERNEL_IMAGETYPES, leave KERNEL_IMAGETYPE as is
  - v4: Turn package name to lower case to meet opkg's requrement
Modify if test in kernel-fitimage.bbclass and kernel-uimage.bbclass


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

  meta/classes/kernel-fitimage.bbclass|  21 +++---
  meta/classes/kernel-grub.bbclass|  46 +++
  meta/classes/kernel-uimage.bbclass  |  22 +++---
  meta/classes/kernel.bbclass | 130 
 +++-
  meta/conf/documentation.conf|   1 +
  meta/recipes-kernel/linux/linux-dtb.inc |  81 
  6 files changed, 199 insertions(+), 102 deletions(-)


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


[OE-core] [PATCH 2/4] devtool: extract: remove patches subdirectory when S == WORKDIR

2015-08-17 Thread Paul Eggleton
Ensure that the patches subdirectory is removed from the right
location when S == WORKDIR (e.g. devtool extract makedevs).

Signed-off-by: Paul Eggleton paul.eggle...@linux.intel.com
---
 scripts/lib/devtool/standard.py | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/scripts/lib/devtool/standard.py b/scripts/lib/devtool/standard.py
index e4ee7f7..658076c 100644
--- a/scripts/lib/devtool/standard.py
+++ b/scripts/lib/devtool/standard.py
@@ -301,7 +301,6 @@ def _extract_source(srctree, keep_temp, devbranch, d):
 logger.info('Unpacking...')
 task_executor.exec_func('do_unpack', False)
 srcsubdir = crd.getVar('S', True)
-patchsubdir = srcsubdir
 if srcsubdir == workdir:
 # Find non-patch sources that were unpacked to srctree directory
 recipe_patches = [os.path.basename(patch) for patch in
@@ -322,7 +321,7 @@ def _extract_source(srctree, keep_temp, devbranch, d):
 
 scriptutils.git_convert_standalone_clone(srcsubdir)
 
-patchdir = os.path.join(patchsubdir, 'patches')
+patchdir = os.path.join(srcsubdir, 'patches')
 haspatches = False
 if os.path.exists(patchdir):
 if os.listdir(patchdir):
-- 
2.1.0

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


[OE-core] [PATCH 4/4] lib/oe/recipeutils: avoid parsing in get_var_files()

2015-08-17 Thread Paul Eggleton
Let's have the caller do this and then the function is a bit more
flexible (e.g. we can choose to parse with bbappends or not); fix up
calls to this function appropriately (of which there are only two, both
within devtool).

Signed-off-by: Paul Eggleton paul.eggle...@linux.intel.com
---
 meta/lib/oe/recipeutils.py  | 3 +--
 scripts/lib/devtool/standard.py | 4 ++--
 2 files changed, 3 insertions(+), 4 deletions(-)

diff --git a/meta/lib/oe/recipeutils.py b/meta/lib/oe/recipeutils.py
index cd74213..d4fa726 100644
--- a/meta/lib/oe/recipeutils.py
+++ b/meta/lib/oe/recipeutils.py
@@ -79,10 +79,9 @@ def get_var_files(fn, varlist, d):
 Find the file in which each of a list of variables is set.
 Note: requires variable history to be enabled when parsing.
 
-envdata = parse_recipe(fn, [], d)
 varfiles = {}
 for v in varlist:
-history = envdata.varhistory.variable(v)
+history = d.varhistory.variable(v)
 files = []
 for event in history:
 if 'file' in event and not 'flag' in event:
diff --git a/scripts/lib/devtool/standard.py b/scripts/lib/devtool/standard.py
index e85e1ad..e1c5584 100644
--- a/scripts/lib/devtool/standard.py
+++ b/scripts/lib/devtool/standard.py
@@ -630,7 +630,7 @@ def _update_recipe_srcrev(args, srctree, rd, config_data):
 rd, args.append, None, wildcardver=args.wildcard_version,
 extralines=patchfields)
 else:
-oe.recipeutils.patch_recipe(config_data, recipefile, patchfields)
+oe.recipeutils.patch_recipe(rd, recipefile, patchfields)
 
 if not 'git://' in orig_src_uri:
 logger.info('You will need to update SRC_URI within the recipe to '
@@ -742,7 +742,7 @@ def _update_recipe_patch(args, config, srctree, rd, 
config_data):
 updaterecipe = True
 if updaterecipe:
 logger.info('Updating recipe %s' % 
os.path.basename(recipefile))
-oe.recipeutils.patch_recipe(config_data, recipefile,
+oe.recipeutils.patch_recipe(rd, recipefile,
 {'SRC_URI': ' '.join(srcuri)})
 elif not updatepatches:
 # Neither patches nor recipe were updated
-- 
2.1.0

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


[OE-core] [PATCH 1/4] devtool: extract: prevent externalsrc from interfering with extraction

2015-08-17 Thread Paul Eggleton
In case the user has set up externalsrc outside of devtool, force
EXTERNALSRC to blank for the recipe when extracting so that the original
source URI is still in SRC_URI and we're still able to extract it. (This
isn't a problem with devtool itself because the bbappends within the
workspace layer that apply externalsrc are explicitly filtered out when
devtool parses a recipe).

Signed-off-by: Paul Eggleton paul.eggle...@linux.intel.com
---
 scripts/lib/devtool/standard.py | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/scripts/lib/devtool/standard.py b/scripts/lib/devtool/standard.py
index ea21877..e4ee7f7 100644
--- a/scripts/lib/devtool/standard.py
+++ b/scripts/lib/devtool/standard.py
@@ -294,6 +294,8 @@ def _extract_source(srctree, keep_temp, devbranch, d):
 
 task_executor = BbTaskExecutor(crd)
 
+crd.setVar('EXTERNALSRC_forcevariable', '')
+
 logger.info('Fetching %s...' % pn)
 task_executor.exec_func('do_fetch', False)
 logger.info('Unpacking...')
-- 
2.1.0

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


[OE-core] [PATCH 0/4] devtool fixes

2015-08-17 Thread Paul Eggleton
Three bugfixes for devtool plus one refactoring patch to improve a
related function in the recipeutils module.


The following changes since commit 059db140885bad379534e6ec713f3ceb4e18faea:

  adt-installer: use DEPLOY_DIR in ANT_DEPLOY expansion (2015-08-16 17:28:14 
+0100)

are available in the git repository at:

  git://git.openembedded.org/openembedded-core-contrib paule/devtool-fixes5
  
http://cgit.openembedded.org/cgit.cgi/openembedded-core-contrib/log/?h=paule/devtool-fixes5

Paul Eggleton (4):
  devtool: extract: prevent externalsrc from interfering with extraction
  devtool: extract: remove patches subdirectory when S == WORKDIR
  devtool: fix handling of BBCLASSEXTENDed recipes
  lib/oe/recipeutils: avoid parsing in get_var_files()

 meta/lib/oe/recipeutils.py|  3 +--
 meta/lib/oeqa/selftest/devtool.py | 30 ++
 scripts/devtool   | 12 ++--
 scripts/lib/devtool/standard.py   | 29 +
 4 files changed, 54 insertions(+), 20 deletions(-)

-- 
2.1.0

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


[OE-core] [PATCH 3/4] devtool: fix handling of BBCLASSEXTENDed recipes

2015-08-17 Thread Paul Eggleton
If a recipe is BBCLASSEXTENDed (e.g. to -native), its PN value and the
name of the bbappend will be different; we were assuming them to be the
same when reading in the workspace, leading to us seeing the base recipe
name everywhere afterwards.

Also add a test so we ensure this doesn't regress in future.

Fixes [YOCTO #8157].

Signed-off-by: Paul Eggleton paul.eggle...@linux.intel.com
---
 meta/lib/oeqa/selftest/devtool.py | 30 ++
 scripts/devtool   | 12 ++--
 scripts/lib/devtool/standard.py   | 20 
 3 files changed, 48 insertions(+), 14 deletions(-)

diff --git a/meta/lib/oeqa/selftest/devtool.py 
b/meta/lib/oeqa/selftest/devtool.py
index b59db15..947d8ee 100644
--- a/meta/lib/oeqa/selftest/devtool.py
+++ b/meta/lib/oeqa/selftest/devtool.py
@@ -367,6 +367,36 @@ class DevtoolTests(DevtoolBase):
 self.assertNotEqual(result.status, 0, 'devtool modify on %s should 
have failed. devtool output: %s' %  (testrecipe, result.output))
 self.assertIn('ERROR: ', result.output, 'devtool modify on %s 
should have given an ERROR' % testrecipe)
 
+def test_devtool_modify_native(self):
+# Check preconditions
+workspacedir = os.path.join(self.builddir, 'workspace')
+self.assertTrue(not os.path.exists(workspacedir), 'This test cannot be 
run with a workspace directory under the build directory')
+# Try modifying some recipes
+tempdir = tempfile.mkdtemp(prefix='devtoolqa')
+self.track_for_cleanup(tempdir)
+self.track_for_cleanup(workspacedir)
+self.add_command_to_tearDown('bitbake-layers remove-layer */workspace')
+
+bbclassextended = False
+inheritnative = False
+testrecipes = 'mtools-native apt-native 
desktop-file-utils-native'.split()
+for testrecipe in testrecipes:
+checkextend = 'native' in (get_bb_var('BBCLASSEXTEND', testrecipe) 
or '').split()
+if not bbclassextended:
+bbclassextended = checkextend
+if not inheritnative:
+inheritnative = not checkextend
+result = runCmd('devtool modify %s -x %s' % (testrecipe, 
os.path.join(tempdir, testrecipe)))
+self.assertNotIn('ERROR: ', result.output, 'ERROR in devtool 
modify output: %s' % result.output)
+result = runCmd('devtool build %s' % testrecipe)
+self.assertNotIn('ERROR: ', result.output, 'ERROR in devtool build 
output: %s' % result.output)
+result = runCmd('devtool reset %s' % testrecipe)
+self.assertNotIn('ERROR: ', result.output, 'ERROR in devtool reset 
output: %s' % result.output)
+
+self.assertTrue(bbclassextended, 'None of these recipes are 
BBCLASSEXTENDed to native - need to adjust testrecipes list: %s' % ', 
'.join(testrecipes))
+self.assertTrue(inheritnative, 'None of these recipes do inherit 
native - need to adjust testrecipes list: %s' % ', '.join(testrecipes))
+
+
 @testcase(1165)
 def test_devtool_modify_git(self):
 # Check preconditions
diff --git a/scripts/devtool b/scripts/devtool
index 1c22438..b9d3bb9 100755
--- a/scripts/devtool
+++ b/scripts/devtool
@@ -104,15 +104,15 @@ def read_workspace():
 _enable_workspace_layer(config.workspace_path, config, basepath)
 
 logger.debug('Reading workspace in %s' % config.workspace_path)
-externalsrc_re = re.compile(r'^EXTERNALSRC(_pn-[^ =]+)? =.*$')
+externalsrc_re = re.compile(r'^EXTERNALSRC(_pn-([^ =]+))? *= *([^]*)$')
 for fn in glob.glob(os.path.join(config.workspace_path, 'appends', 
'*.bbappend')):
-pn = os.path.splitext(os.path.basename(fn))[0].split('_')[0]
 with open(fn, 'r') as f:
 for line in f:
-if externalsrc_re.match(line.rstrip()):
-splitval = line.split('=', 2)
-workspace[pn] = splitval[1].strip(' \n\r\t')
-break
+res = externalsrc_re.match(line.rstrip())
+if res:
+pn = res.group(2) or 
os.path.splitext(os.path.basename(fn))[0].split('_')[0]
+workspace[pn] = {'srctree': res.group(3),
+ 'bbappend': fn}
 
 def create_workspace(args, config, basepath, workspace):
 if args.layerpath:
diff --git a/scripts/lib/devtool/standard.py b/scripts/lib/devtool/standard.py
index 658076c..e85e1ad 100644
--- a/scripts/lib/devtool/standard.py
+++ b/scripts/lib/devtool/standard.py
@@ -430,6 +430,16 @@ def modify(args, config, basepath, workspace):
 if not rd:
 return 1
 recipefile = rd.getVar('FILE', True)
+appendname = os.path.splitext(os.path.basename(recipefile))[0]
+if args.wildcard:
+appendname = re.sub(r'_.*', '_%', appendname)
+appendpath = os.path.join(config.workspace_path, 'appends')
+appendfile = os.path.join(appendpath, appendname + '.bbappend')
+if 

Re: [OE-core] shell script guidelines in oe-core? (was Re: [PATCH v4] create-pull-request: cleanup bashisms)

2015-08-17 Thread Otavio Salvador
On Mon, Aug 17, 2015 at 3:14 AM,  mikko.rap...@bmw.de wrote:
 On Sat, Aug 15, 2015 at 06:38:18PM -0700, Christopher Larson wrote:
 Update: checkbashisms and shellcheck both check for this now.

 This is great! How about formulating that oe-core shell scripts should
 pass shellcheck and checkbashisms checks without warnings?

I second this; the more picky we are now, less bashism we have to handle later.

-- 
Otavio Salvador O.S. Systems
http://www.ossystems.com.brhttp://code.ossystems.com.br
Mobile: +55 (53) 9981-7854Mobile: +1 (347) 903-9750
-- 
___
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core


Re: [OE-core] [PATCH 1/2] bitbake.conf: Add Github mirror

2015-08-17 Thread akuster808

Robert,


On 08/16/2015 08:29 PM, Robert Yang wrote:


Hi Armin,

Please see this thread:

http://lists.openembedded.org/pipermail/openembedded-core/2015-July/108217.html



Thanks for the info.

Please drop this patch.

- armin


// Robert

On 08/17/2015 10:50 AM, Armin Kuster wrote:

From: Armin Kuster akus...@mvista.com

This adds Github mirror variable.

Signed-off-by: Armin Kuster akus...@mvista.com
---
  meta/conf/bitbake.conf | 1 +
  1 file changed, 1 insertion(+)

diff --git a/meta/conf/bitbake.conf b/meta/conf/bitbake.conf
index 21f1698..56e7ca7 100644
--- a/meta/conf/bitbake.conf
+++ b/meta/conf/bitbake.conf
@@ -571,6 +571,7 @@ DEBIAN_MIRROR = ftp://ftp.debian.org/debian/pool;
  GENTOO_MIRROR = http://distfiles.gentoo.org/distfiles;
  GNOME_GIT = git://git.gnome.org
  GNOME_MIRROR = http://ftp.gnome.org/pub/GNOME/sources;
+GITHUB_MIRROR = git://github.com
  GNU_MIRROR = http://ftp.gnu.org/gnu;
  GPE_MIRROR = http://gpe.linuxtogo.org/download/source;
  KERNELORG_MIRROR = http://kernel.org/pub;


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


[OE-core] [PATCH 1/2] image: Support for qcow2

2015-08-17 Thread Christian Ziethén
ping

On 2015-07-23 16:32, Christian Ziethén wrote:
 Add support for qcow2 image format. Implemented in the same way as
 the previously existing vmdk and vdi solutions.
 
 Signed-off-by: Christian Ziethén christian.ziet...@linaro.org
 ---
  meta/classes/boot-directdisk.bbclass |  2 +-
  meta/classes/image-vm.bbclass| 12 ++--
  meta/classes/image.bbclass   |  2 +-
  meta/classes/image_types.bbclass |  5 +++--
  meta/classes/sanity.bbclass  |  4 
  5 files changed, 19 insertions(+), 6 deletions(-)
 
 diff --git a/meta/classes/boot-directdisk.bbclass 
 b/meta/classes/boot-directdisk.bbclass
 index c576523..d256fff 100644
 --- a/meta/classes/boot-directdisk.bbclass
 +++ b/meta/classes/boot-directdisk.bbclass
 @@ -63,7 +63,7 @@ DISK_SIGNATURE ?= ${DISK_SIGNATURE_GENERATED}
  SYSLINUX_ROOT ?= root=/dev/sda2
  SYSLINUX_TIMEOUT ?= 10
  
 -IS_VM = '${@bb.utils.contains_any(IMAGE_FSTYPES, [vmdk ,vdi], true, 
 false, d)}'
 +IS_VM = '${@bb.utils.contains_any(IMAGE_FSTYPES, [vmdk, vdi, qcow2], 
 true, false, d)}'
  
  boot_direct_populate() {
   dest=$1
 diff --git a/meta/classes/image-vm.bbclass b/meta/classes/image-vm.bbclass
 index fdfd14f..28519c8 100644
 --- a/meta/classes/image-vm.bbclass
 +++ b/meta/classes/image-vm.bbclass
 @@ -14,7 +14,8 @@ inherit boot-directdisk
  
  IMAGE_TYPEDEP_vmdk = ext3
  IMAGE_TYPEDEP_vdi = ext3
 -IMAGE_TYPES_MASKED += vmdk vdi
 +IMAGE_TYPEDEP_qcow2 = ext3
 +IMAGE_TYPES_MASKED += vmdk vdi qcow2
  
  create_vmdk_image () {
  qemu-img convert -O vmdk ${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.hdddirect 
 ${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.vmdk
 @@ -26,11 +27,18 @@ create_vdi_image () {
  ln -sf ${IMAGE_NAME}.vdi ${DEPLOY_DIR_IMAGE}/${IMAGE_LINK_NAME}.vdi
  }
  
 +create_qcow2_image () {
 +qemu-img convert -O qcow2 ${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.hdddirect 
 ${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.qcow2
 +ln -sf ${IMAGE_NAME}.qcow2 ${DEPLOY_DIR_IMAGE}/${IMAGE_LINK_NAME}.qcow2
 +}
 +
  python do_vmimg() {
  if 'vmdk' in d.getVar('IMAGE_FSTYPES', True):
  bb.build.exec_func('create_vmdk_image', d)
  if 'vdi' in d.getVar('IMAGE_FSTYPES', True):
 -bb.build.exec_func('create_vdi_image', d)
 +bb.build.exec_func('create_vdi_image', d)
 +if 'qcow2' in d.getVar('IMAGE_FSTYPES', True):
 +bb.build.exec_func('create_qcow2_image', d)
  }
  
  addtask vmimg after do_bootdirectdisk before do_build
 diff --git a/meta/classes/image.bbclass b/meta/classes/image.bbclass
 index e2995e2..ff2ed0d 100644
 --- a/meta/classes/image.bbclass
 +++ b/meta/classes/image.bbclass
 @@ -132,7 +132,7 @@ def build_live(d):
  IMAGE_TYPE_live = ${@build_live(d)}
  inherit ${IMAGE_TYPE_live}
  
 -IMAGE_TYPE_vm = '${@bb.utils.contains_any(IMAGE_FSTYPES, [vmdk, vdi], 
 image-vm, , d)}'
 +IMAGE_TYPE_vm = '${@bb.utils.contains_any(IMAGE_FSTYPES, [vmdk, vdi, 
 qcow2], image-vm, , d)}'
  inherit ${IMAGE_TYPE_vm}
  
  python () {
 diff --git a/meta/classes/image_types.bbclass 
 b/meta/classes/image_types.bbclass
 index 588a474..cc789fc 100644
 --- a/meta/classes/image_types.bbclass
 +++ b/meta/classes/image_types.bbclass
 @@ -13,7 +13,7 @@ def imagetypes_getdepends(d):
  deps = []
  ctypes = d.getVar('COMPRESSIONTYPES', True).split()
  for type in (d.getVar('IMAGE_FSTYPES', True) or ).split():
 -if type in [vmdk, vdi, live, iso, hddimg]:
 +if type in [vmdk, vdi, qcow2, live, iso, hddimg]:
  type = ext3
  basetype = type
  for ctype in ctypes:
 @@ -187,6 +187,7 @@ IMAGE_TYPES =  \
  cpio cpio.gz cpio.xz cpio.lzma cpio.lz4 \
  vmdk \
  vdi \
 +qcow2 \
  elf \
  
  
 @@ -213,5 +214,5 @@ DEPLOYABLE_IMAGE_TYPES ?= hddimg iso
  IMAGE_EXTENSION_live = hddimg iso
  
  # The IMAGE_TYPES_MASKED variable will be used to mask out from the 
 IMAGE_FSTYPES,
 -# images that will not be built at do_rootfs time: vmdk, vdi, hddimg, iso, 
 etc.
 +# images that will not be built at do_rootfs time: vmdk, vdi, qcow2, hddimg, 
 iso, etc.
  IMAGE_TYPES_MASKED ?= 
 diff --git a/meta/classes/sanity.bbclass b/meta/classes/sanity.bbclass
 index 2855941..6ad620b 100644
 --- a/meta/classes/sanity.bbclass
 +++ b/meta/classes/sanity.bbclass
 @@ -835,6 +835,10 @@ def check_sanity_everybuild(status, d):
  if 'vdi' in d.getVar('IMAGE_FSTYPES', True) and 'live' in 
 d.getVar('IMAGE_FSTYPES', True):
  status.addresult(Error, IMAGE_FSTYPES vdi and live can't be built 
 together\n)
  
 +# Check qcow2 and live can't be built together.
 +if 'qcow2' in d.getVar('IMAGE_FSTYPES', True) and 'live' in 
 d.getVar('IMAGE_FSTYPES', True):
 +status.addresult(Error, IMAGE_FSTYPES qcow2 and live can't be built 
 together\n)
 +
  # Check /bin/sh links to dash or bash
  real_sh = os.path.realpath('/bin/sh')
  if not real_sh.endswith('/dash') and not real_sh.endswith('/bash'):
 -- 
 2.1.4
 
-- 
___
Openembedded-core mailing list

[OE-core] [PATCH 2/2] boot-directdisk: Make kernel image inclusion conditional.

2015-08-17 Thread Christian Ziethén
ping

On 2015-07-23 16:32, Christian Ziethén wrote:
 When building for qcow2 and a dummy kernel, avoid installing
 a non existing bzImage.
 
 Signed-off-by: Christian Ziethén christian.ziet...@linaro.org
 ---
  meta/classes/boot-directdisk.bbclass | 4 +++-
  1 file changed, 3 insertions(+), 1 deletion(-)
 
 diff --git a/meta/classes/boot-directdisk.bbclass 
 b/meta/classes/boot-directdisk.bbclass
 index d256fff..600e21a 100644
 --- a/meta/classes/boot-directdisk.bbclass
 +++ b/meta/classes/boot-directdisk.bbclass
 @@ -70,7 +70,9 @@ boot_direct_populate() {
   install -d $dest
  
   # Install bzImage, initrd, and rootfs.img in DEST for all loaders to 
 use.
 - install -m 0644 ${DEPLOY_DIR_IMAGE}/bzImage $dest/vmlinuz
 + if [ -e ${DEPLOY_DIR_IMAGE}/bzImage ]; then
 + install -m 0644 ${DEPLOY_DIR_IMAGE}/bzImage $dest/vmlinuz
 + fi
  
   # initrd is made of concatenation of multiple filesystem images
   if [ -n ${INITRD} ]; then
 -- 
 2.1.4
 
-- 
___
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core


Re: [OE-core] [PATCH] uclibc: Upgrade to tip of master

2015-08-17 Thread Khem Raj

 On Aug 16, 2015, at 9:28 PM, Khem Raj raj.k...@gmail.com wrote:
 
 Drop upstreamed patches convert the rest to git am'able patches
 

This patch has couple of issues, that I found

not-using gold linker failed to link
libuargp needed to be forward ported to accomodate builsys changes to pass 
module specific CFLAGS
I have sent out a v2 which fixes these issues and builds are ok.

 Signed-off-by: Khem Raj raj.k...@gmail.com
 ---
 meta/recipes-core/uclibc/uclibc-git.inc|  38 +--
 .../0001-Add-eventfd_read-and-eventfd_write.patch  | 120 
 ...IPTOS_CLASS_-macros-according-to-RFC-2474.patch |  75 -
 .../0001-Disable-lrount_tes-function.patch |  37 +++
 ...nt.c-wtent.c-move-functions-from-utxent.c.patch | 319 -
 ...1-atexit_old-Do-not-add-it-to-shared-libc.patch |  44 ---
 ...-Move-aeabi_read_tp-to-uclibc_nonshared.a.patch |  28 --
 ...rk-Hide-pthread_atfork-in-shared-versions.patch |  74 -
 .../uclibc-git/0001-timex-Sync-with-glibc.patch|  33 ---
 ...Add-implementation-for-copysignl-for-ppc.patch} |  33 ++-
 .../uclibc-git/0002-wire-setns-syscall.patch   |  68 -
 ...rt.patch = 0003-Add-argp-implementation.patch} | 311 +++-
 ...dded-headers-file-needed-by-argp-sources.patch} |  27 +-
 ...t-localised-optimizations-this-helps-to-h.patch |  29 ++
 .../0006-Always-use-O2-for-compiling-fork.c.patch  |  32 +++
 ...ldso-limited-support-for-ORIGIN-in-rpath.patch} |  12 +-
 ...rk-Hide-pthread_atfork-in-shared-versions.patch |  36 +++
 ...rt-Use-nodefaultlibs-instead-of-nostdlib.patch} |  29 +-
 .../uclibc-git/compile-arm-fork-with-O2.patch  |  21 --
 .../ldso-mark-_dl_exit-as-noreturn.patch   |  48 
 .../uclibc-git/remove_attribute_optimize_Os.patch  |  19 --
 .../uclibc-git/uclibc_enable_log2_test.patch   |  35 ---
 meta/recipes-core/uclibc/uclibc.inc|   2 +-
 23 files changed, 381 insertions(+), 1089 deletions(-)
 delete mode 100644 
 meta/recipes-core/uclibc/uclibc-git/0001-Add-eventfd_read-and-eventfd_write.patch
 delete mode 100644 
 meta/recipes-core/uclibc/uclibc-git/0001-Define-IPTOS_CLASS_-macros-according-to-RFC-2474.patch
 create mode 100644 
 meta/recipes-core/uclibc/uclibc-git/0001-Disable-lrount_tes-function.patch
 delete mode 100644 
 meta/recipes-core/uclibc/uclibc-git/0001-Revert-utent.c-wtent.c-move-functions-from-utxent.c.patch
 delete mode 100644 
 meta/recipes-core/uclibc/uclibc-git/0001-atexit_old-Do-not-add-it-to-shared-libc.patch
 delete mode 100644 
 meta/recipes-core/uclibc/uclibc-git/0001-nptl-arm-Move-aeabi_read_tp-to-uclibc_nonshared.a.patch
 delete mode 100644 
 meta/recipes-core/uclibc/uclibc-git/0001-nptl-atfork-Hide-pthread_atfork-in-shared-versions.patch
 delete mode 100644 
 meta/recipes-core/uclibc/uclibc-git/0001-timex-Sync-with-glibc.patch
 rename meta/recipes-core/uclibc/uclibc-git/{powerpc_copysignl.patch = 
 0002-Add-implementation-for-copysignl-for-ppc.patch} (73%)
 delete mode 100644 
 meta/recipes-core/uclibc/uclibc-git/0002-wire-setns-syscall.patch
 rename meta/recipes-core/uclibc/uclibc-git/{argp-support.patch = 
 0003-Add-argp-implementation.patch} (96%)
 rename meta/recipes-core/uclibc/uclibc-git/{argp-headers.patch = 
 0004-Added-headers-file-needed-by-argp-sources.patch} (97%)
 create mode 100644 
 meta/recipes-core/uclibc/uclibc-git/0005-Dont-support-localised-optimizations-this-helps-to-h.patch
 create mode 100644 
 meta/recipes-core/uclibc/uclibc-git/0006-Always-use-O2-for-compiling-fork.c.patch
 rename 
 meta/recipes-core/uclibc/uclibc-git/{0001-ldso-limited-support-for-ORIGIN-in-rpath.patch
  = 0007-ldso-limited-support-for-ORIGIN-in-rpath.patch} (96%)
 create mode 100644 
 meta/recipes-core/uclibc/uclibc-git/0008-nptl-atfork-Hide-pthread_atfork-in-shared-versions.patch
 rename 
 meta/recipes-core/uclibc/uclibc-git/{0001-librt-Use-nodefaultlibs-instead-of-nostdlib.patch
  = 0009-librt-Use-nodefaultlibs-instead-of-nostdlib.patch} (50%)
 delete mode 100644 
 meta/recipes-core/uclibc/uclibc-git/compile-arm-fork-with-O2.patch
 delete mode 100644 
 meta/recipes-core/uclibc/uclibc-git/ldso-mark-_dl_exit-as-noreturn.patch
 delete mode 100644 
 meta/recipes-core/uclibc/uclibc-git/remove_attribute_optimize_Os.patch
 delete mode 100644 
 meta/recipes-core/uclibc/uclibc-git/uclibc_enable_log2_test.patch
 
 diff --git a/meta/recipes-core/uclibc/uclibc-git.inc 
 b/meta/recipes-core/uclibc/uclibc-git.inc
 index 3c48940..8db3b9e 100644
 --- a/meta/recipes-core/uclibc/uclibc-git.inc
 +++ b/meta/recipes-core/uclibc/uclibc-git.inc
 @@ -1,30 +1,22 @@
 -SRCREV = 48a0006012679ff0eda6f256da958d73a924fb57
 +SRCREV = ca1c74d67dd115d059a875150e10b8560a9c35a8
 
 PV = 0.9.33+git${SRCPV}
 
 FILESEXTRAPATHS =. ${FILE_DIRNAME}/uclibc-git:
 
 SRC_URI = git://uclibc.org/uClibc.git;branch=master \
 - file://uClibc.machine \
 - file://uClibc.distro \
 - file://obstack.cfg \
 - file://locale.cfg \
 - file://uclibc_enable_log2_test.patch \
 - 

[OE-core] [PATCH] gdk-pixbuf: Security Advisory - gdk-pixbuf - CVE-2015-4491

2015-08-17 Thread Li Zhou
pixops: Be more careful about integer overflow

Integer overflow in the make_filter_table function in pixops/pixops.c
in gdk-pixbuf before 2.31.5, as used in Mozilla Firefox before 40.0 and
Firefox ESR 38.x before 38.2 on Linux, Google Chrome on Linux, and other
products, allows remote attackers to execute arbitrary code or cause a
denial of service (heap-based buffer overflow and application crash) via
crafted bitmap dimensions that are mishandled during scaling.

Signed-off-by: Li Zhou li.z...@windriver.com
---
 ...ps-Be-more-careful-about-integer-overflow.patch |   89 
 meta/recipes-gnome/gdk-pixbuf/gdk-pixbuf_2.30.8.bb |1 +
 2 files changed, 90 insertions(+)
 create mode 100644 
meta/recipes-gnome/gdk-pixbuf/gdk-pixbuf/0001-pixops-Be-more-careful-about-integer-overflow.patch

diff --git 
a/meta/recipes-gnome/gdk-pixbuf/gdk-pixbuf/0001-pixops-Be-more-careful-about-integer-overflow.patch
 
b/meta/recipes-gnome/gdk-pixbuf/gdk-pixbuf/0001-pixops-Be-more-careful-about-integer-overflow.patch
new file mode 100644
index 000..fe7c1d5
--- /dev/null
+++ 
b/meta/recipes-gnome/gdk-pixbuf/gdk-pixbuf/0001-pixops-Be-more-careful-about-integer-overflow.patch
@@ -0,0 +1,89 @@
+From ffec86ed5010c5a2be14f47b33bcf4ed3169a199 Mon Sep 17 00:00:00 2001
+From: Matthias Clasen mcla...@redhat.com
+Date: Mon, 13 Jul 2015 00:33:40 -0400
+Subject: [PATCH] pixops: Be more careful about integer overflow
+
+Our loader code is supposed to handle out-of-memory and overflow
+situations gracefully, reporting errors instead of aborting. But
+if you load an image at a specific size, we also execute our
+scaling code, which was not careful enough about overflow in some
+places.
+
+This commit makes the scaling code silently return if it fails to
+allocate filter tables. This is the best we can do, since
+gdk_pixbuf_scale() is not taking a GError.
+
+https://bugzilla.gnome.org/show_bug.cgi?id=752297
+
+Upstream-Status: backport
+
+Signed-off-by: Li Zhou li.z...@windriver.com
+---
+ gdk-pixbuf/pixops/pixops.c |   22 +-
+ 1 file changed, 17 insertions(+), 5 deletions(-)
+
+diff --git a/gdk-pixbuf/pixops/pixops.c b/gdk-pixbuf/pixops/pixops.c
+index 29a1c14..ce51745 100644
+--- a/gdk-pixbuf/pixops/pixops.c
 b/gdk-pixbuf/pixops/pixops.c
+@@ -1272,7 +1272,16 @@ make_filter_table (PixopsFilter *filter)
+   int i_offset, j_offset;
+   int n_x = filter-x.n;
+   int n_y = filter-y.n;
+-  int *weights = g_new (int, SUBSAMPLE * SUBSAMPLE * n_x * n_y);
++  gsize n_weights;
++  int *weights;
++
++  n_weights = SUBSAMPLE * SUBSAMPLE * n_x * n_y;
++  if (n_weights / (SUBSAMPLE * SUBSAMPLE * n_x) != n_y)
++return NULL; /* overflow, bail */
++
++  weights = g_try_new (int, n_weights);
++  if (!weights)
++return NULL; /* overflow, bail */
+ 
+   for (i_offset=0; i_offset  SUBSAMPLE; i_offset++)
+ for (j_offset=0; j_offset  SUBSAMPLE; j_offset++)
+@@ -1347,8 +1356,11 @@ pixops_process (guchar *dest_buf,
+   if (x_step == 0 || y_step == 0)
+ return; /* overflow, bail out */
+ 
+-  line_bufs = g_new (guchar *, filter-y.n);
+   filter_weights = make_filter_table (filter);
++  if (!filter_weights)
++return; /* overflow, bail out */
++
++  line_bufs = g_new (guchar *, filter-y.n);
+ 
+   check_shift = check_size ? get_check_shift (check_size) : 0;
+ 
+@@ -1468,7 +1480,7 @@ tile_make_weights (PixopsFilterDimension *dim,
+  double scale)
+ {
+   int n = ceil (1 / scale + 1);
+-  double *pixel_weights = g_new (double, SUBSAMPLE * n);
++  double *pixel_weights = g_malloc_n (sizeof (double) * SUBSAMPLE, n);
+   int offset;
+   int i;
+ 
+@@ -1526,7 +1538,7 @@ bilinear_magnify_make_weights (PixopsFilterDimension 
*dim,
+ }
+ 
+   dim-n = n;
+-  dim-weights = g_new (double, SUBSAMPLE * n);
++  dim-weights = g_malloc_n (sizeof (double) * SUBSAMPLE, n);
+ 
+   pixel_weights = dim-weights;
+ 
+@@ -1617,7 +1629,7 @@ bilinear_box_make_weights (PixopsFilterDimension *dim,
+  double scale)
+ {
+   int n = ceil (1/scale + 3.0);
+-  double *pixel_weights = g_new (double, SUBSAMPLE * n);
++  double *pixel_weights = g_malloc_n (sizeof (double) * SUBSAMPLE, n);
+   double w;
+   int offset, i;
+ 
+-- 
+1.7.9.5
+
diff --git a/meta/recipes-gnome/gdk-pixbuf/gdk-pixbuf_2.30.8.bb 
b/meta/recipes-gnome/gdk-pixbuf/gdk-pixbuf_2.30.8.bb
index a63d454..07c2dce 100644
--- a/meta/recipes-gnome/gdk-pixbuf/gdk-pixbuf_2.30.8.bb
+++ b/meta/recipes-gnome/gdk-pixbuf/gdk-pixbuf_2.30.8.bb
@@ -18,6 +18,7 @@ SRC_URI = 
${GNOME_MIRROR}/${BPN}/${MAJ_VER}/${BPN}-${PV}.tar.xz \
file://extending-libinstall-dependencies.patch \
file://run-ptest \
file://fatal-loader.patch \
+   file://0001-pixops-Be-more-careful-about-integer-overflow.patch \

 
 SRC_URI[md5sum] = 4fed0d54432f1b69fc6e66e608bd5542
-- 
1.7.9.5

-- 
___
Openembedded-core mailing list

Re: [OE-core] [PATCH v2 1/2] insane.bbclass: Check for invalid characters (non UTF8) on recipe metadata

2015-08-17 Thread Christopher Larson
On Mon, Aug 17, 2015 at 12:10 AM, 
leonardo.sandoval.gonza...@linux.intel.com wrote:

 From: Leonardo Sandoval leonardo.sandoval.gonza...@linux.intel.com

 Check if invalid characters are present on recipe's metadata. Fields
 taken into account are: 'DESCRIPTION', 'SUMMARY', 'LICENSE' and 'SECTION'.

 Signed-off-by: Leonardo Sandoval 
 leonardo.sandoval.gonza...@linux.intel.com


This commit message doesn't define what invalid is.
-- 
Christopher Larson
clarson at kergoth dot com
Founder - BitBake, OpenEmbedded, OpenZaurus
Maintainer - Tslib
Senior Software Engineer, Mentor Graphics
-- 
___
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core


[OE-core] [PATCH] openssh: Upgrade 6.9p1 - 7.0p1

2015-08-17 Thread rongqing.li
From: Roy Li rongqing...@windriver.com

7.0p1 includes the fix for CVE-2015-5600, and release note is in:
http://www.openssh.com/txt/release-7.0

Signed-off-by: Roy Li rongqing...@windriver.com
---
 .../openssh/{openssh_6.9p1.bb = openssh_7.0p1.bb}| 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
 rename meta/recipes-connectivity/openssh/{openssh_6.9p1.bb = 
openssh_7.0p1.bb} (97%)

diff --git a/meta/recipes-connectivity/openssh/openssh_6.9p1.bb 
b/meta/recipes-connectivity/openssh/openssh_7.0p1.bb
similarity index 97%
rename from meta/recipes-connectivity/openssh/openssh_6.9p1.bb
rename to meta/recipes-connectivity/openssh/openssh_7.0p1.bb
index 3529c86..105875a 100644
--- a/meta/recipes-connectivity/openssh/openssh_6.9p1.bb
+++ b/meta/recipes-connectivity/openssh/openssh_7.0p1.bb
@@ -24,8 +24,8 @@ SRC_URI = 
ftp://ftp.openbsd.org/pub/OpenBSD/OpenSSH/portable/openssh-${PV}.tar.
 
 PAM_SRC_URI = file://sshd
 
-SRC_URI[md5sum] = 0b161c44fc31fbc6b76a6f8ae639f16f
-SRC_URI[sha256sum] = 
6e074df538f357d440be6cf93dc581a21f22d39e236f217fcd8eacbb6c896cfe
+SRC_URI[md5sum] = 831883f251ac34f0ab9c812acc24ee69
+SRC_URI[sha256sum] = 
fd5932493a19f4c81153d812ee4e042b49bbd3b759ab3d9344abecc2bc1485e5
 
 inherit useradd update-rc.d update-alternatives systemd
 
-- 
1.9.1

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


Re: [OE-core] [PATCH 2/4 V2] systemd: Upgrade 219 - 224

2015-08-17 Thread Burton, Ross
On 17 August 2015 at 06:03, Khem Raj raj.k...@gmail.com wrote:

 -LICENSE = GPLv2  LGPLv2.1  MIT
 +LICENSE = GPLv2  LGPLv2.1
  LIC_FILES_CHKSUM =
 file://LICENSE.GPL2;md5=751419260aa954499f7abaabaa882bbe \
 -
 file://LICENSE.LGPL2.1;md5=4fbd65380cdd255951079008b364516c \
 -
 file://LICENSE.MIT;md5=544799d0b492f119fa04641d1b8868ed
 +
 file://LICENSE.LGPL2.1;md5=4fbd65380cdd255951079008b364516c


Why?


 -inherit gtk-doc useradd pkgconfig autotools perlnative update-rc.d
 update-alternatives qemu systemd ptest gettext
 +inherit useradd pkgconfig autotools perlnative update-rc.d
 update-alternatives qemu systemd ptest gettext


Why?

@@ -108,8 +103,6 @@ EXTRA_OECONF =  --with-rootprefix=${rootprefix} \

   --with-rootlibdir=${rootlibdir} \
   --with-roothomedir=${ROOT_HOME} \
   --disable-coredump \
 - --disable-introspection \
 - --disable-kdbus \
   --enable-split-usr \
   --without-python \
   --with-sysvrcnd-path=${sysconfdir} \
 @@ -210,7 +203,7 @@ python populate_packages_prepend (){
  PACKAGES_DYNAMIC += ^lib(udev|systemd).*

  PACKAGES =+ ${PN}-gui ${PN}-vconsole-setup ${PN}-initramfs ${PN}-analyze
 ${PN}-kernel-install \
 - ${PN}-rpm-macros ${PN}-binfmt ${PN}-pam ${PN}-zsh libgudev
 + ${PN}-rpm-macros ${PN}-binfmt ${PN}-pam ${PN}-zsh
 ${PN}-xorg-xinitrc


Why?


  SYSTEMD_PACKAGES = ${PN}-binfmt
  SYSTEMD_SERVICE_${PN}-binfmt = systemd-binfmt.service
 @@ -224,8 +217,6 @@ FILES_${PN}-analyze = ${bindir}/systemd-analyze
  FILES_${PN}-initramfs = /init
  RDEPENDS_${PN}-initramfs = ${PN}

 -FILES_libgudev = ${libdir}/libgudev*${SOLIBS}
 -


Why?

Okay, I know that kdbus is now enabled by default and gudev was removed and
is now part of GNOME, but that should be explicit in the commit message and
a rationale for moving from the stable series to latest release made.

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


Re: [OE-core] [PATCH 15/22] libwnck3: add a recipe from meta-gnome

2015-08-17 Thread Alexander Kanavin

On 08/14/2015 02:04 PM, Andreas Müller wrote:


+PR = r1

^ Please skip


Thanks, I also dropped unnecessary PRs from other recipes involved in 
the patchset.



Alex

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


Re: [OE-core] [PATCH 15/22] libwnck3: add a recipe from meta-gnome

2015-08-17 Thread Andreas Müller
On Mon, Aug 17, 2015 at 3:12 PM, Paul Eggleton
paul.eggle...@linux.intel.com wrote:
 Hi Alex,

 On Monday 17 August 2015 16:10:05 Alexander Kanavin wrote:
 On 08/14/2015 02:04 PM, Andreas Müller wrote:
  +PR = r1
 
  ^ Please skip

 Thanks, I also dropped unnecessary PRs from other recipes involved in
 the patchset.

 Not sure if it's applicable here, but if any of these PR values were present
 in the original recipes and we're not upgrading as part of the move (i.e. PV
 is not changing) we need to keep the PR value, otherwise people currently
 using them will see PR go backwards.

 Cheers,
 Paul

 --

Don't know the others - for libwnck3 this patch updates version - so PR can go.

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


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

2015-08-17 Thread Bruce Ashfield

On 15-08-17 05:14 AM, He Zhe wrote:

Ping.


Everyone still has this on their list. I'm just back from vacation now,
and will put a review in my TODO list.

But for now .. patience is still requested.

Cheers,

Bruce



On 08/10/2015 08:46 PM, zhe...@windriver.com wrote:

From: He Zhe zhe...@windriver.com

  - 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 it did.
  - v2: Update with the latest oe-core
  - v3: Add KERNEL_IMAGETYPES, leave KERNEL_IMAGETYPE as is
  - v4: Turn package name to lower case to meet opkg's requrement
Modify if test in kernel-fitimage.bbclass and kernel-uimage.bbclass


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

  meta/classes/kernel-fitimage.bbclass|  21 +++---
  meta/classes/kernel-grub.bbclass|  46 +++
  meta/classes/kernel-uimage.bbclass  |  22 +++---
  meta/classes/kernel.bbclass | 130 +++-
  meta/conf/documentation.conf|   1 +
  meta/recipes-kernel/linux/linux-dtb.inc |  81 
  6 files changed, 199 insertions(+), 102 deletions(-)





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


Re: [OE-core] [PATCH 21/22] midori: remove the recipe and replace references to midori with epiphany

2015-08-17 Thread Alexander Kanavin

On 08/15/2015 07:59 AM, Randy MacLeod wrote:


-# midori depends on webkit-gtk which could not build for mips64
-MIDORI = midori
-MIDORI_mips64 = 
-MIDORI_mips64n32 = 
+# epiphany depends on webkitgtk which could not build for mips64
+EPIPHANY = epiphany
+EPIPHANY_mips64 = 
+EPIPHANY_mips64n32 = 


Mips64 support using the newer webkitgtk may be better.
Wenzong please check on that once this code is in master-next
and reply here.


Latest Webkit (2.8.5) actually does build for MIPS64 (where 2.8.4 
failed), but I couldn't find a way to test the n32 variant using poky - 
any suggestions?


I'll drop the above lines for now.


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


Re: [OE-core] [PATCH 15/22] libwnck3: add a recipe from meta-gnome

2015-08-17 Thread Paul Eggleton
Hi Alex,

On Monday 17 August 2015 16:10:05 Alexander Kanavin wrote:
 On 08/14/2015 02:04 PM, Andreas Müller wrote:
  +PR = r1
  
  ^ Please skip
 
 Thanks, I also dropped unnecessary PRs from other recipes involved in
 the patchset.

Not sure if it's applicable here, but if any of these PR values were present 
in the original recipes and we're not upgrading as part of the move (i.e. PV 
is not changing) we need to keep the PR value, otherwise people currently 
using them will see PR go backwards.

Cheers,
Paul

-- 

Paul Eggleton
Intel Open Source Technology Centre
-- 
___
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core


Re: [OE-core] [PATCH 2/2] package_deb.bbclass: Handle exception when encoding non-ASCII characters

2015-08-17 Thread Leonardo Sandoval
Ross/Raj, thanks for your comments. I will send a v2 patches, this time 
with the correct checks (invalid characters are those non-UTF8) and 
patch titles.


On 08/13/2015 02:34 PM, Burton, Ross wrote:

On 13 August 2015 at 20:21, Khem Raj raj.k...@gmail.com wrote:


but check it still fine isnt it.



Of course, gracefully handling encoding failures is still sensible.

Ross


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


Re: [OE-core] [PATCH] canned-wks: added a qemux86* directdisk recipe for wic

2015-08-17 Thread Iorga, Cristian
Please ignore, there are some troubles with non-KVM accelerated qemux86* 
machines.
Better version in the work, the never-ending story of root mount points in KVM 
qemu/non-KVM qemu hit me.
/Cristian

-Original Message-
From: Iorga, Cristian 
Sent: Friday, August 14, 2015 6:54 PM
To: openembedded-core@lists.openembedded.org
Cc: Iorga, Cristian
Subject: [PATCH] canned-wks: added a qemux86* directdisk recipe for wic

qemu-directdisk.wks creates a raw disk image that a qemux86* machine can boot 
from.

Signed-off-by: Cristian Iorga cristian.io...@intel.com
---
 scripts/lib/image/canned-wks/qemux86-directdisk.wks | 10 ++
 1 file changed, 10 insertions(+)
 create mode 100644 scripts/lib/image/canned-wks/qemux86-directdisk.wks

diff --git a/scripts/lib/image/canned-wks/qemux86-directdisk.wks 
b/scripts/lib/image/canned-wks/qemux86-directdisk.wks
new file mode 100644
index 000..8fc38b5
--- /dev/null
+++ b/scripts/lib/image/canned-wks/qemux86-directdisk.wks
@@ -0,0 +1,10 @@
+# short-description: Create a qemu machine 'pcbios' direct disk image # 
+long-description: Creates a partitioned legacy BIOS disk image that the 
+user # can directly use to boot a qemu machine.
+
+
+part /boot --source bootimg-pcbios --ondisk sda --label boot --active 
+--align 1024 part / --source rootfs --ondisk sda --fstype=ext4 --label 
+platform --align 1024
+
+bootloader  --timeout=0  --append=vga=0 uvesafb.mode_option=640x480-32 
root=/dev/vda2 rw mem=256M ip=192.168.7.2::192.168.7.1:255.255.255.0 
oprofile.timer=1 rootfstype=ext4 
+
--
2.1.4

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


Re: [OE-core] [PATCH 15/22] libwnck3: add a recipe from meta-gnome

2015-08-17 Thread Alexander Kanavin

On 08/14/2015 05:12 PM, Khem Raj wrote:



send a patch to remove it from  meta-gnome as well.



I will send it when the above patchset shows up on oe-core master, to 
avoid confusion.



Alex

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


Re: [OE-core] [PATCH 1/3] glibc: print PN when bbwarn

2015-08-17 Thread Burton, Ross
On 17 July 2015 at 05:45, Khem Raj raj.k...@gmail.com wrote:

 it quashes the warning but doesnt fix underlying problem. this doesnt
 seem to be right thing to do in cross builds. We use cross-rpcgen to
 generate these files so this whole rpcgen run should be removed
 instead. Please test such a patch and correct it.


There's been a related report on the yocto@ list where it was noticed that
we're executing the host rpcgen during glibc builds, so consider this is a
ping. :)

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


Re: [OE-core] [PATCH 5/5] rpm: update to 5.4.15

2015-08-17 Thread Alexander Kanavin

On 08/16/2015 04:10 PM, Richard Purdie wrote:

Not sure what this was tested with but a simple bitbake
core-image-minimal breaks after this (and the db) change with licensing
failures.

The autobuilder exploded with failures like:

https://autobuilder.yoctoproject.org/main/builders/build-appliance/builds/430/steps/BuildImages_1/logs/stdio

which are due to the installed manifest file listing installed packages
being empty.


I tested by running 'bitbake world' (which completed fine), but I wasn't 
aware that 'world' doesn't include any images (why not?).


I'll investigate what is happening.

Alex

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


Re: [OE-core] [PATCH 5/5] rpm: update to 5.4.15

2015-08-17 Thread Richard Purdie
On Mon, 2015-08-17 at 16:03 +0300, Alexander Kanavin wrote:
 On 08/16/2015 04:10 PM, Richard Purdie wrote:
  Not sure what this was tested with but a simple bitbake
  core-image-minimal breaks after this (and the db) change with licensing
  failures.
 
  The autobuilder exploded with failures like:
 
  https://autobuilder.yoctoproject.org/main/builders/build-appliance/builds/430/steps/BuildImages_1/logs/stdio
 
  which are due to the installed manifest file listing installed packages
  being empty.
 
 I tested by running 'bitbake world' (which completed fine), but I wasn't 
 aware that 'world' doesn't include any images (why not?).

Rightly or wrongly we explicitly exclude images from world since in most
use cases the images take an age and are annoying in that context.

 I'll investigate what is happening.

Thanks,

Richard

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


[OE-core] [PATCH v2 1/2] insane.bbclass: Check for invalid characters (non UTF8) on recipe metadata

2015-08-17 Thread leonardo . sandoval . gonzalez
From: Leonardo Sandoval leonardo.sandoval.gonza...@linux.intel.com

Check if invalid characters are present on recipe's metadata. Fields
taken into account are: 'DESCRIPTION', 'SUMMARY', 'LICENSE' and 'SECTION'.

Signed-off-by: Leonardo Sandoval leonardo.sandoval.gonza...@linux.intel.com
---
 meta/classes/insane.bbclass | 24 +++-
 1 file changed, 23 insertions(+), 1 deletion(-)

diff --git a/meta/classes/insane.bbclass b/meta/classes/insane.bbclass
index 9c05c86..fc16540 100644
--- a/meta/classes/insane.bbclass
+++ b/meta/classes/insane.bbclass
@@ -11,6 +11,7 @@
 #  -Check if packages contains .debug directories or .so files
 #   where they should be in -dev or -dbg
 #  -Check if config.log contains traces to broken autoconf tests
+#  -Check invalid characters (non-utf8) on some package metadata
 #  -Ensure that binaries in base_[bindir|sbindir|libdir] do not link
 #   into exec_prefix
 #  -Check that scripts in base_[bindir|sbindir|libdir] do not reference
@@ -36,7 +37,7 @@ WARN_QA ?= ldflags useless-rpaths rpaths staticdev libdir 
xorg-driver-abi \
 ERROR_QA ?= dev-so debug-deps dev-deps debug-files arch pkgconfig la \
 perms dep-cmp pkgvarcheck perm-config perm-line perm-link \
 split-strip packages-list pkgv-undefined var-undefined \
-version-going-backwards expanded-d \
+version-going-backwards expanded-d invalid-chars \
 
 
 ALL_QA = ${WARN_QA} ${ERROR_QA}
@@ -947,6 +948,24 @@ def package_qa_check_expanded_d(path,name,d,elf,messages):
 sane = False
 return sane
 
+def package_qa_check_encoding(keys, encode, d):
+def check_encoding(key,enc):
+sane = True
+value = d.getVar(key, True)
+if value:
+try:
+s = unicode(value, enc)
+except UnicodeDecodeError as e:
+error_msg = %s has non %s characters % (key,enc)
+sane = False
+package_qa_handle_error(invalid-chars, error_msg, d)
+return sane
+
+for key in keys:
+sane = check_encoding(key, encode)
+if not sane:
+break
+
 # The PACKAGE FUNC to scan each package
 python do_package_qa () {
 import subprocess
@@ -956,6 +975,9 @@ python do_package_qa () {
 
 bb.build.exec_func(read_subpackage_metadata, d)
 
+# Check non UTF-8 characters on recipe's metadata
+package_qa_check_encoding(['DESCRIPTION', 'SUMMARY', 'LICENSE', 
'SECTION'], 'utf-8', d)
+
 logdir = d.getVar('T', True)
 pkg = d.getVar('PN', True)
 
-- 
1.8.4.5

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


[OE-core] [PATCH v2 0/2] Check invalid characters on some recipe metadata

2015-08-17 Thread leonardo . sandoval . gonzalez
From: Leonardo Sandoval leonardo.sandoval.gonza...@linux.intel.com

* insane.bbclass: QA check for invalid chars
* package_deb.bbclass: Opens the control file allowing UTF-8 chars
and handles a string decoding exception, reported on [1]

[1] https://bugzilla.yoctoproject.org/show_bug.cgi?id=6693

The following changes since commit a533776d6ff83b6e3e830137455b8382d002768b:

  perf: fix build breakage on kernels after 4.1 (2015-08-12 11:31:49 -0700)

are available in the git repository at:

  git://git.yoctoproject.org/poky-contrib 
lsandov1/package_deb-handle-non-ascii-6693-v2
  
http://git.yoctoproject.org/cgit.cgi/poky-contrib/log/?h=lsandov1/package_deb-handle-non-ascii-6693-v2

Leonardo Sandoval (2):
  insane.bbclass: Check invalid characters (non UTF8) on recipe metadata
  package_deb.bbclass: Allow UTF-8 characters on control files

 meta/classes/insane.bbclass  | 24 +++-
 meta/classes/package_deb.bbclass | 18 +++---
 2 files changed, 34 insertions(+), 8 deletions(-)

-- 
1.8.4.5

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


[OE-core] [PATCH v2 2/2] package_deb.bbclass: Allow UTF-8 characters on control files

2015-08-17 Thread leonardo . sandoval . gonzalez
From: Leonardo Sandoval leonardo.sandoval.gonza...@linux.intel.com

Allow UTF-8 characters on control files. Also handle an expection
in case of invalid characters (non UTF-8).

[YOCTO #6693]

Signed-off-by: Leonardo Sandoval leonardo.sandoval.gonza...@linux.intel.com
---
 meta/classes/package_deb.bbclass | 18 +++---
 1 file changed, 11 insertions(+), 7 deletions(-)

diff --git a/meta/classes/package_deb.bbclass b/meta/classes/package_deb.bbclass
index 9e1ed28..398ceee 100644
--- a/meta/classes/package_deb.bbclass
+++ b/meta/classes/package_deb.bbclass
@@ -96,9 +96,8 @@ python do_package_deb () {
 bb.utils.mkdirhier(controldir)
 os.chmod(controldir, 0755)
 try:
-ctrlfile = open(os.path.join(controldir, 'control'), 'w')
-# import codecs
-# ctrlfile = codecs.open(someFile, w, utf-8)
+import codecs
+ctrlfile = codecs.open(os.path.join(controldir, 'control'), 'w', 
'utf-8')
 except OSError:
 bb.utils.unlockfile(lf)
 raise bb.build.FuncFailed(unable to open control file for 
writing.)
@@ -149,7 +148,7 @@ python do_package_deb () {
 # Special behavior for description...
 if 'DESCRIPTION' in fs:
  summary = localdata.getVar('SUMMARY', True) or 
localdata.getVar('DESCRIPTION', True) or .
- ctrlfile.write('Description: %s\n' % unicode(summary))
+ ctrlfile.write('Description: %s\n' % 
unicode(summary,'utf-8'))
  description = localdata.getVar('DESCRIPTION', True) or .
  description = textwrap.dedent(description).strip()
  if '\\n' in description:
@@ -158,19 +157,24 @@ python do_package_deb () {
  # We don't limit the width when manually indent, 
but we do
  # need the textwrap.fill() to set the 
initial_indent and
  # subsequent_indent, so set a large width
- ctrlfile.write('%s\n' % unicode(textwrap.fill(t, 
width=10, initial_indent=' ', subsequent_indent=' ')))
+ ctrlfile.write('%s\n' % unicode(textwrap.fill(t, 
width=10, initial_indent=' ', subsequent_indent=' '),'utf-8'))
  else:
  # Auto indent
- ctrlfile.write('%s\n' % 
unicode(textwrap.fill(description.strip(), width=74, initial_indent=' ', 
subsequent_indent=' ')))
+ ctrlfile.write('%s\n' % 
unicode(textwrap.fill(description.strip(), width=74, initial_indent=' ', 
subsequent_indent=' '),'utf-8'))
 
 else:
- ctrlfile.write(unicode(c % tuple(pullData(fs, 
localdata
+ ctrlfile.write(unicode(c % tuple(pullData(fs, 
localdata)),'utf-8'))
 except KeyError:
 import sys
 (type, value, traceback) = sys.exc_info()
 bb.utils.unlockfile(lf)
 ctrlfile.close()
 raise bb.build.FuncFailed(Missing field for deb generation: %s % 
value)
+except UnicodeDecodeError:
+bb.utils.unlockfile(lf)
+ctrlfile.close()
+raise bb.build.FuncFailed(Non UTF-8 characters found in one of 
the fields)
+
 # more fields
 
 custom_fields_chunk = get_package_additional_metadata(deb, localdata)
-- 
1.8.4.5

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


Re: [OE-core] [PATCH 21/22] midori: remove the recipe and replace references to midori with epiphany

2015-08-17 Thread Alexander Kanavin

On 08/17/2015 06:48 PM, Khem Raj wrote:


Mips64 support using the newer webkitgtk may be better.
Wenzong please check on that once this code is in master-next
and reply here.


Latest Webkit (2.8.5) actually does build for MIPS64 (where 2.8.4 failed), but 
I couldn't find a way to test the n32 variant using poky - any suggestions?



may be you can use multilib on same mips64 configuration and build 
libn32-epiphany ?


Thanks, I'll also try to see if powerpc64 build can be tested the same 
way, because it was not, for the same reason (poky has a configuration 
for ppc, but not ppc64).



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


[OE-core] OE Changelog since 2015-08-09 until 2015-08-16

2015-08-17 Thread cliff . brake
Changelog since 2015-08-09 until 2015-08-16.  Projects included in this report:

bitbake: git://git.openembedded.org/bitbake
openembedded-core: git://git.openembedded.org/openembedded-core
meta-openembedded: git://git.openembedded.org/meta-openembedded
meta-angstrom: git://github.com/Angstrom-distribution/meta-angstrom.git
meta-arago: git://arago-project.org/git/meta-arago.git
meta-atmel: https://github.com/linux4sam/meta-atmel.git
meta-beagleboard: git://github.com/beagleboard/meta-beagleboard.git
meta-browser: git://github.com/OSSystems/meta-browser.git
meta-bug: git://github.com/buglabs/meta-bug.git
meta-chicken: git://github.com/OSSystems/meta-chicken
meta-efikamx: git://github.com/kraj/meta-efikamx.git
meta-ettus: http://github.com/koenkooi/meta-ettus.git
meta-fsl-arm: git://git.yoctoproject.org/meta-fsl-arm
meta-fsl-arm-extra: git://github.com/Freescale/meta-fsl-arm-extra.git
meta-fsl-ppc: git://git.yoctoproject.org/meta-fsl-ppc
meta-guacamayo: git://github.com/Guacamayo/meta-guacamayo.git
meta-gumstix: git://github.com/gumstix/meta-gumstix.git
meta-gumstix-community: 
https://github.com/schnitzeltony/meta-gumstix-community.git
meta-handheld: git://git.openembedded.org/meta-handheld
meta-igep: http://github.com/ebutera/meta-igep.git
meta-intel: git://git.yoctoproject.org/meta-intel
meta-ivi: git://git.yoctoproject.org/meta-ivi
meta-java: git://github.com/woglinde/meta-java
meta-jetson-tk1: https://github.com/cubicool/meta-jetson-tk1.git
meta-kde: git://gitorious.org/openembedded-core-layers/meta-kde.git
meta-micro: git://git.openembedded.org/meta-micro
meta-mono: git://git.yoctoproject.org/meta-mono.git
meta-netbookpro: git://github.com/tworaz/meta-netbookpro
meta-nodejs: https://github.com/imyller/meta-nodejs.git
meta-nslu2: git://github.com/kraj/meta-nslu2
meta-opie: git://git.openembedded.org/meta-opie
meta-qt3: git://git.yoctoproject.org/meta-qt3
meta-qt5: git://github.com/meta-qt5/meta-qt5.git
meta-slugos: git://github.com/kraj/meta-slugos
meta-systemd: git://git.yoctoproject.org/meta-systemd
meta-raspberrypi: git://github.com/djwillis/meta-raspberrypi.git
meta-smartphone: http://git.shr-project.org/repo/meta-smartphone.git
meta-ti: git://git.yoctoproject.org/meta-ti
meta-webos: git://github.com/openwebos/meta-webos.git
meta-xilinx: git://git.yoctoproject.org/meta-xilinx
meta-yocto: git://git.yoctoproject.org/meta-yocto
openembedded: git://git.openembedded.org/openembedded


Changelog for bitbake:

Ed Bartosh (11):
  toaster: fix test_get_json_call_returns_json test
  toaster: wrap long lines
  toaster: get rid of AllProjectsViewTestCase
  toaster: put all test cases into one class
  toaster: get rid of class attributes
  toaster: remove unused import
  toaster: add header and docstings
  toaster: don't catch json.load exceptions
  toaster: fix test_get_json_call_returns_json again
  toaster: fix pylint warning 'no space allowed'
  toaster: reduced amount of instance attributes


Changelog for openembedded-core:

Ajay M (1):
  bash: append srcdir to run-ptest script

Alexander Kanavin (16):
  gptfdisk: update to 1.0.0
  oprofile: reorder SRC_URI lines to fix upstream version check
  recipeutils.py: allow all characters in regexes used to parse version string
  bootchart2: update to 0.14.7
  cdrtools: update to 3.01a31
  bluez5: update to 5.33
  apt: update to 1.0.10.1
  autogen: update to 5.18.5
  stress: use BPN and BP in SRC_URI
  xf86-video-omapfb: switch SRC_URI to debian git repo
  distcc: update SRC_URI to not use Google Code
  fotowall: update SRC_URI to use github instead of qt-apps.org
  clutter-gst: update to 3.0.8
  upstream_tracking.inc: add no update reasons for base-passwd and chkconfig
  blktool: update to 4-7
  apmd: update to 3.2.2-15

Andre McCurdy (8):
  gettext_0.16.1: remove obsolete uclibc specific patch
  gettext_0.16.1: add -lrt and -lpthread to LDFLAGS for uclibc builds
  libiconv_1.11.1: fix LICENSE declaration, LGPL - LGPLv2.0
  libiconv_1.11.1: merge build and packaging fixes from libiconv_1.14
  uclibc: backport upstream fix for SH4
  bash_3.2.48: dont include target CFLAGS in host LDFLAGS
  kernel.bbclass: dont assume ${B}/include/generated exists
  uclibc.inc: remove unused UCLIBC_EXTRA_LDFLAGS

Andreas Müller (1):
  boost: add python3 support

Aníbal Limón (3):
  distrodata: Make self-contained.
  mc: Fix QA warning depends on util-linux
  qemu-native: Add debugging when qemu fails with qemu_cpu_kick_thread

Armin Kuster (3):
  nettle: clean up license information
  tzcode-native: update to 2015f
  tzdata: update to 2015f

Carlos Rafael Giani (1):
  gstreamer1.0-plugins-base: Enable pango packageconfig by default

Chen Qi (2):
  resolvconf: upgrade to 1.77
  cups: upgrade to 2.0.4

Cristian Iorga (1):
  qemu: upgrade to 2.4.0-rc4

Ed Bartosh (1):
  create-pull-request: cleanup bashisms

He Zhe (1):
  kernel: Correct mishandling of linux.bin for building uImage


Re: [OE-core] [PATCH 4/4] glibc: don't override TUNE_CCARGS for MIPS

2015-08-17 Thread Dmitry Eremin-Solenikov
2015-08-16 3:29 GMT+03:00 Khem Raj raj.k...@gmail.com:
 On Sat, Aug 15, 2015 at 4:15 PM, Dmitry Eremin-Solenikov
 dbarysh...@gmail.com wrote:
 2015-08-15 22:34 GMT+03:00 Khem Raj raj.k...@gmail.com:

 On Jul 1, 2015, at 7:02 AM, Dmitry Eremin-Solenikov dbarysh...@gmail.com 
 wrote:

 Overriding TUNE_CCARGS this way breaks MULTILIB setup for MIPS. This
 override disables multilib handling of tunes for TUNE_CCARGS, thus
 enforcing glibc's TUNE_CCARGS to the TUNE_CCARGS of main DEFAULTTUNE.

 Glibc perfectly build without this override for both simple and multilib
 cases.


 this patch has been applied however we should reopen it.
 This has to be fixed differently. its not a build time issue but a runtime 
 one. So find
 alternative way of passing these options to glibc build to accommodate your 
 changes.

 What is the issue that you  are facing with the current OE-Core?


 systemd remount segfaults in glibc. The problems will be more where it
 will use wrong syscall headers.

Hmm. N32 and N64 packages seem to work for me. O32 programs segfault
with illegal
instruction. I'll take a look.

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


Re: [OE-core] [PATCH 2/4 V2] systemd: Upgrade 219 - 224

2015-08-17 Thread Khem Raj

 On Aug 17, 2015, at 5:42 AM, Burton, Ross ross.bur...@intel.com wrote:
 
 
 On 17 August 2015 at 06:03, Khem Raj raj.k...@gmail.com 
 mailto:raj.k...@gmail.com wrote:
 -LICENSE = GPLv2  LGPLv2.1  MIT
 +LICENSE = GPLv2  LGPLv2.1
  LIC_FILES_CHKSUM = file://LICENSE.GPL2;md5=751419260aa954499f7abaabaa882bbe 
 \
 -
 file://LICENSE.LGPL2.1;md5=4fbd65380cdd255951079008b364516c \
 -file://LICENSE.MIT;md5=544799d0b492f119fa04641d1b8868ed
 +
 file://LICENSE.LGPL2.1;md5=4fbd65380cdd255951079008b364516c
 
 Why?

removed unused license see

commit 8f1e0c5f38cdf7e401ab4d2bb93ad816d08e7715
Author: Kay Sievers k...@vrfy.org
Date: Tue Apr 21 19:21:56 2015 +0200

delete unused LICENSE.MIT


 
 -inherit gtk-doc useradd pkgconfig autotools perlnative update-rc.d 
 update-alternatives qemu systemd ptest gettext
 +inherit useradd pkgconfig autotools perlnative update-rc.d 
 update-alternatives qemu systemd ptest gettext
 
 Why?

libudev API documentation has been converted from gtkdoc into man pages.

see

commit 2375607039517c88df51ef16ddbb624ec1c10654
Author: Kay Sievers k...@vrfy.org
Date: Wed Jun 3 00:09:23 2015 +0200

remove gudev and gtk-doc

The library moved to:
https://git.gnome.org/browse/libgudev/ https://git.gnome.org/browse/libgudev/



 
 @@ -108,8 +103,6 @@ EXTRA_OECONF =  --with-rootprefix=${rootprefix} \
   --with-rootlibdir=${rootlibdir} \
   --with-roothomedir=${ROOT_HOME} \
   --disable-coredump \
 - --disable-introspection \
 - --disable-kdbus \
   --enable-split-usr \
   --without-python \
   --with-sysvrcnd-path=${sysconfdir} \
 @@ -210,7 +203,7 @@ python populate_packages_prepend (){
  PACKAGES_DYNAMIC += ^lib(udev|systemd).*
 
  PACKAGES =+ ${PN}-gui ${PN}-vconsole-setup ${PN}-initramfs ${PN}-analyze 
 ${PN}-kernel-install \
 - ${PN}-rpm-macros ${PN}-binfmt ${PN}-pam ${PN}-zsh libgudev
 + ${PN}-rpm-macros ${PN}-binfmt ${PN}-pam ${PN}-zsh 
 ${PN}-xorg-xinitrc
 
 Why?

Its newly added see
commit 1401ec2d34bcde406ced531a72dc46ebaf332594
Author: Kay Sievers k...@vrfy.org
Date:   Fri Jan 9 21:23:48 2015 +0100

push xorg information to the systemd --user instance


 
  SYSTEMD_PACKAGES = ${PN}-binfmt
  SYSTEMD_SERVICE_${PN}-binfmt = systemd-binfmt.service
 @@ -224,8 +217,6 @@ FILES_${PN}-analyze = ${bindir}/systemd-analyze
  FILES_${PN}-initramfs = /init
  RDEPENDS_${PN}-initramfs = ${PN}
 
 -FILES_libgudev = ${libdir}/libgudev*${SOLIBS}
 -
 
 Why?
 
 Okay, I know that kdbus is now enabled by default and gudev was removed and 
 is now part of GNOME, but that should be explicit in the commit message and a 
 rationale for moving from the stable series to latest release made.

There are many reasons, for me its overlay support for systemd-nspawn, networkd 
has got many new features that is now usable w.r.t. IP forwarding, vxlan etc.
and it has many bug fixed in those 2000 odd commits since 219, no different 
then any other package upgrades we do in general it keep the upgrade workload 
lower as we roll the releases.
Any specific concerns ?

 
 Ross



signature.asc
Description: Message signed with OpenPGP using GPGMail
-- 
___
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core


Re: [OE-core] [PATCH 21/22] midori: remove the recipe and replace references to midori with epiphany

2015-08-17 Thread Randy MacLeod

On 2015-08-17 12:04 PM, Alexander Kanavin wrote:

On 08/17/2015 06:48 PM, Khem Raj wrote:


Mips64 support using the newer webkitgtk may be better.
Wenzong please check on that once this code is in master-next
and reply here.


Latest Webkit (2.8.5) actually does build for MIPS64 (where 2.8.4
failed), but I couldn't find a way to test the n32 variant using poky
- any suggestions?



may be you can use multilib on same mips64 configuration and build
libn32-epiphany ?


Thanks, I'll also try to see if powerpc64 build can be tested the same
way, because it was not, for the same reason (poky has a configuration
for ppc, but not ppc64).


It would be nice to add qemuppc64 but it's not a high priority.
Interested? :)
../Randy




Alex



--
# Randy MacLeod. SMTS, Linux, Wind River
Direct: 613.963.1350 | 350 Terry Fox Drive, Suite 200, Ottawa, ON, 
Canada, K2K 2W5

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


Re: [OE-core] [PATCH 0/2] insane.bbclass: fix package_qa_check_buildpaths

2015-08-17 Thread Robert Yang

ping.

// Robert

On 07/15/2015 05:16 PM, Robert Yang wrote:

The following changes since commit 6be698b7270f73f40d38713ecf13f12aec0ced61:

   dpkg: Fix for Fedora22 and new versions of tar (2015-07-13 13:46:45 +0100)

are available in the git repository at:

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

Robert Yang (2):
   insane.bbclass: fix package_qa_check_buildpaths
   insane.bbclass: make package_qa_clean_path return a relative path

  meta/classes/insane.bbclass |   14 ++
  1 file changed, 10 insertions(+), 4 deletions(-)


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


Re: [OE-core] [PATCH 3/4] nfs-utils: Upgrade 1.3.1 - 1.3.2

2015-08-17 Thread Richard Purdie
On Tue, 2015-08-11 at 22:13 +0300, Jussi Kukkonen wrote:
 Let --enable-tirpc be selected in configure by default: it is
 a requirement for ipv6 support. This should not grow a typical
 image size as libtirpc is a rpcbind dependency already.
 
 Signed-off-by: Jussi Kukkonen jussi.kukko...@intel.com
 ---
  .../nfs-utils/{nfs-utils_1.3.1.bb = nfs-utils_1.3.2.bb}   | 7 
 +++
  1 file changed, 3 insertions(+), 4 deletions(-)
  rename meta/recipes-connectivity/nfs-utils/{nfs-utils_1.3.1.bb = 
 nfs-utils_1.3.2.bb} (95%)

It appears this is the patch which has been causing boot issues in the
runtime sanity tests on the autobuilder, e.g.:

https://autobuilder.yoctoproject.org/main/builders/nightly-qa-logrotate/builds/434/steps/Running%20Sanity%20Tests/logs/stdio

Since backing this patch out, these failures stopped so there seems to
be some kind of relation...

Cheers,

Richard

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


[OE-core] [PATCH] valgrind: build ptests without optimizations

2015-08-17 Thread Dave Lerner
[ YOCTO #8063 ]

This commit changes the both CFLAGS and CXXFLAGS when building the
valgrind ptest binaries by appending -O0, forcing no optimizations
instead of the default -O2.  For qemux86-64, this change results in
FAIL/PASS ratio improvements from 149/394 to 58/485.

It is evident that the expected result files were generated from
regression tests binaries built without optimizations.

Signed-off-by: Dave Lerner dave.ler...@windriver.com
---
 meta/recipes-devtools/valgrind/valgrind_3.10.1.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/meta/recipes-devtools/valgrind/valgrind_3.10.1.bb 
b/meta/recipes-devtools/valgrind/valgrind_3.10.1.bb
index 97d923d..537d7c8 100644
--- a/meta/recipes-devtools/valgrind/valgrind_3.10.1.bb
+++ b/meta/recipes-devtools/valgrind/valgrind_3.10.1.bb
@@ -57,7 +57,7 @@ RRECOMMENDS_${PN} += ${TCLIBC}-dbg
 RDEPENDS_${PN}-ptest +=  sed perl glibc-utils perl-module-file-glob
 
 do_compile_ptest() {
-oe_runmake check
+oe_runmake check CFLAGS=${CFLAGS} -O0 CXXFLAGS=${CXXFLAGS} -O0
 }
 
 
-- 
1.9.1

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


Re: [OE-core] [PATCH 21/22] midori: remove the recipe and replace references to midori with epiphany

2015-08-17 Thread Khem Raj

 On Aug 17, 2015, at 5:56 AM, Alexander Kanavin 
 alexander.kana...@linux.intel.com wrote:
 
 On 08/15/2015 07:59 AM, Randy MacLeod wrote:
 
 -# midori depends on webkit-gtk which could not build for mips64
 -MIDORI = midori
 -MIDORI_mips64 = 
 -MIDORI_mips64n32 = 
 +# epiphany depends on webkitgtk which could not build for mips64
 +EPIPHANY = epiphany
 +EPIPHANY_mips64 = 
 +EPIPHANY_mips64n32 = 
 
 Mips64 support using the newer webkitgtk may be better.
 Wenzong please check on that once this code is in master-next
 and reply here.
 
 Latest Webkit (2.8.5) actually does build for MIPS64 (where 2.8.4 failed), 
 but I couldn't find a way to test the n32 variant using poky - any 
 suggestions?


may be you can use multilib on same mips64 configuration and build 
libn32-epiphany ?

 
 I'll drop the above lines for now.
 
 
 Alex
 --
 ___
 Openembedded-core mailing list
 Openembedded-core@lists.openembedded.org
 http://lists.openembedded.org/mailman/listinfo/openembedded-core



signature.asc
Description: Message signed with OpenPGP using GPGMail
-- 
___
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core


Re: [OE-core] shell script guidelines in oe-core? (was Re: [PATCH v4] create-pull-request: cleanup bashisms)

2015-08-17 Thread Mikko.Rapeli
On Sat, Aug 15, 2015 at 06:38:18PM -0700, Christopher Larson wrote:
 Update: checkbashisms and shellcheck both check for this now.

This is great! How about formulating that oe-core shell scripts should
pass shellcheck and checkbashisms checks without warnings?

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


[OE-core] [PATCH] testimage: Run commands in target and host when test fails

2015-08-17 Thread mariano . lopez
From: Mariano Lopez mariano.lo...@linux.intel.com

This patch modify three files altought two of them
are minimal modifications:

testimage.bbclass:
Create new vars for easy modification of the dump
directory and commands to be run on host and target
when a test fails
TESTIMAGE_DUMP_DIR: Directory to save the dumps
TESTIMAGE_DUMP_TRG: Commands to run on target
TESTIMAGE_DUMP_HST: Commands to run on host

targetcontrol.py:
Extract vars from the datastore for later use

oetest.py:
- Allow to use the vars defined in testimage class
- Now able to run commands in the host and dump the
  results
- Fix an issue with the condition where to run the
  dump commands (Before it run the commands every
  test after a failure, now it runs the commands only
  in tests that failed)
- Fix the output to stdout

[YOCTO #8118]

Signed-off-by: Mariano Lopez mariano.lo...@linux.intel.com
---
 meta/classes/testimage.bbclass |  9 +
 meta/lib/oeqa/oetest.py| 42 +++---
 meta/lib/oeqa/targetcontrol.py |  3 +++
 3 files changed, 39 insertions(+), 15 deletions(-)

diff --git a/meta/classes/testimage.bbclass b/meta/classes/testimage.bbclass
index 140babe..1580a4e 100644
--- a/meta/classes/testimage.bbclass
+++ b/meta/classes/testimage.bbclass
@@ -56,6 +56,15 @@ TESTIMAGEDEPENDS_qemuall = qemu-native:do_populate_sysroot 
qemu-helper-native:d
 TESTIMAGELOCK = ${TMPDIR}/testimage.lock
 TESTIMAGELOCK_qemuall = 
 
+TESTIMAGE_DUMP_DIR ?= /tmp/oe-saved-tests/
+
+python () {
+target_cmds = [top -bn1, ps, free, df, _ping, dmesg, netstat 
-an, ip address, _logs]
+host_cmds = [top -bn1, ps, free, df, memstat, dmesg, netstat 
-an]
+d.setVar(TESTIMAGE_DUMP_TRG, target_cmds)
+d.setVar(TESTIMAGE_DUMP_HST, host_cmds)
+}
+
 python do_testimage() {
 testimage_main(d)
 }
diff --git a/meta/lib/oeqa/oetest.py b/meta/lib/oeqa/oetest.py
index dfed3de..fa8f127 100644
--- a/meta/lib/oeqa/oetest.py
+++ b/meta/lib/oeqa/oetest.py
@@ -12,8 +12,10 @@ import unittest
 import inspect
 import subprocess
 import datetime
+import commands
 import bb
 from oeqa.utils.decorators import LogResults
+from sys import exc_info, exc_clear
 
 def loadTests(tc, type=runtime):
 if type == runtime:
@@ -120,35 +122,45 @@ class oeRuntimeTest(oeTest):
 
 def tearDown(self):
 # If a test fails or there is an exception
-if (self._resultForDoCleanups.failures or
-self._resultForDoCleanups.errors):
-self.dump_target_logs()
-
-def dump_target_logs(self):
-commands = [top -bn1, ps, free, df, _ping, dmesg, netstat 
-a, ifconfig -a, _logs]
-dump_dir = /tmp/oe-saved-tests
+if not exc_info() == (None, None, None):
+exc_clear()
+dump_dir = self.create_dump_dir()
+print (%s dump data from host and target 
+stored in %s % (self._testMethodName, dump_dir))
+self.dump_host_logs(dump_dir)
+self.dump_target_logs(dump_dir)
+
+def create_dump_dir(self):
 dump_sub_dir = (%s_%s % (
 datetime.datetime.now().strftime('%Y%m%d%H%M'),
 self._testMethodName))
-dump_dir = os.path.join(dump_dir, dump_sub_dir)
+dump_dir = os.path.join(self.target.dump_dir, dump_sub_dir)
 os.makedirs(dump_dir)
-bb.warn(%s failed: getting data from target and 
-saving into %s % (self._testMethodName, dump_dir))
-for command in commands:
+return dump_dir
+
+def dump_host_logs(self, dump_dir):
+for cmd in self.target.dump_hst:
+output = commands.getoutput(cmd)
+filename = host_%s % cmd.split()[0]
+with open(os.path.join(dump_dir, filename), 'w') as f:
+f.write(output)
+
+def dump_target_logs(self, dump_dir):
+for cmd in self.target.dump_trg:
 # This will ping the host from target
-if command == _ping:
+if cmd == _ping:
  comm = ping -c3 %s % self.target.server_ip
 # This will get all the logs from /var/log/
-elif command == _logs:
+elif cmd == _logs:
 comm = 'find /var/log/ -type f 2/dev/null '
 comm = '%s-exec echo %s \\; ' % (comm, '='*20)
 comm = '%s-exec echo {} \\; ' % comm
 comm = '%s-exec echo %s \\; ' % (comm, '='*20)
 comm = '%s-exec cat {} \\; -exec echo  \\;' % comm
 else:
-comm = command 
+comm = cmd
 (status, output) = self.target.run_serial(comm)
-filename = command.split()[0]
+filename = target_%s % cmd.split()[0]
 with open(os.path.join(dump_dir, filename), 'w') as f:
 f.write(output)
 
diff --git a/meta/lib/oeqa/targetcontrol.py b/meta/lib/oeqa/targetcontrol.py
index c76887b..7589ea4 100644

[OE-core] [PATCH 1/1] ncurses: 5.9 - 6.0

2015-08-17 Thread Robert Yang
Use -fPIC to fix when build readline: libtinfo.a(lib_termcap.o):
relocation R_X86_64_32 against `_nc_globals' can not be used when making
a shared object; recompile with -fPIC

Signed-off-by: Robert Yang liezhi.y...@windriver.com
---
 meta/recipes-core/ncurses/ncurses.inc  |   11 ---
 .../ncurses/{ncurses-5.9 = ncurses}/config.cache  |0
 .../{ncurses-5.9 = ncurses}/tic-hang.patch|0
 .../ncurses/{ncurses_5.9.bb = ncurses_6.0.bb} |8 +++-
 4 files changed, 11 insertions(+), 8 deletions(-)
 rename meta/recipes-core/ncurses/{ncurses-5.9 = ncurses}/config.cache (100%)
 rename meta/recipes-core/ncurses/{ncurses-5.9 = ncurses}/tic-hang.patch (100%)
 rename meta/recipes-core/ncurses/{ncurses_5.9.bb = ncurses_6.0.bb} (41%)

diff --git a/meta/recipes-core/ncurses/ncurses.inc 
b/meta/recipes-core/ncurses/ncurses.inc
index ffd80ee..ea18d41 100644
--- a/meta/recipes-core/ncurses/ncurses.inc
+++ b/meta/recipes-core/ncurses/ncurses.inc
@@ -6,7 +6,6 @@ LIC_FILES_CHKSUM = 
file://ncurses/base/version.c;beginline=1;endline=27;md5=cbc
 SECTION = libs
 DEPENDS = ncurses-native
 DEPENDS_class-native = 
-INC_PR = r15
 
 BINCONFIG = ${bindir}/ncurses-config
 
@@ -83,7 +82,7 @@ ncurses_configure() {
--enable-sigwinch \
--enable-pc-files \
--disable-rpath-hack \
-   ${EXCONFIG_ARGS} \
+   ${EXCONFIG_ARGS} \
--with-manpage-format=normal \
$@ || return 1
cd ..
@@ -206,7 +205,7 @@ do_install() {
 test -h $f || continue
 rm -f $f
 echo '/* GNU ld script */'  $f
-echo INPUT($i.so.5 AS_NEEDED(-ltinfo)) $f
+echo INPUT($i.so.6 AS_NEEDED(-ltinfo)) $f
 done
 
 # Make sure that libcurses is linked so that it gets -ltinfo
@@ -304,3 +303,9 @@ FILES_${PN}-terminfo-base = \
 
 RSUGGESTS_${PN}-libtinfo = ${PN}-terminfo
 RRECOMMENDS_${PN}-libtinfo = ${PN}-terminfo-base
+
+# Fixed when build readline:
+# libtinfo.a(lib_termcap.o): relocation R_X86_64_32 against
+# `_nc_globals' can not be used when making a shared object; recompile
+# with -fPIC
+CFLAGS_append =  -fPIC
diff --git a/meta/recipes-core/ncurses/ncurses-5.9/config.cache 
b/meta/recipes-core/ncurses/ncurses/config.cache
similarity index 100%
rename from meta/recipes-core/ncurses/ncurses-5.9/config.cache
rename to meta/recipes-core/ncurses/ncurses/config.cache
diff --git a/meta/recipes-core/ncurses/ncurses-5.9/tic-hang.patch 
b/meta/recipes-core/ncurses/ncurses/tic-hang.patch
similarity index 100%
rename from meta/recipes-core/ncurses/ncurses-5.9/tic-hang.patch
rename to meta/recipes-core/ncurses/ncurses/tic-hang.patch
diff --git a/meta/recipes-core/ncurses/ncurses_5.9.bb 
b/meta/recipes-core/ncurses/ncurses_6.0.bb
similarity index 41%
rename from meta/recipes-core/ncurses/ncurses_5.9.bb
rename to meta/recipes-core/ncurses/ncurses_6.0.bb
index 54d27a9..e956e3f 100644
--- a/meta/recipes-core/ncurses/ncurses_5.9.bb
+++ b/meta/recipes-core/ncurses/ncurses_6.0.bb
@@ -1,12 +1,10 @@
 require ncurses.inc
 
-REVISION = 20150329
-
-PR = ${INC_PR}.1
+REVISION = 20150810
 
 SRC_URI += file://tic-hang.patch \
 file://config.cache \
 
 S = ${WORKDIR}/${BP}-${REVISION}
-SRC_URI[md5sum] = cee991d09e69e60ebedef424804c52d4
-SRC_URI[sha256sum] = 
5b64f40e4dce73e3aa83d15bd9257c6eff8790ec41150f0938bd87c0eb75828f
+SRC_URI[md5sum] = 78bfcb4634a87b4cda390956586f8f1f
+SRC_URI[sha256sum] = 
85d4a615731bc71075416fc3bea15a56740bed42b3596bbb126226af4111c65c
-- 
1.7.9.5

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


[OE-core] [PATCH 0/1] ncurses: 5.9 - 6.0

2015-08-17 Thread Robert Yang
The following changes since commit 059db140885bad379534e6ec713f3ceb4e18faea:

  adt-installer: use DEPLOY_DIR in ANT_DEPLOY expansion (2015-08-16 17:28:14 
+0100)

are available in the git repository at:

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

Robert Yang (1):
  ncurses: 5.9 - 6.0

 meta/recipes-core/ncurses/ncurses.inc  |   11 ---
 .../ncurses/{ncurses-5.9 = ncurses}/config.cache  |0
 .../{ncurses-5.9 = ncurses}/tic-hang.patch|0
 .../ncurses/{ncurses_5.9.bb = ncurses_6.0.bb} |8 +++-
 4 files changed, 11 insertions(+), 8 deletions(-)
 rename meta/recipes-core/ncurses/{ncurses-5.9 = ncurses}/config.cache (100%)
 rename meta/recipes-core/ncurses/{ncurses-5.9 = ncurses}/tic-hang.patch (100%)
 rename meta/recipes-core/ncurses/{ncurses_5.9.bb = ncurses_6.0.bb} (41%)

-- 
1.7.9.5

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


[OE-core] [PATCH 1/1] mc: add PACKAGECONFIG for util-linux

2015-08-17 Thread Robert Yang
Fixed:
mc-4.8.14: mc rdepends on util-linux-libmount, but it isn't a build dependency? 
[build-deps]

And enable it by default as Ross suggested.

Signed-off-by: Robert Yang liezhi.y...@windriver.com
---
 meta/recipes-extended/mc/mc_4.8.14.bb |3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/meta/recipes-extended/mc/mc_4.8.14.bb 
b/meta/recipes-extended/mc/mc_4.8.14.bb
index 3b6c2ff..3a593f7 100644
--- a/meta/recipes-extended/mc/mc_4.8.14.bb
+++ b/meta/recipes-extended/mc/mc_4.8.14.bb
@@ -17,9 +17,10 @@ inherit autotools gettext pkgconfig
 #
 # Both Samba (smb) and sftp require package delivered from meta-openembedded
 #
-PACKAGECONFIG ??= 
+PACKAGECONFIG ??= util-linux
 PACKAGECONFIG[smb] = --enable-vfs-smb,--disable-vfs-smb,samba,
 PACKAGECONFIG[sftp] = --enable-vfs-sftp,--disable-vfs-sftp,libssh2,
+PACKAGECONFIG[util-linux] = 
ac_cv_lib_mount_mnt_new_table_from_file=yes,ac_cv_lib_mount_mnt_new_table_from_file=no,util-linux,
 
 EXTRA_OECONF = --with-screen=ncurses --without-gpm-mouse --without-x
 
-- 
1.7.9.5

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


[OE-core] [PATCH 0/1] mc: add PACKAGECONFIG for util-linux

2015-08-17 Thread Robert Yang
The following changes since commit 059db140885bad379534e6ec713f3ceb4e18faea:

  adt-installer: use DEPLOY_DIR in ANT_DEPLOY expansion (2015-08-16 17:28:14 
+0100)

are available in the git repository at:

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

Robert Yang (1):
  mc: add PACKAGECONFIG for util-linux

 meta/recipes-extended/mc/mc_4.8.14.bb |3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

-- 
1.7.9.5

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


Re: [OE-core] [PATCH 1/1] ncurses: 5.9 - 6.0

2015-08-17 Thread Khem Raj

 On Aug 17, 2015, at 1:17 AM, Robert Yang liezhi.y...@windriver.com wrote:
 
 Use -fPIC to fix when build readline: libtinfo.a(lib_termcap.o):
 relocation R_X86_64_32 against `_nc_globals' can not be used when making
 a shared object; recompile with -fPIC

It a progressive change but
FYI, ncurses6 is not intended to be binary compatible with ncurses5 even though 
as of first release its source compatible with 5
its not going to remain that way for long, so as such this change can break
a lot of things. but there is a configure option to let nurses6 still keep 
using ncurses5 ABI for some time
so please use --with-abi-version 5 explicitly.

and this needs quite rigorous testing if we have to go with it for 1.9

 
 Signed-off-by: Robert Yang liezhi.y...@windriver.com
 ---
 meta/recipes-core/ncurses/ncurses.inc  |   11 ---
 .../ncurses/{ncurses-5.9 = ncurses}/config.cache  |0
 .../{ncurses-5.9 = ncurses}/tic-hang.patch|0
 .../ncurses/{ncurses_5.9.bb = ncurses_6.0.bb} |8 +++-
 4 files changed, 11 insertions(+), 8 deletions(-)
 rename meta/recipes-core/ncurses/{ncurses-5.9 = ncurses}/config.cache (100%)
 rename meta/recipes-core/ncurses/{ncurses-5.9 = ncurses}/tic-hang.patch 
 (100%)
 rename meta/recipes-core/ncurses/{ncurses_5.9.bb = ncurses_6.0.bb} (41%)
 
 diff --git a/meta/recipes-core/ncurses/ncurses.inc 
 b/meta/recipes-core/ncurses/ncurses.inc
 index ffd80ee..ea18d41 100644
 --- a/meta/recipes-core/ncurses/ncurses.inc
 +++ b/meta/recipes-core/ncurses/ncurses.inc
 @@ -6,7 +6,6 @@ LIC_FILES_CHKSUM = 
 file://ncurses/base/version.c;beginline=1;endline=27;md5=cbc
 SECTION = libs
 DEPENDS = ncurses-native
 DEPENDS_class-native = 
 -INC_PR = r15
 
 BINCONFIG = ${bindir}/ncurses-config
 
 @@ -83,7 +82,7 @@ ncurses_configure() {
   --enable-sigwinch \
   --enable-pc-files \
   --disable-rpath-hack \
 - ${EXCONFIG_ARGS} \
 + ${EXCONFIG_ARGS} \
   --with-manpage-format=normal \
   $@ || return 1
   cd ..
 @@ -206,7 +205,7 @@ do_install() {
 test -h $f || continue
 rm -f $f
 echo '/* GNU ld script */'  $f
 -echo INPUT($i.so.5 AS_NEEDED(-ltinfo)) $f
 +echo INPUT($i.so.6 AS_NEEDED(-ltinfo)) $f
 done
 
 # Make sure that libcurses is linked so that it gets -ltinfo
 @@ -304,3 +303,9 @@ FILES_${PN}-terminfo-base = \
 
 RSUGGESTS_${PN}-libtinfo = ${PN}-terminfo
 RRECOMMENDS_${PN}-libtinfo = ${PN}-terminfo-base
 +
 +# Fixed when build readline:
 +# libtinfo.a(lib_termcap.o): relocation R_X86_64_32 against
 +# `_nc_globals' can not be used when making a shared object; recompile
 +# with -fPIC
 +CFLAGS_append =  -fPIC
 diff --git a/meta/recipes-core/ncurses/ncurses-5.9/config.cache 
 b/meta/recipes-core/ncurses/ncurses/config.cache
 similarity index 100%
 rename from meta/recipes-core/ncurses/ncurses-5.9/config.cache
 rename to meta/recipes-core/ncurses/ncurses/config.cache
 diff --git a/meta/recipes-core/ncurses/ncurses-5.9/tic-hang.patch 
 b/meta/recipes-core/ncurses/ncurses/tic-hang.patch
 similarity index 100%
 rename from meta/recipes-core/ncurses/ncurses-5.9/tic-hang.patch
 rename to meta/recipes-core/ncurses/ncurses/tic-hang.patch
 diff --git a/meta/recipes-core/ncurses/ncurses_5.9.bb 
 b/meta/recipes-core/ncurses/ncurses_6.0.bb
 similarity index 41%
 rename from meta/recipes-core/ncurses/ncurses_5.9.bb
 rename to meta/recipes-core/ncurses/ncurses_6.0.bb
 index 54d27a9..e956e3f 100644
 --- a/meta/recipes-core/ncurses/ncurses_5.9.bb
 +++ b/meta/recipes-core/ncurses/ncurses_6.0.bb
 @@ -1,12 +1,10 @@
 require ncurses.inc
 
 -REVISION = 20150329
 -
 -PR = ${INC_PR}.1
 +REVISION = 20150810
 
 SRC_URI += file://tic-hang.patch \
 file://config.cache \
 
 S = ${WORKDIR}/${BP}-${REVISION}
 -SRC_URI[md5sum] = cee991d09e69e60ebedef424804c52d4
 -SRC_URI[sha256sum] = 
 5b64f40e4dce73e3aa83d15bd9257c6eff8790ec41150f0938bd87c0eb75828f
 +SRC_URI[md5sum] = 78bfcb4634a87b4cda390956586f8f1f
 +SRC_URI[sha256sum] = 
 85d4a615731bc71075416fc3bea15a56740bed42b3596bbb126226af4111c65c
 --
 1.7.9.5
 
 --
 ___
 Openembedded-core mailing list
 Openembedded-core@lists.openembedded.org
 http://lists.openembedded.org/mailman/listinfo/openembedded-core



signature.asc
Description: Message signed with OpenPGP using GPGMail
-- 
___
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core


Re: [OE-core] [PATCH 0/4] Upgrades: openssh, nss, nfs-utils, rsvg

2015-08-17 Thread Jussi Kukkonen
On 17 August 2015 at 08:15, Khem Raj raj.k...@gmail.com wrote:

 On Aug 11, 2015, at 12:12 PM, Jussi Kukkonen jussi.kukko...@intel.com 
 wrote:

 The openssh upgrade adds a test that currently fails: that looks
 like a failure in our test setup, I've filed a bug for that.

 openssl 7.0 has now been released,
 see
 http://www.openssh.com/txt/release-7.0

 it deprecates few things e.g. dsa is disabled by default but its good in 
 general
 one can still add PubkeyAcceptedKeyTypes=+ssh-dss to ssh config files keep 
 going. but in general it will be improvement

Well of course it now gets released after I grew tired of waiting and
sent 6.9... I agree that 7.0 would make sense, I can send another
update -- it should be mostly deprecations and default build config
changes compared to 6.9.

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


Re: [OE-core] [PATCH 1/1] ncurses: 5.9 - 6.0

2015-08-17 Thread Robert Yang



On 08/17/2015 04:26 PM, Khem Raj wrote:



On Aug 17, 2015, at 1:17 AM, Robert Yang liezhi.y...@windriver.com wrote:

Use -fPIC to fix when build readline: libtinfo.a(lib_termcap.o):
relocation R_X86_64_32 against `_nc_globals' can not be used when making
a shared object; recompile with -fPIC


It a progressive change but
FYI, ncurses6 is not intended to be binary compatible with ncurses5 even though 
as of first release its source compatible with 5
its not going to remain that way for long, so as such this change can break
a lot of things. but there is a configure option to let nurses6 still keep 
using ncurses5 ABI for some time
so please use --with-abi-version 5 explicitly.

and this needs quite rigorous testing if we have to go with it for 1.9


Thanks, I prefer to drop the upgrade since it is so dangerous:-)

// Robert





Signed-off-by: Robert Yang liezhi.y...@windriver.com
---
meta/recipes-core/ncurses/ncurses.inc  |   11 ---
.../ncurses/{ncurses-5.9 = ncurses}/config.cache  |0
.../{ncurses-5.9 = ncurses}/tic-hang.patch|0
.../ncurses/{ncurses_5.9.bb = ncurses_6.0.bb} |8 +++-
4 files changed, 11 insertions(+), 8 deletions(-)
rename meta/recipes-core/ncurses/{ncurses-5.9 = ncurses}/config.cache (100%)
rename meta/recipes-core/ncurses/{ncurses-5.9 = ncurses}/tic-hang.patch (100%)
rename meta/recipes-core/ncurses/{ncurses_5.9.bb = ncurses_6.0.bb} (41%)

diff --git a/meta/recipes-core/ncurses/ncurses.inc 
b/meta/recipes-core/ncurses/ncurses.inc
index ffd80ee..ea18d41 100644
--- a/meta/recipes-core/ncurses/ncurses.inc
+++ b/meta/recipes-core/ncurses/ncurses.inc
@@ -6,7 +6,6 @@ LIC_FILES_CHKSUM = 
file://ncurses/base/version.c;beginline=1;endline=27;md5=cbc
SECTION = libs
DEPENDS = ncurses-native
DEPENDS_class-native = 
-INC_PR = r15

BINCONFIG = ${bindir}/ncurses-config

@@ -83,7 +82,7 @@ ncurses_configure() {
--enable-sigwinch \
--enable-pc-files \
--disable-rpath-hack \
-   ${EXCONFIG_ARGS} \
+   ${EXCONFIG_ARGS} \
--with-manpage-format=normal \
$@ || return 1
cd ..
@@ -206,7 +205,7 @@ do_install() {
 test -h $f || continue
 rm -f $f
 echo '/* GNU ld script */'  $f
-echo INPUT($i.so.5 AS_NEEDED(-ltinfo)) $f
+echo INPUT($i.so.6 AS_NEEDED(-ltinfo)) $f
 done

 # Make sure that libcurses is linked so that it gets -ltinfo
@@ -304,3 +303,9 @@ FILES_${PN}-terminfo-base = \

RSUGGESTS_${PN}-libtinfo = ${PN}-terminfo
RRECOMMENDS_${PN}-libtinfo = ${PN}-terminfo-base
+
+# Fixed when build readline:
+# libtinfo.a(lib_termcap.o): relocation R_X86_64_32 against
+# `_nc_globals' can not be used when making a shared object; recompile
+# with -fPIC
+CFLAGS_append =  -fPIC
diff --git a/meta/recipes-core/ncurses/ncurses-5.9/config.cache 
b/meta/recipes-core/ncurses/ncurses/config.cache
similarity index 100%
rename from meta/recipes-core/ncurses/ncurses-5.9/config.cache
rename to meta/recipes-core/ncurses/ncurses/config.cache
diff --git a/meta/recipes-core/ncurses/ncurses-5.9/tic-hang.patch 
b/meta/recipes-core/ncurses/ncurses/tic-hang.patch
similarity index 100%
rename from meta/recipes-core/ncurses/ncurses-5.9/tic-hang.patch
rename to meta/recipes-core/ncurses/ncurses/tic-hang.patch
diff --git a/meta/recipes-core/ncurses/ncurses_5.9.bb 
b/meta/recipes-core/ncurses/ncurses_6.0.bb
similarity index 41%
rename from meta/recipes-core/ncurses/ncurses_5.9.bb
rename to meta/recipes-core/ncurses/ncurses_6.0.bb
index 54d27a9..e956e3f 100644
--- a/meta/recipes-core/ncurses/ncurses_5.9.bb
+++ b/meta/recipes-core/ncurses/ncurses_6.0.bb
@@ -1,12 +1,10 @@
require ncurses.inc

-REVISION = 20150329
-
-PR = ${INC_PR}.1
+REVISION = 20150810

SRC_URI += file://tic-hang.patch \
 file://config.cache \

S = ${WORKDIR}/${BP}-${REVISION}
-SRC_URI[md5sum] = cee991d09e69e60ebedef424804c52d4
-SRC_URI[sha256sum] = 
5b64f40e4dce73e3aa83d15bd9257c6eff8790ec41150f0938bd87c0eb75828f
+SRC_URI[md5sum] = 78bfcb4634a87b4cda390956586f8f1f
+SRC_URI[sha256sum] = 
85d4a615731bc71075416fc3bea15a56740bed42b3596bbb126226af4111c65c
--
1.7.9.5

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



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


[OE-core] [PATCH] archiver.bbclass: Run deploy_archives in $WORKDIR

2015-08-17 Thread Clemens Lang
In recipes that are exempt from source code archiving due to
COPYLEFT_LICENSE_EXCLUDE, do_deploy_archives does not have a transitive
dependency on do_unpack. Given enough parallelism, this means
do_deploy_archives can run at the same time or before do_unpack.

Because do_deploy_archives did not specify a working directory, its
working directory was ${B}, which defaults to ${S}, which may be set by
a recipe to a directory that is created by do_unpack.

In this case, do_deploy_archives can fail because do_unpack deletes and
re-creates the directory and do_deploy_archives cannot change into the
non-existent directory. Avoid this problem by explicitly specifying
a working directory for do_deploy_archives (and for
do_deploy_all_archives as well for good measure).

Signed-off-by: Clemens Lang clemens.l...@bmw-carit.de
---
 meta/classes/archiver.bbclass | 5 +
 1 file changed, 5 insertions(+)

diff --git a/meta/classes/archiver.bbclass b/meta/classes/archiver.bbclass
index d908d16..f9c439e 100644
--- a/meta/classes/archiver.bbclass
+++ b/meta/classes/archiver.bbclass
@@ -45,6 +45,11 @@ ARCHIVER_WORKDIR = ${WORKDIR}/archiver-work/
 do_dumpdata[dirs] = ${ARCHIVER_OUTDIR}
 do_ar_recipe[dirs] = ${ARCHIVER_OUTDIR}
 do_ar_original[dirs] = ${ARCHIVER_OUTDIR} ${ARCHIVER_WORKDIR}
+# When not set, the working directory for the following tasks can default to
+# a location that will be deleted and re-created by do_unpack, which can lead
+# to failure; avoid that by explicitly setting them.
+do_deploy_archives[dirs] = ${WORKDIR}
+do_deploy_all_archives[dirs] = ${WORKDIR}
 
 # This is a convenience for the shell script to use it
 
-- 
2.1.0

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