Jan Kiszka schrieb am Di 06. Aug, 12:37 (GMT):
Here it is:
```
% cat conf.yaml
header:
version: 11
repos:
poky:
url: "
https://git.yoctoproject.org/git/poky"
branch: kirkstone
commit: bba60774f74f8c05b8fdd609e8cdc40afd59c6a8
path: "layers-3rdparty/poky"
layers:
meta:
meta-poky:
% cat patch.yaml
header:
version: 11
repos:
poky:
patches:
libtirpc:
repo: poky
path: ../../libtirpc.patch
% cat libtirpc.patch
diff --git a/meta/recipes-extended/libtirpc/
libtirpc_1.3.2.bb b/meta/recipes-extended/libtirpc/
libtirpc_1.3.2.bb
index 6980135a92..aa526e9e1c 100644
--- a/meta/recipes-extended/libtirpc/
libtirpc_1.3.2.bb
+++ b/meta/recipes-extended/libtirpc/
libtirpc_1.3.2.bb
@@ -10,8 +10,8 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=f835cce8852481e4b2bbbdd23b5e47f3 \
PROVIDES = "virtual/librpc"
SRC_URI = "${SOURCEFORGE_MIRROR}/${BPN}/${BP}.tar.bz2 \
file://CVE-2021-46828.patch \
- "
+"
UPSTREAM_CHECK_URI = "
https://sourceforge.net/projects/libtirpc/files/libtirpc/"
UPSTREAM_CHECK_REGEX = "(?P<pver>\d+(\.\d+)+)/"
SRC_URI[sha256sum] = "e24eb88b8ce7db3b7ca6eb80115dd1284abc5ec32a8deccfed2224fc2532b9fd"
```
Without the patch the cache gets used (every time »Loaded 1643 entries«):
```
% ./kas-container shell -c 'bitbake -e strace2; bitbake -e strace2' conf.yaml; ./kas-container shell -c 'bitbake -e strace2' conf.yaml
2024-08-13 11:32:41 - INFO - kas 4.4 started
2024-08-13 11:32:41 - INFO - Repository poky already contains bba60774f74f8c05b8fdd609e8cdc40afd59c6a8 as commit
2024-08-13 11:32:41 - INFO - Repository poky checked out to bba60774f74f8c05b8fdd609e8cdc40afd59c6a8
2024-08-13 11:32:41 - INFO - To start the default build, run: bitbake -c build core-image-minimal
WARNING: Host distribution "debian-12" has not been validated with this version of the build system; you may possibly experience unexpected failures. It is recommended that you use a tested distribution.
Loading cache: 100% |#####################################################################################################################################| Time: 0:00:00
Loaded 1643 entries from dependency cache.
Parsing recipes: 100% |###################################################################################################################################| Time: 0:00:00
Parsing of 882 .bb files complete (881 cached, 1 parsed). 1643 targets, 46 skipped, 0 masked, 0 errors.
ERROR: Nothing PROVIDES 'strace2'. Close matches:
strace
Summary: There was 1 WARNING message.
Summary: There was 1 ERROR message, returning a non-zero exit code.
WARNING: Host distribution "debian-12" has not been validated with this version of the build system; you may possibly experience unexpected failures. It is recommended that you use a tested distribution.
Loading cache: 100% |#####################################################################################################################################| Time: 0:00:00
Loaded 1643 entries from dependency cache.
ERROR: Nothing PROVIDES 'strace2'. Close matches:
strace
Summary: There was 1 WARNING message.
Summary: There was 1 ERROR message, returning a non-zero exit code.
2024-08-13 11:32:50 - ERROR - Shell returned non-zero exit status
2024-08-13 11:32:50 - ERROR - Command "/bin/bash -c 'bitbake -e strace2; bitbake -e strace2'" failed with error 1
2024-08-13 11:32:51 - INFO - kas 4.4 started
2024-08-13 11:32:51 - INFO - Repository poky already contains bba60774f74f8c05b8fdd609e8cdc40afd59c6a8 as commit
2024-08-13 11:32:52 - INFO - Repository poky checked out to bba60774f74f8c05b8fdd609e8cdc40afd59c6a8
2024-08-13 11:32:52 - INFO - To start the default build, run: bitbake -c build core-image-minimal
WARNING: Host distribution "debian-12" has not been validated with this version of the build system; you may possibly experience unexpected failures. It is recommended that you use a tested distribution.
Loading cache: 100% |#####################################################################################################################################| Time: 0:00:00
Loaded 1643 entries from dependency cache.
ERROR: Nothing PROVIDES 'strace2'. Close matches:
strace
Summary: There was 1 WARNING message.
Summary: There was 1 ERROR message, returning a non-zero exit code.
2024-08-13 11:32:56 - ERROR - Shell returned non-zero exit status
2024-08-13 11:32:56 - ERROR - Command "/bin/bash -c 'bitbake -e strace2'" failed with error 1
```
With the patch the cache is not used after startup (»Loaded 0 entries«):
```
% ./kas-container shell -c 'bitbake -e strace2; bitbake -e strace2' conf.yaml:patch.yaml; ./kas-container shell -c 'bitbake -e strace2' conf.yaml:patch.yaml
2024-08-13 11:34:19 - INFO - kas 4.4 started
2024-08-13 11:34:19 - INFO - Repository poky already contains bba60774f74f8c05b8fdd609e8cdc40afd59c6a8 as commit
2024-08-13 11:34:20 - INFO - Repository poky checked out to bba60774f74f8c05b8fdd609e8cdc40afd59c6a8
2024-08-13 11:34:20 - INFO - Patch applied. (patch path: /work/layers-3rdparty/poky/../../libtirpc.patch, repo: poky, patch entry: libtirpc)
2024-08-13 11:34:20 - INFO - To start the default build, run: bitbake -c build core-image-minimal
WARNING: Host distribution "debian-12" has not been validated with this version of the build system; you may possibly experience unexpected failures. It is recommended that you use a tested distribution.
Loading cache: 100% | | ETA: --:--:--
Loaded 0 entries from dependency cache.
Parsing recipes: 100% |###################################################################################################################################| Time: 0:00:32
Parsing of 882 .bb files complete (0 cached, 882 parsed). 1643 targets, 46 skipped, 0 masked, 0 errors.
ERROR: Nothing PROVIDES 'strace2'. Close matches:
strace
Summary: There was 1 WARNING message.
Summary: There was 1 ERROR message, returning a non-zero exit code.
WARNING: Host distribution "debian-12" has not been validated with this version of the build system; you may possibly experience unexpected failures. It is recommended that you use a tested distribution.
Loading cache: 100% |#####################################################################################################################################| Time: 0:00:00
Loaded 1643 entries from dependency cache.
ERROR: Nothing PROVIDES 'strace2'. Close matches:
strace
Summary: There was 1 WARNING message.
Summary: There was 1 ERROR message, returning a non-zero exit code.
2024-08-13 11:34:59 - ERROR - Shell returned non-zero exit status
2024-08-13 11:34:59 - ERROR - Command "/bin/bash -c 'bitbake -e strace2; bitbake -e strace2'" failed with error 1
2024-08-13 11:35:00 - INFO - kas 4.4 started
2024-08-13 11:35:01 - INFO - Repository poky already contains bba60774f74f8c05b8fdd609e8cdc40afd59c6a8 as commit
2024-08-13 11:35:01 - INFO - Repository poky checked out to bba60774f74f8c05b8fdd609e8cdc40afd59c6a8
2024-08-13 11:35:01 - INFO - Patch applied. (patch path: /work/layers-3rdparty/poky/../../libtirpc.patch, repo: poky, patch entry: libtirpc)
2024-08-13 11:35:01 - INFO - To start the default build, run: bitbake -c build core-image-minimal
WARNING: Host distribution "debian-12" has not been validated with this version of the build system; you may possibly experience unexpected failures. It is recommended that you use a tested distribution.
Loading cache: 100% | | ETA: --:--:--
Loaded 0 entries from dependency cache.
Parsing recipes: 100% |###################################################################################################################################| Time: 0:00:32
Parsing of 882 .bb files complete (0 cached, 882 parsed). 1643 targets, 46 skipped, 0 masked, 0 errors.
ERROR: Nothing PROVIDES 'strace2'. Close matches:
strace
Summary: There was 1 WARNING message.
Summary: There was 1 ERROR message, returning a non-zero exit code.
2024-08-13 11:35:36 - ERROR - Shell returned non-zero exit status
2024-08-13 11:35:36 - ERROR - Command "/bin/bash -c 'bitbake -e strace2'" failed with error 1
```