[OE-core] External sysroots?

2020-05-29 Thread Richard Tollerton
Suppose that I want to cut a meta-toolchain build against a sysroot sourced from a different Linux distribution. (Obviously I would be responsible for ensuring that all required package dependencies exist in the sysroot.) In other words... like an external toolchain, but inverted. The purpose

[OE-core] [PATCH][PSEUDO 0/4] Fix stripped mode with newer coreutils cp

2017-11-29 Thread Richard Tollerton
. I also added a test for this, and fixed up the perms on another test. run_tests.sh reports 13/13 pass. Also updated contact info in the README. Thanks. Richard Tollerton (4): linux/xattr/pseudo_wrappers.c: Preserve special bits on acl set test-cp-setuid.sh: add test-tclsh-fork.sh: fix

[OE-core] [PATCH][PSEUDO 2/4] test-cp-setuid.sh: add

2017-11-29 Thread Richard Tollerton
New test to verify that special bits including setuid are preserved under `cp -Rp`. This is a regression test of [YOCTO #12379]. Without a recently committed fix, this test will fail on coreutils 8.24 and later. Signed-off-by: Richard Tollerton <rich.toller...@ni.com> --- test/test-cp-set

[OE-core] [PATCH][PSEUDO 3/4] test-tclsh-fork.sh: fix permissions

2017-11-29 Thread Richard Tollerton
This was mode 644, needs to be mode 755. Signed-off-by: Richard Tollerton <rich.toller...@ni.com> --- test/test-tclsh-fork.sh | 0 1 file changed, 0 insertions(+), 0 deletions(-) mode change 100644 => 100755 test/test-tclsh-fork.sh diff --git a/test/test-tclsh-fork.sh b/test/test-tcls

[OE-core] [PATCH][PSEUDO 4/4] README: update contact info

2017-11-29 Thread Richard Tollerton
Explicitly point to oe-core mailing list and yocto bugzilla. Signed-off-by: Richard Tollerton <rich.toller...@ni.com> --- README | 9 +++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/README b/README index afe6b27..093ec56 100644 --- a/README +++ b/README @@ -72,8

[OE-core] [PATCH][PSEUDO 1/4] linux/xattr/pseudo_wrappers.c: Preserve special bits on acl set

2017-11-29 Thread Richard Tollerton
is that ACLs never included special bits in the first place, so we need to merge them back in ourselves. [YOCTO #12379] Signed-off-by: Richard Tollerton <rich.toller...@ni.com> --- ports/linux/xattr/pseudo_wrappers.c | 19 +++ 1 file changed, 19 insertions(+) diff --git a/ports

[OE-core] [PATCH] base-files: fix profile error under < /dev/null

2016-10-11 Thread Richard Tollerton
ase` instead of `cut` to eliminate a subshell. Signed-off-by: Richard Tollerton <rich.toller...@ni.com> --- meta/recipes-core/base-files/base-files/profile | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/meta/recipes-core/base-files/base-files/profile b/meta/recipes-

[OE-core] [PATCH] libc-package.bbclass: add LOCALE_UTF8_IS_DEFAULT

2016-01-21 Thread Richard Tollerton
get named exactly like they are in SUPPORTED. Leave it at 1 to preserve current OE locale naming conventions. Signed-off-by: Richard Tollerton <rich.toller...@ni.com> --- meta/classes/libc-package.bbclass | 11 +++ meta/conf/distro/include/default-distrovars.inc | 1 +

Re: [OE-core] [PATCH] util-linux: create util-linux-runuser package

2015-11-09 Thread Richard Tollerton
Ioan-Adrian Ratiu writes: > RDEPENDS_${PN} = "util-linux-umount util-linux-swaponoff util-linux-losetup > util-linux-sulogin" > RRECOMMENDS_${PN} = "util-linux-fdisk util-linux-cfdisk util-linux-sfdisk > util-linux-mount util-linux-readprofile util-linux-mkfs " Should

[OE-core] [PATCH] gcc-5.2: disable isl

2015-09-23 Thread Richard Tollerton
. [YOCTO #8376] Signed-off-by: Richard Tollerton <rich.toller...@ni.com> --- meta/recipes-devtools/gcc/gcc-5.2.inc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/meta/recipes-devtools/gcc/gcc-5.2.inc b/meta/recipes-devtools/gcc/gcc-5.2.inc index f691f58..f6673e6 100644 --- a/meta/recipes-de

Re: [OE-core] [PATCH] lsb: add lsbinitscripts and util-linux rdepends

2015-09-22 Thread Richard Tollerton
Alex Franco writes: > Building a base image such as core-image-minimal with lsb and then > attempting to source /lib/lsb/init-functions, then using the start > _daemon function (to start a daemon, such as syslogd) fails, since > /lib/lsb/init-functions use

Re: [OE-core] [PATCH] create-pull-request: Fix error on 2.0 versions of git

2015-07-17 Thread Richard Tollerton
Robert Yang liezhi.y...@windriver.com writes: On 07/14/2015 05:49 PM, Burton, Ross wrote: On 13 July 2015 at 19:43, Richard Tollerton rich.toller...@ni.com mailto:rich.toller...@ni.com wrote: I still need to apply this patch in order to use create-pull-request. Bump? Not sure how

[OE-core] [PATCH] ncurses-terminfo-base: include screen-256color

2015-07-17 Thread Richard Tollerton
-by: Richard Tollerton rich.toller...@ni.com --- meta/recipes-core/ncurses/ncurses.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meta/recipes-core/ncurses/ncurses.inc b/meta/recipes-core/ncurses/ncurses.inc index 087fc93..ffd80ee 100644 --- a/meta/recipes-core/ncurses/ncurses.inc

Re: [OE-core] [PATCH] create-pull-request: Fix error on 2.0 versions of git

2015-07-13 Thread Richard Tollerton
Ben Shelton ben.shel...@ni.com writes: On 2.0 versions of git, the create-pull-request script exits with the warning No match for commit... Are you sure you pushed 'HEAD' there?. This is due to a change in behavior where git used to guess the branch you meant, but no longer does. See the

Re: [OE-core] [PATCH] cross-localedef-native_2.20.bb: fix for gcc5

2015-07-07 Thread Richard Tollerton
Burton, Ross ross.bur...@intel.com writes: On 7 July 2015 at 03:54, Richard Tollerton rich.toller...@ni.com wrote: The build of cross-localedef-native is observed to fail under gcc5 hosts with multiple definition errors, e.g.: Is this patch intended for fido? Master doesn't have 2.20

[OE-core] [PATCH] cross-localedef-native_2.20.bb: fix for gcc5

2015-07-06 Thread Richard Tollerton
://gcc.gnu.org/gcc-5/porting_to.html. Adding the '-fgnu89-inline' option fixes the issue. (This fix, including the above explanation, was shamelessly copied from http://git.vahanus.net/?p=csc/ptxdist-kp.git;a=commit;h=2f04a3587bd33c74ccc9be6e115a8b1fde620841.) Signed-off-by: Richard Tollerton

Re: [OE-core] [PATCH] terminal: Disable shopt errexit

2015-03-31 Thread Richard Tollerton
Burton, Ross ross.bur...@intel.com writes: On 30 March 2015 at 19:11, Richard Tollerton rich.toller...@ni.com wrote: Running `false` interactively doesn't test this behavior because `sh -e` explicitly excludes interactive shells from consideration [1] [2]. You'll need to inject a `false

Re: [OE-core] [PATCH] terminal: Disable shopt errexit

2015-03-30 Thread Richard Tollerton
Burton, Ross ross.bur...@intel.com writes: On 18 December 2014 at 01:02, Richard Tollerton rich.toller...@ni.com wrote: `sh -e` causes any errors encountered during shell execution to abort the shell. For terminal sessions like devshell, this causes errors encountered while executing

Re: [OE-core] [PATCH V2 7/7] opkg-keyrings: New recipe

2015-02-11 Thread Richard Tollerton
Paul Barker p...@paulbarker.me.uk writes: On Tue, Feb 10, 2015 at 06:43:34PM -0600, Richard Tollerton wrote: Paul Barker p...@paulbarker.me.uk writes: This recipe wraps package and package feed verification keys into a package, making the management and deployment of verification keys

Re: [OE-core] [PATCH V2 7/7] opkg-keyrings: New recipe

2015-02-10 Thread Richard Tollerton
Paul Barker p...@paulbarker.me.uk writes: This recipe wraps package and package feed verification keys into a package, making the management and deployment of verification keys much easier. Comments on how to select keys for inclusion in this package are provided in the recipe file. Would

Re: [OE-core] [PATCH v3 1/3] staging.bbclass: Install ${datadir}/fonts/ into sysroots

2015-02-04 Thread Richard Tollerton
Burton, Ross ross.bur...@intel.com writes: On 3 February 2015 at 00:47, Richard Tollerton rich.toller...@ni.com wrote: font-util installs encoding maps into /usr/share/fonts/X11. This path may not exist on the host (many distros install these into /usr/share/fonts/util) so they must exist

[OE-core] [PATCH v3 1/3] staging.bbclass: Install ${datadir}/fonts/ into sysroots

2015-02-02 Thread Richard Tollerton
is explicitly not installed into sysroots, so the encoding maps were not getting found. Fix this by no longer deleting ${datadir}/fonts/ from sysroots. Signed-off-by: Richard Tollerton rich.toller...@ni.com --- meta/classes/staging.bbclass | 2 +- 1 file changed, 1 insertion(+), 1 deletion

[OE-core] [PATCH v3 2/3] font-util: remove MAPFILES_PATH override

2015-02-02 Thread Richard Tollerton
/usr/lib/pkg-config instead of /usr/lib/pkgconfig) which is also fixed by deletion. Signed-off-by: Richard Tollerton rich.toller...@ni.com --- meta/recipes-graphics/xorg-font/font-util_1.3.0.bb | 4 1 file changed, 4 deletions(-) diff --git a/meta/recipes-graphics/xorg-font/font-util_1.3.0.bb

[OE-core] [PATCH v3 3/3] xorg-font-common: fix sysroot injection for encoding maps

2015-02-02 Thread Richard Tollerton
packages. A somewhat more robust, focused, and clear solution is to override UTIL_DIR on the make command line. (UTIL_DIR, not MAPFILES_PATH, is what is actually referenced in the build.) Signed-off-by: Richard Tollerton rich.toller...@ni.com --- meta/recipes-graphics/xorg-font/xorg-font

[OE-core] [PATCH v3 0/3] xorg-font: stop trying to use build machine's encoding maps

2015-02-02 Thread Richard Tollerton
-util-native, which will be handled in a separate patchset. Until then, the builds of font packages and font-util will race. Richard Tollerton (3): staging.bbclass: Install ${datadir}/fonts/ into sysroots font-util: remove MAPFILES_PATH override xorg-font-common: fix sysroot injection

Re: [OE-core] [oe-commits] Richard Tollerton : font-util: Fix incorrect PKG_CONFIG_PATH

2015-02-02 Thread Richard Tollerton
Paul Eggleton paul.eggle...@linux.intel.com writes: On Thursday 29 January 2015 03:21:31 Richard Tollerton wrote: Martin Jansa martin.ja...@gmail.com writes: On Thu, Jan 08, 2015 at 01:01:55PM +0100, Martin Jansa wrote: On Wed, Jan 07, 2015 at 03:12:56PM +0100, Martin Jansa wrote

Re: [OE-core] [oe-commits] Richard Tollerton : font-util: Fix incorrect PKG_CONFIG_PATH

2015-01-29 Thread Richard Tollerton
: master Commit: 89a29a3ad0742cd713e739d3d460be7711966679 URL: http://git.openembedded.org/?p=openembedded-core.gita=commit;h=89a29a3ad0742cd713e739d3d460be7711966679 Author: Richard Tollerton rich.toller...@ni.com Date: Fri Dec 12 13:34:00 2014 -0600 font-util

Re: [OE-core] [oe-commits] Richard Tollerton : font-util: Fix incorrect PKG_CONFIG_PATH

2015-01-08 Thread Richard Tollerton
-- Richard Tollerton rich.toller...@ni.com -- ___ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-core

[OE-core] [PATCH v2 1/3] staging.bbclass: Install ${datadir}/fonts/ into sysroots

2014-12-19 Thread Richard Tollerton
is explicitly not installed into sysroots, so the encoding maps were not getting found. Fix this by no longer deleting ${datadir}/fonts/ from sysroots. Signed-off-by: Richard Tollerton rich.toller...@ni.com --- meta/classes/staging.bbclass | 2 +- 1 file changed, 1 insertion(+), 1 deletion

[OE-core] [PATCH v2 3/3] xorg-font-common: fix sysroot injection for encoding maps

2014-12-19 Thread Richard Tollerton
packages. A somewhat more robust, focused, and clear solution is to override UTIL_DIR on the make command line. (UTIL_DIR, not MAPFILES_PATH, is what is actually referenced in the build.) Signed-off-by: Richard Tollerton rich.toller...@ni.com --- meta/recipes-graphics/xorg-font/xorg-font

[OE-core] [PATCH v2 0/3] xorg-font: stop trying to use build machine's encoding maps

2014-12-19 Thread Richard Tollerton
is something I'm also working on.) Richard Tollerton (3): staging.bbclass: Install ${datadir}/fonts/ into sysroots font-util: remove MAPFILES_PATH override xorg-font-common: fix sysroot injection for encoding maps meta/classes/staging.bbclass | 2 +- meta/recipes-graphics

[OE-core] [PATCH v2 2/3] font-util: remove MAPFILES_PATH override

2014-12-19 Thread Richard Tollerton
/usr/lib/pkg-config instead of /usr/lib/pkgconfig) which is also fixed by deletion. Signed-off-by: Richard Tollerton rich.toller...@ni.com --- meta/recipes-graphics/xorg-font/font-util_1.3.0.bb | 4 1 file changed, 4 deletions(-) diff --git a/meta/recipes-graphics/xorg-font/font-util_1.3.0.bb

Re: [OE-core] [PATCH] font-util: Fix incorrect PKG_CONFIG_PATH

2014-12-17 Thread Richard Tollerton
Richard Tollerton rich.toller...@ni.com writes: PKG_CONFIG_PATH always defaults to /usr/lib/pkgconfig, and the host /usr/lib/pkgconfig is always checked as a fallback; however, PKG_CONFIG_PATH is currently (incorrectly) set to /usr/lib/pkg-config in the sysroot, which doesn't exist. On host

[OE-core] [PATCH 2/3] font-util: remove MAPFILES_PATH override

2014-12-17 Thread Richard Tollerton
/usr/lib/pkg-config instead of /usr/lib/pkgconfig) which is also fixed by deletion. Signed-off-by: Richard Tollerton rich.toller...@ni.com --- meta/recipes-graphics/xorg-font/font-util_1.3.0.bb | 4 1 file changed, 4 deletions(-) diff --git a/meta/recipes-graphics/xorg-font/font-util_1.3.0.bb

[OE-core] [PATCH 1/3] staging.bbclass: Install ${datadir}/fonts/ into sysroots

2014-12-17 Thread Richard Tollerton
is explicitly not installed into sysroots, so the encoding maps were not getting found. Fix this by no longer deleting ${datadir}/fonts/ from sysroots. Signed-off-by: Richard Tollerton rich.toller...@ni.com --- meta/classes/staging.bbclass | 2 +- 1 file changed, 1 insertion(+), 1 deletion

[OE-core] [PATCH 3/3] xorg-font-common: fix sysroot injection for encoding maps

2014-12-17 Thread Richard Tollerton
packages. A somewhat more robust, focused, and clear solution is to override UTIL_DIR on the make command line. (UTIL_DIR, not MAPFILES_PATH, is what is actually referenced in the build.) Signed-off-by: Richard Tollerton rich.toller...@ni.com --- meta/recipes-graphics/xorg-font/xorg-font

[OE-core] [PATCH 0/3] xorg-font: stop trying to use build machine's encoding maps

2014-12-17 Thread Richard Tollerton
of it. These changes will require the font recipes in meta-oe need to be updated to explicitly depend on font-util in addition to font-util-native; I'll post those patches separately. (Yes, these font builds are arch-specific right now; making them allarch is something I'm also working on.) Richard

[OE-core] [PATCH] terminal: Disable shopt errexit

2014-12-17 Thread Richard Tollerton
with terminal, so just remove the '-e' from the sh invocation. Signed-off-by: Richard Tollerton rich.toller...@ni.com --- meta/classes/terminal.bbclass | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meta/classes/terminal.bbclass b/meta/classes/terminal.bbclass index e577c6d..51e9aa3

[OE-core] [PATCH] font-util: Fix incorrect PKG_CONFIG_PATH

2014-12-12 Thread Richard Tollerton
a different path than OE, this will break font builds, because ucs2any will attempt to read the sysroot's encoding maps with the host paths. Signed-off-by: Richard Tollerton rich.toller...@ni.com --- meta/recipes-graphics/xorg-font/font-util_1.3.0.bb | 2 +- 1 file changed, 1 insertion(+), 1

[OE-core] [PATCH] qemu: disable vte if gtk is also disabled

2014-12-11 Thread Richard Tollerton
vte will pull in the gtk libs itself. This can cause build failures if the native gtk was build with glib=2.41 while the sysroot native glib is =2.40. Fix for [YOCTO #7077]. Signed-off-by: Richard Tollerton rich.toller...@ni.com --- meta/recipes-devtools/qemu/qemu.inc | 2 +- 1 file changed, 1

[OE-core] [PATCH v3 5/9] udev-cache: Clean up message when cache is invalidated

2014-12-10 Thread Richard Tollerton
Replace a bunch of echo's with a single catEOF. Take this opportunity to more clearly communicate what is going on with the cache and what files are being looked at. Signed-off-by: Richard Tollerton rich.toller...@ni.com --- meta/recipes-core/udev/udev/init | 11 +++ 1 file changed, 7

[OE-core] [PATCH v3 8/9] udev-cache: Update cache asynchronously

2014-12-10 Thread Richard Tollerton
Don't hold up the boot while the cache is being updated. Signed-off-by: Richard Tollerton rich.toller...@ni.com Signed-off-by: Ben Shelton ben.shel...@ni.com Acked-by: Gratian Crisan gratian.cri...@ni.com --- meta/recipes-core/udev/udev/udev-cache | 20 +++- 1 file changed, 11

[OE-core] [PATCH v3 7/9] udev-cache: invalidate on rules.d changes

2014-12-10 Thread Richard Tollerton
, CONFIG_FEATURE_STAT_FORMAT must be enabled. Signed-off-by: Richard Tollerton rich.toller...@ni.com --- meta/recipes-core/udev/udev/init | 6 ++ meta/recipes-core/udev/udev/udev-cache | 5 + 2 files changed, 11 insertions(+) diff --git a/meta/recipes-core/udev/udev/init b/meta/recipes-core/udev/udev/init

[OE-core] [PATCH v3 3/9] udev-cache: don't generate sysconf twice

2014-12-10 Thread Richard Tollerton
The udev initscript signals udev-cache to run by generating a new sysconf; but udev-cache now overwrites that with its own copy. To eliminate the needless sysconf generating in udev, we instead trigger udev-cache to run by touching a new file $DEVCACHE_REGEN. Signed-off-by: Richard Tollerton

[OE-core] [PATCH v3 9/9] udev-cache: refactor conditionals and error handling

2014-12-10 Thread Richard Tollerton
and trap EXIT. These errors were previously being ignored. Signed-off-by: Richard Tollerton rich.toller...@ni.com --- meta/recipes-core/udev/udev/udev-cache | 35 +- 1 file changed, 22 insertions(+), 13 deletions(-) diff --git a/meta/recipes-core/udev/udev/udev-cache

[OE-core] [PATCH v3 6/9] udev-cache: always warn on console if invalidated

2014-12-10 Thread Richard Tollerton
Failure to use the udev cache is a significant enough impact to the boot time (possibly seconds) that it should always be reported on the console, regardless of the VERBOSE setting. Signed-off-by: Richard Tollerton rich.toller...@ni.com --- meta/recipes-core/udev/udev/init | 4 +--- 1 file

[OE-core] [PATCH v3 4/9] udev-cache: refactor sysconf generation

2014-12-10 Thread Richard Tollerton
administrators to modify it for machine-specific requirements. Signed-off-by: Richard Tollerton rich.toller...@ni.com --- meta/recipes-core/udev/udev/init | 15 +++ meta/recipes-core/udev/udev/udev-cache | 8 +++- 2 files changed, 18 insertions(+), 5 deletions(-) diff --git a/meta

[OE-core] [PATCH v3 0/9] udev-cache fixes

2014-12-10 Thread Richard Tollerton
in the git repository at: git://github.com/rtollert/openembedded-core dev/rtollert/udev-cache-9 https://github.com/rtollert/openembedded-core/tree/dev/rtollert/udev-cache-9 Richard Tollerton (9): udev-cache: stop race between sysconf and cache generation udev-cache: replace readfiles() with cmp

[OE-core] [PATCH v3 2/9] udev-cache: replace readfiles() with cmp

2014-12-10 Thread Richard Tollerton
just use cmp. This requires a few other small changes: exclude /proc/atags from CMP_FILE_LIST if it doesn't exist to avoid errors in `cat` and `cmp`. `cmp -q` doesn't exist in busybox, so instead, redirect output to /dev/null. Signed-off-by: Richard Tollerton rich.toller...@ni.com --- meta

[OE-core] [PATCH v3 1/9] udev-cache: stop race between sysconf and cache generation

2014-12-10 Thread Richard Tollerton
are being generated. Signed-off-by: Richard Tollerton rich.toller...@ni.com --- meta/recipes-core/udev/udev/udev-cache | 18 ++ 1 file changed, 18 insertions(+) diff --git a/meta/recipes-core/udev/udev/udev-cache b/meta/recipes-core/udev/udev/udev-cache index 497d257..a1410f5 100644

Re: [OE-core] [PATCH v2 09/12] udev-cache: get system config immediately before cache

2014-08-25 Thread Richard Tollerton
'\nreadfiles_inner:\n' time $0 inner_readfiles ;; esac Cheers, Richard -- Richard Tollerton rich.toller...@ni.com -- ___ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo

[OE-core] Patch message guidelines and internal/corporate fields

2014-08-22 Thread Richard Tollerton
/Commit_Patch_Message_Guidelines hasn't been updated with this requirement. Should it be? Will that require TSC approval? -- # Randy MacLeod. SMTS, Linux, Wind River Direct: 613.963.1350 -- -- Richard Tollerton rich.toller...@ni.com

[OE-core] [PATCH v2 11/12] udev-cache: Update cache asynchronously

2014-08-22 Thread Richard Tollerton
Don't hold up the boot while the cache is being updated. Signed-off-by: Richard Tollerton rich.toller...@ni.com Signed-off-by: Ben Shelton ben.shel...@ni.com Acked-by: Gratian Crisan gratian.cri...@ni.com --- meta/recipes-core/udev/udev/udev-cache | 19 +++ 1 file changed, 11

[OE-core] [PATCH v2 06/12] udev-cache: omit sockets and filesystems mounted under /dev

2014-08-22 Thread Richard Tollerton
`find`, this change requires CONFIG_FEATURE_FIND_TYPE=y and CONFIG_FEATURE_FIND_XDEV=y. If using busybox `tar`, this change requires CONFIG_FEATURE_TAR_FROM=y. Signed-off-by: Richard Tollerton rich.toller...@ni.com --- meta/recipes-core/udev/udev/udev-cache | 3 ++- 1 file changed, 2 insertions

[OE-core] [PATCH v2 07/12] udev-cache: Don't ignore error messages from cache extract

2014-08-22 Thread Richard Tollerton
Previous changes should obviate all known spurious errors coming out of tar. Since real extraction failures can and will occur, stop redirecting stdout/stderr to /dev/null. Take this opportunity to also remove an unnecessary subshell. Signed-off-by: Richard Tollerton rich.toller...@ni.com

[OE-core] [PATCH v2 00/12] udev-cache related changes

2014-08-22 Thread Richard Tollerton
Richard Tollerton (12): udev-cache: Update cache tarball atomically udev-cache: Compress the cache udev-cache: choose a more descriptive cache filename busybox: enable `tar -m` udev-cache: strip timestamps on extract udev-cache: omit sockets and filesystems mounted under /dev udev-cache

[OE-core] [PATCH v2 02/12] udev-cache: Compress the cache

2014-08-22 Thread Richard Tollerton
$DEVCACHE is observed to be 100k uncompressed; compressing it reduces its size to ~5k. But compress it outside of `tar` so that archival operation takes as little time as possible, to minimize the risk of devices being created/removed during execution. Signed-off-by: Richard Tollerton rich.toller

[OE-core] [PATCH v2 10/12] udev-cache: invalidate on rules.d changes

2014-08-22 Thread Richard Tollerton
, CONFIG_FEATURE_STAT_FORMAT must be enabled. Signed-off-by: Richard Tollerton rich.toller...@ni.com --- meta/recipes-core/udev/udev/init | 5 + meta/recipes-core/udev/udev/udev-cache | 5 + 2 files changed, 10 insertions(+) diff --git a/meta/recipes-core/udev/udev/init b/meta/recipes-core/udev/udev/init

[OE-core] [PATCH v2 01/12] udev-cache: Update cache tarball atomically

2014-08-22 Thread Richard Tollerton
Overwriting the tarball in-place could cause a partial write, if the system stops at an inopportune time. This is mitigated by first writing to a temporary file, then moving that file on top of the final location. Signed-off-by: Richard Tollerton rich.toller...@ni.com Signed-off-by: Ben Shelton

[OE-core] [PATCH v2 08/12] udev-cache: parametrize sysconf file paths

2014-08-22 Thread Richard Tollerton
The udev-cache facility uses files that represent system states, to ensure that the cache tarball is valid to apply. These paths were hardcoded in several places; collect them into SYSCONF_CACHED and SYSCONF_TMP. Signed-off-by: Richard Tollerton rich.toller...@ni.com --- meta/recipes-core/udev

[OE-core] [PATCH v2 03/12] udev-cache: choose a more descriptive cache filename

2014-08-22 Thread Richard Tollerton
/etc/dev.tar.gz doesn't adequately imply that udev-cache maintains it. Instead, call it /etc/udev-cache.tar.gz. Signed-off-by: Richard Tollerton rich.toller...@ni.com Signed-off-by: Ben Shelton ben.shel...@ni.com Acked-by: Gratian Crisan gratian.cri...@ni.com Acked-by: Otavio Salvador ota

[OE-core] [PATCH v2 05/12] udev-cache: strip timestamps on extract

2014-08-22 Thread Richard Tollerton
. Signed-off-by: Richard Tollerton rich.toller...@ni.com --- meta/recipes-core/udev/udev/init | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meta/recipes-core/udev/udev/init b/meta/recipes-core/udev/udev/init index f2c84d5..4a6df6e 100644 --- a/meta/recipes-core/udev/udev/init +++ b

[OE-core] [PATCH v2 09/12] udev-cache: get system config immediately before cache

2014-08-22 Thread Richard Tollerton
configuration in a file. Instead, signal udev-cache execution by touching a file, $DEVCACHE_REGEN. Signed-off-by: Richard Tollerton rich.toller...@ni.com --- meta/recipes-core/udev/udev/init | 44 +- meta/recipes-core/udev/udev/udev-cache | 17 +++-- 2 files

[OE-core] [PATCH v2 12/12] udev-cache: refactor; improve verbosity and error handling

2014-08-22 Thread Richard Tollerton
. Signed-off-by: Richard Tollerton rich.toller...@ni.com --- meta/recipes-core/udev/udev/udev-cache | 33 - 1 file changed, 20 insertions(+), 13 deletions(-) diff --git a/meta/recipes-core/udev/udev/udev-cache b/meta/recipes-core/udev/udev/udev-cache index baeb125

[OE-core] [PATCH v2 04/12] busybox: enable `tar -m`

2014-08-22 Thread Richard Tollerton
CONFIG_FEATURE_TAR_NOPRESERVE_TIME=y is needed for the commit udev-cache: strip timestamps on extract. Enabling this flag increases the size of busybox by 0 bytes on x86. Signed-off-by: Richard Tollerton rich.toller...@ni.com --- meta/recipes-core/busybox/busybox/defconfig | 2 +- 1 file changed

Re: [OE-core] [PATCH 08/20] udev-cache: Create cache asynchronously

2014-08-04 Thread Richard Tollerton
+ fi +done + exit 0 -- Otavio Salvador O.S. Systems http://www.ossystems.com.brhttp://code.ossystems.com.br Mobile: +55 (53) 9981-7854Mobile: +1 (347) 903-9750 -- -- Richard Tollerton rich.toller...@ni.com

Re: [OE-core] [PATCH 08/20] udev-cache: Create cache asynchronously

2014-08-04 Thread Richard Tollerton
Otavio Salvador ota...@ossystems.com.br writes: On Mon, Aug 4, 2014 at 6:18 PM, Richard Tollerton rich.toller...@ni.com wrote: Otavio Salvador ota...@ossystems.com.br writes: I am not sure about this one. I see the value you are adding here but I worry how often something can be connected

Re: [OE-core] [PATCH 08/20] udev-cache: Create cache asynchronously

2014-08-04 Thread Richard Tollerton
Otavio Salvador ota...@ossystems.com.br writes: On Mon, Aug 4, 2014 at 6:37 PM, Richard Tollerton rich.toller...@ni.com wrote: Otavio Salvador ota...@ossystems.com.br writes: On Mon, Aug 4, 2014 at 6:18 PM, Richard Tollerton rich.toller...@ni.com wrote: Otavio Salvador ota

Re: [OE-core] [PATCH 1/2] gcc-cross-canadian: Adjust $prefix to fix sysroot autodetect

2014-07-28 Thread Richard Tollerton
Bump? Richard Tollerton rich.toller...@ni.com writes: Currently, using gcc-cross-canadian often requires --sysroot to be specified at compile time, because the default sysroot is hardcoded to e.g. /opt/poky/1.6.1/sysroots/core2-64-poky-linux. If you didn't install the toolchain in precisely

Re: [OE-core] [PATCH 4/4] busybox: Allow busybox-mdev to RPROVIDES hotplug

2014-07-21 Thread Richard Tollerton
Richard Purdie richard.pur...@linuxfoundation.org writes: On Mon, 2014-07-21 at 11:53 -0500, Ben Shelton wrote: From: Richard Tollerton rich.toller...@ni.com This is for symmetry with udev which also RPROVIDES hotplug. Signed-off-by: Richard Tollerton rich.toller...@ni.com Signed-off

[OE-core] [PATCH][meta-mingw 1/3] common-mingw: force ac_cv_func_mmap_fixed_mapped=no

2014-07-06 Thread Richard Tollerton
The expat mingw build breaks because ix86-common defines ac_cv_func_mmap_fixed_mapped=yes, causing the build to think that mmap(), mman.h actually exist. Fix this by always forcing the variable to no, which configure would have concluded without such interference. Signed-off-by: Richard Tollerton

[OE-core] [PATCH][meta-mingw 0/3] Fix gdb-cross-canadian on mingw32

2014-07-06 Thread Richard Tollerton
as you don't care about Python support or TUI. These patches were tested on daisy then ported to master. Richard Tollerton (3): common-mingw: force ac_cv_func_mmap_fixed_mapped=no gdb-cross-canadian: remove ncurses and python deps from mingw32 builds packagegroup-cross-canadian: reenable gdb

[OE-core] [PATCH][meta-mingw 3/3] packagegroup-cross-canadian: reenable gdb on mingw32

2014-07-06 Thread Richard Tollerton
Signed-off-by: Richard Tollerton rich.toller...@ni.com --- recipes-core/packagegroups/packagegroup-cross-canadian.bbappend | 5 - 1 file changed, 5 deletions(-) delete mode 100644 recipes-core/packagegroups/packagegroup-cross-canadian.bbappend diff --git a/recipes-core/packagegroups

[OE-core] [PATCH][meta-mingw 2/3] gdb-cross-canadian: remove ncurses and python deps from mingw32 builds

2014-07-06 Thread Richard Tollerton
is that it doesn't appear to build either statically or dynamically. Just disable that for now too. This results in mingw32 gdb not supporting plugins, pretty-printing, or TUI mode, at the very least. But MI mode works, as does gdb's internal readline implementation. Signed-off-by: Richard Tollerton rich.toller

[OE-core] [PATCH 1/2] gcc-cross-canadian: Adjust $prefix to fix sysroot autodetect

2014-07-03 Thread Richard Tollerton
-by: Richard Tollerton rich.toller...@ni.com --- meta/recipes-devtools/gcc/gcc-cross-canadian.inc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/meta/recipes-devtools/gcc/gcc-cross-canadian.inc b/meta/recipes-devtools/gcc/gcc-cross-canadian.inc index 63adae8..1a826ec 100644 --- a/meta/recipes

[OE-core] [PATCH 2/2] gcc: Ensure c++ includes are in /usr/include/c++/${BINV}

2014-07-03 Thread Richard Tollerton
settings. Natinst-CAR-ID: 446449 Natinst-Reviewboard-ID: 57209 Acked-by: Ken Sharp ken.sh...@ni.com Acked-by: Ben Shelton ben.shel...@ni.com Signed-off-by: Richard Tollerton rich.toller...@ni.com --- meta/recipes-devtools/gcc/gcc-4.8.inc| 2 +- meta/recipes-devtools/gcc/gcc-cross

[OE-core] [PATCH 0/2] Two gcc compatibility/usability fixes

2014-07-03 Thread Richard Tollerton
. This patch fixes that. Richard Tollerton (2): gcc-cross-canadian: Adjust $prefix to fix sysroot autodetect gcc: Ensure c++ includes are in /usr/include/c++/${BINV} meta/recipes-devtools/gcc/gcc-4.8.inc| 2 +- meta/recipes-devtools/gcc/gcc-cross-canadian.inc | 5 - meta/recipes

Re: [OE-core] [dylan, master][PATCH] autotools.bbclass: Fix race with sed-native

2013-10-08 Thread Richard Tollerton
of compiler, and we're not doing that. (Right?) Otherwise I'm mainly asking in order to understand the decisionmaking. Cheers, Richard -- Richard Tollerton rich.toller...@ni.com ___ Openembedded-core mailing list Openembedded-core

Re: [OE-core] [dylan, master][PATCH] autotools.bbclass: Fix race with sed-native

2013-10-07 Thread Richard Tollerton
richard.pur...@linuxfoundation.org writes: On Fri, 2013-10-04 at 20:22 -0700, Saul Wold wrote: On 10/04/2013 04:35 PM, Richard Tollerton wrote: This also starts to create more front end bottle next on autotools related items before we can really start to parallelize the build. More

Re: [OE-core] [dylan, master][PATCH] autotools.bbclass: Fix race with sed-native

2013-10-07 Thread Richard Tollerton
before each return. So just append it here. Sau! -- Richard Tollerton rich.toller...@ni.com ___ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-core

[OE-core] [dylan, master][PATCH] autotools.bbclass: Fix race with sed-native

2013-10-04 Thread Richard Tollerton
be deleted from its sysroot via sstate_clean_manifest while foo.do_configure/do_build is using it, leading to an irreproducible build failure. This fix does for sed-native what's already done for libtool-native, with some additional light refactoring. Signed-off-by: Richard Tollerton rich.toller

[OE-core] [dylan, master][PATCH] populate_sdk_base: Fix relocate_sdk.py execution on Arch

2013-10-02 Thread Richard Tollerton
relocate_sdk.py is #!/usr/bin/env python, but is not python3-compatible. The PEP 394 alias `python2` is sadly not universally supported, so instead of modifying relocate_sdk.py directly, change the `exec` in relocate_sdk.sh to use it if it exists. Signed-off-by: Richard Tollerton rich.toller

[OE-core] [master, dylan][PATCH v2] shadow: Fix build when DISTRO_FEATURES contains pam, libc-crypt

2013-07-31 Thread Richard Tollerton
shadow falsely assumes that if --enable-libpam is set, it doesn't need to link against libcrypt; this breaks chsh. (This same fix exists in Arch.) Signed-off-by: Richard Tollerton rich.toller...@ni.com --- meta/recipes-extended/shadow/shadow_4.1.4.3.bb | 4 1 file changed, 4 insertions