diff options
| author | Jack Nagel | 2015-02-02 00:39:04 -0500 |
|---|---|---|
| committer | Jack Nagel | 2015-02-02 00:39:04 -0500 |
| commit | 291e900abc18e9d53cb6221f7f117e1e52507f2b (patch) | |
| tree | f7f02de51dae24e00d6d6a1537ad638d23b97ba8 /Library | |
| parent | 208bc0516b8cd3a25aa33f4ef4976caf72dd366e (diff) | |
| download | brew-291e900abc18e9d53cb6221f7f117e1e52507f2b.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 Homebrew/homebrew#36301.
Fixes Homebrew/homebrew#36438.
Closes Homebrew/homebrew#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 |
