diff options
| author | Sasi Kumar Maddineni <quic_sasikuma@quicinc.com> | 2025-10-29 12:32:40 +0530 |
|---|---|---|
| committer | Khem Raj <raj.khem@gmail.com> | 2025-10-29 21:02:20 -0700 |
| commit | d9ca35948c41f3bbbbe04d3cf6981b2e10db6104 (patch) | |
| tree | 0047988e5c2c1a1e07ba8786f16e7f31e8d0d430 | |
| parent | ff0776755aa632d12a8ee2f9f7a14822b4287b1e (diff) | |
| download | meta-openembedded-d9ca35948c41f3bbbbe04d3cf6981b2e10db6104.tar.gz | |
libziparchive: fix missing fixed-width integer types in zip_writer.h
Compilation fails due to undefined types 'uint16_t' and 'uint32_t' in
zip_writer.h. These types are used in struct members but are not recognized
because the required header <cstdint> is not included. This results in
errors such as:
error: 'uint16_t' does not name a type
error: 'uint32_t' does not name a type
Added '#include <cstdint>' to zip_writer.h to ensure fixed-width integer
types are properly defined.
Signed-off-by: Sasi Kumar Maddineni <quic_sasikuma@quicinc.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2 files changed, 39 insertions, 0 deletions
diff --git a/meta-oe/dynamic-layers/selinux/recipes-devtool/android-tools/android-tools/debian/system/core/libziparchive-fix-missing-fixed-width-integer-types-.patch b/meta-oe/dynamic-layers/selinux/recipes-devtool/android-tools/android-tools/debian/system/core/libziparchive-fix-missing-fixed-width-integer-types-.patch new file mode 100644 index 0000000000..0b5087f283 --- /dev/null +++ b/meta-oe/dynamic-layers/selinux/recipes-devtool/android-tools/android-tools/debian/system/core/libziparchive-fix-missing-fixed-width-integer-types-.patch | |||
| @@ -0,0 +1,38 @@ | |||
| 1 | From f6874a2f7de30b6eeefb2d509b895c58b93da8f7 Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Sasi Kumar Maddineni <quic_sasikuma@quicinc.com> | ||
| 3 | Date: Wed, 29 Oct 2025 09:38:17 +0530 | ||
| 4 | Subject: [PATCH] libziparchive: fix missing fixed-width integer types in | ||
| 5 | zip_writer.h | ||
| 6 | |||
| 7 | Compilation fails due to undefined types 'uint16_t' and 'uint32_t' in | ||
| 8 | zip_writer.h. These types are used in struct members but are not recognized | ||
| 9 | because the required header <cstdint> is not included. This results in | ||
| 10 | errors such as: | ||
| 11 | error: 'uint16_t' does not name a type | ||
| 12 | error: 'uint32_t' does not name a type | ||
| 13 | |||
| 14 | Added '#include <cstdint>' to zip_writer.h to ensure fixed-width integer | ||
| 15 | types are properly defined. | ||
| 16 | |||
| 17 | Upstream-Status: Pending | ||
| 18 | |||
| 19 | Signed-off-by: Sasi Kumar Maddineni <quic_sasikuma@quicinc.com> | ||
| 20 | --- | ||
| 21 | system/core/libziparchive/include/ziparchive/zip_writer.h | 1 + | ||
| 22 | 1 file changed, 1 insertion(+) | ||
| 23 | |||
| 24 | diff --git a/system/core/libziparchive/include/ziparchive/zip_writer.h b/system/core/libziparchive/include/ziparchive/zip_writer.h | ||
| 25 | index d68683df..7a05e349 100644 | ||
| 26 | --- a/system/core/libziparchive/include/ziparchive/zip_writer.h | ||
| 27 | +++ b/system/core/libziparchive/include/ziparchive/zip_writer.h | ||
| 28 | @@ -18,6 +18,7 @@ | ||
| 29 | |||
| 30 | #include <cstdio> | ||
| 31 | #include <ctime> | ||
| 32 | +#include <cstdint> | ||
| 33 | |||
| 34 | #include <gtest/gtest_prod.h> | ||
| 35 | #include <memory> | ||
| 36 | -- | ||
| 37 | 2.34.1 | ||
| 38 | |||
diff --git a/meta-oe/dynamic-layers/selinux/recipes-devtool/android-tools/android-tools_29.0.6.r14.bb b/meta-oe/dynamic-layers/selinux/recipes-devtool/android-tools/android-tools_29.0.6.r14.bb index 47c8e08b62..74928ed171 100644 --- a/meta-oe/dynamic-layers/selinux/recipes-devtool/android-tools/android-tools_29.0.6.r14.bb +++ b/meta-oe/dynamic-layers/selinux/recipes-devtool/android-tools/android-tools_29.0.6.r14.bb | |||
| @@ -40,6 +40,7 @@ SRC_URI += " \ | |||
| 40 | file://debian/system/core/fix-standard-namespace-errors.patch \ | 40 | file://debian/system/core/fix-standard-namespace-errors.patch \ |
| 41 | file://debian/system/core/Add-riscv64-support.patch \ | 41 | file://debian/system/core/Add-riscv64-support.patch \ |
| 42 | file://debian/system/core/android-tools-scope-write-macro-to-prevent-conflict-.patch \ | 42 | file://debian/system/core/android-tools-scope-write-macro-to-prevent-conflict-.patch \ |
| 43 | file://debian/system/core/libziparchive-fix-missing-fixed-width-integer-types-.patch \ | ||
| 43 | \ | 44 | \ |
| 44 | " | 45 | " |
| 45 | 46 | ||
