Skip to content

Commit

Permalink
libdap4: add explicit RPC dependency (spack#40019)
Browse files Browse the repository at this point in the history
  • Loading branch information
vanderwb authored Dec 5, 2023
1 parent eb9c635 commit ace8e17
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions var/spack/repos/builtin/packages/libdap4/package.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,14 @@ class Libdap4(AutotoolsPackage):
depends_on("curl")
depends_on("libxml2")
depends_on("uuid")
depends_on("rpc")

def setup_build_environment(self, env):
# Configure script will search for RPC library, but not actually add RPC library references
# during configure tests. This can cause a failure with libtirpc if the following variable
# is not set.
if self.spec.satisfies("^libtirpc"):
env.set("TIRPC_LIBS", self.spec["rpc"].libs)

def configure_args(self):
# libxml2 exports ./include/libxml2/ instead of ./include/, which we
Expand Down

0 comments on commit ace8e17

Please sign in to comment.