File: fix-octave-install-path.patch

package info (click to toggle)
nlopt 2.7.1-7
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 4,928 kB
  • sloc: ansic: 24,572; cpp: 2,983; sh: 86; makefile: 55; f90: 53; lisp: 37; python: 27
file content (28 lines) | stat: -rw-r--r-- 1,347 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
Description: Fix installation path of Octave files
 Without this patch, the Octave files would be installed in a path that contains
 the version number of the Octave version against which they were compiled.
 Thus, the package would need to be recompiled after each new (minor) version of
 Octave.
 The present patch makes the installation path independent from the Octave
 version (of course, rebuilds may still be needed because of ABI bumps).
Author: Sébastien Villemot <sebastien@debian.org>
Forwarded: not-needed
Last-Update: 2020-02-05
---
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
--- a/cmake/FindOctave.cmake
+++ b/cmake/FindOctave.cmake
@@ -72,11 +72,11 @@ if (OCTAVE_CONFIG_EXECUTABLE)
                     OUTPUT_VARIABLE OCTAVE_ROOT_DIR
                     OUTPUT_STRIP_TRAILING_WHITESPACE)
 
-  execute_process (COMMAND ${OCTAVE_CONFIG_EXECUTABLE} --m-site-dir
+  execute_process (COMMAND ${OCTAVE_CONFIG_EXECUTABLE} -p LOCALFCNFILEDIR
                     OUTPUT_VARIABLE OCTAVE_M_SITE_DIR
                     OUTPUT_STRIP_TRAILING_WHITESPACE)
 
-  execute_process (COMMAND ${OCTAVE_CONFIG_EXECUTABLE} --oct-site-dir
+  execute_process (COMMAND ${OCTAVE_CONFIG_EXECUTABLE} -p LOCALOCTFILEDIR
                     OUTPUT_VARIABLE OCTAVE_OCT_SITE_DIR
                     OUTPUT_STRIP_TRAILING_WHITESPACE)