salmon: patching to build with %gcc@13: (#38553)
Co-authored-by: LMS Bioinformatics <bioinformatics@lms.mrc.ac.uk>
This commit is contained in:
		@@ -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)
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user