mirror of
https://github.com/termux-pacman/termux-packages.git
synced 2026-01-07 19:33:20 +00:00
libc++utilities: Bump to 5.22.0
This commit is contained in:
@@ -2,10 +2,9 @@ TERMUX_PKG_HOMEPAGE=https://github.com/Martchus/cpp-utilities
|
||||
TERMUX_PKG_DESCRIPTION="Useful C++ classes and routines such as argument parser, IO and conversion utilities"
|
||||
TERMUX_PKG_LICENSE="GPL-2.0"
|
||||
TERMUX_PKG_MAINTAINER="@termux"
|
||||
TERMUX_PKG_VERSION=5.21.0
|
||||
TERMUX_PKG_REVISION=1
|
||||
TERMUX_PKG_VERSION=5.22.0
|
||||
TERMUX_PKG_SRCURL=https://github.com/Martchus/cpp-utilities/archive/refs/tags/v${TERMUX_PKG_VERSION}.tar.gz
|
||||
TERMUX_PKG_SHA256=8c94bead63eaa17346438f1ed7df13d58006ae753a39fe21185d48303df1aa27
|
||||
TERMUX_PKG_SHA256=ea68a894f9d5879dc247c1a08172319ca34d2a0022bbc0412e9428c011ffaba2
|
||||
TERMUX_PKG_DEPENDS="boost, libc++, libiconv"
|
||||
TERMUX_PKG_BUILD_DEPENDS="boost-headers"
|
||||
TERMUX_PKG_EXTRA_CONFIGURE_ARGS="
|
||||
|
||||
11
packages/libc++utilities/io-copy.h.patch32
Normal file
11
packages/libc++utilities/io-copy.h.patch32
Normal file
@@ -0,0 +1,11 @@
|
||||
--- a/io/copy.h
|
||||
+++ b/io/copy.h
|
||||
@@ -155,7 +155,7 @@
|
||||
output.flush();
|
||||
const auto totalBytes = static_cast<std::streamoff>(count);
|
||||
while (count) {
|
||||
- const auto bytesCopied = ::sendfile64(output.fileDescriptor(), input.fileDescriptor(), nullptr, std::min(count, bufferSize));
|
||||
+ const auto bytesCopied = ::sendfile64(output.fileDescriptor(), input.fileDescriptor(), nullptr, count < bufferSize ? count : bufferSize);
|
||||
if (bytesCopied < 0) {
|
||||
throw std::ios_base::failure(argsToString("sendfile64() failed: ", std::strerror(errno)));
|
||||
}
|
||||
@@ -6,9 +6,9 @@
|
||||
# add target for building the application
|
||||
-if (ANDROID)
|
||||
+if (FALSE)
|
||||
# create a shared library which can be loaded from the Java-side
|
||||
add_library(${META_TARGET_NAME} SHARED ${ALL_FILES})
|
||||
else ()
|
||||
# create a shared library which can be loaded from the Java-side, needs to be a module target to avoid
|
||||
# "QT_ANDROID_GENERATE_DEPLOYMENT_SETTINGS only works on Module targets" when using
|
||||
# `qt_android_generate_deployment_settings`.
|
||||
@@ -104,7 +104,7 @@
|
||||
TARGETS ${META_TARGET_NAME}
|
||||
RUNTIME DESTINATION "${CMAKE_INSTALL_BINDIR}"
|
||||
|
||||
Reference in New Issue
Block a user