diff options
| author | Ricardo Wurmus <rekado@elephly.net> | 2015-06-28 10:22:45 +0200 |
|---|---|---|
| committer | Ricardo Wurmus <rekado@elephly.net> | 2015-06-29 21:01:13 +0200 |
| commit | 257341086549ed8a02ea35d50593696127f1eed5 (patch) | |
| tree | 5abb95176ddfc00d39c6e0ea8c5a2d47da56551a /gnu | |
| parent | 2b6b6d13e7d6b414440fc2260facbe5a6c3af9fe (diff) | |
gnu: withershins: Use new "libiberty" package.
* gnu/packages/code.scm (withershins)[inputs]: Replace "gcc" with "libiberty".
[arguments]: Simplify "find-libiberty" phase.
Diffstat (limited to 'gnu')
| -rw-r--r-- | gnu/packages/code.scm | 20 |
1 files changed, 6 insertions, 14 deletions
diff --git a/gnu/packages/code.scm b/gnu/packages/code.scm index bcd10828e69..38f14380c41 100644 --- a/gnu/packages/code.scm +++ b/gnu/packages/code.scm | |||
| @@ -246,25 +246,17 @@ files, but compared to grep is much faster and respects files like .gitignore, | |||
| 246 | (build-system cmake-build-system) | 246 | (build-system cmake-build-system) |
| 247 | (arguments | 247 | (arguments |
| 248 | `(#:out-of-source? #f | 248 | `(#:out-of-source? #f |
| 249 | #:modules ((guix build utils) | ||
| 250 | (guix build cmake-build-system) | ||
| 251 | (ice-9 popen) | ||
| 252 | (ice-9 rdelim)) | ||
| 253 | #:phases | 249 | #:phases |
| 254 | (modify-phases %standard-phases | 250 | (modify-phases %standard-phases |
| 255 | (add-after | 251 | (add-after |
| 256 | 'unpack 'find-libiberty | 252 | 'unpack 'find-libiberty |
| 257 | (lambda _ | 253 | (lambda _ |
| 258 | (let ((plugin (let* ((port (open-input-pipe | 254 | (let ((libiberty (assoc-ref %build-inputs "libiberty"))) |
| 259 | "gcc -print-file-name=plugin")) | ||
| 260 | (str (read-line port))) | ||
| 261 | (close-pipe port) | ||
| 262 | str))) | ||
| 263 | (substitute* "cmake/FindIberty.cmake" | 255 | (substitute* "cmake/FindIberty.cmake" |
| 264 | (("/usr/include") (string-append plugin "/include")) | 256 | (("/usr/include") (string-append libiberty "/include")) |
| 265 | (("libiberty.a iberty") (string-append "NAMES libiberty.a iberty\nPATHS \"" | 257 | (("libiberty.a iberty") |
| 266 | (assoc-ref %build-inputs "gcc") | 258 | (string-append "NAMES libiberty.a iberty\nPATHS \"" |
| 267 | "/lib" "\""))) | 259 | libiberty "/lib" "\""))) |
| 268 | #t))) | 260 | #t))) |
| 269 | (replace | 261 | (replace |
| 270 | 'install | 262 | 'install |
| @@ -279,7 +271,7 @@ files, but compared to grep is much faster and respects files like .gitignore, | |||
| 279 | #t))))) | 271 | #t))))) |
| 280 | (home-page "https://github.com/cameronwhite/withershins") | 272 | (home-page "https://github.com/cameronwhite/withershins") |
| 281 | (inputs | 273 | (inputs |
| 282 | `(("gcc" ,gcc-4.8 "lib") ;for libiberty.a | 274 | `(("libiberty" ,libiberty) |
| 283 | ("binutils" ,binutils) ;for libbfd | 275 | ("binutils" ,binutils) ;for libbfd |
| 284 | ("zlib" ,zlib))) | 276 | ("zlib" ,zlib))) |
| 285 | (synopsis "C++11 library for generating stack traces") | 277 | (synopsis "C++11 library for generating stack traces") |
