diff -Nru freecad-0.14.3702+dfsg/debian/patches/gcc5.patch freecad-0.14.3702+dfsg/debian/patches/gcc5.patch --- freecad-0.14.3702+dfsg/debian/patches/gcc5.patch 1969-12-31 19:00:00.000000000 -0500 +++ freecad-0.14.3702+dfsg/debian/patches/gcc5.patch 2015-08-11 16:15:14.000000000 -0400 @@ -0,0 +1,101 @@ +Index: freecad-new/src/Gui/ManualAlignment.h +=================================================================== +--- freecad-new.orig/src/Gui/ManualAlignment.h ++++ freecad-new/src/Gui/ManualAlignment.h +@@ -30,7 +30,9 @@ + #include + #include + #include ++#ifndef Q_MOC_RUN + #include ++#endif + + class SbVec3f; + class SoPickedPoint; +Index: freecad-new/src/Gui/MergeDocuments.h +=================================================================== +--- freecad-new.orig/src/Gui/MergeDocuments.h ++++ freecad-new/src/Gui/MergeDocuments.h +@@ -24,7 +24,9 @@ + #ifndef GUI_MERGEDOCUMENTS_H + #define GUI_MERGEDOCUMENTS_H + ++#ifndef Q_MOC_RUN + #include ++#endif + #include + + namespace zipios { +Index: freecad-new/src/Gui/Placement.h +=================================================================== +--- freecad-new.orig/src/Gui/Placement.h ++++ freecad-new/src/Gui/Placement.h +@@ -28,8 +28,10 @@ + #include + #include + ++#ifndef Q_MOC_RUN + #include + #include ++#endif + + class QSignalMapper; + +Index: freecad-new/src/App/DocumentObserver.h +=================================================================== +--- freecad-new.orig/src/App/DocumentObserver.h ++++ freecad-new/src/App/DocumentObserver.h +@@ -24,7 +24,9 @@ + #ifndef APP_DOCUMENTOBSERVER_H + #define APP_DOCUMENTOBSERVER_H + ++#ifndef Q_MOC_RUN + #include ++#endif + #include + + namespace App +Index: freecad-new/src/App/DocumentObserverPython.h +=================================================================== +--- freecad-new.orig/src/App/DocumentObserverPython.h ++++ freecad-new/src/App/DocumentObserverPython.h +@@ -26,8 +26,10 @@ + + #include + ++#ifndef Q_MOC_RUN + #include + #include ++#endif + + namespace App + { +Index: freecad-new/src/App/Application.h +=================================================================== +--- freecad-new.orig/src/App/Application.h ++++ freecad-new/src/App/Application.h +@@ -25,7 +25,9 @@ + #ifndef APP_APPLICATION_H + #define APP_APPLICATION_H + ++#ifndef Q_MOC_RUN + #include ++#endif + + #include + +Index: freecad-new/src/App/Document.h +=================================================================== +--- freecad-new.orig/src/App/Document.h ++++ freecad-new/src/App/Document.h +@@ -35,8 +35,10 @@ + #include + #include + ++#ifndef Q_MOC_RUN + #include + #include ++#endif + + + namespace Base { diff -Nru freecad-0.14.3702+dfsg/debian/patches/series freecad-0.14.3702+dfsg/debian/patches/series --- freecad-0.14.3702+dfsg/debian/patches/series 2014-10-24 12:56:44.000000000 -0400 +++ freecad-0.14.3702+dfsg/debian/patches/series 2015-08-11 16:06:27.000000000 -0400 @@ -7,3 +7,4 @@ unittest_to_stdout.patch fix_clang_compilation.patch 0001-Disable-automatic-DXF-library-download.patch +gcc5.patch