diff options
| author | Rutherther via Guix-patches via <guix-patches@gnu.org> | 2024-12-11 20:35:45 +0100 |
|---|---|---|
| committer | Janneke Nieuwenhuizen <janneke@gnu.org> | 2024-12-11 20:49:03 +0100 |
| commit | 98908e0777889aeec2796dbdc4f0809a1898dd3b (patch) | |
| tree | ddf038952063b7a31591530af40a1bbf5bb6ef97 /gnu | |
| parent | 7aca60c6c48f4779ed63aa4b2ec8cfe5bde34ec4 (diff) | |
gnu: gdb: Fix build of target-specific versions.
Since recently there has been a change to gdb package that introduced
configure-flags, three gdb packages broke, since they assumed there are no
configure-flags in gdb. That means they produced the same gdb as gdb-14.
This patche fixes that by ensuring configure-flags are appended to original package.
* gnu/packages/embedded.scm (make-gdb-arm-none-eabi)[arguments]: Append
configure-flags to original flags.
* gnu/packages/gdb.scm (gdb-multiarch)[arguments]: Likewise.
* gnu/packages/gdb.scm (avr-gdb)[arguments]: Likewise.
Signed-off-by: Janneke Nieuwenhuizen <janneke@gnu.org>
Change-Id: Ia8748b86dc72197bd4eef307d091b6af44fc5611
Diffstat (limited to 'gnu')
| -rw-r--r-- | gnu/packages/embedded.scm | 14 | ||||
| -rw-r--r-- | gnu/packages/gdb.scm | 32 |
2 files changed, 24 insertions, 22 deletions
diff --git a/gnu/packages/embedded.scm b/gnu/packages/embedded.scm index 0dcfc6669f7..930857d0aa7 100644 --- a/gnu/packages/embedded.scm +++ b/gnu/packages/embedded.scm | |||
| @@ -741,12 +741,14 @@ languages are C and C++.") | |||
| 741 | (inherit gdb) | 741 | (inherit gdb) |
| 742 | (name "gdb-arm-none-eabi") | 742 | (name "gdb-arm-none-eabi") |
| 743 | (arguments | 743 | (arguments |
| 744 | `(#:configure-flags '("--target=arm-none-eabi" | 744 | (substitute-keyword-arguments (package-arguments gdb) |
| 745 | "--enable-multilib" | 745 | ((#:configure-flags flags '()) |
| 746 | "--enable-interwork" | 746 | #~(cons* "--target=arm-none-eabi" |
| 747 | "--enable-languages=c,c++" | 747 | "--enable-multilib" |
| 748 | "--disable-nls") | 748 | "--enable-interwork" |
| 749 | ,@(package-arguments gdb)))))) | 749 | "--enable-languages=c,c++" |
| 750 | "--disable-nls" | ||
| 751 | #$flags))))))) | ||
| 750 | 752 | ||
| 751 | (define-public libjaylink | 753 | (define-public libjaylink |
| 752 | (package | 754 | (package |
diff --git a/gnu/packages/gdb.scm b/gnu/packages/gdb.scm index af5ebde3f6c..ef100306b4d 100644 --- a/gnu/packages/gdb.scm +++ b/gnu/packages/gdb.scm | |||
| @@ -184,14 +184,14 @@ written in C, C++, Ada, Objective-C, Pascal and more.") | |||
| 184 | (package/inherit gdb-14 | 184 | (package/inherit gdb-14 |
| 185 | (name "gdb-multiarch") | 185 | (name "gdb-multiarch") |
| 186 | (arguments | 186 | (arguments |
| 187 | (append | 187 | (substitute-keyword-arguments (package-arguments gdb-14) |
| 188 | (list #:configure-flags | 188 | ((#:configure-flags flags '()) |
| 189 | #~(list "--enable-targets=all" | 189 | #~(cons* "--enable-targets=all" |
| 190 | "--enable-multilib" | 190 | "--enable-multilib" |
| 191 | "--enable-interwork" | 191 | "--enable-interwork" |
| 192 | "--enable-languages=c,c++" | 192 | "--enable-languages=c,c++" |
| 193 | "--disable-nls")) | 193 | "--disable-nls" |
| 194 | (package-arguments gdb-14))) | 194 | #$flags)))) |
| 195 | (synopsis "The GNU debugger (with all architectures enabled)"))) | 195 | (synopsis "The GNU debugger (with all architectures enabled)"))) |
| 196 | 196 | ||
| 197 | (define-public gdb-minimal | 197 | (define-public gdb-minimal |
| @@ -210,14 +210,14 @@ written in C, C++, Ada, Objective-C, Pascal and more.") | |||
| 210 | (package/inherit gdb-14 | 210 | (package/inherit gdb-14 |
| 211 | (name "avr-gdb") | 211 | (name "avr-gdb") |
| 212 | (arguments | 212 | (arguments |
| 213 | (append | 213 | (substitute-keyword-arguments (package-arguments gdb-14) |
| 214 | (list #:configure-flags | 214 | ((#:configure-flags flags '()) |
| 215 | #~(list "--target=avr" | 215 | #~(cons* "--target=avr" |
| 216 | "--disable-nls" | 216 | "--disable-nls" |
| 217 | "--enable-languages=c,c++" | 217 | "--enable-languages=c,c++" |
| 218 | "--with-system-readline" | 218 | "--with-system-readline" |
| 219 | "--enable-source-highlight")) | 219 | "--enable-source-highlight" |
| 220 | (package-arguments gdb-14))) | 220 | #$flags)))) |
| 221 | (synopsis "The GNU Debugger for AVR") | 221 | (synopsis "The GNU Debugger for AVR") |
| 222 | (description | 222 | (description |
| 223 | "GDB is the GNU debugger. With it, you can monitor what a program is | 223 | "GDB is the GNU debugger. With it, you can monitor what a program is |
