buildroot/package/android-tools
Thomas Petazzoni fa11dff848 package/android-tools: fix b64_pton() issue with GCC >= 14.x
The android-tools code base uses the __b64_pton() function, which
isn't provided by all C libraries. So the Debian patch
debian/patches/add_adbd.patch adds an implementation of b64_pton(),
but doesn't actually use it, nor defines a prototype for it. Our
existing patch 0003-Fix-build-issue-with-uclibc.patch switches the
code to use the b64_pton() function... but still without providing a
prototype, causing the following build failures with GCC >= 14.x:

adb_auth_client.c:75:15: error: implicit declaration of function 'b64_pton'

To fix this, we rework 0003-Fix-build-issue-with-uclibc.patch into a
patch that:

 (1) Renames b64_pton() to adb_b64_pton() to make sure it won't clash
     with implementations provided by some C libraries, and adjusts
     the call sites accordingly.

 (2) Adds a prototype definition of adb_b64_pton() in places where
     this function is used.

Fixes:

  http://autobuild.buildroot.net/results/b25b25337c7ad89c33f8bd20b646850bd993ec53ae9/

Even though GCC 14.x support was merged in Buildroot in May 2024, this
particular b64_pton() only started appearing on July 15 2024, with the
first occurrence being:

  http://autobuild.buildroot.net/results/1cbe87bbe3c56f28444b3aaba1ba1d05f947d36e/

Indeed, it's not before July 15 2024 that we merged commit
d201f2f5cd ("package/android-tools: add
patches to fix build with GCC 14.x"), which fixed other GCC 14.x
issues, which were hiding this b64_pton() problem.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
Signed-off-by: Arnout Vandecappelle <arnout@mind.be>
(cherry picked from commit 1eec67d164c7087aa0bed30599681e908fb2fb41)
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
2024-12-06 23:43:14 +01:00
..
0001-Fix-makefiles-for-out-of-tree-build.patch package/android-tools: convert all patches to Git-formatted patches 2024-12-06 23:39:18 +01:00
0002-Fix-adbd-for-non-Ubuntu-systems.patch package/android-tools: convert all patches to Git-formatted patches 2024-12-06 23:39:18 +01:00
0003-Adjust-base64-function-handling.patch package/android-tools: fix b64_pton() issue with GCC >= 14.x 2024-12-06 23:43:14 +01:00
0004-Fix-build-issue-with-musl.patch package/android-tools: convert all patches to Git-formatted patches 2024-12-06 23:39:18 +01:00
0005-makefiles-use-pkgconf-to-get-libs-deps.patch package/android-tools: convert all patches to Git-formatted patches 2024-12-06 23:39:18 +01:00
0006-Fix-build-on-big-endian-systems.patch package/android-tools: convert all patches to Git-formatted patches 2024-12-06 23:39:18 +01:00
0007-Include-cdefs.h-wherever-it-is-needed.patch package/android-tools: convert all patches to Git-formatted patches 2024-12-06 23:39:18 +01:00
0008-usb_linux.c-fix-minor-major-build-failure-due-to-gli.patch package/android-tools: convert all patches to Git-formatted patches 2024-12-06 23:39:18 +01:00
0009-Fix-makefiles-for-out-of-tree-ext4_utils-build.patch package/android-tools: convert all patches to Git-formatted patches 2024-12-06 23:39:18 +01:00
0010-adb-added-patch-for-openssl-1.1.0-compatibility.patch package/android-tools: convert all patches to Git-formatted patches 2024-12-06 23:39:18 +01:00
0011-core-fastboot-fastboot.c-reorder-functions-to-avoid-.patch package/android-tools: convert all patches to Git-formatted patches 2024-12-06 23:39:18 +01:00
0012-core-libsparse-sparse_read.c-add-missing-output_file.patch package/android-tools: convert all patches to Git-formatted patches 2024-12-06 23:39:18 +01:00
0013-extras-ext4_utils-make_ext4fs_main.c-disable-Android.patch package/android-tools: convert all patches to Git-formatted patches 2024-12-06 23:39:18 +01:00
0014-core-adbd-adb.c-open-code-capset.patch package/android-tools: convert all patches to Git-formatted patches 2024-12-06 23:39:18 +01:00
0015-core-adbd-adb.c-include-correct-header-for-prctl.patch package/android-tools: convert all patches to Git-formatted patches 2024-12-06 23:39:18 +01:00
0016-extras-ext4_utils-make_ext4fs.c-define-__SANE_USERSP.patch package/android-tools: fix build issue on mips64 and powerpc64 2024-12-06 23:39:37 +01:00
Config.in
Config.in.host
android-tools.hash
android-tools.mk