diff --git a/1fcb9e476b3542e91988832f30a0527eea8c77a3.patch b/1fcb9e476b3542e91988832f30a0527eea8c77a3.patch new file mode 100644 index 0000000000000000000000000000000000000000..3d9e41c68833bb39d47e8a0e46fd8aa9c1b59451 --- /dev/null +++ b/1fcb9e476b3542e91988832f30a0527eea8c77a3.patch @@ -0,0 +1,13 @@ +diff --git a/CMakeLists.txt b/CMakeLists.txt +index 2333d08f6a..892aebb8e8 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -269,7 +269,7 @@ message(STATUS "Wrote ${PROJECT_BINARY_DIR}/config.h") + configure_file(${PROJECT_SOURCE_DIR}/cmake/json_config.h.in ${PROJECT_BINARY_DIR}/json_config.h) + message(STATUS "Wrote ${PROJECT_BINARY_DIR}/json_config.h") + +-if ("${CMAKE_C_COMPILER_ID}" STREQUAL "GNU") ++if ("${CMAKE_C_COMPILER_ID}" STREQUAL "GNU" OR "${CMAKE_C_COMPILER_ID}" STREQUAL "Clang") + set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -ffunction-sections -fdata-sections") + if ("${DISABLE_WERROR}" STREQUAL "OFF") + set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Werror") diff --git a/json-c.spec b/json-c.spec index 5fca26ba8e81dca0cb8fd6e955a0416a15159418..886b2e7228bc5bf00efdeccbdb752114cfffc907 100644 --- a/json-c.spec +++ b/json-c.spec @@ -6,7 +6,7 @@ Name: json-c Version: 0.13.1 -Release: 8 +Release: 9 Summary: JSON implementation in C License: MIT @@ -27,6 +27,7 @@ Patch6004: 0002-Issue-486-append-a-missing-.0-to-negative-double-val.patch Patch9000: bugfix-json-c-support_aarch64.patch Patch6005: json-c-bugfix-against-INT64_MAX.patch Patch6006: CVE-2020-12762.patch +Patch9001: 1fcb9e476b3542e91988832f30a0527eea8c77a3.patch BuildRequires: libtool %description @@ -110,6 +111,9 @@ end %doc %{_pkgdocdir} %changelog +* 20201219105849769810 patch-tracking 0.13.1-9 +- append patch file of upstream repository from <1fcb9e476b3542e91988832f30a0527eea8c77a3> to <1fcb9e476b3542e91988832f30a0527eea8c77a3> + * Mon Jul 21 2020 wangye - 0.13.1-8 - fix hardlink path @@ -123,4 +127,4 @@ end - bugfix in oss-fuzz * Thu Sep 19 2019 openEuler Buildteam - 0.13.1-4 -- Package init +- Package init \ No newline at end of file