summaryrefslogtreecommitdiff
path: root/dev-cpp/libecbor/files
diff options
context:
space:
mode:
Diffstat (limited to 'dev-cpp/libecbor/files')
-rw-r--r--dev-cpp/libecbor/files/libecbor-1.0.1-no-output-dirs.patch15
-rw-r--r--dev-cpp/libecbor/files/libecbor-1.0.1-security.patch11
2 files changed, 26 insertions, 0 deletions
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) {