[SCM] FreeCAD packaging branch, master, updated. debian/0.11.4446-dfsg-4-6-g4eb6526

Anton Gladky gladky.anton at gmail.com
Mon Jan 9 20:36:28 UTC 2012


The following commit has been merged in the master branch:
commit dc52b9ca671ab4add8b82481576f2660369a445e
Author: Anton Gladky <gladky.anton at gmail.com>
Date:   Mon Jan 9 21:02:51 2012 +0100

    Remove patch (gcc-4.6 compilation), hopefully applied by upstream.

diff --git a/debian/patches/fix_compilation_with_gcc-4.6.patch b/debian/patches/fix_compilation_with_gcc-4.6.patch
deleted file mode 100644
index d473f2f..0000000
--- a/debian/patches/fix_compilation_with_gcc-4.6.patch
+++ /dev/null
@@ -1,69 +0,0 @@
-Description: fix compilation with GCC-4.6
-Author: Werner Mayer <wmayer at users.sourceforge.net>
-Applied-Upstream: http://free-cad.svn.sourceforge.net/viewvc/free-cad/trunk/?view=log&pathrev=4465
-Last-Update: 2011-06-08
-
---- a/src/Gui/Application.cpp
-+++ b/src/Gui/Application.cpp
-@@ -1317,15 +1317,20 @@
-     Base::Console().Error( errmsg.getString() );
- }
- #endif
-+// To fix bug #0000345 move Q_INIT_RESOURCE() outside initApplication()
-+static void init_resources()
-+{
-+    // init resources
-+    Q_INIT_RESOURCE(resource);
-+    Q_INIT_RESOURCE(translation);
-+}
- 
- void Application::initApplication(void)
- {
-     try {
-         initTypes();
-         new Base::ScriptProducer( "FreeCADGuiInit", FreeCADGuiInit );
--        // add resources
--        Q_INIT_RESOURCE(resource);
--        Q_INIT_RESOURCE(translation);
-+        init_resources();
-         old_qtmsg_handler = qInstallMsgHandler(messageHandler);
-     }
-     catch (...) {
---- a/src/Gui/MDIView.cpp
-+++ b/src/Gui/MDIView.cpp
-@@ -206,6 +206,10 @@
-             }   break;
-     }
- }
-+#if defined(Q_WS_X11)
-+// To fix bug #0000345 move function declaration to here
-+extern void qt_x11_wait_for_window_manager( QWidget* w ); // defined in qwidget_x11.cpp
-+#endif
- 
- void MDIView::setCurrentViewMode(ViewMode mode)
- {
-@@ -246,7 +250,7 @@
-                         showNormal();
- 
- #if defined(Q_WS_X11)
--                    extern void qt_x11_wait_for_window_manager( QWidget* w ); // defined in qwidget_x11.cpp
-+                    //extern void qt_x11_wait_for_window_manager( QWidget* w ); // defined in qwidget_x11.cpp
-                     qt_x11_wait_for_window_manager(this);
- #endif
-                     activateWindow();
---- a/src/Mod/Mesh/App/Core/MeshIO.cpp
-+++ b/src/Mod/Mesh/App/Core/MeshIO.cpp
-@@ -1412,9 +1412,10 @@
-     while (clIter < clEnd) {
-         pclFacet = &(*clIter);
-         // normal
--        rstrOut.write((const char*)&(pclFacet->GetNormal().x), sizeof(float));
--        rstrOut.write((const char*)&(pclFacet->GetNormal().y), sizeof(float));
--        rstrOut.write((const char*)&(pclFacet->GetNormal().z), sizeof(float));
-+        Base::Vector3f normal = pclFacet->GetNormal();
-+        rstrOut.write((const char*)&(normal.x), sizeof(float));
-+        rstrOut.write((const char*)&(normal.y), sizeof(float));
-+        rstrOut.write((const char*)&(normal.z), sizeof(float));
- 
-         // vertices
-         for (i = 0; i < 3; i++) {
diff --git a/debian/patches/series b/debian/patches/series
index 9654f63..a8e1dee 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1,4 +1,3 @@
-fix_compilation_with_gcc-4.6.patch
 fix_typo_errors.patch
 disable_memory_check.patch
 fix_armel_FTBFS.patch

-- 
FreeCAD packaging



More information about the debian-science-commits mailing list