Skip to content

Commit

Permalink
Fix avro cpp compilation under linux (#42573)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexander-smyslov authored Dec 6, 2024
1 parent fd10d76 commit 7d23867
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 1 deletion.
12 changes: 12 additions & 0 deletions ports/avro-cpp/fix-std32_t.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
diff --git a/lang/c++/include/avro/LogicalType.hh b/lang/c++/include/avro/LogicalType.hh
index b2a7d0294..7b113b3aa 100644
--- a/lang/c++/include/avro/LogicalType.hh
+++ b/lang/c++/include/avro/LogicalType.hh
@@ -22,6 +22,7 @@
#include <iostream>

#include "Config.hh"
+#include <cstdint>

namespace avro {

1 change: 1 addition & 0 deletions ports/avro-cpp/portfile.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ vcpkg_from_github(
PATCHES
fix-cmake.patch
fix-fmt.patch
fix-std32_t.patch
)

vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
Expand Down
1 change: 1 addition & 0 deletions ports/avro-cpp/vcpkg.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"name": "avro-cpp",
"version": "1.12.0",
"port-version": 2,
"description": "Apache Avro is a data serialization system",
"homepage": "https://github.com/apache/avro",
"license": "Apache-2.0",
Expand Down
5 changes: 5 additions & 0 deletions versions/a-/avro-cpp.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "4ef85ccd3feb1c611ad245ab1ead9796b09b1bc9",
"version": "1.12.0",
"port-version": 2
},
{
"git-tree": "d177503c9c4f90f723a50e01156fbb79b479237d",
"version": "1.12.0",
Expand Down
2 changes: 1 addition & 1 deletion versions/baseline.json
Original file line number Diff line number Diff line change
Expand Up @@ -382,7 +382,7 @@
},
"avro-cpp": {
"baseline": "1.12.0",
"port-version": 0
"port-version": 2
},
"awlib": {
"baseline": "2024-04-06",
Expand Down

0 comments on commit 7d23867

Please sign in to comment.