Re: [OE-core] [dora][backport from master] apmd.service: Fix typo (not mandatory EnvironmentFile prefix)
Ping Is it possible to cherry-pick this patch from Master to Dora ? Commit : b21468434c519927dace6a1433786ca7a0501172 Regards, Seb M 2014-07-09 16:24 GMT+02:00 Sébastien Mennetrier smennetr...@connected-labs.com: From: Tobias Blom tobias.b...@techne-dev.se Prefix to EnvironmentFile should be preciding the filenamn. (From OE-Core rev: 1f694e4cb493b0737b6009382c0957e6837ebbed) Signed-off-by: Tobias Blom tobias.b...@techne-dev.se Signed-off-by: Saul Wold s...@linux.intel.com Signed-off-by: Richard Purdie richard.pur...@linuxfoundation.org --- meta/recipes-bsp/apmd/apmd-3.2.2-14/apmd.service | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meta/recipes-bsp/apmd/apmd-3.2.2-14/apmd.service b/meta/recipes-bsp/apmd/apmd-3.2.2-14/apmd.service index 62d6af1..ffab823 100644 --- a/meta/recipes-bsp/apmd/apmd-3.2.2-14/apmd.service +++ b/meta/recipes-bsp/apmd/apmd-3.2.2-14/apmd.service @@ -3,5 +3,5 @@ Description=Advanced Power Management daemon After=remote-fs.target [Service] -EnvironmentFile-= @SYSCONFDIR@/default/apmd +EnvironmentFile=-@SYSCONFDIR@/default/apmd ExecStart=@SBINDIR@/apmd -P @SYSCONFDIR@/apm/apmd_proxy $APMD -- 1.8.3.2 -- ___ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-core
Re: [OE-core] [oe-commits] Chen Qi : shadow: upgrade from 4.1.4.3 to 4.2.1
On Thu, Jul 17, 2014 at 11:36:33AM +, g...@git.openembedded.org wrote: Module: openembedded-core.git Branch: master Commit: b73e5cd51551556f9e6a4f7d9e7deec4d9d661bd URL: http://git.openembedded.org/?p=openembedded-core.gita=commit;h=b73e5cd51551556f9e6a4f7d9e7deec4d9d661bd Author: Chen Qi qi.c...@windriver.com Date: Thu Jul 17 15:53:34 2014 +0800 shadow: upgrade from 4.1.4.3 to 4.2.1 Upgrade shadow from 4.1.4.3 to 4.2.1. Changes during this upgrade are as following. This seems to trigger ICE in some configurations, this was detected in qemuarm world build: | arm-oe-linux-gnueabi-gcc -march=armv5te -marm -mthumb-interwork --sysroot=/home/jenkins/oe/world/shr-core/tmp-eglibc/sysroots/qemuarm -DHAVE_CONFIG_H -I. -I/home/jenkins/oe/world/shr-core/tmp-eglibc/work/armv5te-oe-linux-gnueabi/shadow/4.2.1-r0/shadow-4.2.1/libmisc -I.. -I/home/jenkins/oe/world/shr-core/tmp-eglibc/work/armv5te-oe-linux-gnueabi/shadow/4.2.1-r0/shadow-4.2.1/lib -O2 -pipe -g -feliminate-unused-debug-types -c -o cleanup_group.o /home/jenkins/oe/world/shr-core/tmp-eglibc/work/armv5te-oe-linux-gnueabi/shadow/4.2.1-r0/shadow-4.2.1/libmisc/cleanup_group.c | /home/jenkins/oe/world/shr-core/tmp-eglibc/work/armv5te-oe-linux-gnueabi/shadow/4.2.1-r0/shadow-4.2.1/libmisc/cleanup.c:1:0: internal compiler error: in default_addr_space_address_mode, at targhooks.c:1161 | /* | ^ | Please submit a full bug report, | with preprocessed source if appropriate. | See http://gcc.gnu.org/bugs.html for instructions. | make[2]: *** [cleanup.o] Error 1 signature.asc Description: Digital signature -- ___ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-core
Re: [OE-core] [PATCH] rootfs: Remove the extraneous install directory
Hi Saul, On Thursday 17 July 2014 13:34:09 Saul Wold wrote: [YOCTO #6497] Signed-off-by: Saul Wold s...@linux.intel.com --- Could you please add a proper commit message? How this directory gets created would be a good thing to mention. Thanks, 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 RFC 1/3] insane: Split do_package_qa into a separate task (from do_package)
On Thu, Jul 10, 2014 at 11:43:02PM -0300, Otavio Salvador wrote: Hello Richard, (added meta-freescale mailing list as it is related to meta-fsl-arm) On Wed, Jul 9, 2014 at 5:15 PM, Richard Purdie richard.pur...@linuxfoundation.org wrote: Its possible to run the package QA checks as a separate task rather than as part of the do_package task. This offers more parallelism but the fact that made me propose this is that ideally we'd like to access pkgdata to help add new tests and to do that, we need to run later in the task list. We also need to add in RDEPENDS to the task which apply to do_package_write_* but not do_package. See the subsequent patches for why this is desireable. If we split into a separate task, we need to add in calls to read the sub package data, build the cache structure used by do_package and cover the task with sstate (which is empty and just acts as a stamp saying it passed package QA). We also need to handle our own dependencies. Signed-off-by: Richard Purdie richard.pur...@linuxfoundation.org When I see a RFC serie I expect people to wait some days /for comments/. I learned today those are already merged and /no comment time/ has been given. The problem I found is that running the QA checks in another task seems to break some use-cases. In the libfslcodec (it is a binary blob provided by Freescale for multimedia) we have: ... python populate_packages_prepend() { ... # FIXME: All binaries lack GNU_HASH in elf binary but as we don't have # the source we cannot fix it. Disable the insane check for now. for p in d.getVar('PACKAGES', True).split(): d.setVar(DEBIAN_NOAUTONAME_%s % p, 1) if p == 'libfslcodec-test-bin': # FIXME: includes the DUT .so files so we need to deploy those d.appendVar(INSANE_SKIP_%s % p, ldflags textrel libdir) else: d.appendVar(INSANE_SKIP_%s % p, ldflags textrel) ... } In this case the INSANE_SKIP var is not being set on time. If we check the value it is being set but it seems to be too late. FWIW: llvm in meta-oe has similar problem python llvm_populate_packages() { libdir = bb.data.expand('${libdir}', d) libllvm_libdir = bb.data.expand('${libdir}/${LLVM_DIR}', d) split_dbg_packages = do_split_packages(d, libllvm_libdir+'/.debug', '^lib(.*)\.so$', 'libllvm${LLVM_RELEASE}-%s-dbg', 'Split debug package for %s', allow_dirs=True) split_packages = do_split_packages(d, libdir, '^lib(.*)\.so$', 'libllvm${LLVM_RELEASE}-%s', 'Split package for %s', allow_dirs=True, allow_links=True, recursive=True) split_staticdev_packages = do_split_packages(d, libllvm_libdir, '^lib(.*)\.a$', 'libllvm${LLVM_RELEASE}-%s-staticdev', 'Split staticdev package for %s', allow_dirs=True) if split_packages: pn = d.getVar('PN', True) for package in split_packages: d.appendVar('INSANE_SKIP_' + package, ' dev-so') d.appendVar('RDEPENDS_' + pn, ' '+' '.join(split_packages)) d.appendVar('RDEPENDS_' + pn + '-dbg', ' '+' '.join(split_dbg_packages)) d.appendVar('RDEPENDS_' + pn + '-staticdev', ' '+' '.join(split_staticdev_packages)) } PACKAGESPLITFUNCS_prepend = llvm_populate_packages and now it fails with: ERROR: QA Issue: non -dev/-dbg/-nativesdk package contains symlink .so: libllvm3.3-llvm-3.3 path '/work/armv5te-oe-linux-gnueabi/llvm3.3/3.3-r0/packages-split/libllvm3.3-llvm-3.3/usr/lib/libLLVM-3.3.so' [dev-so] ERROR: QA run found fatal errors. Please consider fixing them. ERROR: Function failed: do_package_qa ERROR: Logfile of failure stored in: /home/jenkins/oe/world/shr-core/tmp-eglibc/work/armv5te-oe-linux-gnueabi/llvm3.3/3.3-r0/temp/log.do_package_qa.21132 NOTE: recipe llvm3.3-3.3-r0: task do_package_qa: Failed I'll look at solution for fsl and do the same for llvm (and also possibly merge all dbg and staticdev packages into one. -- Martin 'JaMa' Jansa jabber: martin.ja...@gmail.com signature.asc Description: Digital signature -- ___ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-core
[OE-core] [PATCH] libdrm: enable freedreno experimental support
The freedreno project is a free and open source linux driver for the 2D/3D GPUs in Qualcomm snapdragon SoCs. Support for freedreno in libdrm was added around 2.4.43. Signed-off-by: Nicolas Dechesne nicolas.deche...@linaro.org --- meta/recipes-graphics/drm/libdrm.inc | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/meta/recipes-graphics/drm/libdrm.inc b/meta/recipes-graphics/drm/libdrm.inc index 1b2ffeb..5ec6307 100644 --- a/meta/recipes-graphics/drm/libdrm.inc +++ b/meta/recipes-graphics/drm/libdrm.inc @@ -21,14 +21,15 @@ inherit autotools pkgconfig EXTRA_OECONF += --disable-cairo-tests \ --enable-omap-experimental-api \ + --enable-freedreno-experimental-api \ --enable-install-test-programs \ ALLOW_EMPTY_${PN}-drivers = 1 PACKAGES =+ ${PN}-tests ${PN}-drivers ${PN}-radeon ${PN}-nouveau ${PN}-omap \ - ${PN}-intel ${PN}-exynos ${PN}-kms + ${PN}-intel ${PN}-exynos ${PN}-kms ${PN}-freedreno RRECOMMENDS_${PN}-drivers = ${PN}-radeon ${PN}-nouveau ${PN}-omap ${PN}-intel \ - ${PN}-exynos + ${PN}-exynos ${PN}-freedreno FILES_${PN}-tests = ${bindir}/dr* ${bindir}/mode* ${bindir}/*test FILES_${PN}-radeon = ${libdir}/libdrm_radeon.so.* @@ -37,3 +38,4 @@ FILES_${PN}-omap = ${libdir}/libdrm_omap.so.* FILES_${PN}-intel = ${libdir}/libdrm_intel.so.* FILES_${PN}-exynos = ${libdir}/libdrm_exynos.so.* FILES_${PN}-kms = ${libdir}/libkms*.so.* +FILES_${PN}-freedreno = ${libdir}/libdrm_freedreno.so.* -- 2.0.1 -- ___ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-core
[OE-core] [PATCH] subversion: Disable make install parallelism
The Makefile generation for subversion is horrible, I can't figure out where the dependencies are missing, it looks like they might be missing everywhere. Give up and disable parallel make install. Signed-off-by: Richard Purdie richard.pur...@linuxfoundation.org diff --git a/meta/recipes-devtools/subversion/subversion_1.8.9.bb b/meta/recipes-devtools/subversion/subversion_1.8.9.bb index a6ef3d4..d134a53 100644 --- a/meta/recipes-devtools/subversion/subversion_1.8.9.bb +++ b/meta/recipes-devtools/subversion/subversion_1.8.9.bb @@ -40,3 +40,10 @@ do_configure_prepend () { rm -f ${S}/aclocal.m4 sed -i -e 's:with_sasl=/usr/local:with_sasl=${STAGING_DIR}:' ${S}/build/ac-macros/sasl.m4 } + +#| x86_64-linux-libtool: install: warning: `/home/pokybuild/yocto-autobuilder/yocto-worker/nightly-qa-logrotate/build/build/tmp/work/x86_64-linux/subversion-native/1.8.9-r0/build/subversion/libsvn_ra_local/libsvn_ra_local-1.la' has not been installed in `/home/pokybuild/yocto-autobuilder/yocto-worker/nightly-qa-logrotate/build/build/tmp/sysroots/x86_64-linux/usr/lib'| x86_64-linux-libtool: install: warning: `/home/pokybuild/yocto-autobuilder/yocto-worker/nightly-qa-logrotate/build/build/tmp/work/x86_64-linux/subversion-native/1.8.9-r0/build/subversion/libsvn_repos/libsvn_repos-1.la' has not been installed in `/home/pokybuild/yocto-autobuilder/yocto-worker/nightly-qa-logrotate/build/build/tmp/sysroots/x86_64-linux/usr/lib'| /usr/bin/ld: cannot find -lsvn_delta-1| collect2: ld returned 1 exit status| x86_64-linux-libtool: install: warning: `/home/pokybuild/yocto-autobuilder/yocto-worker/nightly-qa-logrotate/build/build/tmp/work/x86_64-linux/subversion-native/1.8.9-r0/build/sub version/libsvn_ra_svn/libsvn_ra_svn-1.la' has not been installed in `/home/pokybuild/yocto-autobuilder/yocto-worker/nightly-qa-logrotate/build/build/tmp/sysroots/x86_64-linux/usr/lib'| x86_64-linux-libtool: install: warning: `/home/pokybuild/yocto-autobuilder/yocto-worker/nightly-qa-logrotate/build/build/tmp/work/x86_64-linux/subversion-native/1.8.9-r0/build/subversion/libsvn_ra_serf/libsvn_ra_serf-1.la' has not been installed in `/home/pokybuild/yocto-autobuilder/yocto-worker/nightly-qa-logrotate/build/build/tmp/sysroots/x86_64-linux/usr/lib' +#| x86_64-linux-libtool: install: error: relink `libsvn_ra_serf-1.la' with the above command before installing it +#| x86_64-linux-libtool: install: warning: `../../subversion/libsvn_repos/libsvn_repos-1.la' has not been installed in `/home/pokybuild/yocto-autobuilder/yocto-worker/nightly-qa-logrotate/build/build/tmp/sysroots/x86_64-linux/usr/lib' +#| /home/pokybuild/yocto-autobuilder/yocto-worker/nightly-qa-logrotate/build/build/tmp/work/x86_64-linux/subversion-native/1.8.9-r0/subversion-1.8.9/build-outputs.mk:1090: recipe for target 'install-serf-lib' failed +#| make: *** [install-serf-lib] Error 1 +PARALLEL_MAKEINST = -- ___ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-core
[OE-core] [PATCH 1/1] license.bbclass: fix indentation in python function
If we don't fix this, the fix for bug 6502 will trigger warnings that the write_package_manifest function contains tabs. Related to fix for [YOCTO #6502]. Signed-off-by: Roxana Ciobanu roxana.ciob...@intel.com --- meta/classes/license.bbclass | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/meta/classes/license.bbclass b/meta/classes/license.bbclass index 08f0665..2a6e869 100644 --- a/meta/classes/license.bbclass +++ b/meta/classes/license.bbclass @@ -17,12 +17,12 @@ do_populate_lic[dirs] = ${LICSSTATEDIR}/${PN} do_populate_lic[cleandirs] = ${LICSSTATEDIR} python write_package_manifest() { - # Get list of installed packages - license_image_dir = d.expand('${LICENSE_DIRECTORY}/${IMAGE_NAME}') - bb.utils.mkdirhier(license_image_dir) - from oe.rootfs import image_list_installed_packages - open(os.path.join(license_image_dir, 'package.manifest'), - 'w+').write(image_list_installed_packages(d)) +# Get list of installed packages +license_image_dir = d.expand('${LICENSE_DIRECTORY}/${IMAGE_NAME}') +bb.utils.mkdirhier(license_image_dir) +from oe.rootfs import image_list_installed_packages +open(os.path.join(license_image_dir, 'package.manifest'), +'w+').write(image_list_installed_packages(d)) } license_create_manifest() { -- 1.9.1 -- ___ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-core
[OE-core] [PATCH 0/1] Related to fix for YB6502
The following changes since commit 1f45232dc008599501e138c5327c7f8a901dbf55: subversion: neon support was dropped, switch to serf (2014-07-17 23:13:59 +0100) are available in the git repository at: git://git.yoctoproject.org/poky-contrib roxana/license http://git.yoctoproject.org/cgit.cgi/poky-contrib/log/?h=roxana/license Roxana Ciobanu (1): license.bbclass: fix indentation in python function meta/classes/license.bbclass | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) -- 1.9.1 -- ___ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-core
[OE-core] [PATCH 1/1] image.bbclass/rootfs.py: add variables to rootfs[vardeps]
Added base variables and package backend specific variables to rootfs[vardeps] in order for rootfs to rebuild when changes are made. Set some variables as [func] to inform bitbake that they are shell scripts, so that it invokes its shell dependency parsing. Without marking them as functions, changes in the actual function body would not trigger rootfs rebuilds. [YOCTO #6502] Signed-off-by: Roxana Ciobanu roxana.ciob...@intel.com --- meta/classes/image.bbclass | 17 - meta/lib/oe/rootfs.py | 21 + 2 files changed, 37 insertions(+), 1 deletion(-) diff --git a/meta/classes/image.bbclass b/meta/classes/image.bbclass index a03b880..5dd0bde 100644 --- a/meta/classes/image.bbclass +++ b/meta/classes/image.bbclass @@ -72,10 +72,25 @@ LDCONFIGDEPEND ?= ldconfig-native:do_populate_sysroot LDCONFIGDEPEND_libc-uclibc = LDCONFIGDEPEND_libc-musl = +python () { +variables = ['ROOTFS_POSTPROCESS_COMMAND', 'OPKG_PREPROCESS_COMMANDS', 'OPKG_POSTPROCESS_COMMANDS', 'IMAGE_POSTPROCESS_COMMAND', 'IMAGE_PREPROCESS_COMMAND', 'POPULATE_SDK_POST_HOST_COMMAND', 'POPULATE_SDK_POST_TARGET_COMMAND', 'SDK_POSTPROCESS_COMMAND'] +for var in variables: +d.appendVarFlag(var, 'func', '1') +} + do_rootfs[depends] += makedevs-native:do_populate_sysroot virtual/fakeroot-native:do_populate_sysroot ${LDCONFIGDEPEND} do_rootfs[depends] += virtual/update-alternatives-native:do_populate_sysroot update-rc.d-native:do_populate_sysroot do_rootfs[recrdeptask] += do_packagedata -do_rootfs[vardeps] += BAD_RECOMMENDATIONS NO_RECOMMENDATIONS + +def rootfs_variables(d): +from oe.rootfs import variable_depends +deps = variable_depends(d) +variables = IMAGE_DEVICE_TABLES BUILD_IMAGES_FROM_FEEDS IMAGE_TYPEDEP_ IMAGE_TYPES_MASKED IMAGE_ROOTFS_ALIGNMENT IMAGE_OVERHEAD_FACTOR IMAGE_ROOTFS_SIZE IMAGE_ROOTFS_EXTRA_SPACE IMAGE_ROOTFS_MAXSIZE IMAGE_NAME IMAGE_LINK_NAME IMAGE_MANIFEST DEPLOY_DIR_IMAGE RM_OLD_IMAGE IMAGE_FSTYPES IMAGE_PREPROCESS_COMMAND IMAGE_POSTPROCESS_COMMAND IMAGE_INSTALL_COMPLEMENTARY IMAGE_LINGUAS SDK_OS SDK_OUTPUT SDKPATHNATIVE SDKTARGETSYSROOT SDK_DIR SDK_POSTPROCESS_COMMAND SDK_VENDOR SDKIMAGE_INSTALL_COMPLEMENTARY POPULATE_SDK_POST_TARGET_COMMAND POPULATE_SDK_POST_HOST_COMMAND SDK_PACKAGE_ARCHS SDK_OUTPUT SDKTARGETSYSROOT MULTILIBRE_ALLOW_REP MULTILIB_TEMP_ROOTFS MULTILIB_VARIANTS MULTILIBS ALL_MULTILIB_PACKAGE_ARCHS MULTILIB_GLOBAL_VARIANTS ROOTFS_POSTINSTALL_COMMAND ROOTFS_PREPROCESS_COMMAND ROOTFS_POSTPROCESS_COMMAND BAD_RECOMMENDATIONS NO_RECOMMENDATIONS PACKAGE_ARCHS PACKAGE_CLASSES +# keep line under 998 characters +variables += TARGET_VENDOR TARGET_VENDOR TARGET_ARCH TARGET_OS OVERRIDES BBEXTENDVARIANT FEED_DEPLOYDIR_BASE_URI INTERCEPT_DIR BUILDNAME USE_DEVFS STAGING_KERNEL_DIR COMPRESSIONTYPES +return ' '.join([variables, deps]) + +do_rootfs[vardeps] += ${@rootfs_variables(d)} do_build[depends] += virtual/kernel:do_deploy diff --git a/meta/lib/oe/rootfs.py b/meta/lib/oe/rootfs.py index bc2524f..e0560ff 100644 --- a/meta/lib/oe/rootfs.py +++ b/meta/lib/oe/rootfs.py @@ -327,6 +327,10 @@ class RpmRootfs(Rootfs): self.pm.rpm_setup_smart_target_config() +@staticmethod +def _depends_list(): +return ['DEPLOY_DIR_RPM', 'INC_RPM_IMAGE_GEN', 'RPM_PREPROCESS_COMMANDS', 'RPM_POSTPROCESS_COMMANDS'] + def _get_delayed_postinsts(self): postinst_dir = self.d.expand(${IMAGE_ROOTFS}${sysconfdir}/rpm-postinsts) if os.path.isdir(postinst_dir): @@ -417,6 +421,10 @@ class DpkgRootfs(Rootfs): self.pm.run_pre_post_installs() +@staticmethod +def _depends_list(): +return ['DEPLOY_DIR_DEB', 'DEB_SDK_ARCH', 'APTCONF_TARGET', 'APT_ARGS', 'DPKG_ARCH', 'DEB_PREPROCESS_COMMANDS', 'DEB_POSTPROCESS_COMMAND'] + def _get_delayed_postinsts(self): pkg_list = [] with open(self.image_rootfs + /var/lib/dpkg/status) as status: @@ -679,6 +687,10 @@ class OpkgRootfs(Rootfs): if self.inc_opkg_image_gen == 1: self.pm.backup_packaging_data() +@staticmethod +def _depends_list(): +return ['IPKGCONF_SDK', 'IPK_FEED_URIS', 'DEPLOY_DIR_IPK', 'IPKGCONF_TARGET', 'INC_IPK_IMAGE_GEN', 'OPKG_ARGS', 'OPKGLIBDIR', 'OPKG_PREPROCESS_COMMANDS', 'OPKG_POSTPROCESS_COMMANDS', 'OPKGLIBDIR'] + def _get_delayed_postinsts(self): pkg_list = [] status_file = os.path.join(self.image_rootfs, @@ -722,6 +734,15 @@ class OpkgRootfs(Rootfs): def _cleanup(self): pass +def get_class_for_type(imgtype): +return {rpm: RpmRootfs, +ipk: OpkgRootfs, +deb: DpkgRootfs}[imgtype] + +def variable_depends(d, manifest_dir=None): +img_type = d.getVar('IMAGE_PKGTYPE', True) +cls = get_class_for_type(img_type) +return .join(cls._depends_list()) def create_rootfs(d, manifest_dir=None): env_bkp = os.environ.copy() -- 1.9.1 -- ___
[OE-core] [PATCH 0/1] Fix for YB6502
The following changes since commit 0662aa801237ac716e35c7930d857f98249db1cf: bdwgc: Add PACKAGECONFIG for libatomic-ops (2014-07-17 15:04:10 +0100) are available in the git repository at: git://git.yoctoproject.org/poky-contrib roxana/YB6502 http://git.yoctoproject.org/cgit.cgi/poky-contrib/log/?h=roxana/YB6502 Roxana Ciobanu (1): image.bbclass/rootfs.py: add variables to rootfs[vardeps] meta/classes/image.bbclass | 17 - meta/lib/oe/rootfs.py | 21 + 2 files changed, 37 insertions(+), 1 deletion(-) -- 1.9.1 -- ___ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-core
Re: [OE-core] [PATCH] gcc-4.8: backport fix for ICE when building opus
On Fri, 2014-07-18 at 01:15 +0200, Martin Jansa wrote: From: Martin Jansa martin.ja...@lge.com * backported from 4.8.2, so daisy isn't affected Signed-off-by: Martin Jansa martin.ja...@lge.com --- meta/recipes-devtools/gcc/gcc-4.8.inc | 1 + .../gcc-4.8/0001-fix-ICE-when-building-opus.patch | 121 + 2 files changed, 122 insertions(+) create mode 100644 meta/recipes-devtools/gcc/gcc-4.8/0001-fix-ICE-when-building-opus.patch Doesn't apply against master? Cheers, Richard diff --git a/meta/recipes-devtools/gcc/gcc-4.8.inc b/meta/recipes-devtools/gcc/gcc-4.8.inc index f1260af..ac205de 100644 --- a/meta/recipes-devtools/gcc/gcc-4.8.inc +++ b/meta/recipes-devtools/gcc/gcc-4.8.inc @@ -79,6 +79,7 @@ SRC_URI = ${GNU_MIRROR}/gcc/gcc-${PV}/gcc-${PV}.tar.bz2 \ file://0047-repomembug.patch \ file://0048-PR57532.patch \ file://0048-PR58854_fix_arm_apcs_epilogue.patch \ + file://0001-fix-ICE-when-building-opus.patch \ SRC_URI[md5sum] = 3b2386c114cd74185aa3754b58a79304 SRC_URI[sha256sum] = 545b44be3ad9f2c4e90e6880f5c9d4f0a8f0e5f67e1ffb0d45da9fa01bb05813 diff --git a/meta/recipes-devtools/gcc/gcc-4.8/0001-fix-ICE-when-building-opus.patch b/meta/recipes-devtools/gcc/gcc-4.8/0001-fix-ICE-when-building-opus.patch new file mode 100644 index 000..9d3aeaa --- /dev/null +++ b/meta/recipes-devtools/gcc/gcc-4.8/0001-fix-ICE-when-building-opus.patch @@ -0,0 +1,121 @@ +From 8d8ba86c70381f7c34c22ac6994234d0f3e7 Mon Sep 17 00:00:00 2001 +From: xguo xguo@138bc75d-0d04-0410-961f-82ee72b054a4 +Date: Fri, 9 Aug 2013 06:59:01 + +Subject: [PATCH] gcc/ChangeLog: + +Backport from mainline: +2013-08-09 Zhenqiang Chen zhenqiang.c...@linaro.org + +* config/arm/neon.md (vcond): Fix floating-point vector +comparisons against 0. + +gcc/testsuite/ChangeLog: + +Backport from mainline: +2013-08-09 Zhenqiang Chen zhenqiang.c...@linaro.org + +* gcc.target/arm/lp1189445.c: New testcase. + +Upstream-Status: Backport from 4.8.2 +Signed-off-by: Martin Jansa martin.ja...@gmail.com + +More details in: +http://gcc.1065356.n5.nabble.com/PATCH-ARM-Fix-unrecognizable-vector-comparisons-td947064.html + +git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-4_8-branch@201620 138bc75d-0d04-0410-961f-82ee72b054a4 +--- + gcc/ChangeLog| 8 + gcc/config/arm/neon.md | 34 +++- + gcc/testsuite/ChangeLog | 7 +++ + gcc/testsuite/gcc.target/arm/lp1189445.c | 18 + + 4 files changed, 62 insertions(+), 5 deletions(-) + create mode 100644 gcc/testsuite/gcc.target/arm/lp1189445.c + +diff --git a/gcc/config/arm/neon.md b/gcc/config/arm/neon.md +index d8d4202..86a5932 100644 +--- a/gcc/config/arm/neon.md b/gcc/config/arm/neon.md +@@ -1732,6 +1732,7 @@ + ? 3 : 1; + rtx magic_rtx = GEN_INT (magic_word); + int inverse = 0; ++ int use_zero_form = 0; + int swap_bsl_operands = 0; + rtx mask = gen_reg_rtx (V_cmp_resultmode); + rtx tmp = gen_reg_rtx (V_cmp_resultmode); +@@ -1742,12 +1743,16 @@ + switch (GET_CODE (operands[3])) + { + case GE: ++case GT: + case LE: ++case LT: + case EQ: +- if (!REG_P (operands[5]) +- (operands[5] != CONST0_RTX (MODEmode))) +-operands[5] = force_reg (MODEmode, operands[5]); +- break; ++ if (operands[5] == CONST0_RTX (MODEmode)) ++{ ++ use_zero_form = 1; ++ break; ++} ++ /* Fall through. */ + default: + if (!REG_P (operands[5])) + operands[5] = force_reg (MODEmode, operands[5]); +@@ -1798,7 +1803,26 @@ + a GT b - a GT b + a LE b - b GE a + a LT b - b GT a +- a EQ b - a EQ b */ ++ a EQ b - a EQ b ++ Note that there also exist direct comparison against 0 forms, ++ so catch those as a special case. */ ++ if (use_zero_form) ++{ ++ inverse = 0; ++ switch (GET_CODE (operands[3])) ++{ ++case LT: ++ base_comparison = gen_neon_vcltmode; ++ break; ++case LE: ++ base_comparison = gen_neon_vclemode; ++ break; ++default: ++ /* Do nothing, other zero form cases already have the correct ++ base_comparison. */ ++ break; ++} ++} + + if (!inverse) + emit_insn (base_comparison (mask, operands[4], operands[5], magic_rtx)); +diff --git a/gcc/testsuite/gcc.target/arm/lp1189445.c b/gcc/testsuite/gcc.target/arm/lp1189445.c +new file mode 100644 +index 000..766748e +--- /dev/null b/gcc/testsuite/gcc.target/arm/lp1189445.c +@@ -0,0 +1,18 @@ ++/* { dg-do compile } */ ++/* { dg-require-effective-target arm_neon } */ ++/* { dg-add-options arm_neon } */
Re: [OE-core] [PATCH 1/1] package.bbclass: ensure correct modes on directories
On Thu, 2014-07-17 at 10:08 +0800, Chen Qi wrote: fstat = cpath.stat(src) os.mkdir(dest, fstat.st_mode) +os.chmod(dest, fstat.st_mode) This doesn't make sense. Shouldn't the fstat.st_mode to os.mkdir have taken care of the mode for us? Cheers, Richard -- ___ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-core
[OE-core] [PATCH V2] user-session-units: added to oe-core
systemd needs this to launch user sessions. Signed-off-by: Valentin Popa valentin.p...@intel.com --- ...temd-login-lib-was-merged-into-libsystemd.patch | 28 ++ .../user-session-units/user-session-units_9.bb | 25 +++ 2 files changed, 53 insertions(+) create mode 100644 meta/recipes-support/user-session-units/user-session-units/0001-systemd-login-lib-was-merged-into-libsystemd.patch create mode 100644 meta/recipes-support/user-session-units/user-session-units_9.bb diff --git a/meta/recipes-support/user-session-units/user-session-units/0001-systemd-login-lib-was-merged-into-libsystemd.patch b/meta/recipes-support/user-session-units/user-session-units/0001-systemd-login-lib-was-merged-into-libsystemd.patch new file mode 100644 index 000..6fd194c --- /dev/null +++ b/meta/recipes-support/user-session-units/user-session-units/0001-systemd-login-lib-was-merged-into-libsystemd.patch @@ -0,0 +1,28 @@ +From f80245dbdc5b29fe8dbe9b39482d41fbca044fe6 Mon Sep 17 00:00:00 2001 +From: Valentin Popa valentin.p...@intel.com +Date: Mon, 26 May 2014 10:04:13 +0300 +Subject: [PATCH] systemd-login lib was merged into libsystemd + +Upstream-Status: Pending + +Signed-off-by: Valentin Popa valentin.p...@intel.com +--- + Makefile.am | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/Makefile.am b/Makefile.am +index a2f960c..7186b10 100644 +--- a/Makefile.am b/Makefile.am +@@ -21,7 +21,7 @@ user_session_launch_SOURCES = \ + + # FIXME: add pkgconfig checks for these instead + user_session_launch_LDADD = \ +- -lsystemd-login \ ++ -lsystemd \ + -lpam \ + -lpam_misc + +-- +1.9.1 + diff --git a/meta/recipes-support/user-session-units/user-session-units_9.bb b/meta/recipes-support/user-session-units/user-session-units_9.bb new file mode 100644 index 000..ad2f683 --- /dev/null +++ b/meta/recipes-support/user-session-units/user-session-units_9.bb @@ -0,0 +1,25 @@ +SUMMARY = systemd units to start a user session + +LICENSE = LGPLv2.1 +LIC_FILES_CHKSUM = file://COPYING;md5=4fbd65380cdd255951079008b364516c + +SRC_URI = http://foo-projects.org/~sofar/${BPN}/${BPN}-${PV}.tar.gz \ + file://0001-systemd-login-lib-was-merged-into-libsystemd.patch + +SRC_URI[md5sum] = 30d26fec6e3e221072c59554c93ecde0 +SRC_URI[sha256sum] = edfc0df890981708e1a09e8488bb91384b6739d76867d3fe2417b03265361717 + +DEPENDS = systemd dbus libpam + +inherit autotools pkgconfig + +# Seed configure so it doesn't look on the host host for gnome/xfce/etc. +EXTRA_OECONF = ac_cv_prog_E_PROG= \ + ac_cv_prog_XFCE_PROG= \ + ac_cv_prog_XFWM_PROG= \ + ac_cv_prog_XBMC_PROG= \ + ac_cv_prog_GNOME_PROG= \ + ac_cv_prog_KDE_PROG= \ + ac_cv_prog_MYTH_PROG= + +FILES_${PN} = ${systemd_unitdir}/ ${libdir}/systemd/user/ ${bindir}/ -- 1.9.1 -- ___ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-core
Re: [OE-core] [PATCH] gcc-4.8: backport fix for ICE when building opus
On Fri, Jul 18, 2014 at 02:24:26PM +0100, Richard Purdie wrote: On Fri, 2014-07-18 at 01:15 +0200, Martin Jansa wrote: From: Martin Jansa martin.ja...@lge.com * backported from 4.8.2, so daisy isn't affected Signed-off-by: Martin Jansa martin.ja...@lge.com --- meta/recipes-devtools/gcc/gcc-4.8.inc | 1 + .../gcc-4.8/0001-fix-ICE-when-building-opus.patch | 121 + 2 files changed, 122 insertions(+) create mode 100644 meta/recipes-devtools/gcc/gcc-4.8/0001-fix-ICE-when-building-opus.patch Doesn't apply against master? * backported from 4.8.2, so daisy isn't affected 4.8.2 and 4.9.0 in master also aren't affected :) Cheers, Richard diff --git a/meta/recipes-devtools/gcc/gcc-4.8.inc b/meta/recipes-devtools/gcc/gcc-4.8.inc index f1260af..ac205de 100644 --- a/meta/recipes-devtools/gcc/gcc-4.8.inc +++ b/meta/recipes-devtools/gcc/gcc-4.8.inc @@ -79,6 +79,7 @@ SRC_URI = ${GNU_MIRROR}/gcc/gcc-${PV}/gcc-${PV}.tar.bz2 \ file://0047-repomembug.patch \ file://0048-PR57532.patch \ file://0048-PR58854_fix_arm_apcs_epilogue.patch \ + file://0001-fix-ICE-when-building-opus.patch \ SRC_URI[md5sum] = 3b2386c114cd74185aa3754b58a79304 SRC_URI[sha256sum] = 545b44be3ad9f2c4e90e6880f5c9d4f0a8f0e5f67e1ffb0d45da9fa01bb05813 diff --git a/meta/recipes-devtools/gcc/gcc-4.8/0001-fix-ICE-when-building-opus.patch b/meta/recipes-devtools/gcc/gcc-4.8/0001-fix-ICE-when-building-opus.patch new file mode 100644 index 000..9d3aeaa --- /dev/null +++ b/meta/recipes-devtools/gcc/gcc-4.8/0001-fix-ICE-when-building-opus.patch @@ -0,0 +1,121 @@ +From 8d8ba86c70381f7c34c22ac6994234d0f3e7 Mon Sep 17 00:00:00 2001 +From: xguo xguo@138bc75d-0d04-0410-961f-82ee72b054a4 +Date: Fri, 9 Aug 2013 06:59:01 + +Subject: [PATCH] gcc/ChangeLog: + +Backport from mainline: +2013-08-09 Zhenqiang Chen zhenqiang.c...@linaro.org + +* config/arm/neon.md (vcond): Fix floating-point vector +comparisons against 0. + +gcc/testsuite/ChangeLog: + +Backport from mainline: +2013-08-09 Zhenqiang Chen zhenqiang.c...@linaro.org + +* gcc.target/arm/lp1189445.c: New testcase. + +Upstream-Status: Backport from 4.8.2 +Signed-off-by: Martin Jansa martin.ja...@gmail.com + +More details in: +http://gcc.1065356.n5.nabble.com/PATCH-ARM-Fix-unrecognizable-vector-comparisons-td947064.html + +git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-4_8-branch@201620 138bc75d-0d04-0410-961f-82ee72b054a4 +--- + gcc/ChangeLog| 8 + gcc/config/arm/neon.md | 34 +++- + gcc/testsuite/ChangeLog | 7 +++ + gcc/testsuite/gcc.target/arm/lp1189445.c | 18 + + 4 files changed, 62 insertions(+), 5 deletions(-) + create mode 100644 gcc/testsuite/gcc.target/arm/lp1189445.c + +diff --git a/gcc/config/arm/neon.md b/gcc/config/arm/neon.md +index d8d4202..86a5932 100644 +--- a/gcc/config/arm/neon.md b/gcc/config/arm/neon.md +@@ -1732,6 +1732,7 @@ +? 3 : 1; + rtx magic_rtx = GEN_INT (magic_word); + int inverse = 0; ++ int use_zero_form = 0; + int swap_bsl_operands = 0; + rtx mask = gen_reg_rtx (V_cmp_resultmode); + rtx tmp = gen_reg_rtx (V_cmp_resultmode); +@@ -1742,12 +1743,16 @@ + switch (GET_CODE (operands[3])) + { + case GE: ++case GT: + case LE: ++case LT: + case EQ: +- if (!REG_P (operands[5]) +- (operands[5] != CONST0_RTX (MODEmode))) +- operands[5] = force_reg (MODEmode, operands[5]); +- break; ++ if (operands[5] == CONST0_RTX (MODEmode)) ++ { ++use_zero_form = 1; ++break; ++ } ++ /* Fall through. */ + default: + if (!REG_P (operands[5])) + operands[5] = force_reg (MODEmode, operands[5]); +@@ -1798,7 +1803,26 @@ +a GT b - a GT b +a LE b - b GE a +a LT b - b GT a +- a EQ b - a EQ b */ ++ a EQ b - a EQ b ++ Note that there also exist direct comparison against 0 forms, ++ so catch those as a special case. */ ++ if (use_zero_form) ++ { ++inverse = 0; ++switch (GET_CODE (operands[3])) ++ { ++ case LT: ++base_comparison = gen_neon_vcltmode; ++break; ++ case LE: ++base_comparison = gen_neon_vclemode; ++break; ++ default: ++/* Do nothing, other zero form cases already have the correct ++ base_comparison. */ ++break; ++ } ++ } + + if (!inverse) + emit_insn (base_comparison (mask, operands[4], operands[5], magic_rtx)); +diff --git a/gcc/testsuite/gcc.target/arm/lp1189445.c b/gcc/testsuite/gcc.target/arm/lp1189445.c +new file
Re: [OE-core] [PATCH 1/1] image.bbclass/rootfs.py: add variables to rootfs[vardeps]
On 18 July 2014 14:20, Roxana Ciobanu roxana.ciob...@intel.com wrote: +def rootfs_variables(d): +from oe.rootfs import variable_depends +deps = variable_depends(d) +variables = IMAGE_DEVICE_TABLES BUILD_IMAGES_FROM_FEEDS IMAGE_TYPEDEP_ IMAGE_TYPES_MASKED IMAGE_ROOTFS_ALIGNMENT [snip] NO_RECOMMENDATIONS PACKAGE_ARCHS PACKAGE_CLASSES +# keep line under 998 characters +variables += TARGET_VENDOR TARGET_VENDOR TARGET_ARCH TARGET_OS OVERRIDES BBEXTENDVARIANT FEED_DEPLOYDIR_BASE_URI INTERCEPT_DIR BUILDNAME USE_DEVFS STAGING_KERNEL_DIR COMPRESSIONTYPES +return ' '.join([variables, deps]) So a neater way of doing this would be to do: variables = ['BUILD_IMAGES_FROM_FEEDS', 'PACKAGE_ARCHS', (etc)] This list can be wrapped appropriately so that it doesn't take up a few pages and also isn't a single massive line. Then add the variable from the rootfs with: variables.extend(variable_depends()) return .join(variables) +def variable_depends(d, manifest_dir=None): +img_type = d.getVar('IMAGE_PKGTYPE', True) +cls = get_class_for_type(img_type) +return .join(cls._depends_list()) If the above change happens then this should return the list, not a joined string. Ross -- ___ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-core
[OE-core] [PATCH v2] alsa-tools: Disable use of GTK+ when not using X11
The GTK+3 does not provide support for DirectFB backend so we cannot enable GTK+ features of alsa-tools in this case; GTK+2 does not provide support for Wayland. This patch changes GTK+ support to be enabled only when X11 support is enabled. Signed-off-by: Otavio Salvador ota...@ossystems.com.br --- meta/recipes-multimedia/alsa/alsa-tools_1.0.27.bb |6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/meta/recipes-multimedia/alsa/alsa-tools_1.0.27.bb b/meta/recipes-multimedia/alsa/alsa-tools_1.0.27.bb index 62d71ea..bca7170 100644 --- a/meta/recipes-multimedia/alsa/alsa-tools_1.0.27.bb +++ b/meta/recipes-multimedia/alsa/alsa-tools_1.0.27.bb @@ -11,8 +11,8 @@ LIC_FILES_CHKSUM = file://hdsploader/COPYING;md5=94d55d512a9ba36caa9b7df079bae1 SRC_URI = ftp://ftp.alsa-project.org/pub/tools/alsa-tools-${PV}.tar.bz2 \ file://mips_has_no_io_h.patch \ file://autotools.patch \ - ${@bb.utils.contains_any('DISTRO_FEATURES', 'x11 wayland directfb', '', \ -'file://makefile_no_gtk.patch', d)} + ${@bb.utils.contains('DISTRO_FEATURES', 'x11', '', \ +'file://makefile_no_gtk.patch', d)} SRC_URI[md5sum] = 1ea381d00a6069a98613aa7effa4cb51 SRC_URI[sha256sum] = 6562611b5a6560712f109e09740a9d4fa47296b07ed9590cb44139c5f154ada2 @@ -21,7 +21,7 @@ inherit autotools-brokensep pkgconfig EXTRA_OEMAKE += GITCOMPILE_ARGS='--host=${HOST_SYS} --build=${BUILD_SYS} --target=${TARGET_SYS} --with-libtool-sysroot=${STAGING_DIR_HOST} --prefix=${prefix}' -PACKAGECONFIG ??= ${@bb.utils.contains_any('DISTRO_FEATURES', 'x11 wayland directfb', 'gtk+', '', d)} +PACKAGECONFIG ??= ${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'gtk+', '', d)} PACKAGECONFIG[gtk+] = ,,gtk+ gtk+3, # configure.ac/.in doesn't exist so force copy -- 1.7.10.4 -- ___ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-core
[OE-core] [PATCH] rootfs: Remove the extraneous install directory
The /install/tmp diectory is created during installation by the smart package manager, we need to clean it up here [YOCTO #6497] Signed-off-by: Saul Wold s...@linux.intel.com --- meta/lib/oe/rootfs.py | 1 + 1 file changed, 1 insertion(+) diff --git a/meta/lib/oe/rootfs.py b/meta/lib/oe/rootfs.py index bc2524f..b34856c 100644 --- a/meta/lib/oe/rootfs.py +++ b/meta/lib/oe/rootfs.py @@ -379,6 +379,7 @@ class RpmRootfs(Rootfs): # __db.00* (Berkeley DB files that hold locks, rpm specific environment # settings, etc.), that should not get into the final rootfs self.pm.unlock_rpm_db() +bb.utils.remove(self.image_rootfs + /install, True) class DpkgRootfs(Rootfs): -- 1.8.3.1 -- ___ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-core
Re: [OE-core] [yocto] [PATCH] _json module arbitrary process memory read vulnerability
On 07/17/2014 03:27 AM, Daniel BORNAZ wrote: python-native: _json module arbitrary process memory read vulnerability This should be the proper subject of the mail and commit, please update and see below. http://bugs.python.org/issue21529 Python 2 and 3 are susceptible to arbitrary process memory reading by a user or adversary due to a bug in the _json module caused by insufficient bounds checking. The sole prerequisites of this attack are that the attacker is able to control or influence the two parameters of the default scanstring function: the string to be decoded and the index. The bug is caused by allowing the user to supply a negative index value. The index value is then used directly as an index to an array in the C code; internally the address of the array and its index are added to each other in order to yield the address of the value that is desired. However, by supplying a negative index value and adding this to the address of the array, the processor's register value wraps around and the calculated value will point to a position in memory which isn't within the bounds of the supplied string, causing the function to access other parts of the process memory. Signed-off-by: Benjamin Peterson benja...@python.org Applied to python-native recipe in order to fix the above mentioned vulnerability. Upstream-Status: Submitted Signed-off-by: Daniel BORNAZ daniel.bor...@enea.com --- meta/recipes-devtools/python/python-native_2.7.3.bb | 1 + .../python/python/python-json-flaw-fix.patch | 20 2 files changed, 21 insertions(+) create mode 100644 meta/recipes-devtools/python/python/python-json-flaw-fix.patch diff --git a/meta/recipes-devtools/python/python-native_2.7.3.bb b/meta/recipes-devtools/python/python-native_2.7.3.bb index 0571d3a..74f0dfc 100644 --- a/meta/recipes-devtools/python/python-native_2.7.3.bb +++ b/meta/recipes-devtools/python/python-native_2.7.3.bb @@ -19,6 +19,7 @@ SRC_URI += \ file://parallel-makeinst-create-bindir.patch \ file://python-fix-build-error-with-Readline-6.3.patch \ file://gcc-4.8-fix-configure-Wformat.patch \ + file://python-json-flaw-fix.patch \ S = ${WORKDIR}/Python-${PV} diff --git a/meta/recipes-devtools/python/python/python-json-flaw-fix.patch b/meta/recipes-devtools/python/python/python-json-flaw-fix.patch new file mode 100644 index 000..631713d This patch file needs a Signed-off-by and Upstream-Status. Thanks --- /dev/null +++ b/meta/recipes-devtools/python/python/python-json-flaw-fix.patch @@ -0,0 +1,20 @@ +--- a/Modules/_json.c 2014-07-15 15:37:17.151046356 +0200 b/Modules/_json.c 2014-07-15 15:38:37.335605042 +0200 +@@ -1491,7 +1491,7 @@ scan_once_str(PyScannerObject *s, PyObje + PyObject *res; + char *str = PyString_AS_STRING(pystr); + Py_ssize_t length = PyString_GET_SIZE(pystr); +-if (idx = length) { ++if ( idx 0 || idx = length) { + PyErr_SetNone(PyExc_StopIteration); + return NULL; + } +@@ -1578,7 +1578,7 @@ scan_once_unicode(PyScannerObject *s, Py + PyObject *res; + Py_UNICODE *str = PyUnicode_AS_UNICODE(pystr); + Py_ssize_t length = PyUnicode_GET_SIZE(pystr); +-if (idx = length) { ++if ( idx 0 || idx = length) { + PyErr_SetNone(PyExc_StopIteration); + return NULL; + } -- ___ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-core
Re: [OE-core] [PATCH V2] user-session-units: added to oe-core
On 07/18/2014 07:06 AM, Valentin Popa wrote: systemd needs this to launch user sessions. Signed-off-by: Valentin Popa valentin.p...@intel.com --- ...temd-login-lib-was-merged-into-libsystemd.patch | 28 ++ .../user-session-units/user-session-units_9.bb | 25 +++ 2 files changed, 53 insertions(+) create mode 100644 meta/recipes-support/user-session-units/user-session-units/0001-systemd-login-lib-was-merged-into-libsystemd.patch create mode 100644 meta/recipes-support/user-session-units/user-session-units_9.bb diff --git a/meta/recipes-support/user-session-units/user-session-units/0001-systemd-login-lib-was-merged-into-libsystemd.patch b/meta/recipes-support/user-session-units/user-session-units/0001-systemd-login-lib-was-merged-into-libsystemd.patch new file mode 100644 index 000..6fd194c --- /dev/null +++ b/meta/recipes-support/user-session-units/user-session-units/0001-systemd-login-lib-was-merged-into-libsystemd.patch @@ -0,0 +1,28 @@ +From f80245dbdc5b29fe8dbe9b39482d41fbca044fe6 Mon Sep 17 00:00:00 2001 +From: Valentin Popa valentin.p...@intel.com +Date: Mon, 26 May 2014 10:04:13 +0300 +Subject: [PATCH] systemd-login lib was merged into libsystemd + +Upstream-Status: Pending + +Signed-off-by: Valentin Popa valentin.p...@intel.com +--- + Makefile.am | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/Makefile.am b/Makefile.am +index a2f960c..7186b10 100644 +--- a/Makefile.am b/Makefile.am +@@ -21,7 +21,7 @@ user_session_launch_SOURCES = \ + + # FIXME: add pkgconfig checks for these instead + user_session_launch_LDADD = \ +- -lsystemd-login \ ++ -lsystemd \ + -lpam \ + -lpam_misc + +-- +1.9.1 + diff --git a/meta/recipes-support/user-session-units/user-session-units_9.bb b/meta/recipes-support/user-session-units/user-session-units_9.bb new file mode 100644 index 000..ad2f683 --- /dev/null +++ b/meta/recipes-support/user-session-units/user-session-units_9.bb @@ -0,0 +1,25 @@ +SUMMARY = systemd units to start a user session + +LICENSE = LGPLv2.1 +LIC_FILES_CHKSUM = file://COPYING;md5=4fbd65380cdd255951079008b364516c + +SRC_URI = http://foo-projects.org/~sofar/${BPN}/${BPN}-${PV}.tar.gz \ + file://0001-systemd-login-lib-was-merged-into-libsystemd.patch + +SRC_URI[md5sum] = 30d26fec6e3e221072c59554c93ecde0 +SRC_URI[sha256sum] = edfc0df890981708e1a09e8488bb91384b6739d76867d3fe2417b03265361717 + +DEPENDS = systemd dbus libpam + Will this project build without systemd? When attempting to build world without systemd enabled in DISTRO_FEATURES I get the following errors: ERROR: Nothing PROVIDES 'systemd' (but /home/sgw/yocto/poky/meta/recipes-support/user-session-units/user-session-units_9.bb DEPENDS on or otherwise requires it) ERROR: systemd was skipped: 'systemd' not in DISTRO_FEATURES ERROR: Nothing RPROVIDES 'user-session-units-dev' (but /home/sgw/yocto/poky/meta/recipes-support/user-session-units/user-session-units_9.bb RDEPENDS on or otherwise requires it) ERROR: No eligible RPROVIDERs exist for 'user-session-units-dev' NOTE: Runtime target 'user-session-units-dev' is unbuildable, removing... Missing or unbuildable dependency chain was: ['user-session-units-dev'] ERROR: Nothing RPROVIDES 'user-session-units' (but /home/sgw/yocto/poky/meta/recipes-support/user-session-units/user-session-units_9.bb RDEPENDS on or otherwise requires it) ERROR: No eligible RPROVIDERs exist for 'user-session-units' NOTE: Runtime target 'user-session-units' is unbuildable, removing... Missing or unbuildable dependency chain was: ['user-session-units'] Can you please look into this. Sau! +inherit autotools pkgconfig + +# Seed configure so it doesn't look on the host host for gnome/xfce/etc. +EXTRA_OECONF = ac_cv_prog_E_PROG= \ + ac_cv_prog_XFCE_PROG= \ + ac_cv_prog_XFWM_PROG= \ + ac_cv_prog_XBMC_PROG= \ + ac_cv_prog_GNOME_PROG= \ + ac_cv_prog_KDE_PROG= \ + ac_cv_prog_MYTH_PROG= + +FILES_${PN} = ${systemd_unitdir}/ ${libdir}/systemd/user/ ${bindir}/ -- ___ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-core
[OE-core] [PATCH 0/1] pseudo 1.6.1
* Remove the uninformative already offline message. * Stop trying to request x86-specific versions of memcpy on non-x86. Tarball's been submitted to pidge but may take a while to show up. The following changes since commit a449598a839e677e2a094aa4bd9a68003de6e42e: bdwgc: Add PACKAGECONFIG for libatomic-ops (2014-07-17 15:04:07 +0100) are available in the git repository at: git://git.yoctoproject.org/poky-contrib seebs/pseudo-161 http://git.yoctoproject.org/cgit.cgi/poky-contrib/log/?h=seebs/pseudo-161 Peter Seebach (1): pseudo: uprev to 1.6.1 .../pseudo/{pseudo_1.6.0.bb = pseudo_1.6.1.bb}|4 ++-- meta/recipes-devtools/pseudo/pseudo_git.bb |4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) rename meta/recipes-devtools/pseudo/{pseudo_1.6.0.bb = pseudo_1.6.1.bb} (52%) -- ___ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-core
[OE-core] [PATCH 1/1] pseudo: uprev to 1.6.1
Pseudo now automatically tries to shut down the server after running single commands under pseudo (pseudo cmd), which means it can print a useless server already offline message in some cases. The message has been changed to a debugging message only. The glibc symbol versions for memcpy were being applied to non-x86 targets, unintentionally, which broke builds for at least some targets. (But pseudo doesn't usually get built for targets so it didn't get noticed right away.) Signed-off-by: Peter Seebach peter.seeb...@windriver.com --- .../pseudo/{pseudo_1.6.0.bb = pseudo_1.6.1.bb}|4 ++-- meta/recipes-devtools/pseudo/pseudo_git.bb |4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) rename meta/recipes-devtools/pseudo/{pseudo_1.6.0.bb = pseudo_1.6.1.bb} (52%) diff --git a/meta/recipes-devtools/pseudo/pseudo_1.6.0.bb b/meta/recipes-devtools/pseudo/pseudo_1.6.1.bb similarity index 52% rename from meta/recipes-devtools/pseudo/pseudo_1.6.0.bb rename to meta/recipes-devtools/pseudo/pseudo_1.6.1.bb index e92c4d7..2dff823 100644 --- a/meta/recipes-devtools/pseudo/pseudo_1.6.0.bb +++ b/meta/recipes-devtools/pseudo/pseudo_1.6.1.bb @@ -4,7 +4,7 @@ SRC_URI = \ http://www.yoctoproject.org/downloads/${BPN}/${BPN}-${PV}.tar.bz2 \ -SRC_URI[md5sum] = 78c3f8aa8efe8cf15a2b21261174e3b6 -SRC_URI[sha256sum] = e24f526443b31c3292ec5ba04950d230b5388e8983c7e192e9e489c007f3dba3 +SRC_URI[md5sum] = c19e4811635d12f2a923e47061c7d336 +SRC_URI[sha256sum] = de9cc755b786bfbe2d416d35fab340f2b8ef9904cb2801be3092eeb7446a7c37 PSEUDO_EXTRA_OPTS ?= --enable-force-async diff --git a/meta/recipes-devtools/pseudo/pseudo_git.bb b/meta/recipes-devtools/pseudo/pseudo_git.bb index ef258fa..d599cfb 100644 --- a/meta/recipes-devtools/pseudo/pseudo_git.bb +++ b/meta/recipes-devtools/pseudo/pseudo_git.bb @@ -1,7 +1,7 @@ require pseudo.inc -SRCREV = 512b84fb539c970464a93107995edf0e775d13fa -PV = 1.6.0+git${SRCPV} +SRCREV = 2765805641f09109029b88b38f27256dc1b52ba3 +PV = 1.6.1+git${SRCPV} DEFAULT_PREFERENCE = -1 -- 1.7.1 -- ___ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-core
[OE-core] patches can be either .patch or .diff files, yes?
not sure where i saw this recently (i'll track it down), but some OE or yocto doc claimed that patch files *must* be suffixed with .patch. i'm pretty sure it can be either .patch or .diff, correct? as in, it's perfectly valid to do this in a .bbappend file: SRC_URI += file://0001-first-change.patch SRC_URI += file://0002-first-change.patch SRC_URI += file://0003-first-change.diff as long as the filenames match, of course. yes? rday -- Robert P. J. Day Ottawa, Ontario, CANADA http://crashcourse.ca Twitter: http://twitter.com/rpjday LinkedIn: http://ca.linkedin.com/in/rpjday -- ___ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-core
Re: [OE-core] patches can be either .patch or .diff files, yes?
On 18 July 2014 19:58, Robert P. J. Day rpj...@crashcourse.ca wrote: not sure where i saw this recently (i'll track it down), but some OE or yocto doc claimed that patch files *must* be suffixed with .patch. i'm pretty sure it can be either .patch or .diff, correct? as in, it's perfectly valid to do this in a .bbappend file: SRC_URI += file://0001-first-change.patch SRC_URI += file://0002-first-change.patch SRC_URI += file://0003-first-change.diff as long as the filenames match, of course. yes? For a file to be handled automatically as a patch it must be .diff or .patch, and it appears that it can be optionally compressed (identifying extensions being .Z .gz .bz2), so foo.patch and bar.diff.gz are both automatically applied patches. Ross -- ___ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-core
Re: [OE-core] [oe-commits] Cristian Iorga : qemu: fix qemu-native pkg-config paths
On Thu, Jul 03, 2014 at 04:47:08PM +, g...@git.openembedded.org wrote: Module: openembedded-core.git Branch: master Commit: 68a5ed337f8f7ee8e5bf55542ec82d786eb754db URL: http://git.openembedded.org/?p=openembedded-core.gita=commit;h=68a5ed337f8f7ee8e5bf55542ec82d786eb754db Author: Cristian Iorga cristian.io...@intel.com Date: Thu Jul 3 15:57:32 2014 +0300 qemu: fix qemu-native pkg-config paths For qemu-native, the pkg-config paths do not include build host paths. This breaks qemu-native builds on hosts without pkg-config. pkg-config isn't in sanity.bbclass's SANITY_REQUIRED_UTILITIES and this is first recipe which cannot use pkgconfig-native. Please add test that it exists before forcing recipe to use it. This is an issue for libsdl for example, where SDL is used by qemu, but for qemu-native libsdl-native is not built, but assumed to be provided by the build host. Because pkg-config do not search for libsdl config files on the build host sysroot, the configure stage of qemu-native will fail because it will not find SDL as being installed. Usually, the isssue is masked by a functional sdl-config that will be interogated instead of pkg-config. However, on Build Appliance, sdl-config is deliberately made non-functional, so the issue manifests itself. The fix will create an extended PKG_CONFIG_PATH, which does include the build host sysroot paths for pkg-config. Fix for [YOCTO #6495]. Signed-off-by: Cristian Iorga cristian.io...@intel.com Signed-off-by: Richard Purdie richard.pur...@linuxfoundation.org --- meta/recipes-devtools/qemu/qemu.inc | 4 1 file changed, 4 insertions(+) diff --git a/meta/recipes-devtools/qemu/qemu.inc b/meta/recipes-devtools/qemu/qemu.inc index 076e8ad..611ee61 100644 --- a/meta/recipes-devtools/qemu/qemu.inc +++ b/meta/recipes-devtools/qemu/qemu.inc @@ -33,6 +33,10 @@ EXTRA_OECONF_class-nativesdk = --target-list=${@get_qemu_target_list(d)} --disa export LIBTOOL=${HOST_SYS}-libtool do_configure_prepend_class-native() { + # Append build host pkg-config paths for native target since the host may provide sdl + BHOST_PKGCONFIG_PATH=$(PATH=/usr/bin:/bin pkg-config --variable pc_path pkg-config) + export PKG_CONFIG_PATH=$PKG_CONFIG_PATH:$BHOST_PKGCONFIG_PATH + # Undo the -lX11 added by linker-flags.patch, don't assume that host has libX11 installed sed -i 's/-lX11//g' Makefile.target } -- ___ Openembedded-commits mailing list openembedded-comm...@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-commits -- Martin 'JaMa' Jansa jabber: martin.ja...@gmail.com signature.asc Description: Digital signature -- ___ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-core
Re: [OE-core] patches can be either .patch or .diff files, yes?
On Fri, 18 Jul 2014, Burton, Ross wrote: On 18 July 2014 19:58, Robert P. J. Day rpj...@crashcourse.ca wrote: not sure where i saw this recently (i'll track it down), but some OE or yocto doc claimed that patch files *must* be suffixed with .patch. i'm pretty sure it can be either .patch or .diff, correct? as in, it's perfectly valid to do this in a .bbappend file: SRC_URI += file://0001-first-change.patch SRC_URI += file://0002-first-change.patch SRC_URI += file://0003-first-change.diff as long as the filenames match, of course. yes? For a file to be handled automatically as a patch it must be .diff or .patch, and it appears that it can be optionally compressed (identifying extensions being .Z .gz .bz2), so foo.patch and bar.diff.gz are both automatically applied patches. quite so, i just noticed that in patch.bbclass, good to know. rday -- Robert P. J. Day Ottawa, Ontario, CANADA http://crashcourse.ca Twitter: http://twitter.com/rpjday LinkedIn: http://ca.linkedin.com/in/rpjday -- ___ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-core
Re: [OE-core] [PATCH 2/2] default-distrovars: update license whitelists to use canonical names
On 07/16/2014 02:08 PM, Ross Burton wrote: Now that all licenses are canonicalised to SPDX names when processing, we need to rename the whitelists to the match. Signed-off-by: Ross Burton ross.bur...@intel.com --- meta/conf/distro/include/default-distrovars.inc |6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/meta/conf/distro/include/default-distrovars.inc b/meta/conf/distro/include/default-distrovars.inc index 1bc8e46..8d24d66 100644 --- a/meta/conf/distro/include/default-distrovars.inc +++ b/meta/conf/distro/include/default-distrovars.inc @@ -23,9 +23,9 @@ IMAGE_FEATURES ?= # This is a list of packages that are used by the build system to build the distribution, they are not # directly part of the distribution. -HOSTTOOLS_WHITELIST_GPLv3 ?= -WHITELIST_GPLv3 ?= less -LGPLv2_WHITELIST_GPLv3 ?= libassuan gnutls libtasn1 libidn libgcc libgcc-initial gcc-runtime +HOSTTOOLS_WHITELIST_GPL-3.0 ?= +WHITELIST_GPL-3.0 ?= less +LGPLv2_WHITELIST_GPL-3.0 ?= libassuan gnutls libtasn1 libidn libgcc libgcc-initial gcc-runtime This change seems to make multilib builds unhappy, both on the Autobuilder and locally, see attached output. Sau! COMMERCIAL_AUDIO_PLUGINS ?= # COMMERCIAL_AUDIO_PLUGINS ?= gst-plugins-ugly-mad gst-plugins-ugly-mpegaudioparse Parsing recipes...ERROR: Execution of event handler 'multilib_virtclass_handler' failed Traceback (most recent call last): File multilib_virtclass_handler(e), line 55, in multilib_virtclass_handler(e=bb.event.RecipePreFinalise object at 0xaa61110) AttributeError: 'NoneType' object has no attribute 'split' ERROR: Execution of event handler 'multilib_virtclass_handler' failed Traceback (most recent call last): File multilib_virtclass_handler(e), line 55, in multilib_virtclass_handler(e=bb.event.RecipePreFinalise object at 0xc2d9bd0) AttributeError: 'NoneType' object has no attribute 'split' ERROR: Execution of event handler 'multilib_virtclass_handler' failed Traceback (most recent call last): File multilib_virtclass_handler(e), line 55, in multilib_virtclass_handler(e=bb.event.RecipePreFinalise object at 0x2eec3d0) AttributeError: 'NoneType' object has no attribute 'split' ERROR: Unable to parse /srv/ssd/poky/meta-yocto/recipes-core/tiny-init/tiny-init.bb Traceback (most recent call last): File /srv/ssd/poky/bitbake/lib/bb/parse/ast.py, line 320, in finalize(fn='/srv/ssd/poky/meta-yocto/recipes-core/tiny-init/tiny-init.bb', d=bb.data_smart.DataSmart object at 0x4eb9690, variant='multilib:lib32'): bb.event.fire(bb.event.RecipePreFinalise(fn), d) File /srv/ssd/poky/bitbake/lib/bb/event.py, line 158, in fire(event=bb.event.RecipePreFinalise object at 0xaa61110, d=bb.data_smart.DataSmart object at 0x4eb9690): fire_class_handlers(event, d) if worker_fire: File /srv/ssd/poky/bitbake/lib/bb/event.py, line 97, in fire_class_handlers(event=bb.event.RecipePreFinalise object at 0xaa61110, d=bb.data_smart.DataSmart object at 0x4eb9690): if name in _catchall_handlers or name in evt_hmap: execute_handler(name, handler, event, d) File /srv/ssd/poky/bitbake/lib/bb/event.py, line 74, in execute_handler(name='multilib_virtclass_handler', handler=function multilib_virtclass_handler at 0x2eff140, event=bb.event.RecipePreFinalise object at 0xaa61110, d=bb.data_smart.DataSmart object at 0x4eb9690): try: ret = handler(event) except (bb.parse.SkipRecipe, bb.BBHandledException): File multilib_virtclass_handler(e), line 55, in multilib_virtclass_handler(e=bb.event.RecipePreFinalise object at 0xaa61110) AttributeError: 'NoneType' object has no attribute 'split' ERROR: Execution of event handler 'multilib_virtclass_handler' failed Traceback (most recent call last): File multilib_virtclass_handler(e), line 55, in multilib_virtclass_handler(e=bb.event.RecipePreFinalise object at 0x92ef390) AttributeError: 'NoneType' object has no attribute 'split' ERROR: Execution of event handler 'multilib_virtclass_handler' failed Traceback (most recent call last): File multilib_virtclass_handler(e), line 55, in multilib_virtclass_handler(e=bb.event.RecipePreFinalise object at 0xa0bdb10) AttributeError: 'NoneType' object has no attribute 'split' ERROR: Execution of event handler 'multilib_virtclass_handler' failed Traceback (most recent call last): File multilib_virtclass_handler(e), line 55, in multilib_virtclass_handler(e=bb.event.RecipePreFinalise object at 0xa704050) AttributeError: 'NoneType' object has no attribute 'split' ERROR: Execution of event handler 'multilib_virtclass_handler' failed Traceback (most recent call last): File multilib_virtclass_handler(e), line 55, in multilib_virtclass_handler(e=bb.event.RecipePreFinalise object at 0x251b110) AttributeError: 'NoneType' object has no attribute 'split' ERROR: Execution of event handler 'multilib_virtclass_handler' failed Traceback (most recent
[OE-core] [PATCH] kernelshark: Remove trace-cmd from the kernelshark package
Fixes [YOCTO 6550] Images installing both trace-cmd and kernelshark would fail with: error: file /usr/bin/trace-cmd conflicts between attempted installs of kernelshark-1.2+git0+7055ffd37b-r3.core2_32 and trace-cmd-1.2+git0+7055ffd37b-r3.core2_32 This patch removes ${bindir}/trace-cmd from the install prior to packaging, as is already done with the ${datadir}. Reported-by: California Sullivan california.l.sulli...@intel.com Signed-off-by: Darren Hart dvh...@linux.intel.com (cherry picked from commit eb08ae8f729ef77329892d19b23ddfdaa7953de0) --- meta/recipes-kernel/trace-cmd/kernelshark_1.2.bb | 1 + 1 file changed, 1 insertion(+) diff --git a/meta/recipes-kernel/trace-cmd/kernelshark_1.2.bb b/meta/recipes-kernel/trace-cmd/kernelshark_1.2.bb index e64abe2..9af91c9 100644 --- a/meta/recipes-kernel/trace-cmd/kernelshark_1.2.bb +++ b/meta/recipes-kernel/trace-cmd/kernelshark_1.2.bb @@ -15,6 +15,7 @@ EXTRA_OEMAKE = 'CC=${CC}' 'AR=${AR}' 'prefix=${prefix}' gui do_install() { oe_runmake CC=${CC} AR=${AR} prefix=${prefix} DESTDIR=${D} install_gui + rm ${D}${bindir}/trace-cmd rm -rf ${D}${datadir}/trace-cmd rmdir ${D}${datadir} } -- 2.0.0 -- ___ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-core
Re: [OE-core] [PATCH 2/2] default-distrovars: update license whitelists to use canonical names
On Fri, 2014-07-18 at 15:35 -0700, Saul Wold wrote: On 07/16/2014 02:08 PM, Ross Burton wrote: Now that all licenses are canonicalised to SPDX names when processing, we need to rename the whitelists to the match. Signed-off-by: Ross Burton ross.bur...@intel.com --- meta/conf/distro/include/default-distrovars.inc |6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/meta/conf/distro/include/default-distrovars.inc b/meta/conf/distro/include/default-distrovars.inc index 1bc8e46..8d24d66 100644 --- a/meta/conf/distro/include/default-distrovars.inc +++ b/meta/conf/distro/include/default-distrovars.inc @@ -23,9 +23,9 @@ IMAGE_FEATURES ?= # This is a list of packages that are used by the build system to build the distribution, they are not # directly part of the distribution. -HOSTTOOLS_WHITELIST_GPLv3 ?= -WHITELIST_GPLv3 ?= less -LGPLv2_WHITELIST_GPLv3 ?= libassuan gnutls libtasn1 libidn libgcc libgcc-initial gcc-runtime +HOSTTOOLS_WHITELIST_GPL-3.0 ?= +WHITELIST_GPL-3.0 ?= less +LGPLv2_WHITELIST_GPL-3.0 ?= libassuan gnutls libtasn1 libidn libgcc libgcc-initial gcc-runtime This change seems to make multilib builds unhappy, both on the Autobuilder and locally, see attached output. FWIW I've fixed this before I merged it, it needed a tweak to multilib.bbclass... Cheers, Richard -- ___ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-core