diff options
| author | Alex Kiernan <alex.kiernan@gmail.com> | 2023-01-02 22:42:34 +0000 |
|---|---|---|
| committer | Khem Raj <raj.khem@gmail.com> | 2023-01-04 15:33:58 -0800 |
| commit | 9188812103191e97286afd2cf63656bf3e230d97 (patch) | |
| tree | 05eb0409c8be2a8a54cb0aa18a006e1bc08abecc /meta-oe/recipes-extended/ostree | |
| parent | f3b1b4bbd6425c1f4f281ba8643954d8bda72d36 (diff) | |
| download | meta-openembedded-9188812103191e97286afd2cf63656bf3e230d97.tar.gz | |
ostree: Handle musl's ERANGE mapping
Signed-off-by: Alex Kiernan <alex.kiernan@gmail.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'meta-oe/recipes-extended/ostree')
| -rw-r--r-- | meta-oe/recipes-extended/ostree/ostree/0001-tests-Handle-musl-s-ERANGE-mapping.patch | 29 | ||||
| -rw-r--r-- | meta-oe/recipes-extended/ostree/ostree_2022.7.bb | 1 |
2 files changed, 30 insertions, 0 deletions
diff --git a/meta-oe/recipes-extended/ostree/ostree/0001-tests-Handle-musl-s-ERANGE-mapping.patch b/meta-oe/recipes-extended/ostree/ostree/0001-tests-Handle-musl-s-ERANGE-mapping.patch new file mode 100644 index 0000000000..d0a8447e3d --- /dev/null +++ b/meta-oe/recipes-extended/ostree/ostree/0001-tests-Handle-musl-s-ERANGE-mapping.patch | |||
| @@ -0,0 +1,29 @@ | |||
| 1 | From bd182584a1e2f820493d9db689598a20c5700ba5 Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Alex Kiernan <alex.kiernan@gmail.com> | ||
| 3 | Date: Mon, 2 Jan 2023 10:37:49 +0000 | ||
| 4 | Subject: [PATCH] tests: Handle musl's ERANGE mapping | ||
| 5 | |||
| 6 | musl uses "Result not representable" for ERANGE, support this in | ||
| 7 | addition to glibc's "Numerical result out of range". | ||
| 8 | |||
| 9 | Upstream-Status: Backport [https://github.com/ostreedev/ostree/commit/2d4ee168d7eae0afcce356a3f8135294e6d7fe6f] | ||
| 10 | Signed-off-by: Alex Kiernan <alex.kiernan@gmail.com> | ||
| 11 | --- | ||
| 12 | tests/test-commit-timestamp.sh | 2 +- | ||
| 13 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
| 14 | |||
| 15 | diff --git a/tests/test-commit-timestamp.sh b/tests/test-commit-timestamp.sh | ||
| 16 | index 0688c63a4bdb..de105b768a9c 100755 | ||
| 17 | --- a/tests/test-commit-timestamp.sh | ||
| 18 | +++ b/tests/test-commit-timestamp.sh | ||
| 19 | @@ -40,6 +40,6 @@ fi | ||
| 20 | ${CMD_PREFIX} ostree --repo=./testrepo show env > show-env.txt | ||
| 21 | rm -rf testrepo testrepo-files | ||
| 22 | assert_file_has_content_literal commit-invalid.txt 'Failed to convert SOURCE_DATE_EPOCH' | ||
| 23 | -assert_file_has_content_literal commit-overflowing.txt 'Parsing SOURCE_DATE_EPOCH: Numerical result out of range' | ||
| 24 | +assert_file_has_content commit-overflowing.txt 'Parsing SOURCE_DATE_EPOCH: \(Numerical result out of range\|Result not representable\)' | ||
| 25 | assert_file_has_content_literal show-env.txt 'Date: 2009-02-13 23:31:30 +0000' | ||
| 26 | echo "ok commit with env timestamp" | ||
| 27 | -- | ||
| 28 | 2.39.0 | ||
| 29 | |||
diff --git a/meta-oe/recipes-extended/ostree/ostree_2022.7.bb b/meta-oe/recipes-extended/ostree/ostree_2022.7.bb index 2683c4f245..61e208b3b7 100644 --- a/meta-oe/recipes-extended/ostree/ostree_2022.7.bb +++ b/meta-oe/recipes-extended/ostree/ostree_2022.7.bb | |||
| @@ -20,6 +20,7 @@ DEPENDS = " \ | |||
| 20 | SRC_URI = " \ | 20 | SRC_URI = " \ |
| 21 | https://github.com/ostreedev/ostree/releases/download/v${PV}/libostree-${PV}.tar.xz \ | 21 | https://github.com/ostreedev/ostree/releases/download/v${PV}/libostree-${PV}.tar.xz \ |
| 22 | file://0001-lib-repo-checkout-Add-ALLPERMS-for-musl.patch \ | 22 | file://0001-lib-repo-checkout-Add-ALLPERMS-for-musl.patch \ |
| 23 | file://0001-tests-Handle-musl-s-ERANGE-mapping.patch \ | ||
| 23 | file://run-ptest \ | 24 | file://run-ptest \ |
| 24 | " | 25 | " |
| 25 | SRC_URI[sha256sum] = "8be2a9261c94e8b9ec4113380ffc480f8598245fb321a009bad4fae4b822411f" | 26 | SRC_URI[sha256sum] = "8be2a9261c94e8b9ec4113380ffc480f8598245fb321a009bad4fae4b822411f" |
