[libprotobuf-mutator] update to 1.5 (#46790)

This commit is contained in:
Tolker-KU
2025-08-06 21:50:21 +02:00
committed by GitHub
parent aea87e1752
commit 3861791eab
6 changed files with 10 additions and 48 deletions

View File

@@ -6,17 +6,15 @@ vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO google/libprotobuf-mutator
REF "v${VERSION}"
SHA512 9c752cf2bdbf9228ba5a7c1e7a552ea7e12bda226ad8268e4cb9f135a79aee9c3ff0c1f2dfebe5d011282835a63d3b9cf3b3f642f02a3e00bb0b5eee9580a3dd
SHA512 2fb374ff32c52aaf15ebff26e8fe11fc3ca1ef411da74bb6212ed5acaf20ae48e388b2b26d5c6786b85058ea7cd65e5ad5c55ea18916c1a701add34c6e62ebfe
HEAD_REF master
PATCHES
protobuf-cmake.patch
werror.patch
)
string(COMPARE EQUAL "${VCPKG_CRT_LINKAGE}" "static" STATIC_RUNTIME)
vcpkg_cmake_configure(
SOURCE_PATH "${SOURCE_PATH}"
OPTIONS
-DCMAKE_CXX_STANDARD=17
-DLIB_PROTO_MUTATOR_TESTING=OFF
-DLIB_PROTO_MUTATOR_MSVC_STATIC_RUNTIME=${STATIC_RUNTIME}
-DPKG_CONFIG_PATH=lib/pkgconfig

View File

@@ -1,27 +0,0 @@
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index 321874c..2b4b492 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -20,7 +20,7 @@ add_library(protobuf-mutator
text_format.cc
utf8_fix.cc)
target_link_libraries(protobuf-mutator
- ${Protobuf_LIBRARIES})
+ PUBLIC protobuf::libprotobuf)
set_target_properties(protobuf-mutator PROPERTIES
COMPILE_FLAGS "${NO_FUZZING_FLAGS}"
SOVERSION 0)
diff --git a/src/libfuzzer/CMakeLists.txt b/src/libfuzzer/CMakeLists.txt
index 7100ef1..9863138 100644
--- a/src/libfuzzer/CMakeLists.txt
+++ b/src/libfuzzer/CMakeLists.txt
@@ -16,8 +16,7 @@ add_library(protobuf-mutator-libfuzzer
libfuzzer_mutator.cc
libfuzzer_macro.cc)
target_link_libraries(protobuf-mutator-libfuzzer
- protobuf-mutator
- ${Protobuf_LIBRARIES})
+ PUBLIC protobuf-mutator)
set_target_properties(protobuf-mutator-libfuzzer PROPERTIES
COMPILE_FLAGS "${NO_FUZZING_FLAGS}"
SOVERSION 0)

View File

@@ -1,7 +1,6 @@
{
"name": "libprotobuf-mutator",
"version": "1.3",
"port-version": 1,
"version": "1.5",
"description": "Library for structured fuzzing with protobuffers.",
"dependencies": [
"liblzma",

View File

@@ -1,13 +0,0 @@
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 2e4b78e..4541d17 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -84,7 +84,7 @@ unset(CMAKE_REQUIRED_FLAGS)
check_cxx_compiler_flag(-Wstring-conversion LIB_PROTO_MUTATOR_HAS_WSTRING_CONVERSION)
if (NOT MSVC)
- set(EXTRA_FLAGS "-fno-exceptions -Werror -Wall")
+ set(EXTRA_FLAGS "-fno-exceptions")
if (LIB_PROTO_MUTATOR_HAS_WSTRING_CONVERSION)
set(EXTRA_FLAGS "${EXTRA_FLAGS} -Wstring-conversion")
endif()

View File

@@ -5249,8 +5249,8 @@
"port-version": 0
},
"libprotobuf-mutator": {
"baseline": "1.3",
"port-version": 1
"baseline": "1.5",
"port-version": 0
},
"libproxy": {
"baseline": "0.4.18",

View File

@@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "1b2fcdb93555e1f0be6fa815759d18c77fd763c1",
"version": "1.5",
"port-version": 0
},
{
"git-tree": "dc95e42e22d75f8ea9e2dc619583fbf8e5e9406a",
"version": "1.3",