Skip to content

Instantly share code, notes, and snippets.

@nitrotm
nitrotm / python3.7.patch
Last active August 13, 2018 09:14
Patch for freecad 0.17 on archlinux / python 3.7
diff -rZc a/src/App/Application.cpp b/src/App/Application.cpp
*** a/src/App/Application.cpp 2018-04-06 16:48:37.000000000 +0800
--- b/src/App/Application.cpp 2018-08-13 17:12:13.478048380 +0800
***************
*** 230,236 ****
--- 230,241 ----
NULL, NULL, NULL, NULL
};
PyObject* pAppModule = PyModule_Create(&FreeCADModuleDef);
+ #if (PY_MAJOR_VERSION > 3 || PY_MINOR_VERSION >= 7)
@nitrotm
nitrotm / opencv-3.2.0-6-cmake.patch
Created October 10, 2017 09:24
Patch for ROS OpenCV 3.2.0-6
--- opencv3-release-release-lunar-opencv3-3.2.0-6/cmake/OpenCVCompilerOptions.cmake 2017-06-07 08:47:12.000000000 +0200
+++ opencv3-release-release-lunar-opencv3-3.2.0-6-patched/cmake/OpenCVCompilerOptions.cmake 2017-10-10 11:05:00.268116070 +0200
@@ -18,9 +18,9 @@
message(STATUS "Unable to compile program with enabled ccache, reverting...")
set_property(GLOBAL PROPERTY RULE_LAUNCH_COMPILE "${__OLD_RULE_LAUNCH_COMPILE}")
endif()
- else()
- message(STATUS "Looking for ccache - not found")
endif()
+ else()