diff options
| author | Marius Bakke <marius@gnu.org> | 2022-07-05 23:22:47 +0200 |
|---|---|---|
| committer | Marius Bakke <marius@gnu.org> | 2022-07-06 00:35:17 +0200 |
| commit | f12ca428b866c25a3cd9740d9e471e06b8bcaef3 (patch) | |
| tree | aa817254fc903ab4844775a0d6a7efa9d6767340 /gnu/packages/boost.scm | |
| parent | 4fc61750733ab0f4082da2d94ad04faba2eb34a4 (diff) | |
gnu: Boost: Avoid usage of 'this-package-input'.
* gnu/packages/boost.scm (boost)[arguments]: Use SEARCH-INPUT-FILE instead of
THIS-PACKAGE-INPUT & co.
(boost-for-mysql)[arguments]: Likewise.
Diffstat (limited to 'gnu/packages/boost.scm')
| -rw-r--r-- | gnu/packages/boost.scm | 28 |
1 files changed, 16 insertions, 12 deletions
diff --git a/gnu/packages/boost.scm b/gnu/packages/boost.scm index 1e6881b9cae..bb8789bc284 100644 --- a/gnu/packages/boost.scm +++ b/gnu/packages/boost.scm | |||
| @@ -126,9 +126,9 @@ | |||
| 126 | #~(modify-phases %standard-phases | 126 | #~(modify-phases %standard-phases |
| 127 | (delete 'bootstrap) | 127 | (delete 'bootstrap) |
| 128 | (replace 'configure | 128 | (replace 'configure |
| 129 | (lambda _ | 129 | (lambda* (#:key inputs #:allow-other-keys) |
| 130 | (let ((icu #$(this-package-input "icu4c")) | 130 | (let ((icu (dirname (dirname (search-input-file |
| 131 | (python #$(this-package-input "python-minimal-wrapper"))) | 131 | inputs "bin/uconv"))))) |
| 132 | (substitute* '("libs/config/configure" | 132 | (substitute* '("libs/config/configure" |
| 133 | "libs/spirit/classic/phoenix/test/runtest.sh" | 133 | "libs/spirit/classic/phoenix/test/runtest.sh" |
| 134 | "tools/build/src/engine/execunix.cpp") | 134 | "tools/build/src/engine/execunix.cpp") |
| @@ -158,11 +158,14 @@ | |||
| 158 | ;; Ditto for Python. | 158 | ;; Ditto for Python. |
| 159 | #$@(if (%current-target-system) | 159 | #$@(if (%current-target-system) |
| 160 | #~() | 160 | #~() |
| 161 | #~((string-append "--with-python-root=" python) | 161 | #~((let ((python (dirname (dirname (search-input-file |
| 162 | (string-append "--with-python=" python | 162 | inputs |
| 163 | "/bin/python") | 163 | "bin/python"))))) |
| 164 | (string-append "--with-python-version=" | 164 | (string-append "--with-python-root=" python) |
| 165 | (python-version python)))) | 165 | (string-append "--with-python=" python |
| 166 | "/bin/python") | ||
| 167 | (string-append "--with-python-version=" | ||
| 168 | (python-version python))))) | ||
| 166 | "--with-toolset=gcc")))) | 169 | "--with-toolset=gcc")))) |
| 167 | (replace 'build | 170 | (replace 'build |
| 168 | (lambda* (#:key make-flags #:allow-other-keys) | 171 | (lambda* (#:key make-flags #:allow-other-keys) |
| @@ -178,9 +181,9 @@ | |||
| 178 | (lambda* (#:key make-flags inputs outputs #:allow-other-keys) | 181 | (lambda* (#:key make-flags inputs outputs #:allow-other-keys) |
| 179 | (let* ((static? (member "link=static" make-flags)) | 182 | (let* ((static? (member "link=static" make-flags)) |
| 180 | (libext (if static? ".a" ".so")) | 183 | (libext (if static? ".a" ".so")) |
| 181 | (python-version (python-version | 184 | (python (dirname (dirname (search-input-file |
| 182 | #$(this-package-input | 185 | inputs "bin/python")))) |
| 183 | "python-minimal-wrapper"))) | 186 | (python-version (python-version python)) |
| 184 | (libboost_pythonNN | 187 | (libboost_pythonNN |
| 185 | (string-append "libboost_python" | 188 | (string-append "libboost_python" |
| 186 | (string-join (string-split | 189 | (string-join (string-split |
| @@ -318,7 +321,8 @@ across a broad spectrum of applications.") | |||
| 318 | #~(modify-phases #$phases | 321 | #~(modify-phases #$phases |
| 319 | (replace 'configure | 322 | (replace 'configure |
| 320 | (lambda* (#:key inputs outputs #:allow-other-keys) | 323 | (lambda* (#:key inputs outputs #:allow-other-keys) |
| 321 | (let ((icu #$(this-package-input "icu4c"))) | 324 | (let ((icu (dirname (dirname (search-input-file |
| 325 | inputs "bin/uconv"))))) | ||
| 322 | (substitute* (append | 326 | (substitute* (append |
| 323 | (find-files "tools/build/src/engine/" "execunix\\.c.*") | 327 | (find-files "tools/build/src/engine/" "execunix\\.c.*") |
| 324 | '("libs/config/configure" | 328 | '("libs/config/configure" |
