From owner-svn-ports-all@freebsd.org Wed Oct 31 12:19:06 2018 Return-Path: Delivered-To: svn-ports-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 37EEE10D675D; Wed, 31 Oct 2018 12:19:06 +0000 (UTC) (envelope-from jbeich@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id DEB0072630; Wed, 31 Oct 2018 12:19:05 +0000 (UTC) (envelope-from jbeich@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id BF86945CE; Wed, 31 Oct 2018 12:19:05 +0000 (UTC) (envelope-from jbeich@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id w9VCJ5uV059767; Wed, 31 Oct 2018 12:19:05 GMT (envelope-from jbeich@FreeBSD.org) Received: (from jbeich@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id w9VCJ5pj059765; Wed, 31 Oct 2018 12:19:05 GMT (envelope-from jbeich@FreeBSD.org) Message-Id: <201810311219.w9VCJ5pj059765@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: jbeich set sender to jbeich@FreeBSD.org using -f From: Jan Beich Date: Wed, 31 Oct 2018 12:19:05 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r483568 - in head/cad/freecad: . files X-SVN-Group: ports-head X-SVN-Commit-Author: jbeich X-SVN-Commit-Paths: in head/cad/freecad: . files X-SVN-Commit-Revision: 483568 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 31 Oct 2018 12:19:06 -0000 Author: jbeich Date: Wed Oct 31 12:19:05 2018 New Revision: 483568 URL: https://svnweb.freebsd.org/changeset/ports/483568 Log: cad/freecad: unbreak with boost 1.69 CMake Error at /usr/local/share/cmake/Modules/FindBoost.cmake:2049 (message): Unable to find the requested Boost libraries. Boost version: 1.69.0 Boost include path: /usr/local/include Could not find the following Boost libraries: boost_signals Some (but not all) of the required Boost libraries were found. You may need to install these additional Boost libraries. Alternatively, set BOOST_LIBRARYDIR to the directory containing Boost libraries or BOOST_ROOT to the location of Boost. Call Stack (most recent call first): CMakeLists.txt:596 (find_package) PR: 232525 Obtained from: upstream (FreeCAD 0.18) Added: head/cad/freecad/files/patch-boost-1.69 (contents, props changed) Modified: head/cad/freecad/Makefile (contents, props changed) Modified: head/cad/freecad/Makefile ============================================================================== --- head/cad/freecad/Makefile Wed Oct 31 12:18:48 2018 (r483567) +++ head/cad/freecad/Makefile Wed Oct 31 12:19:05 2018 (r483568) @@ -2,7 +2,7 @@ PORTNAME= FreeCAD DISTVERSION= 0.17.13509 -PORTREVISION= 4 +PORTREVISION= 5 CATEGORIES= cad MAINTAINER= ports@FreeBSD.org Added: head/cad/freecad/files/patch-boost-1.69 ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/cad/freecad/files/patch-boost-1.69 Wed Oct 31 12:19:05 2018 (r483568) @@ -0,0 +1,1979 @@ +https://freecadweb.org/tracker/view.php?id=3653 +https://github.com/FreeCAD/FreeCAD/commit/f898eafd64f88902ea1916b01303705b3baa2c46 + +--- CMakeLists.txt.orig 2018-04-06 08:48:37 UTC ++++ CMakeLists.txt +@@ -594,7 +594,7 @@ endif(${CMAKE_SYSTEM_NAME} MATCHES "Darwin") + SET(_boost_TEST_VERSIONS ${Boost_ADDITIONAL_VERSIONS}) + + find_package(Boost ${BOOST_MIN_VERSION} +- COMPONENTS filesystem program_options regex signals system thread REQUIRED) ++ COMPONENTS filesystem program_options regex system thread REQUIRED) + + IF(NOT Boost_FOUND) + MESSAGE(FATAL_ERROR "========================================\n" +@@ -602,7 +602,6 @@ endif(${CMAKE_SYSTEM_NAME} MATCHES "Darwin") + " * filesystem\n" + " * program_options\n" + " * regex\n" +- " * signals\n" + " * system\n" + " * thread\n" + "========================================\n") +@@ -1074,7 +1073,7 @@ ENDIF(CMAKE_SIZEOF_VOID_P EQUAL 8) + IF(MSVC) + # set default compiler settings + SET (CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} /EHa") +- SET (CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -DFC_DEBUG /Zm128") ++ SET (CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -DFC_DEBUG /Zm128 /bigobj") + # set default libs + SET (CMAKE_C_STANDARD_LIBRARIES "kernel32.lib user32.lib gdi32.lib winspool.lib SHFolder.lib shell32.lib ole32.lib oleaut32.lib uuid.lib comdlg32.lib advapi32.lib winmm.lib comsupp.lib Ws2_32.lib dbghelp.lib ") + set (CMAKE_CXX_STANDARD_LIBRARIES "${CMAKE_C_STANDARD_LIBRARIES}") +--- src/App/Application.cpp.orig 2018-04-06 08:48:37 UTC ++++ src/App/Application.cpp +@@ -120,7 +120,6 @@ + + #include + #include +-#include + #include + #include + #include +--- src/App/Application.h.orig 2018-04-06 08:48:37 UTC ++++ src/App/Application.h +@@ -25,7 +25,7 @@ + #ifndef APP_APPLICATION_H + #define APP_APPLICATION_H + +-#include ++#include + + #include + +@@ -99,27 +99,27 @@ class AppExport Application (public) + /** @name Signals of the Application */ + //@{ + /// signal on new Document +- boost::signal signalNewDocument; ++ boost::signals2::signal signalNewDocument; + /// signal on document getting deleted +- boost::signal signalDeleteDocument; ++ boost::signals2::signal signalDeleteDocument; + /// signal on already deleted Document +- boost::signal signalDeletedDocument; ++ boost::signals2::signal signalDeletedDocument; + /// signal on relabeling Document (user name) +- boost::signal signalRelabelDocument; ++ boost::signals2::signal signalRelabelDocument; + /// signal on renaming Document (internal name) +- boost::signal signalRenameDocument; ++ boost::signals2::signal signalRenameDocument; + /// signal on activating Document +- boost::signal signalActiveDocument; ++ boost::signals2::signal signalActiveDocument; + /// signal on saving Document +- boost::signal signalSaveDocument; ++ boost::signals2::signal signalSaveDocument; + /// signal on starting to restore Document +- boost::signal signalStartRestoreDocument; ++ boost::signals2::signal signalStartRestoreDocument; + /// signal on restoring Document +- boost::signal signalFinishRestoreDocument; ++ boost::signals2::signal signalFinishRestoreDocument; + /// signal on undo in document +- boost::signal signalUndoDocument; ++ boost::signals2::signal signalUndoDocument; + /// signal on redo in document +- boost::signal signalRedoDocument; ++ boost::signals2::signal signalRedoDocument; + //@} + + +@@ -129,16 +129,16 @@ class AppExport Application (public) + */ + //@{ + /// signal on new Object +- boost::signal signalNewObject; +- //boost::signal m_sig; ++ boost::signals2::signal signalNewObject; ++ //boost::signals2::signal m_sig; + /// signal on deleted Object +- boost::signal signalDeletedObject; ++ boost::signals2::signal signalDeletedObject; + /// signal on changed Object +- boost::signal signalChangedObject; ++ boost::signals2::signal signalChangedObject; + /// signal on relabeled Object +- boost::signal signalRelabelObject; ++ boost::signals2::signal signalRelabelObject; + /// signal on activated Object +- boost::signal signalActivatedObject; ++ boost::signals2::signal signalActivatedObject; + //@} + + /** @name Signals of property changes +@@ -147,11 +147,11 @@ class AppExport Application (public) + */ + //@{ + /// signal on adding a dynamic property +- boost::signal signalAppendDynamicProperty; ++ boost::signals2::signal signalAppendDynamicProperty; + /// signal on about removing a dynamic property +- boost::signal signalRemoveDynamicProperty; ++ boost::signals2::signal signalRemoveDynamicProperty; + /// signal on about changing the editor mode of a property +- boost::signal signalChangePropertyEditor; ++ boost::signals2::signal signalChangePropertyEditor; + //@} + + +--- src/App/Document.h.orig 2018-04-06 08:48:37 UTC ++++ src/App/Document.h +@@ -37,7 +37,7 @@ + #include + #include + +-#include ++#include + + namespace Base { + class Writer; +@@ -113,40 +113,40 @@ class AppExport Document : public App::PropertyContain + /** @name Signals of the document */ + //@{ + /// signal on new Object +- boost::signal signalNewObject; +- //boost::signal m_sig; ++ boost::signals2::signal signalNewObject; ++ //boost::signals2::signal m_sig; + /// signal on deleted Object +- boost::signal signalDeletedObject; ++ boost::signals2::signal signalDeletedObject; + /// signal on changed Object +- boost::signal signalChangedObject; ++ boost::signals2::signal signalChangedObject; + /// signal on relabeled Object +- boost::signal signalRelabelObject; ++ boost::signals2::signal signalRelabelObject; + /// signal on activated Object +- boost::signal signalActivatedObject; ++ boost::signals2::signal signalActivatedObject; + /// signal on created object +- boost::signal signalTransactionAppend; ++ boost::signals2::signal signalTransactionAppend; + /// signal on removed object +- boost::signal signalTransactionRemove; ++ boost::signals2::signal signalTransactionRemove; + /// signal on undo +- boost::signal signalUndo; ++ boost::signals2::signal signalUndo; + /// signal on redo +- boost::signal signalRedo; ++ boost::signals2::signal signalRedo; + /** signal on load/save document + * this signal is given when the document gets streamed. + * you can use this hook to write additional information in + * the file (like the Gui::Document it does). + */ +- boost::signal signalSaveDocument; +- boost::signal signalRestoreDocument; +- boost::signal&, ++ boost::signals2::signal signalSaveDocument; ++ boost::signals2::signal signalRestoreDocument; ++ boost::signals2::signal&, + Base::Writer &)> signalExportObjects; +- boost::signal&, ++ boost::signals2::signal&, + Base::Writer &)> signalExportViewObjects; +- boost::signal&, ++ boost::signals2::signal&, + Base::XMLReader&)> signalImportObjects; +- boost::signal&, Base::Reader&, ++ boost::signals2::signal&, Base::Reader&, + const std::map&)> signalImportViewObjects; +- boost::signal signalRecomputed; ++ boost::signals2::signal signalRecomputed; + //@} + + /** @name File handling of the document */ +--- src/App/DocumentObject.cpp.orig 2018-04-06 08:48:37 UTC ++++ src/App/DocumentObject.cpp +@@ -38,7 +38,7 @@ + #include "DocumentObjectExtension.h" + #include "GeoFeatureGroupExtension.h" + #include +-#include ++#include + #include + + using namespace App; +--- src/App/DocumentObject.h.orig 2018-04-06 08:48:37 UTC ++++ src/App/DocumentObject.h +@@ -33,7 +33,7 @@ + #include + + #include +-#include ++#include + + namespace App + { +@@ -282,9 +282,9 @@ class AppExport DocumentObject: public App::Transactio + App::Document* _pDoc; + + // Connections to track relabeling of document and document objects +- boost::BOOST_SIGNALS_NAMESPACE::scoped_connection onRelabledDocumentConnection; +- boost::BOOST_SIGNALS_NAMESPACE::scoped_connection onRelabledObjectConnection; +- boost::BOOST_SIGNALS_NAMESPACE::scoped_connection onDeletedObjectConnection; ++ boost::signals2::scoped_connection onRelabledDocumentConnection; ++ boost::signals2::scoped_connection onRelabledObjectConnection; ++ boost::signals2::scoped_connection onDeletedObjectConnection; + + /// Old label; used for renaming expressions + std::string oldLabel; +--- src/App/DocumentObserver.cpp.orig 2018-04-06 08:48:37 UTC ++++ src/App/DocumentObserver.cpp +@@ -27,7 +27,6 @@ + # include + #endif + +-#include + #include + + #include "Application.h" +--- src/App/DocumentObserver.h.orig 2018-04-06 08:48:37 UTC ++++ src/App/DocumentObserver.h +@@ -25,7 +25,7 @@ + #define APP_DOCUMENTOBSERVER_H + + #include +-#include ++#include + #include + + namespace App +@@ -157,7 +157,7 @@ class AppExport DocumentObserver (protected) + + private: + App::Document* _document; +- typedef boost::signals::connection Connection; ++ typedef boost::signals2::connection Connection; + Connection connectApplicationCreatedDocument; + Connection connectApplicationDeletedDocument; + Connection connectDocumentCreatedObject; +--- src/App/DocumentObserverPython.h.orig 2018-04-06 08:48:37 UTC ++++ src/App/DocumentObserverPython.h +@@ -26,7 +26,7 @@ + + #include + +-#include ++#include + #include + + namespace App +@@ -74,7 +74,7 @@ class AppExport DocumentObserverPython (private) + Py::Object inst; + static std::vector _instances; + +- typedef boost::signals::connection Connection; ++ typedef boost::signals2::connection Connection; + Connection connectApplicationCreatedDocument; + Connection connectApplicationDeletedDocument; + Connection connectApplicationRelabelDocument; +--- src/App/MergeDocuments.h.orig 2018-04-06 08:48:37 UTC ++++ src/App/MergeDocuments.h +@@ -24,7 +24,7 @@ + #ifndef APP_MERGEDOCUMENTS_H + #define APP_MERGEDOCUMENTS_H + +-#include ++#include + #include + + namespace zipios { +@@ -57,7 +57,7 @@ class AppExport MergeDocuments : public Base::Persiste + App::Document* appdoc; + std::vector objects; + std::map nameMap; +- typedef boost::signals::connection Connection; ++ typedef boost::signals2::connection Connection; + Connection connectExport; + Connection connectImport; + }; +--- src/App/PreCompiled.h.orig 2018-04-06 08:48:37 UTC ++++ src/App/PreCompiled.h +@@ -71,7 +71,7 @@ + #include + + // Boost +-#include ++#include + #include + #include + +--- src/App/PropertyExpressionEngine.h.orig 2018-04-06 08:48:37 UTC ++++ src/App/PropertyExpressionEngine.h +@@ -25,7 +25,7 @@ + + #include + #include +-#include ++#include + #include + #include + #include +@@ -125,7 +125,7 @@ class AppExport PropertyExpressionEngine : public App: + void slotObjectDeleted(const DocumentObject &obj); + + ///signal called when a expression was changed +- boost::signal expressionChanged; ++ boost::signals2::signal expressionChanged; + + void onDocumentRestored(); + +--- src/Base/Tools.h.orig 2018-04-06 08:48:37 UTC ++++ src/Base/Tools.h +@@ -30,7 +30,7 @@ + #include + #include + #include +-#include ++#include + #include + + namespace Base +@@ -166,17 +166,14 @@ class ObjectStatusLocker (private) + // ---------------------------------------------------------------------------- + + class ConnectionBlocker { +- typedef boost::BOOST_SIGNALS_NAMESPACE::connection Connection; +- bool b; +- Connection& c; ++ typedef boost::signals2::connection Connection; ++ typedef boost::signals2::shared_connection_block ConnectionBlock; ++ ConnectionBlock blocker; + + public: +- ConnectionBlocker(Connection& c) : c(c) { +- b = c.blocked(); +- c.block(true); ++ ConnectionBlocker(Connection& c) : blocker(c) { + } + ~ConnectionBlocker() { +- c.block(b); + } + }; + +--- src/Gui/Action.cpp.orig 2018-04-06 08:48:37 UTC ++++ src/Gui/Action.cpp +@@ -24,7 +24,7 @@ + #include "PreCompiled.h" + + #ifndef _PreComp_ +-# include ++# include + # include + # include + # include +--- src/Gui/Application.cpp.orig 2018-04-06 08:48:37 UTC ++++ src/Gui/Application.cpp +@@ -25,7 +25,7 @@ + + #ifndef _PreComp_ + # include "InventorAll.h" +-# include ++# include + # include + # include + # include +--- src/Gui/Application.h.orig 2018-04-06 08:48:37 UTC ++++ src/Gui/Application.h +@@ -88,33 +88,33 @@ class GuiExport Application (public) + /** @name Signals of the Application */ + //@{ + /// signal on new Document +- boost::signal signalNewDocument; ++ boost::signals2::signal signalNewDocument; + /// signal on deleted Document +- boost::signal signalDeleteDocument; ++ boost::signals2::signal signalDeleteDocument; + /// signal on relabeling Document +- boost::signal signalRelabelDocument; ++ boost::signals2::signal signalRelabelDocument; + /// signal on renaming Document +- boost::signal signalRenameDocument; ++ boost::signals2::signal signalRenameDocument; + /// signal on activating Document +- boost::signal signalActiveDocument; ++ boost::signals2::signal signalActiveDocument; + /// signal on new Object +- boost::signal signalNewObject; ++ boost::signals2::signal signalNewObject; + /// signal on deleted Object +- boost::signal signalDeletedObject; ++ boost::signals2::signal signalDeletedObject; + /// signal on changed object property +- boost::signal signalChangedObject; ++ boost::signals2::signal signalChangedObject; + /// signal on renamed Object +- boost::signal signalRelabelObject; ++ boost::signals2::signal signalRelabelObject; + /// signal on activated Object +- boost::signal signalActivatedObject; ++ boost::signals2::signal signalActivatedObject; + /// signal on activated workbench +- boost::signal signalActivateWorkbench; ++ boost::signals2::signal signalActivateWorkbench; + /// signal on added workbench +- boost::signal signalAddWorkbench; ++ boost::signals2::signal signalAddWorkbench; + /// signal on removed workbench +- boost::signal signalRemoveWorkbench; ++ boost::signals2::signal signalRemoveWorkbench; + /// signal on activating view +- boost::signal signalActivateView; ++ boost::signals2::signal signalActivateView; + //@} + + /** @name methods for Document handling */ +--- src/Gui/AutoSaver.h.orig 2018-04-06 08:48:37 UTC ++++ src/Gui/AutoSaver.h +@@ -29,7 +29,7 @@ + #include + #include + #include +-#include ++#include + + namespace App { + class Document; +@@ -53,7 +53,7 @@ class AutoSaveProperty (public) + private: + void slotNewObject(const App::DocumentObject&); + void slotChangePropertyData(const App::Property&); +- typedef boost::BOOST_SIGNALS_NAMESPACE::connection Connection; ++ typedef boost::signals2::connection Connection; + Connection documentNew; + Connection documentMod; + }; +--- src/Gui/DAGView/DAGModel.cpp.orig 2018-04-06 08:48:37 UTC ++++ src/Gui/DAGView/DAGModel.cpp +@@ -22,7 +22,6 @@ + + #include "PreCompiled.h" + #ifndef _PreComp_ +-#include + #include + #include + #include +--- src/Gui/DAGView/DAGModel.h.orig 2018-04-06 08:48:37 UTC ++++ src/Gui/DAGView/DAGModel.h +@@ -26,7 +26,7 @@ + #include + #include + +-#include ++#include + + #include + #include +@@ -86,7 +86,7 @@ namespace Gui + private: + Model(){} + //documentObject slots. +- typedef boost::BOOST_SIGNALS_NAMESPACE::connection Connection; ++ typedef boost::signals2::connection Connection; + Connection connectNewObject; + Connection connectDelObject; + Connection connectChgObject; +--- src/Gui/DlgDisplayPropertiesImp.h.orig 2018-04-06 08:48:37 UTC ++++ src/Gui/DlgDisplayPropertiesImp.h +@@ -25,7 +25,7 @@ + #define GUI_DIALOG_DLGDISPLAYPROPERTIES_IMP_H + + #include +-#include ++#include + + #include "ui_DlgDisplayProperties.h" + #include "Selection.h" +@@ -42,7 +42,7 @@ namespace Gui { + class Command; + + namespace Dialog { +-typedef boost::signals::connection DlgDisplayPropertiesImp_Connection; ++typedef boost::signals2::connection DlgDisplayPropertiesImp_Connection; + + /** + * The DlgDisplayPropertiesImp class implements a dialog containing all available document +@@ -79,7 +79,7 @@ private Q_SLOTS: (protected) + + private: + void slotChangedObject(const Gui::ViewProvider&, const App::Property& Prop); +- void reject(); ++ void reject(); + void setDisplayModes(const std::vector&); + void setMaterial(const std::vector&); + void setColorPlot(const std::vector&); +--- src/Gui/Document.cpp.orig 2018-04-06 08:48:37 UTC ++++ src/Gui/Document.cpp +@@ -31,7 +31,7 @@ + # include + # include + # include +-# include ++# include + # include + # include + # include +@@ -89,7 +89,7 @@ struct DocumentP + std::map _ViewProviderMap; + std::map _ViewProviderMapAnnotation; + +- typedef boost::signals::connection Connection; ++ typedef boost::signals2::connection Connection; + Connection connectNewObject; + Connection connectDelObject; + Connection connectCngObject; +@@ -105,6 +105,8 @@ struct DocumentP + Connection connectRedoDocument; + Connection connectTransactionAppend; + Connection connectTransactionRemove; ++ typedef boost::signals2::shared_connection_block ConnectionBlock; ++ ConnectionBlock connectActObjectBlocker; + }; + + } // namespace Gui +@@ -138,6 +140,8 @@ Document::Document(App::Document* pcDocument,Applicati + (boost::bind(&Gui::Document::slotRelabelObject, this, _1)); + d->connectActObject = pcDocument->signalActivatedObject.connect + (boost::bind(&Gui::Document::slotActivatedObject, this, _1)); ++ d->connectActObjectBlocker = boost::signals2::shared_connection_block ++ (d->connectActObject, false); + d->connectSaveDocument = pcDocument->signalSaveDocument.connect + (boost::bind(&Gui::Document::Save, this, _1)); + d->connectRestDocument = pcDocument->signalRestoreDocument.connect +@@ -846,14 +850,14 @@ void Document::slotStartRestoreDocument(const App::Doc + if (d->_pcDocument != &doc) + return; + // disable this signal while loading a document +- d->connectActObject.block(); ++ d->connectActObjectBlocker.block(); + } + + void Document::slotFinishRestoreDocument(const App::Document& doc) + { + if (d->_pcDocument != &doc) + return; +- d->connectActObject.unblock(); ++ d->connectActObjectBlocker.unblock(); + App::DocumentObject* act = doc.getActiveObject(); + if (act) { + ViewProvider* viewProvider = getViewProvider(act); +--- src/Gui/Document.h.orig 2018-04-06 08:48:37 UTC ++++ src/Gui/Document.h +@@ -92,36 +92,36 @@ class GuiExport Document : public Base::Persistence ( + /** @name Signals of the document */ + //@{ + /// signal on new Object +- mutable boost::signal signalNewObject; ++ mutable boost::signals2::signal signalNewObject; + /// signal on deleted Object +- mutable boost::signal signalDeletedObject; ++ mutable boost::signals2::signal signalDeletedObject; + /** signal on changed Object, the 2nd argument is the changed property + of the referenced document object, not of the view provider */ +- mutable boost::signal signalChangedObject; + /// signal on renamed Object +- mutable boost::signal signalRelabelObject; ++ mutable boost::signals2::signal signalRelabelObject; + /// signal on activated Object +- mutable boost::signal signalActivatedObject; ++ mutable boost::signals2::signal signalActivatedObject; + /// signal on entering in edit mode +- mutable boost::signal signalInEdit; ++ mutable boost::signals2::signal signalInEdit; + /// signal on leaving edit mode +- mutable boost::signal signalResetEdit; ++ mutable boost::signals2::signal signalResetEdit; + /// signal on changed Object, the 2nd argument is the highlite mode to use +- mutable boost::signal signalHighlightObject; ++ mutable boost::signals2::signal signalHighlightObject; + /// signal on changed Object, the 2nd argument is the highlite mode to use +- mutable boost::signal signalExpandObject; ++ mutable boost::signals2::signal signalExpandObject; + /// signal on scrolling to an object +- mutable boost::signal signalScrollToObject; ++ mutable boost::signals2::signal signalScrollToObject; + /// signal on undo Document +- mutable boost::signal signalUndoDocument; ++ mutable boost::signals2::signal signalUndoDocument; + /// signal on redo Document +- mutable boost::signal signalRedoDocument; ++ mutable boost::signals2::signal signalRedoDocument; + /// signal on deleting Document +- mutable boost::signal signalDeleteDocument; ++ mutable boost::signals2::signal signalDeleteDocument; + //@} + + /** @name I/O of the document */ +--- src/Gui/DocumentModel.cpp.orig 2018-04-06 08:48:37 UTC ++++ src/Gui/DocumentModel.cpp +@@ -26,7 +26,7 @@ + #ifndef _PreComp_ + # include + # include +-# include ++# include + # include + #endif + +--- src/Gui/DocumentObserver.cpp.orig 2018-04-06 08:48:37 UTC ++++ src/Gui/DocumentObserver.cpp +@@ -27,7 +27,6 @@ + # include + #endif + +-#include + #include + + #include "Application.h" +@@ -87,19 +86,6 @@ void DocumentObserver::detachDocument() + this->connectDocumentUndo.disconnect(); + this->connectDocumentRedo.disconnect(); + this->connectDocumentDelete.disconnect(); +-} +- +-void DocumentObserver::enableNotifications(DocumentObserver::Notifications value) +-{ +- this->connectDocumentCreatedObject.block(!(value & Create)); +- this->connectDocumentDeletedObject.block(!(value & Delete)); +- this->connectDocumentChangedObject.block(!(value & Change)); +- this->connectDocumentRelabelObject.block(!(value & Relabel)); +- this->connectDocumentActivateObject.block(!(value & Activate)); +- this->connectDocumentEditObject.block(!(value & Edit)); +- this->connectDocumentResetObject.block(!(value & Reset)); +- this->connectDocumentUndo.block(!(value & Undo)); +- this->connectDocumentRedo.block(!(value & Redo)); + } + + void DocumentObserver::slotUndoDocument(const Document& /*Doc*/) +--- src/Gui/DocumentObserver.h.orig 2018-04-06 08:48:37 UTC ++++ src/Gui/DocumentObserver.h +@@ -25,8 +25,7 @@ + #define GUI_DOCUMENTOBSERVER_H + + #include +-#include +-#include ++#include + + namespace App { class Property; } + namespace Gui +@@ -45,21 +44,6 @@ class ViewProviderDocumentObject; + class GuiExport DocumentObserver + { + public: +- enum Notification { +- None = 0x0000, +- Create = 0x0001, +- Delete = 0x0002, +- Change = 0x0004, +- Relabel = 0x0008, +- Activate = 0x0010, +- Edit = 0x0020, +- Reset = 0x0040, +- Undo = 0x0080, +- Redo = 0x0100, +- All = 0x01ff +- }; +- Q_DECLARE_FLAGS(Notifications, Notification) +- + /// Constructor + DocumentObserver(); + virtual ~DocumentObserver(); +@@ -72,9 +56,6 @@ class GuiExport DocumentObserver (public) + * is not longer observed then. + */ + void detachDocument(); +- /** Activates the connection depending on the given value. +- */ +- void enableNotifications(Notifications value); + + private: + /** Notifies when an object has been created. */ +@@ -100,7 +81,7 @@ class GuiExport DocumentObserver (public) + virtual void slotDeleteDocument(const Document& Doc); + + private: +- typedef boost::BOOST_SIGNALS_NAMESPACE::scoped_connection Connection; ++ typedef boost::signals2::scoped_connection Connection; + Connection connectDocumentCreatedObject; + Connection connectDocumentDeletedObject; + Connection connectDocumentChangedObject; +--- src/Gui/ExpressionBinding.h.orig 2018-04-06 08:48:37 UTC ++++ src/Gui/ExpressionBinding.h +@@ -27,7 +27,7 @@ + #include + #include + #include +-#include ++#include + + namespace App { + class Expression; +@@ -75,7 +75,7 @@ class GuiExport ExpressionBinding (protected) + int iconHeight; + + void expressionChange(const App::ObjectIdentifier& id); +- boost::signals::scoped_connection connection; ++ boost::signals2::scoped_connection connection; + bool m_autoApply; + }; + +--- src/Gui/GraphvizView.h.orig 2018-04-06 08:48:37 UTC ++++ src/Gui/GraphvizView.h +@@ -26,7 +26,7 @@ + + #include "MDIView.h" + #include +-#include ++#include + + + class QGraphicsScene; +@@ -84,7 +84,7 @@ private Q_SLOTS: (private) + GraphvizWorker* thread; + int nPending; + +- typedef boost::BOOST_SIGNALS_NAMESPACE::scoped_connection Connection; ++ typedef boost::signals2::scoped_connection Connection; + Connection recomputeConnection; + Connection undoConnection; + Connection redoConnection; +--- src/Gui/MDIView.cpp.orig 2018-04-06 08:48:37 UTC ++++ src/Gui/MDIView.cpp +@@ -24,7 +24,7 @@ + #include "PreCompiled.h" + + #ifndef _PreComp_ +-# include ++# include + # include + # include + # include +--- src/Gui/MDIView.h.orig 2018-04-06 08:48:37 UTC ++++ src/Gui/MDIView.h +@@ -150,7 +150,7 @@ protected Q_SLOTS: (private) + Qt::WindowStates wstate; + // list of active objects of this view + ActiveObjectList ActiveObjects; +- typedef boost::BOOST_SIGNALS_NAMESPACE::connection Connection; ++ typedef boost::signals2::connection Connection; + Connection connectDelObject; //remove active object upon delete. + }; + +--- src/Gui/MainWindow.cpp.orig 2018-04-06 08:48:37 UTC ++++ src/Gui/MainWindow.cpp +@@ -51,7 +51,6 @@ + # include + #endif + +-#include + #include + + // FreeCAD Base header +--- src/Gui/ManualAlignment.cpp.orig 2018-04-06 08:48:37 UTC ++++ src/Gui/ManualAlignment.cpp +@@ -49,7 +49,6 @@ + # include + #endif + +-#include + #include + + #include +--- src/Gui/ManualAlignment.h.orig 2018-04-06 08:48:37 UTC ++++ src/Gui/ManualAlignment.h +@@ -30,7 +30,7 @@ + #include + #include + #include +-#include ++#include + + class SbVec3f; + class SoPickedPoint; +@@ -244,7 +244,7 @@ Q_SIGNALS: (private) + + static ManualAlignment* _instance; + +- typedef boost::BOOST_SIGNALS_NAMESPACE::connection Connection; ++ typedef boost::signals2::connection Connection; + Connection connectApplicationDeletedDocument; + Connection connectDocumentDeletedObject; + +--- src/Gui/MergeDocuments.h.orig 2018-04-06 08:48:37 UTC ++++ src/Gui/MergeDocuments.h +@@ -24,7 +24,7 @@ + #ifndef GUI_MERGEDOCUMENTS_H + #define GUI_MERGEDOCUMENTS_H + +-#include ++#include + #include + + namespace zipios { +@@ -57,7 +57,7 @@ class GuiExport MergeDocuments : public Base::Persiste + Gui::Document* document; + std::vector objects; + std::map nameMap; +- typedef boost::signals::connection Connection; ++ typedef boost::signals2::connection Connection; + Connection connectExport; + Connection connectImport; + }; +--- src/Gui/Placement.h.orig 2018-04-06 08:48:37 UTC ++++ src/Gui/Placement.h +@@ -28,7 +28,7 @@ + #include + #include + +-#include ++#include + #include + + class QSignalMapper; +@@ -84,7 +84,7 @@ Q_SIGNALS: + + private: + typedef Gui::LocationInterfaceComp Ui_PlacementComp; +- typedef boost::BOOST_SIGNALS_NAMESPACE::connection Connection; ++ typedef boost::signals2::connection Connection; + Ui_PlacementComp* ui; + QSignalMapper* signalMapper; + Connection connectAct; +--- src/Gui/PreCompiled.h.orig 2018-04-06 08:48:37 UTC ++++ src/Gui/PreCompiled.h +@@ -72,7 +72,7 @@ + #include + + // Boost +-#include ++#include + #include + #include + #include +--- src/Gui/ProjectView.cpp.orig 2018-04-06 08:48:37 UTC ++++ src/Gui/ProjectView.cpp +@@ -24,7 +24,6 @@ + #include "PreCompiled.h" + + #ifndef _PreComp_ +-# include + # include + # include + # include +--- src/Gui/PropertyView.h.orig 2018-04-06 08:48:37 UTC ++++ src/Gui/PropertyView.h +@@ -28,7 +28,7 @@ + + #include "DockWindow.h" + #include "Selection.h" +-#include ++#include + + class QPixmap; + class QTabWidget; +@@ -65,15 +65,15 @@ class PropertyView : public QWidget, public Gui::Selec + Gui::PropertyEditor::PropertyEditor* propertyEditorView; + Gui::PropertyEditor::PropertyEditor* propertyEditorData; + +-public Q_SLOTS: +- /// Stores a preference for the last tab selected +- void tabChanged(int index); +- ++public Q_SLOTS: ++ /// Stores a preference for the last tab selected ++ void tabChanged(int index); ++ + protected: + void changeEvent(QEvent *e); + + private: +- void onSelectionChanged(const SelectionChanges& msg); ++ void onSelectionChanged(const SelectionChanges& msg); + void slotChangePropertyData(const App::DocumentObject&, const App::Property&); + void slotChangePropertyView(const Gui::ViewProvider&, const App::Property&); + void slotAppendDynamicProperty(const App::Property&); +@@ -83,7 +83,7 @@ public Q_SLOTS: (private) + private: + struct PropInfo; + struct PropFind; +- typedef boost::BOOST_SIGNALS_NAMESPACE::connection Connection; ++ typedef boost::signals2::connection Connection; + Connection connectPropData; + Connection connectPropView; + Connection connectPropAppend; +--- src/Gui/Selection.cpp.orig 2018-04-06 08:48:37 UTC ++++ src/Gui/Selection.cpp +@@ -26,7 +26,6 @@ + #ifndef _PreComp_ + # include + # include +-# include + # include + # include + # include +@@ -54,7 +53,7 @@ + using namespace Gui; + using namespace std; + +-SelectionObserver::SelectionObserver() ++SelectionObserver::SelectionObserver() : blocker(connectSelection, false) + { + attachSelection(); + } +@@ -68,9 +67,9 @@ bool SelectionObserver::blockConnection(bool block) + { + bool ok = connectSelection.blocked(); + if (block) +- connectSelection.block(); ++ blocker.block(); + else +- connectSelection.unblock(); ++ blocker.unblock(); + return ok; + } + +--- src/Gui/Selection.h.orig 2018-04-06 08:48:37 UTC ++++ src/Gui/Selection.h +@@ -30,6 +30,7 @@ + #include + #include + #include ++#include + #include + + #include +@@ -143,8 +144,9 @@ class GuiExport SelectionObserver (private) + virtual void onSelectionChanged(const SelectionChanges& msg) = 0; + + private: +- typedef boost::signals::connection Connection; ++ typedef boost::signals2::connection Connection; + Connection connectSelection; ++ boost::signals2::shared_connection_block blocker; + }; + + /** +@@ -290,7 +292,7 @@ class GuiExport SelectionSingleton : public Base::Subj + }; + + /// signal on new object +- boost::signal signalSelectionChanged; ++ boost::signals2::signal signalSelectionChanged; + + /** Returns a vector of selection objects *** DIFF OUTPUT TRUNCATED AT 1000 LINES ***