apk: backport fix for GCC15 with LTO
authorRobert Marko <[email protected]>
Mon, 21 Apr 2025 10:33:56 +0000 (12:33 +0200)
committerRobert Marko <[email protected]>
Mon, 21 Apr 2025 12:21:10 +0000 (14:21 +0200)
commite567f7b617b2a3c82d6122b1231f3324d1103b5e
tree5ee1700d2c97673db4212ff050fce1f277609cbf
parentc592afed4d41165563da07d67eebbe76594bf2af
apk: backport fix for GCC15 with LTO

APK is currently broken when built with GCC15 and LTO as it will then hang
indefinitevely on the package/install step.

Luckily, upstream was able to find the issue and fix it, so lets backport
the fix as GCC15 is the default compiler on Fedora 42(And soon more distros)

Link: https://github.com/openwrt/openwrt/pull/18549
Signed-off-by: Robert Marko <[email protected]>
package/system/apk/patches/0003-io-fix-undefined-behaviour-in-apk_istream_get_delim.patch [new file with mode: 0644]