all lalsuite components: `octave_config -p PREFIX` no longer works for Debian Buster
For Debian Buster, octave_config -p
no longer supports the PREFIX
variable. It seems that OCTAVE_HOME
has taken over long ago, although largely undocumented.
octave-config 3.8.2, available in Jessie, doesn't list OCTAVE_HOME
when queried with --help
but
root@vulcan1:/home# octave-config -p OCTAVE_HOME
/usr
root@vulcan1:/home# octave-config -v
3.8.2
The following patch would have to be applied to the main gnuscripts/lalsuite-swig.m4 (all lal*/ symlink to it):
--- a/lalsuite_swig.m4 2018-09-18 07:37:19.000000000 +0200
+++ b/lalsuite_swig.m4 2018-11-09 15:10:24.234115038 +0100
@@ -329,7 +329,7 @@
# is installed in the same directory as Octave, .oct files will be found by
# Octave without having to add to OCTAVE_PATH
AC_MSG_CHECKING([${OCTAVE} .oct installation directory])
- octave_prefix=[`${octave_cfg} -p PREFIX 2>/dev/null | ${SED} -e 's|/*$||'`]
+ octave_prefix=[`${octave_cfg} -p OCTAVE_HOME 2>/dev/null | ${SED} -e 's|/*$||'`]
octexecdir=[`${octave_cfg} -p LOCALVEROCTFILEDIR 2>/dev/null | ${SED} -e 's|/*$||'`]
octexecdir=[`echo ${octexecdir} | ${SED} -e "s|^${octave_prefix}/||"`]
AS_IF([test "x`echo ${octexecdir} | ${SED} -n -e '\|^/|p'`" != x],[
Please verify this doesn't break RPM builds.
Caveat: Wheezy's octave-config does NOT know about OCTAVE_HOME
:
root@spock:/home# octave-config -p OCTAVE_HOME
root@spock:/home# octave-config -v
3.6.2