diff --git a/0004-output-errors-instead-of-stdout.patch b/0004-output-errors-instead-of-stdout.patch new file mode 100644 index 0000000000000000000000000000000000000000..2041b19fc1df0e04f874b7bacb45f9b316f72270 --- /dev/null +++ b/0004-output-errors-instead-of-stdout.patch @@ -0,0 +1,23 @@ +diff --git a/src/flatc_main.cpp b/src/flatc_main.cpp +index b196666..30d0b47 100644 +--- a/src/flatc_main.cpp ++++ b/src/flatc_main.cpp +@@ -23,15 +23,15 @@ static void Warn(const flatbuffers::FlatCompiler *flatc, + const std::string &warn, bool show_exe_name) { + (void)flatc; + if (show_exe_name) { printf("%s: ", g_program_name); } +- printf("warning: %s\n", warn.c_str()); ++ fprintf(stderr, "warning: %s\n", warn.c_str()); + } + + static void Error(const flatbuffers::FlatCompiler *flatc, + const std::string &err, bool usage, bool show_exe_name) { + if (show_exe_name) { printf("%s: ", g_program_name); } +- printf("error: %s\n", err.c_str()); ++ fprintf(stderr, "error: %s\n", err.c_str()); + if (usage && flatc) { +- printf("%s", flatc->GetUsageString(g_program_name).c_str()); ++ fprintf(stderr, "%s", flatc->GetUsageString(g_program_name).c_str()); + } + exit(1); + } diff --git a/flatbuffers.spec b/flatbuffers.spec index 49ae4b78cc8b5d1b328b5118ca63695efaf19055..69b4bcbee20b19a669f26c5c94d68e2dcc67a9b5 100644 --- a/flatbuffers.spec +++ b/flatbuffers.spec @@ -5,7 +5,7 @@ %endif Name: flatbuffers Version: 2.0.0 -Release: 2 +Release: 5 Summary: Memory efficient serialization library License: Apache-2.0 URL: https://github.com/google/flatbuffers @@ -14,6 +14,9 @@ Source1: flatc.1 Source2: flatbuffers.7 Patch0: 0001-Fix-compiler-warning-Wredundant-parens.patch +Patch1: 0002-typo-fixes-in-comments.patch +Patch2: 0003-Changes-to-support-binary-schema-file-loading-and-parsing.patch +Patch3: 0004-output-errors-instead-of-stdout.patch BuildRequires: gcc-c++ cmake >= 2.8.9 Provides: bundled(grpc) @@ -82,4 +85,13 @@ make test - Package init * Wed Nov 11 2021 yefeng - 2.0.0-2 -- Package init \ No newline at end of file +- Fix Clang complication + +* Wed Nov 15 2021 yefeng - 2.0.0-3 +- Typo fixes in comments + +* Wed Nov 15 2021 yefeng - 2.0.0-4 +- Changes to support binary schema file + +* Wed Nov 15 2021 yefeng - 2.0.0-5 +- Output errors instead of stdout \ No newline at end of file