Re: [OE-core] [PATCH v10 0/3] pkg-database and systemd-sysext image

2024-12-06 Thread Ola x Nilsson via lists.openembedded.org
Hi, JOhannes, what's the status of this patchset? I'd like to start experimenting with system extensions and this looks like the place to start. /Ola On Wed, May 22 2024, Johannes Schneider via lists.openembedded.org wrote: > systemd-sysext allows to overlay another image (or multiple) ontop

[OE-core] [PATCH v2 4/6] parted: Fix the ptest path to test-driver

2024-11-13 Thread Ola x Nilsson via lists.openembedded.org
From: Ola x Nilsson Add a sed substitution for ${PTEST_PATH}/tests/Makefile that transforms SH_LOG_DRIVER = $(SHELL) $(top_srcdir)/build-aux/test-driver to SH_LOG_DRIVER = $(SHELL) $(top_builddir)/build-aux/test-driver which is where the test-driver script can be found when installed. There

Re: [OE-core] [RFC PATCH 1/5] attr: Fix the ptest path to test-driver

2024-11-13 Thread Ola x Nilsson via lists.openembedded.org
On Tue, Nov 12 2024, Richard Purdie wrote: > On Mon, 2024-11-11 at 09:35 +0100, Ola x Nilsson via lists.openembedded.org > wrote: >> From: Ola x Nilsson >> >> Add a sed substitution for ${PTEST_PATH}/Makefile that transforms >>  TEST_LOG_DRIVER = $(SHELL) $(top

[OE-core] [PATCH v2 6/6] automake: Remove patch that changes path to test-driver

2024-11-13 Thread Ola x Nilsson via lists.openembedded.org
From: Ola x Nilsson The patch "Set relative to top_builddir path in Makefile to access" sets the default path of `test-driver` to `$(top_builddir)/$(config_aux_dir)` instead of the normal `$(top_srcdir)/$(config_aux_dir)`. This breaks `check test` for Automake projects in generated i

[OE-core] [PATCH v2 2/6] attr: Fix the ptest path to test-driver

2024-11-13 Thread Ola x Nilsson via lists.openembedded.org
From: Ola x Nilsson Add a sed substitution for ${PTEST_PATH}/Makefile that transforms TEST_LOG_DRIVER = $(SHELL) $(top_srcdir)/build-aux/test-driver to TEST_LOG_DRIVER = $(SHELL) $(top_builddir)/build-aux/test-driver which is where the test-driver script can be found when installed. There

[OE-core] [PATCH v2 0/6] Remove automake patch that changes path to test-driver

2024-11-13 Thread Ola x Nilsson via lists.openembedded.org
From: Ola x Nilsson Fixes [YOCTO #15635] The automake patch "Set relative to top_builddir path in Makefile to access" sets the default path of `test-driver` to `$(top_builddir)/$(config_aux_dir)` instead of the normal `$(top_srcdir)/$(config_aux_dir)`. This breaks `check test` fo

[OE-core] [PATCH v2 5/6] strace: Fix the ptest path to test-driver

2024-11-13 Thread Ola x Nilsson via lists.openembedded.org
From: Ola x Nilsson Add a sed substitution for ${PTEST_PATH}/tests/Makefile that transforms TEST_LOG_DRIVER = $(SHELL) $(top_srcdir)/build-aux/test-driver to TEST_LOG_DRIVER = $(SHELL) $(top_builddir)/build-aux/test-driver which is where the test-driver script can be found when installed

[OE-core] [PATCH v2 1/6] acl: Fix the ptest path to test-driver

2024-11-13 Thread Ola x Nilsson via lists.openembedded.org
From: Ola x Nilsson Add a sed substitution for ${PTEST_PATH}/Makefile that transforms TEST_LOG_DRIVER = $(SHELL) $(top_srcdir)/build-aux/test-driver to TEST_LOG_DRIVER = $(SHELL) $(top_builddir)/build-aux/test-driver which is where the test-driver script can be found when installed. There

[OE-core] [PATCH v2 3/6] sed: Fix the ptest path to test-driver

2024-11-13 Thread Ola x Nilsson via lists.openembedded.org
From: Ola x Nilsson Add a sed substitution for ${PTEST_PATH}/Makefile that transforms SH_LOG_DRIVER = $(SHELL) $(top_srcdir)/build-aux/test-driver PL_LOG_DRIVER = $(SHELL) $(top_srcdir)/build-aux/test-driver to SH_LOG_DRIVER = $(SHELL) $(top_builddir)/build-aux/test-driver PL_LOG_DRIVER

[OE-core] [RFC PATCH 0/5] Remove automake patch that changes path to test-driver

2024-11-11 Thread Ola x Nilsson via lists.openembedded.org
From: Ola x Nilsson Fixes [YOCTO #15635] The automake patch "Set relative to top_builddir path in Makefile to access" sets the default path of `test-driver` to `$(top_builddir)/$(config_aux_dir)` instead of the normal `$(top_srcdir)/$(config_aux_dir)`. This breaks `check test` fo

[OE-core] [RFC PATCH 5/5] automake: Remove patch that changes path to test-driver

2024-11-11 Thread Ola x Nilsson via lists.openembedded.org
From: Ola x Nilsson The patch "Set relative to top_builddir path in Makefile to access" sets the default path of `test-driver` to `$(top_builddir)/$(config_aux_dir)` instead of the normal `$(top_srcdir)/$(config_aux_dir)`. This breaks `check test` for Automake projects in generated i

[OE-core] [RFC PATCH 1/5] attr: Fix the ptest path to test-driver

2024-11-11 Thread Ola x Nilsson via lists.openembedded.org
From: Ola x Nilsson Add a sed substitution for ${PTEST_PATH}/Makefile that transforms TEST_LOG_DRIVER = $(SHELL) $(top_srcdir)/build-aux/test-driver to TEST_LOG_DRIVER = $(SHELL) $(top_builddir)/build-aux/test-driver which is where the test-driver script can be found when installed. There

[OE-core] [RFC PATCH 4/5] strace: Fix the ptest path to test-driver

2024-11-11 Thread Ola x Nilsson via lists.openembedded.org
From: Ola x Nilsson Add a sed substitution for ${PTEST_PATH}/tests/Makefile that transforms TEST_LOG_DRIVER = $(SHELL) $(top_srcdir)/build-aux/test-driver to TEST_LOG_DRIVER = $(SHELL) $(top_builddir)/build-aux/test-driver which is where the test-driver script can be found when installed

[OE-core] [RFC PATCH 3/5] parted: Fix the ptest path to test-driver

2024-11-11 Thread Ola x Nilsson via lists.openembedded.org
From: Ola x Nilsson Add a sed substitution for ${PTEST_PATH}/tests/Makefile that transforms SH_LOG_DRIVER = $(SHELL) $(top_srcdir)/build-aux/test-driver to SH_LOG_DRIVER = $(SHELL) $(top_builddir)/build-aux/test-driver which is where the test-driver script can be found when installed. There

[OE-core] [RFC PATCH 2/5] sed: Fix the ptest path to test-driver

2024-11-11 Thread Ola x Nilsson via lists.openembedded.org
From: Ola x Nilsson Add a sed substitution for ${PTEST_PATH}/Makefile that transforms SH_LOG_DRIVER = $(SHELL) $(top_srcdir)/build-aux/test-driver PL_LOG_DRIVER = $(SHELL) $(top_srcdir)/build-aux/test-driver to SH_LOG_DRIVER = $(SHELL) $(top_builddir)/build-aux/test-driver PL_LOG_DRIVER

Re: [OE-core] [PATCH] ffmpeg: Package example files in ffmpeg-examples

2024-10-28 Thread Ola x Nilsson
Looks good to me. /Ola On Sun, Oct 27 2024, Martin Jansa wrote: > Wasn't very future proof for multilib :) please review: > https://lists.openembedded.org/g/openembedded-core/message/206410 > > On Tue, Aug 27, 2024 at 11:02 AM Ola x Nilsson via > lists.openembedded.org wr

[OE-core] [styhead][PATCH v2] glibc: Fix missing randomness in __gen_tempname

2024-10-23 Thread Ola x Nilsson
From: Ola x Nilsson Backport the fix for glibc bug 32214. The missing randomness in early boot may cause some systemd services to fail when they occasionally try to create tempdirs like /run/systemd/namespace-aa at the same time. The error messages can contain things like "Failed to s

[OE-core] [styhead][PATCH] glibc: Fix missing randomness in __gen_tempname

2024-10-23 Thread Ola x Nilsson
From: Ola x Nilsson Backport the fix for glibc bug 32214. The missing randomness in early boot may cause some systemd services to fail when they occasionally try to create tempdirs like /run/systemd/namespace-aa at the same time. The error messages can contain things like "Failed to s

Re: [OE-core] [scarthgap][PATCH] glibc: Fix missing randomness in __gen_tempname

2024-10-21 Thread Ola x Nilsson
Please ignore this patch. I was supposed to send it for styhead but got mixed up. /Ola On Mon, Oct 21 2024, Ola x Nilsson wrote: > From: Ola x Nilsson > > Backport the fix for glibc bug 32214. > > The missing randomness in early boot may cause some systemd services >

[OE-core] [scarthgap][PATCH] glibc: Fix missing randomness in __gen_tempname

2024-10-21 Thread Ola x Nilsson
From: Ola x Nilsson Backport the fix for glibc bug 32214. The missing randomness in early boot may cause some systemd services to fail when they occasionally try to create tempdirs like /run/systemd/namespace-aa at the same time. The error messages can contain things like "Failed to s

[OE-core] [PATCH v2] glibc: Fix missing randomness in __gen_tempname

2024-10-14 Thread Ola x Nilsson
From: Ola x Nilsson Backport the fix for glibc bug 32214. The missing randomness in early boot may cause some systemd services to fail when they occasionally try to create tempdirs like /run/systemd/namespace-aa at the same time. The error messages can contain things like "Failed to s

[OE-core] [PATCH] glibc: Fix missing randomness in __gen_tempname

2024-10-14 Thread Ola x Nilsson
From: Ola x Nilsson Backport the fix for glibc bug 32214. The missing randomness in early boot may cause some systemd services to fail when they occasionally try to create tempdirs like /run/systemd/namespace-aa at the same time. The error messages can contain things like "Failed to s

[OE-core] [PATCH] insane: Remove redundant returns

2024-08-30 Thread Ola x Nilsson
From: Ola x Nilsson Some redundant return statements were left over from insane: Drop oe.qa.add_message usage Signed-off-by: Ola x Nilsson --- meta/classes-global/insane.bbclass | 3 --- 1 file changed, 3 deletions(-) diff --git a/meta/classes-global/insane.bbclass b/meta/classes-global

[OE-core] [PATCH] ffmpeg: Package example files in ffmpeg-examples

2024-08-27 Thread Ola x Nilsson
From: Ola x Nilsson The most future proof way to not always ship the example files is to package them separately. Signed-off-by: Ola x Nilsson --- meta/recipes-multimedia/ffmpeg/ffmpeg_6.1.1.bb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/meta/recipes-multimedia

[OE-core] [PATCH] scons.bbclass: Add scons class prefix to do_configure

2024-08-22 Thread Ola x Nilsson
From: Ola x Nilsson While do_compile and do_install already have the scons_ prefix, do_configure did not. This was most likely an oversight from when it was converted from do_configure[noexec] = "1". Signed-off-by: Ola x Nilsson --- meta/classes-recipe/scons.bbclass | 4 ++-- 1 fi

Re: [OE-core] [PATCH v2] oeqa/selftest/devtool: add test for modifying recipes using go.bbclass

2024-05-17 Thread Ola x Nilsson
On Fri, May 17 2024, ol...@axis.com wrote: > From: Ola x Nilsson > > go.bbclass uses a special do_unpack function that causes the git root > to be different from S. Verify that it unpacks as expected. > > [ YOCTO #15483 ] > > Signed-off-by: Ola x Nilsson > --- > &

[OE-core] [PATCH v2] oeqa/selftest/devtool: add test for modifying recipes using go.bbclass

2024-05-17 Thread Ola x Nilsson
From: Ola x Nilsson go.bbclass uses a special do_unpack function that causes the git root to be different from S. Verify that it unpacks as expected. [ YOCTO #15483 ] Signed-off-by: Ola x Nilsson --- Changes since v1: Correct author meta/lib/oeqa/selftest/cases/devtool.py | 19

[OE-core] [PATCH] oeqa/selftest/devtool: add test for modifying recipes using go.bbclass

2024-05-16 Thread Ola x Nilsson
From: Julien Stephan go.bbclass uses a special do_unpack function that causes the git root to be different from S. Verify that it unpacks as expected. [ YOCTO #15483 ] Signed-off-by: Ola x Nilsson --- meta/lib/oeqa/selftest/cases/devtool.py | 19 +++ 1 file changed, 19

[OE-core] [PATCH] devtool: modify: Catch git submodule error for go code

2024-05-14 Thread Ola x Nilsson
git submodule support. The extracted source will still have two .git folders, one in S created by devtool and one in the go path which will contain the tru git history. [ YOCTO #15483 ] Signed-off-by: Anton Almqvist Signed-off-by: Ola x Nilsson --- scripts/lib/devtool/standard.py | 5 - 1

[OE-core] [PATCH] binutils: Remove conflict markers from 0008-Use-libtool-2.4.patch

2024-04-24 Thread Ola x Nilsson
From: Ola x Nilsson The diff hunks were not doing anything important, just remove them. Signed-off-by: Ola x Nilsson --- .../binutils/0008-Use-libtool-2.4.patch | 24 --- 1 file changed, 24 deletions(-) diff --git a/meta/recipes-devtools/binutils/binutils/0008-Use

[OE-core] [PATCH v2] python3-numpy: Use Large File Support version of fallocate

2024-01-26 Thread Ola x Nilsson
This was supposed to always be the case from upstream but was exposed by the 64-bit-time QA checker when file function scanning was enabled. Signed-off-by: Ola x Nilsson --- ...le-fallocate-on-32-bit-linux-platfor.patch | 51 +++ .../python/python3-numpy_1.26.3.bb

[OE-core] [PATCH] python3-numpy: Use Large File Support version of fallocate

2024-01-25 Thread Ola x Nilsson
This was supposed to always be the case from upstream but was exposed by the 64-bit-time QA checker when file function scanning was enabled. Signed-off-by: Ola x Nilsson --- ...le-fallocate-on-32-bit-linux-platfor.patch | 49 +++ .../python/python3-numpy_1.26.2.bb

Re: [OE-core] [PATCH v2 2/3] insane.bbclass: Make check_32bit_symbols check for file functions too

2024-01-16 Thread Ola x Nilsson
QA Issue: >> /usr/bin/ssh-keyscan uses 32-bit api 'mkstemp' >> >> https://autobuilder.yoctoproject.org/typhoon/#/builders/53/builds/8436/steps/12/logs/warnings >> >> stdio: WARNING: openssh-9.5p1-r0 do_package_qa: QA Issue: >> /usr/lib/openssh/ptest

Re: [OE-core] [PATCH 3/3] insane.bbclass: Python code cleanup in check_32bit_symbols

2024-01-12 Thread Ola x Nilsson
Forgot the signed-off footer, v2 sent /Ola On Fri, Jan 12 2024, Ola x Nilsson wrote: > --- > meta/classes-global/insane.bbclass | 6 +++--- > 1 file changed, 3 insertions(+), 3 deletions(-) > > diff --git a/meta/classes-global/insane.bbclass > b/meta/classes-global/insa

[OE-core] [PATCH v2 3/3] insane.bbclass: Python code cleanup in check_32bit_symbols

2024-01-12 Thread Ola x Nilsson
Signed-off-by: Ola x Nilsson --- meta/classes-global/insane.bbclass | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/meta/classes-global/insane.bbclass b/meta/classes-global/insane.bbclass index 1ff6a319c4..26457764ce 100644 --- a/meta/classes-global/insane.bbclass

[OE-core] [PATCH v2 1/3] insane.bbclass: Check for adjtime in check_32_bit_symbols

2024-01-12 Thread Ola x Nilsson
adjtime was overlooked in the original commit. Signed-off-by: Ola x Nilsson --- meta/classes-global/insane.bbclass | 1 + 1 file changed, 1 insertion(+) diff --git a/meta/classes-global/insane.bbclass b/meta/classes-global/insane.bbclass index 6f3cd3026d..69741a6a79 100644 --- a/meta/classes

[OE-core] [PATCH v2 2/3] insane.bbclass: Make check_32bit_symbols check for file functions too

2024-01-12 Thread Ola x Nilsson
Since _TIME_BITS=64 forces the use of _FILE_OFFSET_BITS=64, also check for functions redirected only based on _FILE_OFFSET_BITS and __USE_FILE_OFFSET64. Signed-off-by: Ola x Nilsson --- meta/classes-global/insane.bbclass | 31 ++ 1 file changed, 31 insertions

[OE-core] [PATCH 3/3] insane.bbclass: Python code cleanup in check_32bit_symbols

2024-01-12 Thread Ola x Nilsson
--- meta/classes-global/insane.bbclass | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/meta/classes-global/insane.bbclass b/meta/classes-global/insane.bbclass index 1ff6a319c4..26457764ce 100644 --- a/meta/classes-global/insane.bbclass +++ b/meta/classes-global/insane.bb

[OE-core] [PATCH 1/3] insane.bbclass: Check for adjtime in check_32_bit_symbols

2024-01-12 Thread Ola x Nilsson
adjtime was overlooked in the original commit. Signed-off-by: Ola x Nilsson --- meta/classes-global/insane.bbclass | 1 + 1 file changed, 1 insertion(+) diff --git a/meta/classes-global/insane.bbclass b/meta/classes-global/insane.bbclass index 6f3cd3026d..69741a6a79 100644 --- a/meta/classes

[OE-core] [PATCH 2/3] insane.bbclass: Make check_32bit_symbols check for file functions too

2024-01-12 Thread Ola x Nilsson
Since _TIME_BITS=64 forces the use of _FILE_OFFSET_BITS=64, also check for functions redirected only based on _FILE_OFFSET_BITS and __USE_FILE_OFFSET64. Signed-off-by: Ola x Nilsson --- meta/classes-global/insane.bbclass | 31 ++ 1 file changed, 31 insertions

Re: [OE-core] [PATCH V2 1/2] kernel-module-split: make autoload and probeconf distribution specific

2023-06-20 Thread Ola x Nilsson
n files in /lib/modprobe.d > > [1] https://www.freedesktop.org/software/systemd/man/modules-load.d.html > [2] https://www.man7.org/linux/man-pages//man5/modprobe.d.5.html > > [YOCTO #12212] https://bugzilla.yoctoproject.org/show_bug.cgi?id=12212 > > CC: Ola x Nilsson > CC: Pe

Re: [OE-core] [PATCH V3] kbd: Add ptest support

2023-06-09 Thread Ola x Nilsson
Hi, Ola > >> -Original Message----- >> From: Ola x Nilsson >> Sent: Friday, June 9, 2023 3:59 PM >> To: alexandre.bell...@bootlin.com >> Cc: Qiu, Tingting/仇 婷婷 ; Alexandre Belloni via >> lists.openembedded.org >> ; >> openembedded-core@lists.openembed

Re: [OE-core] [PATCH V3] kbd: Add ptest support

2023-06-09 Thread Ola x Nilsson
install -d ${D}${PTEST_PATH}/tests/data/findfile/test_0/keymaps/include/ >> + install ${S}/tests/data/findfile/test_0/keymaps/test0.map >> ${D}${PTEST_PATH}/tests/data/findfile/test_0/keymaps/ >> +install ${S}/tests/data/findfile/test_0/keymaps/include/* >> ${D}

[OE-core] time64.inc

2023-04-18 Thread Ola x Nilsson
https://github.com/rust-lang/libc/pull/3175 . Unfortunately I have not had any feedback so far. I have not even tried applying that change to the stdlib-rs recipe yet. I think there are 3 or 4 instances of the libc crate that have to be patched in the rustc release. -- Ola x Nilsson

[OE-core] [PATCH 2/2] package: Use shlex instead of deprecated pipe

2023-04-12 Thread Ola x Nilsson
The pipe library is deprecated in Python 3.11 and will be removed in Python 3.13. pipe.quote is just an import of shlex.quote anyway. Signed-off-by: Ola x Nilsson --- meta/lib/oe/package.py | 7 +++ 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/meta/lib/oe/package.py b/meta

[OE-core] [PATCH 1/2] patch.py: Use shlex instead of deprecated pipe

2023-04-12 Thread Ola x Nilsson
The pipe library is deprecated in Python 3.11 and will be removed in Python 3.13. pipe.quote is just an import of shlex.quote anyway. Clean up imports while we're at it. Signed-off-by: Ola x Nilsson --- meta/lib/oe/patch.py | 11 +-- 1 file changed, 5 insertions(+), 6 dele

Re: [OE-core][PATCH 1/2] kernel-module-split: make autoload and probeconf distribution specific

2023-02-16 Thread Ola x Nilsson
c?id=669c40ed8ebf480c95ce36135104e474e361a7e6#n658 > > So I need to implement this in another way, maybe relocating the files from > /etc only when systemd is enabled. > > Thanks for raising the issue. > > Jose > Hi, Please consider https://bugzilla.yoctoproject

Re: [OE-core] v2: Y2038: Sanity checker for non-64-bit time and file functions

2022-12-16 Thread Ola x Nilsson
On Fri, Dec 16 2022, Ola x Nilsson wrote: > v2: > > Renamed conf/distro/time64.conf -> conf/distro/time64.inc > Use SITEINFO_BITS to select when to apply GLIBC_64BIT_TIME_FLAGS. > > > I did not add _LARGEFILE to the option yet as I do not believe it is > the right pla

[OE-core] [PATCH RFC v2 1/2] Add QA check for 32 bit time and file offset functions

2022-12-16 Thread Ola x Nilsson
Check for known symbols that should have been redirected to 64bit variants when -D_FILE_OFFSET_BITS=64 and -D_TIME_BITS=64 are set. Signed-off-by: Ola x Nilsson --- meta/classes-global/insane.bbclass | 132 + 1 file changed, 132 insertions(+) diff --git a/meta

[OE-core] v2: Y2038: Sanity checker for non-64-bit time and file functions

2022-12-16 Thread Ola x Nilsson
v2: Renamed conf/distro/time64.conf -> conf/distro/time64.inc Use SITEINFO_BITS to select when to apply GLIBC_64BIT_TIME_FLAGS. I did not add _LARGEFILE to the option yet as I do not believe it is the right place. The _TIME_BITS=64 and _FILE_OFFSET_BITS=64 option redefine types and functions. T

[OE-core] [PATCH RFC v2 2/2] time64.inc: Include to enable 64 bit time flags

2022-12-16 Thread Ola x Nilsson
Signed-off-by: Ola x Nilsson --- meta/conf/distro/include/time64.inc | 20 1 file changed, 20 insertions(+) create mode 100644 meta/conf/distro/include/time64.inc diff --git a/meta/conf/distro/include/time64.inc b/meta/conf/distro/include/time64.inc new file mode 100644

Re: [OE-core] [PATCH RFC 3/3] time64.conf: Include to enable 64 bit time flags

2022-12-09 Thread Ola x Nilsson
On Thu, Dec 08 2022, Alexander Kanavin wrote: > On Thu, 8 Dec 2022 at 08:11, Ola x Nilsson wrote: >> +GLIBC_64BIT_TIME_FLAGS:pn-glibc = "" >> +GLIBC_64BIT_TIME_FLAGS:pn-glibc-tests = "" >> +# pipewire-v4l2 explicitly sets _FILE_OFFSET_BITS=32 to get acc

Re: [OE-core] [PATCH RFC 3/3] time64.conf: Include to enable 64 bit time flags

2022-12-09 Thread Ola x Nilsson
On Thu, Dec 08 2022, Richard Purdie wrote: > On Thu, 2022-12-08 at 11:00 +0100, Alexander Kanavin wrote: >> On Thu, 8 Dec 2022 at 08:11, Ola x Nilsson wrote: >> > +# TODO: Only for 32-bit architectures? >> > +TARGET_CC_ARCH:append:arm =

Re: [OE-core] [PATCH RFC 3/3] time64.conf: Include to enable 64 bit time flags

2022-12-09 Thread Ola x Nilsson
On Fri, Dec 09 2022, Khem Raj wrote: > Thanks for the patches > > On 12/7/22 23:11, Ola x Nilsson wrote: >> Signed-off-by: Ola x Nilsson >> --- >> meta/conf/distro/time64.conf | 23 +++ >> 1 file changed, 23 insertions(+) >> cre

[OE-core] [PATCH RFC 1/3] glibc: Add ppoll fortify symbol for 64 bit time_t

2022-12-07 Thread Ola x Nilsson
Patch so ppoll is properly redirected to it's 64bit time variant even when source fortification is active. Signed-off-by: Ola x Nilsson --- ...fortify-symbol-for-64-bit-time_t-BZ-.patch | 528 ++ meta/recipes-core/glibc/glibc_2.36.bb | 1 + 2 files changed

[OE-core] [PATCH RFC 3/3] time64.conf: Include to enable 64 bit time flags

2022-12-07 Thread Ola x Nilsson
Signed-off-by: Ola x Nilsson --- meta/conf/distro/time64.conf | 23 +++ 1 file changed, 23 insertions(+) create mode 100644 meta/conf/distro/time64.conf diff --git a/meta/conf/distro/time64.conf b/meta/conf/distro/time64.conf new file mode 100644 index 00

[OE-core] [PATCH RFC 2/3] Add QA check for 32 bit time and file offset functions

2022-12-07 Thread Ola x Nilsson
Check for known symbols that should have been redirected to 64bit variants when -D_FILE_OFFSET_BITS=64 and -D_TIME_BITS=64 are set. Signed-off-by: Ola x Nilsson --- meta/classes-global/insane.bbclass | 132 + 1 file changed, 132 insertions(+) diff --git a/meta

[OE-core] Y2038: Sanity checker for non-64-bit time and file functions

2022-12-07 Thread Ola x Nilsson
Here is my sanity checker that check for glibc symbols that use 32-bit time_t or file offsets. I include one glibc patch that fixes a problem where the redirect for ppoll did not work when fortify_source was enabled. Also include some distro settings for the -F_TIME_BITS=64 flags that I have used

Re: [yocto] [OE-core] [Openembedded-architecture] Y2038 proposal

2022-12-05 Thread Ola x Nilsson
On Mon, Dec 05 2022, Richard Purdie wrote: > On Mon, 2022-12-05 at 11:00 +0100, Ola x Nilsson wrote: >> On Wed, Nov 30 2022, Richard Purdie wrote: >> >> > On Wed, 2022-11-30 at 17:56 +0100, Alexandre Belloni wrote: >> > > On 30/11/2022 16:46:17+, Ross B

Re: [yocto] [OE-core] [Openembedded-architecture] Y2038 proposal

2022-12-05 Thread Ola x Nilsson
used on the recipes we actually use so far so we could get to a testable system. My biggest worry at the moment is rust, I know to little to know if it is an actual problem and how to fix it. I would like to be part of any "y2038 team" for Yocto. -- Ola x Nilsson -=-=-=-=-=-=-=-

[OE-core] [PATCH v2] kbd: Don't build tests

2022-11-24 Thread Ola x Nilsson
Add --disable-tests to EXTRA_OECONF as the tests are not usable in ptest - they can only run in-situ - and fails to build when building with -D_TIME_BITS=64 -D_FILE_OFFSET_BITS=64. Signed-off-by: Ola x Nilsson --- meta/recipes-core/kbd/kbd_2.5.1.bb | 1 + 1 file changed, 1 insertion(+) diff

Re: [OE-core] [PATCH] kbd: DEPEND on bison-native and don't build tests

2022-11-24 Thread Ola x Nilsson
On Thu, Nov 24 2022, Richard Purdie wrote: > On Thu, 2022-11-24 at 17:52 +0100, Ola x Nilsson wrote: >> bison-native is required if any .y-file is changed, by patch or in >> devtool. Otherwise the build will fail with > > The key point is that we don't patch

[OE-core] [PATCH] kbd: DEPEND on bison-native and don't build tests

2022-11-24 Thread Ola x Nilsson
-situ - and fails when building with -D_TIME_BITS=64 -D_FILE_OFFSET_BITS=64. Signed-off-by: Ola x Nilsson --- meta/recipes-core/kbd/kbd_2.5.1.bb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/meta/recipes-core/kbd/kbd_2.5.1.bb b/meta/recipes-core/kbd/kbd_2.5.1.bb index

Re: [OE-core] [RFC PATCH 2/3] kbd: Disable 64 bit time with 32 bit glibc

2022-11-08 Thread Ola x Nilsson
anned to change' actually happens we should be ready > for it. > > Alex > > > > > On Tue, 8 Nov 2022 at 18:58, Ola x Nilsson wrote: >> >> >> And here is a link to the documentation for the _TIME_BITS Feature Test >> Macro >> https://www.gnu.or

Re: [OE-core] [RFC PATCH 2/3] kbd: Disable 64 bit time with 32 bit glibc

2022-11-08 Thread Ola x Nilsson
And here is a link to the documentation for the _TIME_BITS Feature Test Macro https://www.gnu.org/software/libc/manual/html_node/Feature-Test-Macros.html#index-_005fTIME_005fBITS The docs for _FILE_OFFSET_BITS is just above. /Ola On Tue, Nov 08 2022, Ola x Nilsson wrote: > Sorry, that l

Re: [OE-core] [RFC PATCH 2/3] kbd: Disable 64 bit time with 32 bit glibc

2022-11-08 Thread Ola x Nilsson
Sorry, that link did not explain the -D_USE_TIME_BITS=64 flag. I was sure I had read official docs of this somewhere but now I can only find https://sourceware.org/glibc/wiki/Y2038ProofnessDesign#Detailed_implementation /Ola On Tue, Nov 08 2022, Ola x Nilsson wrote: > As far as I can t

Re: [OE-core] [RFC PATCH 2/3] kbd: Disable 64 bit time with 32 bit glibc

2022-11-08 Thread Ola x Nilsson
As far as I can tell from glibc's documentation, this is how you are supposed to do it. glibc chose to always support both 32 and 64 bit APIs for time and file offset and make the normal int size the default. musl chose to switch to 64bit altogether. https://www.gnu.org/software/libc/manual/htm

Re: [OE-core] [RFC PATCH 1/3] Try to ensure 64 bit time on 32 bit glibcful hosts

2022-11-08 Thread Ola x Nilsson
I'm working on the same thing, but I put GLIBC_64BIT_TIME_CPPFLAGS in TARGET_CC_ARCH instead to make sure they applied everywhere. I'd be interested to hear what others think is the best place to put these flags. I'm also looking at QA tests to make sure that no application or shared object is s

[OE-core] [PATCH 4/9] lib/oe/package_manager: Use with to control file handle lifetime

2019-10-21 Thread Ola x Nilsson
Signed-off-by: Ola x Nilsson --- meta/lib/oe/package_manager.py | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/meta/lib/oe/package_manager.py b/meta/lib/oe/package_manager.py index 7c373715ad..c841fdbf29 100644 --- a/meta/lib/oe/package_manager.py +++ b/meta/lib/oe

[OE-core] [PATCH 8/9] devtool-source.bbclass: Use with to manage file handle lifetime

2019-10-21 Thread Ola x Nilsson
Replace copy-and-if with a filtering list comprehension. Signed-off-by: Ola x Nilsson --- meta/classes/devtool-source.bbclass | 8 +++- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/meta/classes/devtool-source.bbclass b/meta/classes/devtool-source.bbclass index a8110006fb

[OE-core] [PATCH 3/9] lib/oe/packagedata: Use with to control file handle lifetime

2019-10-21 Thread Ola x Nilsson
Signed-off-by: Ola x Nilsson --- meta/lib/oe/packagedata.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/meta/lib/oe/packagedata.py b/meta/lib/oe/packagedata.py index cbde380b03..a82085a792 100644 --- a/meta/lib/oe/packagedata.py +++ b/meta/lib/oe/packagedata.py

[OE-core] [PATCH 2/9] oe.types.path: Use with to control file handle lifetime

2019-10-21 Thread Ola x Nilsson
Signed-off-by: Ola x Nilsson --- meta/lib/oe/types.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/meta/lib/oe/types.py b/meta/lib/oe/types.py index 77ee7ee541..bbbabafbf6 100644 --- a/meta/lib/oe/types.py +++ b/meta/lib/oe/types.py @@ -154,7 +154,8 @@ def path(value

[OE-core] [PATCH 5/9] tinderbox.bbclass: Use with to control file handle lifetime

2019-10-21 Thread Ola x Nilsson
Signed-off-by: Ola x Nilsson --- meta/classes/tinderclient.bbclass | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/meta/classes/tinderclient.bbclass b/meta/classes/tinderclient.bbclass index 00f453cec1..f7e41f2959 100644 --- a/meta/classes/tinderclient.bbclass +++ b

[OE-core] [PATCH 7/9] package.bbclass: Use with to manage file handle lifetimes

2019-10-21 Thread Ola x Nilsson
Signed-off-by: Ola x Nilsson --- meta/classes/package.bbclass | 76 1 file changed, 34 insertions(+), 42 deletions(-) diff --git a/meta/classes/package.bbclass b/meta/classes/package.bbclass index d8bef3afb0..f955df 100644 --- a/meta/classes

[OE-core] [PATCH 9/9] libc-package.bbclass: Use with to manage filehandle in do_spit_gconvs

2019-10-21 Thread Ola x Nilsson
Tweak the write loop slightly to avoid dict lookups that can easily be done in the for loop. Signed-off-by: Ola x Nilsson --- meta/classes/libc-package.bbclass | 15 +++ 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/meta/classes/libc-package.bbclass b/meta/classes

[OE-core] [PATCH 1/9] oeqa/selftest/recipetool: Use with to control file handle lifetime

2019-10-21 Thread Ola x Nilsson
Signed-off-by: Ola x Nilsson --- meta/lib/oeqa/selftest/cases/recipetool.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/meta/lib/oeqa/selftest/cases/recipetool.py b/meta/lib/oeqa/selftest/cases/recipetool.py index 1c701a40bf..c1562c63b2 100644 --- a/meta/lib/oeqa

[OE-core] [PATCH 6/9] report-error.bbclass: Use with to control file handle lifetime

2019-10-21 Thread Ola x Nilsson
Signed-off-by: Ola x Nilsson --- meta/classes/report-error.bbclass | 8 ++-- 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/meta/classes/report-error.bbclass b/meta/classes/report-error.bbclass index ea043b23e1..1a12db1206 100644 --- a/meta/classes/report-error.bbclass +++ b

[OE-core] [PATCH v2] selftest/package: Correct format arguments in test_gdb_hardlink_debug

2018-12-11 Thread Ola x Nilsson
Signed-off-by: Ola x Nilsson --- meta/lib/oeqa/selftest/cases/package.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meta/lib/oeqa/selftest/cases/package.py b/meta/lib/oeqa/selftest/cases/package.py index 0a88dc25b3..6596dabc32 100644 --- a/meta/lib/oeqa/selftest/cases

Re: [OE-core] [PATCH] selftest/package: Correct format arguments in test_gdb_hardlink_debug

2018-12-11 Thread Ola x Nilsson
On Tue, Dec 11 2018, Burton, Ross wrote: > On Tue, 11 Dec 2018 at 08:58, Ola x Nilsson wrote: >> -self.logger.error("GDB result:\n%s: %s" % output) >> +self.logger.error("GDB result:\n%s: %s", status, output) > > Isn't stat

[OE-core] [PATCH] selftest/package: Correct format arguments in test_gdb_hardlink_debug

2018-12-11 Thread Ola x Nilsson
Signed-off-by: Ola x Nilsson --- meta/lib/oeqa/selftest/cases/package.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meta/lib/oeqa/selftest/cases/package.py b/meta/lib/oeqa/selftest/cases/package.py index 0a88dc25b3..b0abc2f4ee 100644 --- a/meta/lib/oeqa/selftest/cases

Re: [OE-core] oe-selftest : Unset SANITY_TESTED_DISTROS bugzilla: 11933

2018-11-23 Thread Ola x Nilsson
inal: > > self.remove_variables() > > the function will comment the the unset SANITY_TESTED_DISTROS in local.conf > I would keep/modify the message that SANITY_TESTED_DISTROS is needed, so the user could set it before running oe-selftest the next time. Ju

Re: [OE-core] [PATCH v2] rootfs: possibility to add packages to debug rootfs

2018-10-17 Thread Ola x Nilsson
self.install(additional_pkgs.split(), attempt_only=True) Do we actually need this function? The name is completely disconnected from what it actually does, and the same should be achievable with self.pm.install((d.getVar('IMAGE_INSTALL_DEBUGFS') or '').split(),

[OE-core] [PATCH] externalsrc.bbclass: Set BB_DONT_CACHE for non-target recipes

2018-10-04 Thread Ola x Nilsson
BB_DONT_CACHE was not set for non-virtual recipes where PN != BPN, such as quilt-native. Recipes that do not set BBCLASSEXTEND should always have BB_DONT_CACHE set by externalsrc. Signed-off-by: Ola x Nilsson --- meta/classes/externalsrc.bbclass | 4 ++-- 1 file changed, 2 insertions(+), 2

Re: [OE-core] [PATCH 1/1] feat(dbg-packages): possibility to add packages to debug rootfs

2018-10-03 Thread Ola x Nilsson
t a/meta/lib/oe/package_manager.py b/meta/lib/oe/package_manager.py > index 8f4b42b0da..63d3d0f609 100644 > --- a/meta/lib/oe/package_manager.py > +++ b/meta/lib/oe/package_manager.py > @@ -581,6 +581,10 @@ class PackageManager(object, metaclass=ABCMeta): > bb.n

[OE-core] [PATCH] package.bbclass: Make staticlib problems non-fatal

2018-04-23 Thread Ola x Nilsson
Allow debugsource listing using dwarfsourcefiles to fail for static libraries when the archive content is not as expected. Signed-off-by: Ola x Nilsson --- meta/classes/package.bbclass | 9 ++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/meta/classes/package.bbclass b

[OE-core] [PATCH v2] package.bbclass: Include dbgsrc for static libs

2018-04-19 Thread Ola x Nilsson
The debugsource must be added from the package providing the static lib, because any package using that lib does not have access to the source code. Fixes [YOCTO #12558] Signed-off-by: Ola x Nilsson --- meta/classes/package.bbclass | 44 1 file

Re: [OE-core] [PATCH] package.bbclass: Include dbgsrc for static libs

2018-04-19 Thread Ola x Nilsson
You were right, I needed to check if it was a proper file. I stumbled into another issue, that golang .a files can not be read by dwarfsrcfiles. I'm not familiar with go, so I don't really know what to do about it. This patch is still an improvement in my book, even if it cannot handle go archiv

Re: [OE-core] [PATCH] package.bbclass: Include dbgsrc for static libs

2018-03-27 Thread Ola x Nilsson
ping? -- Ola Nilsson From: openembedded-core-boun...@lists.openembedded.org on behalf of Ola x Nilsson Sent: Friday, February 23, 2018 08:46 To: openembedded-core@lists.openembedded.org Subject: [OE-core] [PATCH] package.bbclass: Include dbgsrc for

[OE-core] [PATCH] libcgroup: Various fixes

2018-03-06 Thread Ola x Nilsson
* Use PACKAGECONFIG for pam instead of two bb.utils.contains * Add leading whitespace to EXTRA_OEMAKE_append_libc_musl * Usr lnr in do_install_append rather than a sed generated ../-sequence. Signed-off-by: Ola x Nilsson --- meta/recipes-core/libcgroup/libcgroup_0.41.bb | 11 ++- 1

Re: [OE-core] [PATCH 1/8] lib/oe/path: implement is_path_under()

2018-02-22 Thread Ola x Nilsson
> From: openembedded-core-boun...@lists.openembedded.org > [mailto:openembedded-core-boun...@lists.openembedded.org] On Behalf > Of Paul Eggleton > Sent: den 23 februari 2018 04:02 > To: openembedded-core@lists.openembedded.org > > Signed-off-by: Paul Eggleton > --- > meta/lib/oe/path.py | 24 +

[OE-core] [PATCH] package.bbclass: Include dbgsrc for static libs

2018-02-22 Thread Ola x Nilsson
The debugsource must be added from the package providing the static lib, because any package using that lib does not have access to the source code. Fixes [YOCTO #12558] Signed-off-by: Ola x Nilsson --- meta/classes/package.bbclass | 42 ++ 1 file

[OE-core] [PATCH] alsa-utils: Install and delete from the same udev-rules-dir

2017-09-21 Thread Ola x Nilsson
The --with-udev-rules-dir option used with udev is exactly what the configure script uses, so there is no need for it. On the other hand, if we do not have an udev.pc file we should tell alsa-utils where to install the rules so we know where they should be deleted from. Signed-off-by: Ola x

Re: [OE-core] [PATCH 2/2] externalsrc.bbclass: Avoid symlink clashes for virtclasses

2017-09-13 Thread Ola x Nilsson
> From: Richard Purdie > Sent: Wednesday, September 13, 2017 12:41 > >On Tue, 2017-09-12 at 11:23 +, Ola x Nilsson wrote: >> I noticed that the preceding commit has been merged. >> Is there some problem with this one? >

Re: [OE-core] [PATCH 2/2] externalsrc.bbclass: Avoid symlink clashes for virtclasses

2017-09-12 Thread Ola x Nilsson
I noticed that the preceding commit has been merged. Is there some problem with this one? -- Ola Nilsson From: openembedded-core-boun...@lists.openembedded.org on behalf of Ola x Nilsson Sent: Monday, August 28, 2017 16:58 To: openembedded-core

[OE-core] [PATCH] devtool: status: Sort entries before printing

2017-09-04 Thread Ola x Nilsson
Sorted entries are easier to read. Signed-off-by: Ola x Nilsson --- scripts/lib/devtool/standard.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/lib/devtool/standard.py b/scripts/lib/devtool/standard.py index 174cc861e1..0998fa7055 100644 --- a/scripts/lib/devtool

[OE-core] [PATCH 2/2] externalsrc.bbclass: Avoid symlink clashes for virtclasses

2017-08-28 Thread Ola x Nilsson
to protect the .git/info/exclude file. Signed-off-by: Ola x Nilsson --- meta/classes/externalsrc.bbclass| 16 ++- meta/lib/oeqa/selftest/cases/devtool.py | 48 + 2 files changed, 63 insertions(+), 1 deletion(-) diff --git a/meta/classes/extern

[OE-core] [PATCH 1/2] oeqa/selftest/case: Add recipeinc method

2017-08-28 Thread Ola x Nilsson
to the file in case that is useful. The test_recipe.inc file is usually cleaned up in a finally block, but that block executes before any teardown operations. This blocks any teardown that requires the presence of the test_recipe.inc file. Signed-off-by: Ola x Nilsson --- meta/lib/oeqa

[OE-core] [PATCH] devtool: Compare abspath of both B and S

2017-05-30 Thread Ola x Nilsson
l also handle the case where ${B} != ${S} but the abspaths are equal. Signed-off-by: Ola x Nilsson --- scripts/lib/devtool/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/lib/devtool/__init__.py b/scripts/lib/devtool/__init__.py index d646b0cf63..29c4c05071 1

Re: [OE-core] [PATCH v3 01/11] image-wic: move wic code to image-wic.bbclass

2017-01-30 Thread Ola x Nilsson
Please name the class image_wic.bbclass instead. As dashes are not allowed in function names, you cannot use the image_wic_do_write_wks_template pattern of function names if you use a class name with a dash in it. -- Ola x Nilsson > -Original Message- > From: openembedded-cor

[OE-core] [PATCH] externalsrc: Hide created symlinks with .git/info/exclude

2017-01-25 Thread Ola x Nilsson
Add created symlinks to the exclude file. This will both make them less distracting and hide them from the srctree_hash_files function. Signed-off-by: Ola x Nilsson --- meta/classes/externalsrc.bbclass | 17 - 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/meta

  1   2   >