From c35d84f002d213c0e2207d28c711565d6d5f0e6d Mon Sep 17 00:00:00 2001 From: Vasile Vilvoiu Date: Sat, 9 Apr 2022 16:43:57 +0300 Subject: Add libecbor. --- .../libecbor/files/libecbor-1.0.1-no-output-dirs.patch | 15 +++++++++++++++ dev-cpp/libecbor/files/libecbor-1.0.1-security.patch | 11 +++++++++++ 2 files changed, 26 insertions(+) create mode 100644 dev-cpp/libecbor/files/libecbor-1.0.1-no-output-dirs.patch create mode 100644 dev-cpp/libecbor/files/libecbor-1.0.1-security.patch (limited to 'dev-cpp/libecbor/files') diff --git a/dev-cpp/libecbor/files/libecbor-1.0.1-no-output-dirs.patch b/dev-cpp/libecbor/files/libecbor-1.0.1-no-output-dirs.patch new file mode 100644 index 0000000..a6ce831 --- /dev/null +++ b/dev-cpp/libecbor/files/libecbor-1.0.1-no-output-dirs.patch @@ -0,0 +1,15 @@ +diff --git a/CMakeLists.txt b/CMakeLists.txt +index 4b4e555..114d256 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -70,8 +70,8 @@ set_target_properties (${PROJECT_NAME}_static PROPERTIES OUTPUT_NAME ${PROJECT_N + + target_compile_options (${PROJECT_NAME}_static PRIVATE -nostdlib) + +-install (TARGETS ${PROJECT_NAME}_shared LIBRARY DESTINATION lib PUBLIC_HEADER DESTINATION include) +-install (TARGETS ${PROJECT_NAME}_static ARCHIVE DESTINATION lib PUBLIC_HEADER DESTINATION include) ++install (TARGETS ${PROJECT_NAME}_shared PUBLIC_HEADER DESTINATION include) ++install (TARGETS ${PROJECT_NAME}_static PUBLIC_HEADER DESTINATION include) + + # Tool Targets + if (BUILD_DESCRIBE_TOOL) diff --git a/dev-cpp/libecbor/files/libecbor-1.0.1-security.patch b/dev-cpp/libecbor/files/libecbor-1.0.1-security.patch new file mode 100644 index 0000000..ee319db --- /dev/null +++ b/dev-cpp/libecbor/files/libecbor-1.0.1-security.patch @@ -0,0 +1,11 @@ +--- a/src/ecbor-describe/ecbor_describe.c ++++ b/src/ecbor-describe/ecbor_describe.c +@@ -62,7 +62,7 @@ print_ecbor_item (ecbor_item_t *item, unsigned int level, char *prefix) + unsigned int i; + + for(i = 0; i < level * 2; i ++) putchar(' '); +- printf (prefix); ++ printf ("%s", prefix); + + mt = ecbor_get_type (item); + switch (mt) { -- cgit v1.2.3