public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/android-tools] f43: Add missing <cstdint> includes for GCC 16
@ 2026-08-01 7:49 LuK1337
0 siblings, 0 replies; only message in thread
From: LuK1337 @ 2026-08-01 7:49 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/android-tools
Branch : f43
Commit : d720e63a1f4ebfb2b61594978db015d44da1b0a4
Author : LuK1337 <priv.luk@gmail.com>
Date : 2026-01-16T13:28:27+01:00
Stats : +60/-0 in 2 file(s)
URL : https://src.fedoraproject.org/rpms/android-tools/c/d720e63a1f4ebfb2b61594978db015d44da1b0a4?branch=f43
Log:
Add missing <cstdint> includes for GCC 16
---
diff --git a/0004-Add-missing-cstdint-includes-for-GCC-16-Fedora.patch b/0004-Add-missing-cstdint-includes-for-GCC-16-Fedora.patch
new file mode 100644
index 0000000..017f27b
--- /dev/null
+++ b/0004-Add-missing-cstdint-includes-for-GCC-16-Fedora.patch
@@ -0,0 +1,58 @@
+From 5b417e7577075ebef7c80bfdb75f89a4be4cd8de Mon Sep 17 00:00:00 2001
+From: meator <meator.dev@gmail.com>
+Date: Wed, 14 Jan 2026 11:57:22 +0100
+Subject: [PATCH 1/2] Include missing cstdint header
+
+This code relied on the fact that some system headers pulled <cstdint>,
+so it did not bother to include it itself. However, this behavior is not
+specified, so compiler updates can break the code by no longer including
+this header.
+---
+ vendor/libbase/hex.cpp | 2 ++
+ 1 file changed, 2 insertions(+)
+
+diff --git a/vendor/libbase/hex.cpp b/vendor/libbase/hex.cpp
+index a4b7715..c46f42d 100644
+--- a/vendor/libbase/hex.cpp
++++ b/vendor/libbase/hex.cpp
+@@ -18,6 +18,8 @@
+
+ #include "android-base/logging.h"
+
++#include <cstdint>
++
+ namespace android {
+ namespace base {
+
+--
+2.52.0
+
+
+From f97ee86871920bdf4c7bd3278c1ad0234cd81251 Mon Sep 17 00:00:00 2001
+From: meator <meator.dev@gmail.com>
+Date: Wed, 14 Jan 2026 12:13:37 +0100
+Subject: [PATCH 2/2] Include missing cstdint header
+
+This code relied on the fact that some system headers pulled <cstdint>,
+so it did not bother to include it itself. However, this behavior is not
+specified, so compiler updates can break the code by no longer including
+this header.
+---
+ vendor/libziparchive/include/ziparchive/zip_writer.h | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/vendor/libziparchive/include/ziparchive/zip_writer.h b/vendor/libziparchive/include/ziparchive/zip_writer.h
+index 268e8b6..c85be2a 100644
+--- a/vendor/libziparchive/include/ziparchive/zip_writer.h
++++ b/vendor/libziparchive/include/ziparchive/zip_writer.h
+@@ -18,6 +18,7 @@
+
+ #include <cstdio>
+ #include <ctime>
++#include <cstdint>
+
+ #include <gtest/gtest_prod.h>
+ #include <memory>
+--
+2.52.0
+
diff --git a/android-tools.spec b/android-tools.spec
index b0b03ae..e43316b 100644
--- a/android-tools.spec
+++ b/android-tools.spec
@@ -17,6 +17,8 @@ Patch0: 0001-Fix-libusb-enumeration.patch
Patch1: 0002-extras-libjsonpb-Fix-incompatibility-with-protobuf-v30.patch
# https://github.com/nmeum/android-tools/pull/190
Patch2: 0003-Make-legacy-USB-driver-default-on-Linux.patch
+# https://github.com/nmeum/android-tools/pull/191
+Patch3: 0004-Add-missing-cstdint-includes-for-GCC-16-Fedora.patch
BuildRequires: brotli-devel
BuildRequires: cmake
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-08-01 7:49 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-08-01 7:49 [rpms/android-tools] f43: Add missing <cstdint> includes for GCC 16 LuK1337
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox