[reproc] Fix gcc 13 build error (#34885)

* [reproc] Fix gcc 13 build error

* Add comment
This commit is contained in:
Cheney Wang 2023-11-06 00:58:30 +08:00 committed by GitHub
parent 9f03078bdc
commit 83cdde6707
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 39 additions and 8 deletions

View File

@ -0,0 +1,28 @@
diff --git a/reproc++/include/reproc++/reproc.hpp b/reproc++/include/reproc++/reproc.hpp
index ab6f139..d4b370f 100644
--- a/reproc++/include/reproc++/reproc.hpp
+++ b/reproc++/include/reproc++/reproc.hpp
@@ -88,18 +88,18 @@ struct redirect {
struct options {
struct {
- env::type behavior;
+ reproc::env::type behavior;
/*! Implicitly converts from any STL container of string pairs to the
environment format expected by `reproc_start`. */
- class env extra;
+ reproc::env extra;
} env = {};
const char *working_directory = nullptr;
struct {
- redirect in;
- redirect out;
- redirect err;
+ struct redirect in;
+ struct redirect out;
+ struct redirect err;
bool parent;
bool discard;
FILE *file;

View File

@ -1,9 +1,11 @@
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO DaanDeMeyer/reproc
REF v14.2.4
REF "v${VERSION}"
SHA512 c592521960f1950d626261738091d25efdf764ee1a0c72a58c28c66eaebf6073b2c978f1dc2c8dbe89b0be7ec1629a3a45cb1fafa0ebe21b5df8d4d27c992675
HEAD_REF main
PATCHES
fix-gcc13-build-error.patch #Please remove it in the next release version
)
vcpkg_cmake_configure(
@ -24,8 +26,4 @@ foreach(TARGET reproc reproc++)
)
endforeach()
file(
INSTALL "${SOURCE_PATH}/LICENSE"
DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}"
RENAME copyright
)
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")

View File

@ -1,7 +1,7 @@
{
"name": "reproc",
"version": "14.2.4",
"port-version": 1,
"port-version": 2,
"description": "Cross-platform (C99/C++11) process library",
"homepage": "https://github.com/DaanDeMeyer/reproc",
"supports": "!uwp",

View File

@ -7398,7 +7398,7 @@
},
"reproc": {
"baseline": "14.2.4",
"port-version": 1
"port-version": 2
},
"rest-rpc": {
"baseline": "0.07",

View File

@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "6fc63b3c029742441d22a288db9f37f5e016abbe",
"version": "14.2.4",
"port-version": 2
},
{
"git-tree": "eeac14685480439ee52ac05ec68faebb2cbaffad",
"version": "14.2.4",