In FormulaInstaller#install, needed_deps is created without first
filtering ARGV for flags like --HEAD. In practice, this means that
sometimes needed_deps will contain dependencies that are actually
already installed; --HEAD causes Formula#installed_prefix to differ and
thus checking Formula#installed? will result in false negatives.
This can trigger weird bugs; for example, #10380, where the "Installing
foo" header is displayed even though no dependencies were previously
installed.
Fix this by filtering ARGV before testing for installed dependencies,
and do the same for requirements to maintain symmetry, and because some
requiremnts check Formula#installed? as well.
Fixes#10380.
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
This is no longer shipped as of 10.8, but is required to build the
documentation for a few formulae, like ffmpeg and ffmbc.
This wasn't given a symbolized dependency because I don't anticipate
it coming up that often.
Currently FormulaInstaller "forgets" about the requirements of
dependencies, as dependencies are recursively expanded by the first
FormulaInstaller instance, and then ignored by subsequent instances to
prevent duplicate installation attempts. These requirements then have
their messages displayed, but the fatal check is skipped and thus no
exception is raised.
Now that we have Formula#recursive_requirements, we can mirror what we
are doing with dependencies and recursively expand requirements up
front.
While at it, fix a bug in determining Requirement equality that resulted
in unique requirements being eliminated from a formula's set of
recursive requirements.
Fixes#12290.
Fixes#14084.
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
ncmpcpp has a build-time dep on pkg-config so that it can find
libmpdclient, and it needs the `fails_with` version updated
because it still has problems with clang.
Add a dep on pkg-config
Update the fails_with build.
Use the new options DSL.
Tested on ML with clang and llvm from XCode-4.4.1.
Fixes#14160Closes#14172.
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
Apple's X11 is XQuartz, but this can be confusing, and is ultimately
unnecessary for debugging purposes.
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
We only offer framework builds, so remove comments that suggest
otherwise.
Use HOMEBREW_PREFIX instead of `brew --prefix`, as that is what is
available inside of the formula, and how it is referenced elsewhere in
Homebrew.
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
We only offer framework builds, so remove comments that suggest
otherwise.
Use HOMEBREW_PREFIX instead of `brew --prefix`, as that is what is
available inside of the formula, and how it is referenced elsewhere in
Homebrew.
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
-D is now the switch for diagnostic-dumps. Let it be so.
Shows how long each doctor method takes in a sorted table at end. I used this to move the two slowest methods to the end of the doctor run so that as much useful information can be shown as quickly as possible.
Also now possible to specify on command line which tests should be run.
gtest was removed because it is not meant to be installed on its own,
but rather included as a part of software build systems. flann was the
only formula which expected a preinstalled copy of gtest; this disables
its tests which depend on gtest.
Fixes#14126.
libxmlsec1 already has an option thrown on the command line to
`disable-apps-crypte-dl` which stops the build from looking for
`libltdl`. But that option only applies to the command line app
and another option needs to be thrown otherwise configure will
error on ML when it can't find `libltdl`.
Add a configure flag to `--disable-crypto-dl`
Fixes#13845Closes#14129.
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
Icarus-verilog-0.9.5 crashes clang or llvm into an assertion
error when either of those two binaries is used as the linker.
Add a command to set `ENV['LD']`. It also works for XCode-only.
Remove both the fails_with because it works now.
Add a separate line to `make installdirs` that fixes a build error
where a directory does not exist.
Tested on ML with XCode-4.4.1 using clang and llvm.
Fixes#13650Closes#14138.
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
vorbis-tools needs libao to create ogg123, a command line binary.
Add a `depends_on 'libao'` and one for `flac` also, because flac
is often found in an ogg container like webm. Ogg123 will also
be used in solfege. Tested by playing some files.
Closes#14134.
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
Upgrade x264 to version 2197.4 which makes libx264.125.dylib,
where the previous formula created `libx264.124.dylib`.
Tested on ML with clang and llvm from XCode-4.4.1.
Closes#14155.
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
sdhash is a tool for generating and comparing similarity digest hashes.
When comparing these hashes, it gives a confidence level as to how
similar two objects are to each other.
Closes#13753.
Signed-off-by: Misty De Meo <mistydemeo@gmail.com>