Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Infernal] Update to v1.1.5 #7685

Merged
merged 2 commits into from
Nov 16, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 9 additions & 26 deletions I/Infernal/build_tarballs.jl
Original file line number Diff line number Diff line change
@@ -1,29 +1,18 @@
# Note that this script can accept some limited command-line arguments, run
# `julia build_tarballs.jl --help` to see a usage message.
using BinaryBuilder, BinaryBuilderBase, Pkg

name = "Infernal"
version = v"1.1.4"
version = v"1.1.5"

easel_version = v"0.48"
hmmer_version = v"3.3.2"

# Collection of sources required to complete build
sources = [
ArchiveSource("https://github.com/EddyRivasLab/infernal/archive/refs/tags/infernal-$(version).tar.gz",
"311163c0a21a216e90862df81cd6c13811032076535e44fed4eabdcf45093fea"),
ArchiveSource("https://github.com/EddyRivasLab/easel/archive/refs/tags/easel-$(easel_version.major).$(easel_version.minor).tar.gz",
"c5d055acbe88fa834e81424a15fc5fa54ac787e35f2ea72d4ffd9ea2c1aa29cf"),
ArchiveSource("https://github.com/EddyRivasLab/hmmer/archive/refs/tags/hmmer-$(hmmer_version).tar.gz",
"fab109c67fb8077b32f7907bf07efbc071147be0670aee757c9a3ca7e2d485be")
ArchiveSource("http://eddylab.org/infernal/infernal-$(version).tar.gz",
"ad4ddae02f924ca7c85bc8c4a79c9f875af8df96aeb726702fa985cbe752497f"),
DirectorySource("./bundled")
]

# Bash recipe for building across all platforms
script = raw"""
cd $WORKSPACE/srcdir/infernal-*/

mv ../easel-*/ easel
mv ../hmmer-*/ hmmer
atomic_patch -p1 ../patches/rmark-missing-gsl-link.patch

# Update the config.sub from infernal. Otherwise we get an error when running
# configure: "Invalid configuration `x86_64-linux-musl'."
Expand All @@ -45,17 +34,13 @@ install_license LICENSE.easel
install_license ../LICENSE
"""

# These are the platforms we will build for by default, unless further
# platforms are passed in on the command line
# Notes
# - Infernal requires SSE or VMX vector instructions,
# VMX only on big-endian platforms (ppc64 not ppc64le)
# - ARM vector instruction support coming soon
# - Infernal requires SSE, VMX or NEON vector instructions,
# VMX only works on big-endian platforms (ppc64 not ppc64le)
# - build fails on windows
# easel.c:39:20: fatal error: syslog.h: No such file or directory
platforms = supported_platforms(; exclude = p -> Sys.iswindows(p) || proc_family(p) != "intel")
platforms = supported_platforms(; exclude = p -> Sys.iswindows(p) || proc_family(p) ∉ ("intel", "arm"))

# The products that we will ensure are always built
products = [
ExecutableProduct("cmalign", :cmalign),
ExecutableProduct("cmbuild", :cmbuild),
Expand Down Expand Up @@ -93,10 +78,8 @@ products = [
ExecutableProduct("esl-weight", :esl_weight),
]

# Dependencies that must be installed before this package can be built
dependencies = [
Dependency(PackageSpec(name="GSL_jll", uuid="1b77fbbe-d8ee-58f0-85f9-836ddc23a7a4"))
Dependency(PackageSpec(name="GSL_jll", uuid="1b77fbbe-d8ee-58f0-85f9-836ddc23a7a4"); compat="~2.7.2")
]

# Build the tarballs, and possibly a `build.jl` as well.
build_tarballs(ARGS, name, version, sources, script, platforms, products, dependencies; julia_compat="1.6")
13 changes: 13 additions & 0 deletions I/Infernal/bundled/patches/rmark-missing-gsl-link.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
diff --git a/rmark/Makefile.in b/rmark/Makefile.in
index 95bed07..060e713 100644
--- a/rmark/Makefile.in
+++ b/rmark/Makefile.in
@@ -10,7 +10,7 @@ PTHREAD_CFLAGS = @PTHREAD_CFLAGS@
CPPFLAGS = @CPPFLAGS@
LDFLAGS = @LDFLAGS@
DEFS = @DEFS@
-LIBS = -lhmmer -leasel @LIBS@ @PTHREAD_LIBS@ -lm
+LIBS = -lhmmer -leasel @LIBS@ @PTHREAD_LIBS@ -lm -lgsl -lgslcblas
IMPLDIR = impl_@IMPL_CHOICE@

SRCDIR = ../src