diff options
| author | Nguyễn Gia Phong <cnx@loang.net> | 2026-07-08 13:42:33 +0900 |
|---|---|---|
| committer | Nguyễn Gia Phong <cnx@loang.net> | 2026-07-22 12:20:08 +0900 |
| commit | 1ee0bd87015a0ff09242a3d57335b993565a366e (patch) | |
| tree | 5082d45e5325a511ab859501a8bb3cb99ef88103 /gnu/packages/maths.scm | |
| parent | bf1a8cbad93ce091b5663eeeccc595bd04be7eff (diff) | |
gnu: octave: Fix build.
Inherited gexp phases don't play nicely with quasi-quotes.
* gnu/packages/maths.scm (octave)[arguments]<#:phases>: Use gexps.
[native-inputs, inputs]: Use modify-inputs.
Merges: https://codeberg.org/guix/guix/pulls/7884
Diffstat (limited to 'gnu/packages/maths.scm')
| -rw-r--r-- | gnu/packages/maths.scm | 54 |
1 files changed, 24 insertions, 30 deletions
diff --git a/gnu/packages/maths.scm b/gnu/packages/maths.scm index 7740b3cbf41..541d08f9da1 100644 --- a/gnu/packages/maths.scm +++ b/gnu/packages/maths.scm | |||
| @@ -3624,15 +3624,6 @@ script files.") | |||
| 3624 | (define-public octave | 3624 | (define-public octave |
| 3625 | (package (inherit octave-cli) | 3625 | (package (inherit octave-cli) |
| 3626 | (name "octave") | 3626 | (name "octave") |
| 3627 | (inputs | ||
| 3628 | `(("qscintilla-qt5" ,qscintilla-qt5) | ||
| 3629 | ("qt" ,qtbase-5) | ||
| 3630 | ("qtwayland" ,qtwayland-5) | ||
| 3631 | ,@(package-inputs octave-cli))) | ||
| 3632 | (native-inputs | ||
| 3633 | `(("qttools-5" , qttools-5) ;for lrelease | ||
| 3634 | ("texlive" ,(texlive-local-tree (list texlive-epsf))) ; for texi2dvi | ||
| 3635 | ,@(package-native-inputs octave-cli))) | ||
| 3636 | (arguments | 3627 | (arguments |
| 3637 | (substitute-keyword-arguments arguments | 3628 | (substitute-keyword-arguments arguments |
| 3638 | ((#:modules modules %default-gnu-modules) | 3629 | ((#:modules modules %default-gnu-modules) |
| @@ -3640,27 +3631,30 @@ script files.") | |||
| 3640 | ((#:imported-modules imported-modules %default-gnu-imported-modules) | 3631 | ((#:imported-modules imported-modules %default-gnu-imported-modules) |
| 3641 | `((guix build qt-utils) ,@imported-modules)) | 3632 | `((guix build qt-utils) ,@imported-modules)) |
| 3642 | ((#:phases phases) | 3633 | ((#:phases phases) |
| 3643 | `(modify-phases ,phases | 3634 | #~(modify-phases #$phases |
| 3644 | (add-before 'configure 'patch-qscintilla-library-name | 3635 | (add-before 'configure 'patch-qscintilla-library-name |
| 3645 | (lambda* (#:key inputs #:allow-other-keys) | 3636 | (lambda* (#:key inputs #:allow-other-keys) |
| 3646 | ;; The QScintilla library that the Octave configure script tries | 3637 | ;; The QScintilla library that the Octave configure script |
| 3647 | ;; to link with should be named libqscintilla-qt5.so, but the | 3638 | ;; tries to link with should be named libqscintilla-qt5.so, |
| 3648 | ;; QScintilla input provides the shared library as | 3639 | ;; but the QScintilla input provides the shared library |
| 3649 | ;; libqscintilla2_qt5.so. | 3640 | ;; as libqscintilla2_qt5.so. |
| 3650 | (substitute* "configure" | 3641 | (substitute* "configure" |
| 3651 | (("qscintilla2-qt5") | 3642 | (("qscintilla2-qt5") "qscintilla2_qt5")))) |
| 3652 | "qscintilla2_qt5")) | 3643 | (add-after 'install 'wrap-qt |
| 3653 | #t)) | 3644 | (lambda* (#:key inputs #:allow-other-keys) |
| 3654 | (add-after 'install 'wrap-qt | 3645 | (for-each (lambda (path) |
| 3655 | (lambda* (#:key inputs outputs #:allow-other-keys) | 3646 | (wrap-qt-program |
| 3656 | (let ((out (assoc-ref outputs "out"))) | 3647 | (string-append "../" path) ;relative to bin |
| 3657 | (with-directory-excursion out | 3648 | #:output #$output #:inputs inputs)) |
| 3658 | (for-each | 3649 | (with-directory-excursion #$output |
| 3659 | (lambda (x) | 3650 | (find-files "libexec" "^octave-gui$"))))))))) |
| 3660 | (wrap-qt-program (string-append "../" x) | 3651 | (native-inputs |
| 3661 | #:output out | 3652 | (modify-inputs native-inputs |
| 3662 | #:inputs inputs)) | 3653 | (prepend qttools-5 ;for lrelease |
| 3663 | (find-files "libexec" "^octave-gui$")))))))))) | 3654 | (texlive-local-tree (list texlive-epsf))))) ;for texi2dvi |
| 3655 | (inputs | ||
| 3656 | (modify-inputs inputs | ||
| 3657 | (prepend qscintilla-qt5 qtbase-5 qtwayland-5))) | ||
| 3664 | (synopsis "High-level language for numerical computation (with GUI)"))) | 3658 | (synopsis "High-level language for numerical computation (with GUI)"))) |
| 3665 | 3659 | ||
| 3666 | (define-public opencascade-occt | 3660 | (define-public opencascade-occt |
