Disable building of the SWIG binding for Octave
authorRafael Laboissière <rafael@debian.org>
Sat, 5 Dec 2020 22:47:14 +0000 (19:47 -0300)
committerRafael Laboissière <rafael@debian.org>
Sun, 6 Dec 2020 00:57:15 +0000 (21:57 -0300)
The Debian Octave Group is preparing the transtion Octave5 ⇒ Octave 6 [1]
and mathgl is in the way.

Now, mathgl uses SWIG for building its binding for Octave.  However, SWIG
is currently incompatible with Octave 6 and neither the Octave upstream
authors [2] nor the SWIG upstream authors [3] are willing to fix the
problem.

The simple solution is to drop the Octave support of mathgl. At any rate,
dropping Octave for mathgl will have absolutely no effect in the package,
because the two *.oct files generated at building are not installed
anywhere. Even though mathgl build-depends on liboctave-dev, none of the
resulting binary package depend on Octave in any way.

[1] https://bugs.debian.org/976386
[2] https://savannah.gnu.org/bugs/?func=detailitem&item_id=59422
[3] https://github.com/swig/swig/issues/1893

Closes: #976381
debian/control
debian/patches/CMakeLists.patch

index 45ae2c04faddca7446b02b83bf5d256d76e92742..c882f4b4013b6e525f93851c38301ae825bdbd5f 100644 (file)
@@ -38,7 +38,6 @@ Build-Depends: debhelper-compat (= 12),
  swig,
  cmake, 
  libxft-dev, 
- liboctave-dev,  
  fluid
 Standards-Version: 4.5.0
 Homepage: http://mathgl.sourceforge.net/doc_en/Main.html
index f75ebae5954fc16cb564179df6955c3d53d8766d..34bc82070f85db4097ca033d272e5fe5c781fda3 100644 (file)
@@ -49,7 +49,7 @@
  
  # msvc fwprintf print char* for the specifier of "%s" format
  if(MSVC AND MSVC_VERSION GREATER 1899)
-@@ -243,11 +243,11 @@
+@@ -243,9 +243,9 @@
  #     endif(NOT enable-opengl)
  endif(enable-qt4 OR enable-qt5)
  
@@ -60,8 +60,5 @@
 +CMAKE_DEPENDENT_OPTION(enable-json-sample-we "Enable JSON sample (WebEngine variant)." ON "enable-json-sample" ON)
 +MGL_DEPENDENT_OPTION(enable-python "Enable python interface" ON "NOT enable-lgpl" ON "NOT enable-all-swig" ON)
  MGL_DEPENDENT_OPTION(enable-lua "Enable Lua (v.5.1) interface" OFF "NOT enable-lgpl" ON "NOT enable-all-swig" ON)
--MGL_DEPENDENT_OPTION(enable-octave "Enable octave interface" OFF "NOT enable-lgpl" ON "NOT enable-all-swig" ON)
-+MGL_DEPENDENT_OPTION(enable-octave "Enable octave interface" ON "NOT enable-lgpl" ON "NOT enable-all-swig" ON)
+ MGL_DEPENDENT_OPTION(enable-octave "Enable octave interface" OFF "NOT enable-lgpl" ON "NOT enable-all-swig" ON)
  MGL_DEPENDENT_OPTION(enable-octave-install "Octave interface will install for all users" ON "NOT enable-lgpl" ON "NOT enable-all-swig" ON)
- include_directories( ${MathGL2_SOURCE_DIR}/include ${MathGL2_BINARY_DIR}/include)