gnu: gcc-arm-none-eabi-4.9: Fix incompatible redeclaration.

* gnu/packages/patches/gcc-4.9-inline.patch: New file.
* gnu/local.mk (dist_patch_DATA): Add it.
* gnu/packages/embedded.scm (gcc-arm-none-eabi-4.9)[source]: Use it.
This commit is contained in:
Ricardo Wurmus 2023-04-23 13:08:48 +02:00
parent 01d7fc9d56
commit e6994d7e3f
No known key found for this signature in database
GPG key ID: 197A5888235FACAC
3 changed files with 22 additions and 6 deletions

View file

@ -98,12 +98,14 @@
(base32
"113r98kygy8rrjfv2pd3z6zlfzbj543pq7xyq8bgh72c608mmsbr"))
;; Remove the one patch that doesn't apply to this 4.9 snapshot (the
;; patch is for 4.9.4 and later but this svn snapshot is older).
(patches (remove (lambda (patch)
(string=? (basename patch)
"gcc-arm-bug-71399.patch"))
(origin-patches (package-source xgcc))))))
(patches (cons (search-patch "gcc-4.9-inline.patch")
;; Remove the one patch that doesn't apply to this 4.9
;; snapshot (the patch is for 4.9.4 and later but this
;; svn snapshot is older).
(remove (lambda (patch)
(string=? (basename patch)
"gcc-arm-bug-71399.patch"))
(origin-patches (package-source xgcc)))))))
(native-inputs
`(("flex" ,flex)
("gcc@5" ,gcc-5)