Source: lhapdf
Version: 5.9.1-5
Severity: normal
Tags: patch

The octave-pkg-dev has been superseded by dh-octave and will be soon deprecated. The lhapdf package currently depends on octave-pkg-dev, but it actually builds correctly without the later one.

In the patch attached to this bug report, the build-dependency on octave-pkg-dev is replaced by dh-octave and the command dh_octave_substvar is used to get the appropriate dependency on 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 7aa3b04..449f549 100644
--- a/debian/control
+++ b/debian/control
@@ -3,7 +3,7 @@ Section: science
 Priority: optional
 Maintainer: Debian Science Maintainers <debian-science-maintain...@lists.alioth.debian.org>
 Uploaders: Lifeng Sun <lifong...@gmail.com>
-Build-Depends: debhelper (>= 8), dh-autoreconf, automake1.11, gfortran, swig, python-dev, dh-python, octave-pkg-dev, gnuplot
+Build-Depends: debhelper (>= 8), dh-autoreconf, automake1.11, gfortran, swig, python-dev, dh-python, gnuplot, dh-octave
 Build-Depends-Indep: doxygen-latex, ghostscript
 Standards-Version: 3.9.4
 Homepage: http://projects.hepforge.org/lhapdf/
@@ -66,7 +66,7 @@ Priority: extra
 Architecture: any
 Multi-Arch: same
 Pre-Depends: ${misc:Pre-Depends}
-Depends: octave, liblhapdf0v5 (= ${binary:Version}), ${shlibs:Depends}, ${misc:Depends}
+Depends: ${octave:Depends}, liblhapdf0v5 (= ${binary:Version}), ${shlibs:Depends}, ${misc:Depends}
 Recommends: lhapdf-pdfsets-minimal
 Description: Octave Bindings for LHAPDF
  LHAPDF provides a unified and easy to use interface to modern PDF sets. It is
diff --git a/debian/rules b/debian/rules
index 8eabb0a..ea553dd 100755
--- a/debian/rules
+++ b/debian/rules
@@ -47,7 +47,7 @@ override_dh_auto_install:
 	strip --remove-section=.comment debian/tmp/usr/share/lhapdf/lhapdf.oct
 	install debian/tmp/usr/share/lhapdf/lhapdf.oct \
 		debian/octave-lhapdf$(OCTDIR)
-	#octave-depends -poctave-lhapdf
+	dh_octave_substvar -poctave-lhapdf
 
 override_dh_auto_build-indep:
 	dh_auto_build

Reply via email to