diff options
| author | Jack Nagel | 2015-02-02 00:39:04 -0500 |
|---|---|---|
| committer | Jack Nagel | 2015-02-02 00:39:04 -0500 |
| commit | d692f8b94382f0896d295798f9480a26e1c17da0 (patch) | |
| tree | 4fc29352e38234c28ff93f75d69a810a5945463d /Library | |
| parent | 8444b4f959f1822f10dd7610657091f4c52dbbcc (diff) | |
| download | homebrew-d692f8b94382f0896d295798f9480a26e1c17da0.tar.bz2 | |
AprRequirement should not generate a build-time dependency
We want the apr requirement to act as a build-time requirement in case
it is satisfied (that is, the CLT is installed), as the resulting
binaries will link to the system libapr which is always present.
When it is *not* satisfied by the CLT, and we need to install the
formula, we have to treat it as a runtime dependency since the resulting
binaries will link to it.
Fixes #36301.
Fixes #36438.
Closes #36443.
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Homebrew/requirements/apr_dependency.rb | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/Library/Homebrew/requirements/apr_dependency.rb b/Library/Homebrew/requirements/apr_dependency.rb index 8b63256a8..7dfd83f29 100644 --- a/Library/Homebrew/requirements/apr_dependency.rb +++ b/Library/Homebrew/requirements/apr_dependency.rb @@ -14,4 +14,12 @@ class AprDependency < Requirement ENV.prepend_path "PKG_CONFIG_PATH", "#{Formula["apr-util"].opt_libexec}/lib/pkgconfig" end end + + def to_dependency + super.extend Module.new { + def tags + super - [:build] + end + } + end end |
