Skip to content

Commit

Permalink
gmake: add empty libs property, remove link deptypes from dependents (s…
Browse files Browse the repository at this point in the history
  • Loading branch information
tdrwenski authored Feb 12, 2025
1 parent af89bdf commit 76e83e1
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
6 changes: 3 additions & 3 deletions var/spack/repos/builtin/packages/cmake/package.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,9 +125,9 @@ class Cmake(Package):
patch("mr-9623.patch", when="@3.22.0:3.30")

depends_on("ninja", when="platform=windows")
depends_on("gmake", when="platform=linux")
depends_on("gmake", when="platform=darwin")
depends_on("gmake", when="platform=freebsd")
depends_on("gmake", type=("build", "run"), when="platform=linux")
depends_on("gmake", type=("build", "run"), when="platform=darwin")
depends_on("gmake", type=("build", "run"), when="platform=freebsd")

depends_on("qt", when="+qtgui")
# Qt depends on libmng, which is a CMake package;
Expand Down
4 changes: 4 additions & 0 deletions var/spack/repos/builtin/packages/gmake/package.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,3 +99,7 @@ def setup_dependent_package(self, module, dspec):
self.spec.prefix.bin.make,
jobs=determine_number_of_jobs(parallel=dspec.package.parallel),
)

@property
def libs(self):
return []
3 changes: 1 addition & 2 deletions var/spack/repos/builtin/packages/petsc/package.py
Original file line number Diff line number Diff line change
Expand Up @@ -335,8 +335,7 @@ def check_fortran_compiler(self):
patch("revert-3.18.0-ver-format-for-dealii.patch", when="@3.18.0")

depends_on("diffutils", type="build")
# not listed as a "build" dependency - so that slepc build gets the same dependency
depends_on("gmake")
depends_on("gmake", type="build")

# Virtual dependencies
# Git repository needs sowing to build Fortran interface
Expand Down

0 comments on commit 76e83e1

Please sign in to comment.