diff -Nru freecad-0.18~pre1+dfsg1/debian/changelog freecad-0.18~pre1+dfsg1/debian/changelog --- freecad-0.18~pre1+dfsg1/debian/changelog 2019-03-02 09:42:57.000000000 +0000 +++ freecad-0.18~pre1+dfsg1/debian/changelog 2019-07-02 16:57:55.000000000 +0000 @@ -1,3 +1,11 @@ +freecad (0.18~pre1+dfsg1-5+rpi1) buster-staging; urgency=medium + + * Add include of Inventor/system/gl.h to src/Gui/SoFCOffscreenRenderer.cpp + and src/Gui/Quarter/SoQTQuarterAdaptor.cpp + * Fix clean target. + + -- Peter Michael Green Tue, 02 Jul 2019 16:57:55 +0000 + freecad (0.18~pre1+dfsg1-5) unstable; urgency=medium * [e91ae47] Fix update-alternatives problem (Closes: #923465 #923412) diff -Nru freecad-0.18~pre1+dfsg1/debian/patches/include-Inventor-system-gl.h.patch freecad-0.18~pre1+dfsg1/debian/patches/include-Inventor-system-gl.h.patch --- freecad-0.18~pre1+dfsg1/debian/patches/include-Inventor-system-gl.h.patch 1970-01-01 00:00:00.000000000 +0000 +++ freecad-0.18~pre1+dfsg1/debian/patches/include-Inventor-system-gl.h.patch 2019-07-02 16:57:55.000000000 +0000 @@ -0,0 +1,35 @@ +Description: Add includes of Inventor/system/gl.h to src/Gui/SoFCOffscreenRenderer.cpp and src/Gui/Quarter/SoQTQuarterAdaptor.cpp + The build was failing on buster armhf/raspbian with + . + /<>/freecad-0.18~pre1+dfsg1/src/Gui/SoFCOffscreenRenderer.cpp:602:34: error: 'GL_RGB32F_ARB' was not declared in this scope + . + This define seems to be provided by Inventor/system/gl.h + + src/Gui/Quarter/SoQTQuarterAdaptor.cpp then also failed with a bunch of opengl errors, + so I added the header there too. +Author: Peter Michael Green + +Index: freecad-0.18~pre1+dfsg1.new/src/Gui/SoFCOffscreenRenderer.cpp +=================================================================== +--- freecad-0.18~pre1+dfsg1.new.orig/src/Gui/SoFCOffscreenRenderer.cpp ++++ freecad-0.18~pre1+dfsg1.new/src/Gui/SoFCOffscreenRenderer.cpp +@@ -32,6 +32,7 @@ + # include + # include + #endif ++#include + + //gcc + # include +Index: freecad-0.18~pre1+dfsg1.new/src/Gui/Quarter/SoQTQuarterAdaptor.cpp +=================================================================== +--- freecad-0.18~pre1+dfsg1.new.orig/src/Gui/Quarter/SoQTQuarterAdaptor.cpp ++++ freecad-0.18~pre1+dfsg1.new/src/Gui/Quarter/SoQTQuarterAdaptor.cpp +@@ -33,6 +33,7 @@ + #include + #include + #include ++#include + + static unsigned char fps2dfont[][12] = { + { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }, // diff -Nru freecad-0.18~pre1+dfsg1/debian/patches/series freecad-0.18~pre1+dfsg1/debian/patches/series --- freecad-0.18~pre1+dfsg1/debian/patches/series 2019-03-02 09:41:08.000000000 +0000 +++ freecad-0.18~pre1+dfsg1/debian/patches/series 2019-07-02 16:57:55.000000000 +0000 @@ -7,3 +7,4 @@ exclude_ply.patch disable_memory_check.patch remove_doc-files.patch +include-Inventor-system-gl.h.patch diff -Nru freecad-0.18~pre1+dfsg1/debian/rules freecad-0.18~pre1+dfsg1/debian/rules --- freecad-0.18~pre1+dfsg1/debian/rules 2019-03-02 09:40:57.000000000 +0000 +++ freecad-0.18~pre1+dfsg1/debian/rules 2019-07-02 16:57:55.000000000 +0000 @@ -64,3 +64,8 @@ override_dh_missing-arch: dh_missing --list-missing + +override_dh_auto_clean: + dh_auto_clean + rm -rf debian/build-* + rm -rf `find . -name __pycache__`