salmon: patching to build with %gcc@13: (#38553)

Co-authored-by: LMS Bioinformatics <bioinformatics@lms.mrc.ac.uk>
This commit is contained in:
George Young 2023-07-05 13:36:55 +01:00 committed by GitHub
parent 12427c6974
commit 8861fe0294
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -85,6 +85,15 @@ class Salmon(CMakePackage):
when="@{0}".format(ver),
)
# `%gcc13:` requires `<cstdint>` to be manually included. Fixed upstream,
# so we patch to allow building of previous salmon versions
patch(
"https://github.com/COMBINE-lab/salmon/commit/ffb2a11.patch?full_index=1",
sha256="5ed3512bae665c1d72002911ab9ee6d213f10df63019ebd9e8e0ecde03823a73",
when="@:1.10.1%gcc@13:",
level=1,
)
def patch(self):
# remove static linking to libstdc++
filter_file("-static-libstdc++", "", "CMakeLists.txt", string=True)