Source: libsbml
Version: 0.9.20+dfsg0-1
Severity: normal
Tags: patch

The octave-pkg-dev has been superseded by dh-octave and will be soon deprecated. Please, find attached to this bug report a patch for updating the nlopt source package, accordingly.

Note that in the attached patch I also remove the follwoing lines from debian/rules:

   BIND_OCTAVE :=$(shell which otave-config | grep -q ocatve && echo 'yes')
   ifdef BIND_OCTAVE
   OCTAVE_PATH := $(shell octave-config --oct-site-dir)
   endif

This looks like obsolete code and, besides, there are typos in it ("otave" and "ocatve" instead of "octave").

Rafael Laboissière


-- System Information: Debian Release: buster/sid APT prefers testing APT policy: (650, 'testing'), (600, 'unstable'), (550, 'experimental'), (550, 'stable'), (500, 'oldstable') Architecture: amd64 (x86_64) Foreign Architectures: i386

Kernel: Linux 4.9.0-1-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_US.utf8, LC_CTYPE=en_US.utf8 (charmap=UTF-8), 
LANGUAGE=en_US.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
diff --git a/debian/control b/debian/control
index 8cfaf895..2afd647d 100644
--- a/debian/control
+++ b/debian/control
@@ -15,7 +15,7 @@ Build-Depends: autoconf,
                perl,
                libperl-dev,
                default-jdk,
-               octave-pkg-dev,
+               dh-octave,
                r-base-dev,
                r-base-core,
                graphviz,
@@ -111,7 +111,7 @@ Architecture: any
 Section: math
 Depends: ${shlibs:Depends},
          ${misc:Depends},
-         octave
+         ${octave:Depends}
 Provides: libsbml-octave
 Description: System Biology Markup Language library - Octave bindings
  LibSBML is a library designed to help you read, write, manipulate,
diff --git a/debian/rules b/debian/rules
index 17a89247..45c93cd4 100755
--- a/debian/rules
+++ b/debian/rules
@@ -12,10 +12,6 @@ debtmp := $(CURDIR)/debian/tmp
 SRC_TMP := $(CURDIR)/SRC_TMP
 # Test for matlab
 CMAKE_OPTS := $(shell sed '/MATLAB/d' debian/cmake_opts)
-BIND_OCTAVE :=$(shell which otave-config | grep -q ocatve && echo 'yes')
-ifdef BIND_OCTAVE
-OCTAVE_PATH := $(shell octave-config --oct-site-dir)
-endif
 BIND_MATLAB := $(shell which matlab | grep -q matlab && echo 'yes')
 ifdef BIND_MATLAB
 CMAKE_OPTS := $(shell cat debian/cmake_opts)
@@ -91,6 +87,7 @@ override_dh_auto_install:
 	find $(debtmp)/usr/lib -name "*.mex*" -exec strip --strip-unneeded {} + || true
 	find $(debtmp)/usr/lib -name "*.mex*" -exec strip --remove-section=.comment {} + || true
 	dpkg-shlibdeps $(debtmp)/usr/lib/*/*/*/*/*.mex -Tdebian/libsbml5-octave.substvars
+	dh_octave_substvar
 ifdef BIND_MATLAB
 	dpkg-shlibdeps $(debtmp)/usr/lib/*.mex* -Tdebian/libsbml5-matlab.substvars
 endif

Reply via email to