Re: [OE-core] [PATCH] base.bbclass: make do_fetch depends on PREMIRRORS MIRRORS

2024-04-17 Thread Changqing Li
to provide me some background and notes. Regards Changqing Alex On Tue, 16 Apr 2024 at 03:48, Changqing Li via lists.openembedded.org wrote: On 4/15/24 18:05, Richard Purdie wrote: CAUTION: This email comes from a non Wind River email account! Do not click links or open attachments unless you

Re: [OE-core] [PATCH] base.bbclass: make do_fetch depends on PREMIRRORS MIRRORS

2024-04-15 Thread Changqing Li
On 4/15/24 18:05, Richard Purdie wrote: CAUTION: This email comes from a non Wind River email account! Do not click links or open attachments unless you recognize the sender and know the content is safe. On Mon, 2024-04-15 at 16:30 +0800, Changqing Li via lists.openembedded.org wrote: From

Re: [OE-core] [PATCH] base.bbclass: make do_fetch depends on PREMIRRORS MIRRORS

2024-04-15 Thread Changqing Li
On 4/15/24 16:30, Changqing Li wrote: From: Changqing Li When there are tarballs in local mirrorfile://, do_fetch will create symlink under DL_DIR, eg: pseudo-prebuilt-2.33.tar.xz -> /project/path/to/localmirrorA/pseudo-prebuilt-2.33.tar.xz after user update path from localmirr

[OE-core] [PATCH] base.bbclass: make do_fetch depends on PREMIRRORS MIRRORS

2024-04-15 Thread Changqing Li
From: Changqing Li When there are tarballs in local mirror file://, do_fetch will create symlink under DL_DIR, eg: pseudo-prebuilt-2.33.tar.xz -> /project/path/to/localmirrorA/pseudo-prebuilt-2.33.tar.xz after user update path from localmirrorA to localmirrorB, because do_fetch don't depe

[OE-core] [PATCH] dnf: fix Exception handling for class ProcessLock

2024-03-24 Thread Changqing Li
From: Changqing Li Yocto based systems will sometimes have log_lock.pid left in target filesystems. Users typing 'ls /' will notice it, and will never be removed. It happened when log rotate happened, refer [1], since the problem descripted in patch 0001-lock.py-fix-Exception-handling.patch

Re: [OE-core] [PATCH V2] dnf: remove log_lock.pid before exit

2024-03-14 Thread Changqing Li
On 3/7/24 19:42, Alexander Kanavin wrote: CAUTION: This email comes from a non Wind River email account! Do not click links or open attachments unless you recognize the sender and know the content is safe. On Thu, 7 Mar 2024 at 11:21, Chen Qi via lists.openembedded.org wrote: You can see

[OE-core] [PATCH V2] dnf: remove log_lock.pid before exit

2024-03-07 Thread Changqing Li
From: Changqing Li dnf has a bug, refer [1], it causes that log_lock.pid may not removed after dnf exit. And for native dnf, since we change the lock file path to /, it will never be removed, and make the rootfs not clean,refer [2][3]. This patch is a workaround to fix above issue. [1] https

Re: [OE-core] [PATCH] dnf: remove log_lock.pid before exit

2024-03-07 Thread Changqing Li
2024 at 07:49, Changqing Li wrote: From: Changqing Li dnf has a bug, refer [1], it causes that log_lock.pid may not removed after dnf exit. And for native dnf, since we change the lock file path to /, it will never be removed, and make the rootfs not clean,refer [2][3]. This patch

[OE-core] [PATCH V6] systemd: fix dead link /var/log/README

2024-03-06 Thread Changqing Li
From: Changqing Li There are 2 issues here: First, in package systemd, there is a file /usr/lib/tmpfile.d/legacy.conf, which will create a symlink to /usr/share/doc/systemd/README.logs during boot time. But for oe, /usr/share/doc/systemd/README.logs is packaged in systemd-doc, which will make

[OE-core] [PATCH V7] rxvt-unicode: Fix installing of terminfo

2024-03-06 Thread Changqing Li
From: Changqing Li For cross compile, TIC will be native tic in recipe-sysroot-native, and the terminfo path will be native path, the rxvt-unicode terminfo will be wrongly installed to native path. install terminfo to correct path in do_install Signed-off-by: Changqing Li --- meta/recipes

[OE-core] [PATCH] go: filter out build specific path from the linker flags

2024-03-06 Thread Changqing Li
From: Changqing Li patch 0007-exec.go-do-not-write-linker-flags-into-buildids.patch removes linker flags from buildids for not breaking reproducibility, but it seems that this will make go not rebuild when linker flag changes, Refer [1]. So remove this oe-specific patch, and change to filter out

[OE-core] [PATCH] dnf: remove log_lock.pid before exit

2024-03-06 Thread Changqing Li
From: Changqing Li dnf has a bug, refer [1], it causes that log_lock.pid may not removed after dnf exit. And for native dnf, since we change the lock file path to /, it will never be removed, and make the rootfs not clean,refer [2][3]. This patch is a workaround to fix above issue. [1] https

Re: [OE-core] [PATCH] go: filter out build specific path from the linker flags

2024-03-03 Thread Changqing Li
On 3/4/24 00:32, Richard Purdie wrote: CAUTION: This email comes from a non Wind River email account! Do not click links or open attachments unless you recognize the sender and know the content is safe. On Thu, 2024-02-29 at 09:21 +0800, Changqing Li wrote: From: Changqing Li patch 0007

Re: [OE-core] [PATCH V5] systemd: fix a dead link under /var/log

2024-02-29 Thread Changqing Li
On Behalf Of Alexander Kanavin Sent: den 29 februari 2024 10:01 To: Changqing Li Cc: Changqing Li;openembedded-core@lists.openembedded.org Subject: Re: [OE-core] [PATCH V5] systemd: fix a dead link under /var/log On Thu, 29 Feb 2024 at 06:56, Changqing Li wrote: The solution is also good. But package

Re: [OE-core] [PATCH V5] systemd: fix a dead link under /var/log

2024-02-28 Thread Changqing Li
On 2/29/24 14:04, Khem Raj wrote: CAUTION: This email comes from a non Wind River email account! Do not click links or open attachments unless you recognize the sender and know the content is safe. On Wed, Feb 28, 2024 at 9:56 PM Changqing Li wrote: On 2/28/24 17:45, Alexander Kanavin

Re: [OE-core] [PATCH V5] systemd: fix a dead link under /var/log

2024-02-28 Thread Changqing Li
On 2/28/24 17:45, Alexander Kanavin wrote: CAUTION: This email comes from a non Wind River email account! Do not click links or open attachments unless you recognize the sender and know the content is safe. On Wed, 28 Feb 2024 at 04:19, Changqing Li wrote: 1. Currently, There is one line

[OE-core] [PATCH] go: filter out build specific path from the linker flags

2024-02-28 Thread Changqing Li
From: Changqing Li patch 0007-exec.go-do-not-write-linker-flags-into-buildids.patch removes linker flags from buildids for not breaking reproducibility, but it seems that this will make go not rebuild when linker flag changes, Refer [1]. So remove this oe-specific patch, and change to filter out

Re: [OE-core] [PATCH V5] systemd: fix a dead link under /var/log

2024-02-27 Thread Changqing Li
t references it from other files. What is beoding done with sed and grep is *really* hard to understand. I think these is what I am doing. Any more comments? if not, I can update the description of this patch to make things more clear. Thanks //Changqing Alex On Tue, 27 Feb 2024 at

Re: [OE-core] [PATCH V6] rxvt-unicode: Fix installing of terminfo

2024-02-27 Thread Changqing Li
On 2/27/24 17:37, Alexander Kanavin wrote: CAUTION: This email comes from a non Wind River email account! Do not click links or open attachments unless you recognize the sender and know the content is safe. On Tue, 27 Feb 2024 at 08:10, Changqing Li wrote: + + install -d ${D

[OE-core] [PATCH V6] rxvt-unicode: Fix installing of terminfo

2024-02-26 Thread Changqing Li
From: Changqing Li For cross compile, TIC will be native tic in recipe-sysroot-native, and the terminfo path will be native path, the rxvt-unicode terminfo will be wrongly installed to native path. disable the terminfo installation by setting TIC to : and use qemu to install terminfo to make

[OE-core] [PATCH V5] systemd: fix a dead link under /var/log

2024-02-26 Thread Changqing Li
From: Changqing Li Commit 6fe23ff31c0 changed README to a symlink to README.logs, and install README.logs under systemd doc dir. But for OE, systemd doc dir is splited into package systemd-doc, when it is not installed on the target, there will be an dead link: Eg: root@intel-x86-64:/var/log

Re: [OE-core] [PATCH V3] systemd: fix a dead link under /var/log

2024-02-17 Thread Changqing Li
On Behalf Of Changqing Li Sent: den 7 februari 2024 09:34 To:openembedded-core@lists.openembedded.org Subject: [OE-core] [PATCH V3] systemd: fix a dead link under /var/log From: Changqing Li Commit 6fe23ff31c0 changed README to a symlink to README.logs, and install README.logs under systemd doc dir

[OE-core] [PATCH V4] systemd: fix a dead link under /var/log

2024-02-17 Thread Changqing Li
From: Changqing Li Commit 6fe23ff31c0 changed README to a symlink to README.logs, and install README.logs under systemd doc dir. But for OE, systemd doc dir is splited into package systemd-doc, when it is not installed on the target, there will be an dead link: Eg: root@intel-x86-64:/var/log

[OE-core] [PATCH V2] tcmode-default.inc: use ?= to set PREFERRED_VERSION_llvm/llvm-native/nativesdk-llvm

2024-01-22 Thread Changqing Li
From: Changqing Li If meta-clang is included, LLVMVERSION might set to version different from llvm version in oe-core, and PREFERRED_PROVIDER_llvm set to clang, In this condition, following warning is reported: WARNING: preferred version 16.0.1 of llvm-native not available (for item llvm-native

Re: [OE-core] [PATCH] tcmode-default.inc: use ?= to set PREFERRED_VERSION_llvm/llvm-native/nativesdk-llvm

2024-01-21 Thread Changqing Li
7-1-martin.ja...@gmail.com/__;!!AjveYdw8EvQ!fHtiSeYD8TPEVNtjfDtPZrodZY3GykPPupY5y-fmJHKZ6GInFWbYKkRN5UpNDB4pdgdmAzzT-aah4fEExz_0nBedyN8m3FE$> On Fri, Jan 19, 2024 at 8:35 AM Changqing Li wrote: From: Changqing Li use ?= to set following configs in order to allow user to override the d

Re: [OE-core] [PATCH] tcmode-default.inc: use ?= to set PREFERRED_VERSION_llvm/llvm-native/nativesdk-llvm

2024-01-21 Thread Changqing Li
On 1/19/24 17:29, Richard Purdie wrote: CAUTION: This email comes from a non Wind River email account! Do not click links or open attachments unless you recognize the sender and know the content is safe. On Fri, 2024-01-19 at 15:35 +0800, Changqing Li wrote: From: Changqing Li use ?= to set

[OE-core] [PATCH] tcmode-default.inc: use ?= to set PREFERRED_VERSION_llvm/llvm-native/nativesdk-llvm

2024-01-18 Thread Changqing Li
From: Changqing Li use ?= to set following configs in order to allow user to override the default settings: PREFERRED_VERSION_llvm PREFERRED_VERSION_llvm-native PREFERRED_VERSION_nativesdk-llvm Signed-off-by: Changqing Li --- meta/conf/distro/include/tcmode-default.inc | 6 +++--- 1 file

Re: [OE-core] [RFC PATCH V2 0/5] Fix persistent tmp

2024-01-05 Thread Changqing Li
this patch to make it work for both sysV and systemd. Not sure if you still have those concerns now, so just kindly ping to check. Thanks Changqing On 12/11/23 08:58, Changqing Li wrote: From: Changqing Li Hi, All Currently, VOLATILE_TMP_DIR not works, set VOLATILE_TMP_DIR="no&quo

Re: [OE-core] [PATCH V4] rxvt-unicode: set correct outdir for tic

2023-12-26 Thread Changqing Li
suggestion about  which solution is better? [1] https://git.openembedded.org/openembedded-core/tree/meta/recipes-core/ncurses/ncurses.inc#n81 Thanks Changqing Ross On 22 Dec 2023, at 08:38, Changqing Li via lists.openembedded.org wrote: From: Changqing Li * tic is from ncurses-native, and set

[OE-core] [PATCH V4] rxvt-unicode: set correct outdir for tic

2023-12-22 Thread Changqing Li
From: Changqing Li * tic is from ncurses-native, and set TERMINFO as ${RECIPE_SYSROOT_NATIVE}/${datadir}/terminfo of ncurses-native, so the rxvt-unicode terminfo will be wrongly installed in there. set the outdir explicitly to install them to correct dir. * Add ncurses-native as DEPENDS to fix

[OE-core] [PATCH V3] man-pages: remove conflict pages

2023-12-20 Thread Changqing Li
From: Changqing Li Remove the pages which libxcrypt and shadow already have to avoid following conflicts during install man-pages and libxcrypt/shadow at the same time. Error: Transaction test error: file /usr/share/man/man3/crypt.3 from install of libcrypt-doc-4.4.33-r0.x86_64 conflicts

Re: [OE-core] [PATCH V2] libxcrypt.inc: use alternatives to resolve crypt.3 conflict

2023-12-20 Thread Changqing Li
On 12/19/23 16:29, Richard Purdie wrote: CAUTION: This email comes from a non Wind River email account! Do not click links or open attachments unless you recognize the sender and know the content is safe. On Tue, 2023-12-19 at 12:07 +0800, Changqing Li wrote: Kindly ping And why have

[OE-core] [PATCH V3] rxvt-unicode: set correct outdir for tic

2023-12-20 Thread Changqing Li
From: Changqing Li * tic is from ncurses-native, and set TERMINFO as ${RECIPE_SYSROOT_NATIVE}/${datadir}/terminfo of ncurses-native, so the rxvt-unicode terminfo will be wrongly installed in there. set the outdir explicitly to install them to correct dir. * Add ncurses-native as DEPENDS to fix

Re: [OE-core] [RFC PATCH V2 0/5] Fix persistent tmp

2023-12-18 Thread Changqing Li
kindly ping On 12/11/23 08:58, Changqing Li wrote: From: Changqing Li Hi, All Currently, VOLATILE_TMP_DIR not works, set VOLATILE_TMP_DIR="no", VOLATILE_LOG_DIR="no", after boot target, /var/tmp still link to tmpfs /var/volatile/tmp lrwxrwxrwx 1 root root 11 Mar 9

Re: [OE-core] [PATCH V2] libxcrypt.inc: use alternatives to resolve crypt.3 conflict

2023-12-18 Thread Changqing Li
. Regards Changqing On 12/6/23 13:34, Changqing Li wrote: From: Changqing Li To fix: Error: Transaction test error: file /usr/share/man/man3/crypt.3 from install of libcrypt-doc-4.4.33-r0.x86_64 conflicts with file from package man-pages-6.04-r0.x86_64 Signed-off-by: Changqing Li

Re: [OE-core] [PATCH] rxvt-unicode: set correct outdir for tic

2023-12-14 Thread Changqing Li
On 12/14/23 00:28, Alexander Kanavin wrote: CAUTION: This email comes from a non Wind River email account! Do not click links or open attachments unless you recognize the sender and know the content is safe. On Wed, 13 Dec 2023 at 09:30, Changqing Li wrote: +From

[OE-core] [PATCH V2] rxvt-unicode: set correct outdir for tic

2023-12-14 Thread Changqing Li
From: Changqing Li tic is from ncurses-native, and set TERMINFO as ${RECIPE_SYSROOT_NATIVE}/${datadir}/terminfo of ncurses-native, so the rxvt-unicode terminfo will be wrongly installed in there. set the outdir explicitly to install them to correct dir. Signed-off-by: Changqing Li

[OE-core] [PATCH] rxvt-unicode: set correct outdir for tic

2023-12-13 Thread Changqing Li
From: Changqing Li tic is from ncurses-native, and set TERMINFO as ${RECIPE_SYSROOT_NATIVE}/${datadir}/terminfo of ncurses-native, so the rxvt-unicode terminfo will be wrongly installed in there. set the outdir explicitly to install them to correct dir. Signed-off-by: Changqing Li

Re: [OE-core] [PATCH] rpm: workaround to remove dnf lock file

2023-12-10 Thread Changqing Li
On 12/8/23 18:21, Alexander Kanavin wrote: CAUTION: This email comes from a non Wind River email account! Do not click links or open attachments unless you recognize the sender and know the content is safe. On Fri, 8 Dec 2023 at 11:13, Changqing Li wrote: dnf has a bug, refer [1], it cause

Re: [OE-core] [PATCH 2/5] base-files: update dirs1777 and volatiles according to VOLATILE_TMP_DIR

2023-12-10 Thread Changqing Li
On Behalf Of Changqing Li Sent: den 8 december 2023 11:13 To: openembedded-core@lists.openembedded.org Subject: [OE-core] [PATCH 2/5] base-files: update dirs1777 and volatiles according to VOLATILE_TMP_DIR From: Changqing Li * update dirs1777 so that only create /var/volatiles/tmp when VOLATILE_TMP_DIR

[OE-core] [PATCH 5/5] eudev: create dir /tmp if persistent tmp is used

2023-12-10 Thread Changqing Li
From: Changqing Li the automount rule for udev needs /tmp directory available, if VOLATILE_TMP_DIR = yes, to make sure /var/volatile/tmp exist, if VOLATILE_TMP_DIR = no, to make sure /tmp exist. Signed-off-by: Changqing Li --- meta/recipes-core/udev/eudev_3.2.14.bb | 4 1 file changed, 4

[OE-core] [PATCH 3/5] initscripts: support persistent tmp

2023-12-10 Thread Changqing Li
From: Changqing Li * default volatiles file is for VOLATILE_TMP_DIR=yes, and VOLATILE_LOG_DIR=yes, if they set to no, remove volatile related config * replace /var/volatile/tmp with /var/tmp for populate-volatile.sh Signed-off-by: Changqing Li --- .../initscripts/initscripts-1.0/volatiles

[OE-core] [PATCH 4/5] systemd: support persistent tmp

2023-12-10 Thread Changqing Li
From: Changqing Li * update 00-create-volatile.conf, for volatile tmp, make /tmp -> /var/tmp, /var/tmp -> /var/volatile/tmp and set age of /var/volatile/tmp to 10d * if VOLATILE_TMP_DIR/VOLATILE_LOG_DIR set to no, remove volatile related configs from 00-create-volatile.conf Sign

[OE-core] [PATCH 1/5] bitbake.conf: set correct FILESYSTEM_PERMS_TABLES

2023-12-10 Thread Changqing Li
From: Changqing Li * Update fs-perms.txt as an common fs-perms file * Remove fs-perms-persistent-log.txt * Add fs-perms-volatile-log.txt and fs-perms-volatile-tmp.txt to be used when VOLATILE_LOG_DIR/VOLATILE_TMP_DIR set to yes Signed-off-by: Changqing Li --- meta/conf/bitbake.conf

[OE-core] [PATCH 2/5] base-files: update dirs1777 and volatiles according to VOLATILE_TMP_DIR

2023-12-10 Thread Changqing Li
From: Changqing Li * update dirs1777 so that only create /var/volatiles/tmp when VOLATILE_TMP_DIR set to yes, create /var/tmp when VOLATILE_TMP_DIR set to no * update volatiles so that only symlink /var/tmp to /var/volatiles/tmp when VOLATILE_TMP_DIR set to yes * mount /tmp as tmpfs fs when

[OE-core] [RFC PATCH V2 0/5] Fix persistent tmp

2023-12-10 Thread Changqing Li
From: Changqing Li Hi, All Currently, VOLATILE_TMP_DIR not works, set VOLATILE_TMP_DIR="no", VOLATILE_LOG_DIR="no", after boot target, /var/tmp still link to tmpfs /var/volatile/tmp lrwxrwxrwx 1 root root 11 Mar 9 2018 lock -> ../run/lock drwxr-xr-x 4 root roo

[OE-core] [PATCH 3/5] initscripts: support persistent tmp

2023-12-08 Thread Changqing Li
From: Changqing Li * default volatiles file is for VOLATILE_TMP_DIR=yes, and VOLATILE_LOG_DIR=yes, if they set to no, remove volatile related config * replace /var/volatile/tmp with /var/tmp for populate-volatile.sh Signed-off-by: Changqing Li --- .../initscripts/initscripts-1.0/volatiles

[OE-core] [PATCH 5/5] eudev: create dir /tmp if persistent tmp is used

2023-12-08 Thread Changqing Li
From: Changqing Li the automount rule for udev needs /tmp directory available, if VOLATILE_TMP_DIR = yes, to make sure /var/volatile/tmp exist, if VOLATILE_TMP_DIR = no, to make sure /tmp exist. Signed-off-by: Changqing Li --- meta/recipes-core/udev/eudev_3.2.14.bb | 4 1 file changed, 4

[OE-core] [PATCH 4/5] systemd: support persistent tmp

2023-12-08 Thread Changqing Li
From: Changqing Li * update 00-create-volatile.conf, for volatile tmp, make /tmp -> /var/tmp, /var/tmp -> /var/volatile/tmp and set age of /var/volatile/tmp to 10d * if VOLATILE_TMP_DIR/VOLATILE_LOG_DIR set to no, remove volatile related configs from 00-create-volatile.conf Sign

[OE-core] [PATCH 2/5] base-files: update dirs1777 and volatiles according to VOLATILE_TMP_DIR

2023-12-08 Thread Changqing Li
From: Changqing Li * update dirs1777 so that only create /var/volatiles/tmp when VOLATILE_TMP_DIR set to yes, create /var/tmp when VOLATILE_TMP_DIR set to no * update volatiles so that only symlink /var/tmp to /var/volatiles/tmp when VOLATILE_TMP_DIR set to yes * mount /tmp as tmpfs fs when

[OE-core] [PATCH 1/5] bitbake.conf: set correct FILESYSTEM_PERMS_TABLES

2023-12-08 Thread Changqing Li
From: Changqing Li * Update fs-perms.txt as an common fs-perms file * Remove fs-perms-persistent-log.txt * Add fs-perms-volatile-log.txt and fs-perms-volatile-tmp.txt to be used when VOLATILE_LOG_DIR/VOLATILE_TMP_DIR set to yes Signed-off-by: Changqing Li --- meta/conf/bitbake.conf

[OE-core] [PATCH 0/5] *** Fix persistent tmp ***

2023-12-08 Thread Changqing Li
From: Changqing Li Hi, All Currently, VOLATILE_TMP_DIR not works, set VOLATILE_TMP_DIR="no", VOLATILE_LOG_DIR="no", after boot target, /var/tmp still link to tmpfs /var/volatile/tmp lrwxrwxrwx 1 root root 11 Mar 9 2018 lock -> ../run/lock drwxr-xr-x 4 root roo

[OE-core] [PATCH] rpm: workaround to remove dnf lock file

2023-12-08 Thread Changqing Li
From: Changqing Li dnf has a bug, refer [1], it cause that log_lock.pid may not removed after dnf exit. And for native dnf, since we change the lock file path to /, it will never be removed, and make the rootfs not clean,refer [2][3]. This patch is a workaround to fix above issue. [1] https

[OE-core] [PATCH V2] libxcrypt.inc: use alternatives to resolve crypt.3 conflict

2023-12-05 Thread Changqing Li
From: Changqing Li To fix: Error: Transaction test error: file /usr/share/man/man3/crypt.3 from install of libcrypt-doc-4.4.33-r0.x86_64 conflicts with file from package man-pages-6.04-r0.x86_64 Signed-off-by: Changqing Li --- meta/recipes-core/libxcrypt/libxcrypt.inc | 7 ++- 1

Re: [OE-core] [PATCH] libxcrypt.inc: use alternatives to resolve crypt.3 conflict

2023-12-05 Thread Changqing Li
On 12/6/23 02:27, Khem Raj wrote: CAUTION: This email comes from a non Wind River email account! Do not click links or open attachments unless you recognize the sender and know the content is safe. On Tue, Dec 5, 2023 at 3:48 AM Ross Burton wrote: On 5 Dec 2023, at 01:41, Changqing Li via

Re: [OE-core] [master][PATCH 2/2] rootfs-postcommands.bbclass: add post func remove_unused_dnf_log_lock

2023-12-05 Thread Changqing Li
On 12/5/23 17:55, Alexander Kanavin wrote: CAUTION: This email comes from a non Wind River email account! Do not click links or open attachments unless you recognize the sender and know the content is safe. On Tue, 5 Dec 2023 at 06:46, Changqing Li wrote: So I add this patch https

Re: [OE-core] [master][PATCH 2/2] rootfs-postcommands.bbclass: add post func remove_unused_dnf_log_lock

2023-12-04 Thread Changqing Li
to remove it at post process of rootfs, to  make an clean rootfs. Regards //Changqing On Tue, 11 Jul 2023 at 10:34, Changqing Li wrote: On 7/4/23 19:11, Ross Burton wrote: CAUTION: This email comes from a non Wind River email account! Do not click links or open attachments unless you recognize

[OE-core] [PATCH] libxcrypt.inc: use alternatives to resolve crypt.3 conflict

2023-12-04 Thread Changqing Li
From: Changqing Li To fix: Error: Transaction test error: file /usr/share/man/man3/crypt.3 from install of libcrypt-doc-4.4.33-r0.x86_64 conflicts with file from package man-pages-6.04-r0.x86_64 Signed-off-by: Changqing Li --- meta/recipes-core/libxcrypt/libxcrypt.inc | 7 ++- 1

[OE-core] [kirkstone][PATCH] sysklogd: fix integration with systemd-journald

2023-09-04 Thread Changqing Li
From: Changqing Li Fix an issue with early log messages being lost when running in systemd. Signed-off-by: Changqing Li --- ...KillMode-process-is-not-recommended-.patch | 33 ...-messages-lost-when-running-in-syste.patch | 75 +++ .../sysklogd/sysklogd_2.3.0.bb

[OE-core] [PATCH V2] sqlite3: set CVE_STATUS for CVE-2023-36191

2023-09-03 Thread Changqing Li
From: Changqing Li The error is a bug. It has been fixed upstream. But it is not a vulnerability. You may safely ignore the CVE. Refer: [1] https://www.sqlite.org/forum/forumpost/19f55ef73b Signed-off-by: Changqing Li --- meta/recipes-support/sqlite/sqlite3_3.42.0.bb | 2 ++ 1 file changed

Re: [OE-core] [PATCH] sqlite3: set CVE_STATUS for CVE-2023-36191

2023-09-03 Thread Changqing Li
Of Changqing Li via lists.openembedded.org Sent: Friday, September 1, 2023 11:02 To: openembedded-core@lists.openembedded.org Subject: [OE-core] [PATCH] sqlite3: set CVE_STATUS for CVE-2023-36191 From: Changqing Li The error is a bug. It has been fixed upstream. But it is not a vulnerability. You

[OE-core] [PATCH] sqlite3: set CVE_STATUS for CVE-2023-36191

2023-09-01 Thread Changqing Li
From: Changqing Li The error is a bug. It has been fixed upstream. But it is not a vulnerability. You may safely ignore the CVE. Refer: [1] https://www.sqlite.org/forum/forumpost/19f55ef73b Signed-off-by: Changqing Li --- meta/recipes-support/sqlite/sqlite3_3.42.0.bb | 2 ++ 1 file changed

[OE-core] [mickledore][PATCH] erofs-utils: fix CVE-2023-33551/CVE-2023-33552

2023-07-13 Thread Changqing Li
From: Changqing Li * CVE-2023-33551.patch is for fix CVE-2023-33551. * CVE-2023-33552-3.patch is upstream patch for fix CVE-2023-33552, since the patch context is changed, CVE-2023-33552-1.patch and CVE-2023-33552-2.patch is backported. Signed-off-by: Changqing Li --- .../erofs-utils/CVE

Re: [OE-core] [master][PATCH 2/2] rootfs-postcommands.bbclass: add post func remove_unused_dnf_log_lock

2023-07-11 Thread Changqing Li
Jun 2023 at 11:14, Changqing Li wrote: Remove log_lock.pid which maybe created during do_rootfs. In commit [dnf: only write the log lock to root for native dnf], native dnf changed to write log lock to root, and target dnf still use /var/log, so log_lock.pid need to be removed post do_rootfs

Re: [OE-core] [master][PATCH V2] systemd: fix a dead link under /var/log

2023-07-10 Thread Changqing Li
On 6/29/23 19:44, Richard Purdie wrote: CAUTION: This email comes from a non Wind River email account! Do not click links or open attachments unless you recognize the sender and know the content is safe. On Thu, 2023-06-29 at 18:10 +0800, Changqing Li wrote: From: Changqing Li Commit

[OE-core] [master][PATCH 1/2] dnf: only write the log lock to root for native dnf

2023-06-30 Thread Changqing Li
From: Changqing Li >From commit 742a1b7124, log_lock.pid is writen to root, but following file is not changed, which will make it never deleted, and an unexpected file exist in root dir after boot target. $ tail -n 1 etc/tmpfiles.d/dnf.conf r /var/log/log_lock.pid Besides, root dir

[OE-core] [master][PATCH 2/2] rootfs-postcommands.bbclass: add post func remove_unused_dnf_log_lock

2023-06-30 Thread Changqing Li
From: Changqing Li Remove log_lock.pid which maybe created during do_rootfs. In commit [dnf: only write the log lock to root for native dnf], native dnf changed to write log lock to root, and target dnf still use /var/log, so log_lock.pid need to be removed post do_rootfs. Signed-off

[OE-core] [mickledore][PATCH 2/2] rootfs-postcommands.bbclass: add post func remove_unused_dnf_log_lock

2023-06-30 Thread Changqing Li
From: Changqing Li Remove log_lock.pid which maybe created during do_rootfs. In commit [dnf: only write the log lock to root for native dnf], native dnf changed to write log lock to root, and target dnf still use /var/log, so log_lock.pid need to be removed post do_rootfs. Signed-off

[OE-core] [mickledore][PATCH 1/2] dnf: only write the log lock to root for native dnf

2023-06-30 Thread Changqing Li
From: Changqing Li >From commit 742a1b7124, log_lock.pid is writen to root, but following file is not changed, which will make it never deleted, and an unexpected file exist in root dir after boot target. $ tail -n 1 etc/tmpfiles.d/dnf.conf r /var/log/log_lock.pid Besides, root dir

Re: [OE-core] [mickledore][PATCH 1/2] erofs-utils: update 1.5 -> 1.6

2023-06-29 Thread Changqing Li
On Mon, Jun 26, 2023 at 9:05 PM Changqing Li wrote: From: Alexander Kanavin Drop patches merged upstream. --enable-largefile is no longer necessary, as compiler options are being passed in explicitly. (From OE-Core rev: 39d38b278cba7b46fd9b367e6f8c989327899e6f) Signed-off-by: Alexander

[OE-core] [mickledore][PATCH V2] systemd: fix a dead link under /var/log

2023-06-29 Thread Changqing Li
From: Changqing Li Commit 6fe23ff31c0 changed README to a symlink to README.logs, and install README.logs under systemd doc dir. But for OE, systemd doc dir is splited into package systemd-doc, when it is not installed on the target, there will be an dead link: Eg: root@intel-x86-64:/var/log

[OE-core] [master][PATCH V2] systemd: fix a dead link under /var/log

2023-06-29 Thread Changqing Li
From: Changqing Li Commit 6fe23ff31c0 changed README to a symlink to README.logs, and install README.logs under systemd doc dir. But for OE, systemd doc dir is splited into package systemd-doc, when it is not installed on the target, there will be an dead link: Eg: root@intel-x86-64:/var/log

[OE-core] [master][PATCH] systemd: fix a dead link under /var/log

2023-06-29 Thread Changqing Li
From: Changqing Li Commit 6fe23ff31c0 changed README to a symlink to README.logs, and install README.logs under systemd doc dir. But for OE, systemd doc dir is splited into package systemd-doc, when it is not installed on the target, there will be an dead link: Eg: root@intel-x86-64:/var/log

[OE-core] [mickledore][PATCH] systemd: fix a dead link under /var/log

2023-06-29 Thread Changqing Li
From: Changqing Li Commit 6fe23ff31c0 changed README to a symlink to README.logs, and install README.logs under systemd doc dir. But for OE, systemd doc dir is splited into package systemd-doc, when it is not installed on the target, there will be an dead link: Eg: root@intel-x86-64:/var/log

[OE-core] [mickledore][PATCH 2/2] erofs-utils: backport fixes for CVE-2023-33551 and CVE-2023-33552

2023-06-27 Thread Changqing Li
From: Ross Burton (From OE-Core rev: fb0e4612b3b54746043205b56b2c3782489c191e) Signed-off-by: Ross Burton Signed-off-by: Richard Purdie --- .../erofs-utils/erofs-utils_1.6.bb| 5 +- ...-don-t-allocate-read-too-large-exten.patch | 126 ++

[OE-core] [mickledore][PATCH 1/2] erofs-utils: update 1.5 -> 1.6

2023-06-27 Thread Changqing Li
From: Alexander Kanavin Drop patches merged upstream. --enable-largefile is no longer necessary, as compiler options are being passed in explicitly. (From OE-Core rev: 39d38b278cba7b46fd9b367e6f8c989327899e6f) Signed-off-by: Alexander Kanavin Signed-off-by: Alexandre Belloni Signed-off-by:

[OE-core] cmake-native build failure on fedora38

2023-05-21 Thread Changqing Li
Hi, Richard, Khem With uninative enabled, I build cmake-native failed on host fedora38. Host fedora38 have gcc 13, and uninative tarball with libstdc++ from gcc 12, which will have runtime error when run the compiled apps. There should be some incompatibility. I noticed that Khem had an

[OE-core] [PATCH] cpio: fix ptest failure

2023-03-13 Thread Changqing Li
From: Changqing Li Fix following ptest failure: /usr/lib64/cpio/ptest/run-ptest: line 7: cd: /usr/lib/cpio/ptest/tests/: No such file or directory Signed-off-by: Changqing Li --- meta/recipes-extended/cpio/cpio-2.13/run-ptest | 2 +- meta/recipes-extended/cpio/cpio_2.13.bb| 1 + 2

[OE-core] [kirkstone][PATCH] libsdl2: fix CVE-2022-4743

2023-02-26 Thread Changqing Li
From: Changqing Li Signed-off-by: Changqing Li --- ...ial-memory-leak-in-GLES_CreateTextur.patch | 40 +++ .../libsdl2/libsdl2_2.0.20.bb | 1 + 2 files changed, 41 insertions(+) create mode 100644 meta/recipes-graphics/libsdl2/libsdl2/0001-Fix-potential

[OE-core] [PATCH V3] apt: fix do_package_qa failure

2023-01-31 Thread Changqing Li
From: Changqing Li bitbake nativesdk-apt failed with error: ERROR: nativesdk-apt-2.4.5-r0 do_package_qa: QA Issue: nativesdk-apt installs files in /usr/local/oe-sdk-hardcoded-buildpath/sysroots/x86_64-pokysdk-linux/var/volatile, but it is expected to be empty [empty-dirs] an empty dir apt

Re: [OE-core] [PATCH 2/2] curl: enable nghttp2 for support HTTP2

2023-01-28 Thread Changqing Li
inux/nghttp2-native/1.51.0-r0/build' "$@" -- ${EXTRA_OECMAKE_BUILD}' On Sat, Jan 28, 2023 at 12:03 AM Changqing Li wrote: On 1/20/23 09:48, Changqing Li wrote: On 1/16/23 05:30, Alexandre Belloni wrote: CAUTION: This email comes from a non Wind River email account! Do not click

Re: [OE-core] [PATCH 2/2] curl: enable nghttp2 for support HTTP2

2023-01-28 Thread Changqing Li
On 1/20/23 09:48, Changqing Li wrote: On 1/16/23 05:30, Alexandre Belloni wrote: CAUTION: This email comes from a non Wind River email account! Do not click links or open attachments unless you recognize the sender and know the content is safe. On 13/01/2023 16:04:42+0800, Changqing Li

Re: [OE-core] [PATCH 2/2] curl: enable nghttp2 for support HTTP2

2023-01-19 Thread Changqing Li
On 1/16/23 05:30, Alexandre Belloni wrote: CAUTION: This email comes from a non Wind River email account! Do not click links or open attachments unless you recognize the sender and know the content is safe. On 13/01/2023 16:04:42+0800, Changqing Li wrote: On 1/5/23 22:09, Alexandre Belloni

Re: [OE-core] [PATCH 2/2] curl: enable nghttp2 for support HTTP2

2023-01-13 Thread Changqing Li
rt/curl/curl_7.87.0.bb:do_configure) failed with exit code '1' On 29/12/2022 10:34:42+0800, Changqing Li wrote: From: Changqing Li After commit `ostree: replace libsoup-2.4 by curl`, ostree depends on libcurl, but it needs http2 support, otherwise it will fail with error: OSTree:ERROR:..

Re: [OE-core] [PATCH 2/2] curl: enable nghttp2 for support HTTP2

2023-01-10 Thread Changqing Li
NGS directly to make deterministic build, and send V2 later. Refer part of the CMakeList.txt find_package(Cython) find_package(PythonLibs) if(CYTHON_FOUND AND PYTHONLIBS_FOUND) set(ENABLE_PYTHON_BINDINGS_DEFAULT ON) else() set(ENABLE_PYTHON_BINDINGS_DEFAULT OFF) endif() On Wed, Dec 28,

[OE-core] [PATCH] sqlite3: upgrade 3.40.0 -> 3.40.1

2023-01-03 Thread Changqing Li
From: Changqing Li Signed-off-by: Changqing Li --- .../sqlite/{sqlite3_3.40.0.bb => sqlite3_3.40.1.bb} | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) rename meta/recipes-support/sqlite/{sqlite3_3.40.0.bb => sqlite3_3.40.1.bb} (86%) diff --git a/meta/recipes-support/

[OE-core] [PATCH 2/2] curl: enable nghttp2 for support HTTP2

2022-12-28 Thread Changqing Li
From: Changqing Li After commit `ostree: replace libsoup-2.4 by curl`, ostree depends on libcurl, but it needs http2 support, otherwise it will fail with error: OSTree:ERROR:../git/src/libostree/ostree-fetcher-curl.c:886:initiate_next_curl_request: assertion failed (rc == CURLM_OK): (1 == 0

[OE-core] [PATCH 1/2] cmake-native: use internal cmcurl library

2022-12-28 Thread Changqing Li
From: Changqing Li This commit is for breaking circular dependency in following condition: After enabling PACKAGECONFIG nghttp2 for curl, the dependency chain is: curl-native -> nghttp2-native -> cmake-native -> curl-native. So change to use internal cmcurl library to fix this. And

[OE-core] [PATCH] base.bbclass: Fix way to check ccache path

2022-12-22 Thread Changqing Li
From: Changqing Li The previous code had 2 issues: 1. make hosttools/ccache always link to host's ccache (/usr/bin/ccache) even we have one buildtools 2. make hosttools/gcc etc, link to host's gcc event we have one buildtools when keyword ccache in buildtools's path, eg: /mnt/ccache/bin

Re: [OE-core] [kirkstone][master][PATCH V2] apt: fix do_package_qa failure

2022-11-20 Thread Changqing Li
On 8/1/22 11:34, Changqing Li wrote: From: Changqing Li bitbake nativesdk-apt failed with error: ERROR: nativesdk-apt-2.4.5-r0 do_package_qa: QA Issue: nativesdk-apt installs files in /usr/local/oe-sdk-hardcoded-buildpath/sysroots/x86_64-pokysdk-linux/var/volatile, but it is expected

Re: [OE-core] [kirkstone][master][PATCH V2] apt: fix do_package_qa failure

2022-11-03 Thread Changqing Li
ping On 8/1/22 11:34, Changqing Li wrote: From: Changqing Li bitbake nativesdk-apt failed with error: ERROR: nativesdk-apt-2.4.5-r0 do_package_qa: QA Issue: nativesdk-apt installs files in /usr/local/oe-sdk-hardcoded-buildpath/sysroots/x86_64-pokysdk-linux/var/volatile, but it is expected

Re: [OE-core] [PATCH] python3-psutil: fix failures for running psutil.tests

2022-10-24 Thread Changqing Li
burden that brings) if the component is not ptest-enabled and is not otherwise using those tests. Besides, these fixes should go upstream first, which I already did for you: https://github.com/giampaolo/psutil/pull/2097 Alex On Fri, 21 Oct 2022 at 11:01, Changqing Li wrote: From: Changqing Li

[OE-core] [PATCH] python3-psutil: fix failures for running psutil.tests

2022-10-21 Thread Changqing Li
From: Changqing Li * Add RDEPENDS for package python3-psutil-tests to fix following error: $ python3 -m psutil.tests Traceback (most recent call last): File "/usr/lib/python3.10/runpy.py", line 187, in _run_module_as_main mod_name, mod_spec, code = _get_module_details(mod_na

Re: [OE-core] [PATCH] fix close_range fails unexpectedly in unprivileged process

2022-10-12 Thread Changqing Li
On 10/8/22 15:13, Changqing Li wrote: On 9/30/22 17:50, Ross Burton wrote: [Please note: This e-mail is from an EXTERNAL e-mail address] Yeah, this is a Docker issue. Fix your docker. Ross Hi, I know this is an docker issue, but this will block yocto build in old docker. I noticed we

Re: [OE-core] [PATCH] fix close_range fails unexpectedly in unprivileged process

2022-10-08 Thread Changqing Li
fix-create-thread-failed-in-unprivileged-process-BZ-.patch> BRs Changqing On 30 Sep 2022, at 09:48, Changqing Li via lists.openembedded.org wrote: From: Changqing Li After commit [1], start a unprivileged container (docker run without --privileged), close file will fail. This is ac

[OE-core] [PATCH] fix close_range fails unexpectedly in unprivileged process

2022-09-30 Thread Changqing Li
From: Changqing Li After commit [1], start a unprivileged container (docker run without --privileged), close file will fail. This is actually an docker issue, see [2]. But this issue will block yocto build in docker with glibc2.35+. so add this local patch. [1] https://gitlab.gnome.org/GNOME

Re: [OE-core] [kirkstone][master][PATCH] parselogs.py: ignore systemd-logind warning message

2022-08-31 Thread Changqing Li
ping On 8/19/22 17:54, Changqing Li wrote: From: Changqing Li During upower.servie startup, it will send message "GetAll org.freedesktop.DBus.Properties" to systemd-logind.service. Property RebootToBootLoaderMenu and RebootToBootLoaderEntry will return warning messag

Re: [OE-core] [kirkstone][master][PATCH V2] apt: fix do_package_qa failure

2022-08-19 Thread Changqing Li
ping On 8/1/22 11:34, Changqing Li wrote: From: Changqing Li bitbake nativesdk-apt failed with error: ERROR: nativesdk-apt-2.4.5-r0 do_package_qa: QA Issue: nativesdk-apt installs files in /usr/local/oe-sdk-hardcoded-buildpath/sysroots/x86_64-pokysdk-linux/var/volatile, but it is expected

[OE-core] [kirkstone][master][PATCH] parselogs.py: ignore systemd-logind warning message

2022-08-19 Thread Changqing Li
From: Changqing Li During upower.servie startup, it will send message "GetAll org.freedesktop.DBus.Properties" to systemd-logind.service. Property RebootToBootLoaderMenu and RebootToBootLoaderEntry will return warning message when env SYSTEMD_REBOOT_TO_BOOT_L

[OE-core] [PATCH] apt: fix nativesdk-apt build failure during the second time build

2022-08-09 Thread Changqing Li
From: Changqing Li Run following commands: bitbake nativesdk-apt bitbake nativesdk-apt -c install -f The second command's do_install will fail with following error: | /build/tmp-glibc/work/x86_64-nativesdk-wrlinuxsdk-linux/nativesdk-apt/2.4.5-r0/recipe-sysroot-native/usr/bin/x86_64-wrlinuxsdk

  1   2   3   4   >