Skip to content

Commit

Permalink
upgpkg(main/libc++-utilities): 5.26.0
Browse files Browse the repository at this point in the history
Signed-off-by: Kevin WIlliams <[email protected]>
  • Loading branch information
2096779623 committed Aug 12, 2024
1 parent 2bd6df5 commit bf4289b
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/libc++utilities/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +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.25.0"
TERMUX_PKG_VERSION="5.26.0"
TERMUX_PKG_SRCURL=https://github.com/Martchus/cpp-utilities/archive/refs/tags/v${TERMUX_PKG_VERSION}.tar.gz
TERMUX_PKG_SHA256=29c7b962135bfeeacd11f89b21249bd8634bc640a7b6ad6dd91edc01b904112b
TERMUX_PKG_SHA256=d90553affdfffebb7d0561fe7610b0fc32b382b6bb604d7f6293c0db2e2d1e64
TERMUX_PKG_AUTO_UPDATE=true
TERMUX_PKG_DEPENDS="boost, libc++, libiconv"
TERMUX_PKG_BUILD_DEPENDS="boost-headers"
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
From e79fcf793e4ff3ab90ec870496349725cd9b76dd Mon Sep 17 00:00:00 2001
From: Martchus <[email protected]>
Date: Thu, 8 Aug 2024 12:26:42 +0200
Subject: [PATCH] Fix build using Boost.Iostreams after 8dcd65bd

---
io/nativefilestream.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/io/nativefilestream.cpp b/io/nativefilestream.cpp
index b0473ee..0d9e0d8 100644
--- a/io/nativefilestream.cpp
+++ b/io/nativefilestream.cpp
@@ -196,7 +196,7 @@ NativeFileStream::FileBuffer::FileBuffer(const char *path, ios_base::openmode op
buffer = make_unique<StreamBuffer>(handle, boost::iostreams::close_handle);
// if we wanted to open assign the descriptor as well: descriptor = _open_osfhandle(reinterpret_cast<intptr_t>(handle), nativeParams.flags);
#else
- descriptor = ::open(path.data(), nativeParams.openFlags, S_IRUSR | S_IWUSR | S_IRGRP | S_IROTH);
+ descriptor = ::open(path, nativeParams.openFlags, S_IRUSR | S_IWUSR | S_IRGRP | S_IROTH);
if (descriptor == -1) {
throw std::ios_base::failure("open failed", std::error_code(errno, std::system_category()));
}

0 comments on commit bf4289b

Please sign in to comment.