Comments (8)
Fun times. I'd be inclined to disable make check
if cmp
is not installed rather than adding a dependency on diffutils
. diffutils
is cellar :any
with no dependencies though, so adding the dep isn't so bad. I'm just trying to minimize deps in core packages.
from linuxbrew-core.
Sure, disabling tests is the route I would take. Maybe adding --with-tests
as an option with dep on diffutils
?
from linuxbrew-core.
Could do, but seems overly complicated. I was thinking something like (untested):
system "make", "check" if which "cmp"
from linuxbrew-core.
Ah, quite nice, but this will provide different experience depending on installed software. Do we want to deal with such non-determinism later? (eg. failing to build on one system that is almost identical to the other save for the presence of diffutils
)
from linuxbrew-core.
Yeah, it could be emit a warning using opoo
that it's skipping make check
. Not a bad idea.
from linuxbrew-core.
Cool, I'll go with that.
from linuxbrew-core.
I just ran into a similar issue where cmp
was present in the system but not via diffutils
, (version 2.8.1, on RHEL 6) but running make check
still caused the installation to fail. So it seems checking that cmp
exists isn't enough. Furthermore, installing diffutils wasn't sufficient to fix the problem.
$ which cmp
/usr/bin/cmp
$ cmp --version
cmp (GNU diffutils) 2.8.1
Copyright (C) 2002 Free Software Foundation, Inc.
This program comes with NO WARRANTY, to the extent permitted by law.
You may redistribute copies of this program
under the terms of the GNU General Public License.
For more information about these matters, see the file named COPYING.
Written by Torbjorn Granlund and David MacKenzie.
$ brew update
Already up-to-date.
$ brew install gawk
==> Downloading https://ftp.gnu.org/gnu/gawk/gawk-4.2.0.tar.xz
Already downloaded: /home/friesner/jms2435/.cache/Homebrew/gawk-4.2.0.tar.xz
==> ./configure --prefix=/home/friesner/jms2435/.linuxbrew/Cellar/gawk/4.2.0 --without-libsigsegv-pre
==> make
==> make check
Last 15 lines from /home/friesner/jms2435/.cache/Homebrew/Logs/gawk/03.make:
! 143418043/./d
! 143418042/../d
143418044/eval.c/f
143418045/awk.h/f
143418046/POSIX.STD/f
--- 1,5 ----
! 143418043/./u
! 143418042/../u
143418044/eval.c/f
143418045/awk.h/f
143418046/POSIX.STD/f
make[2]: Leaving directory `/home/friesner/jms2435/tmp/gawk-20171119-24943-9d6ego/gawk-4.2.0/test'
make[1]: *** [check] Error 1
make[1]: Leaving directory `/home/friesner/jms2435/tmp/gawk-20171119-24943-9d6ego/gawk-4.2.0/test'
make: *** [check-recursive] Error 1
READ THIS: https://github.com/Linuxbrew/brew/blob/master/docs/Troubleshooting.md#troubleshooting
Please do not report this issue to Homebrew/brew or Homebrew/core, which support macOS only.
These open issues may also help:
brew install gcc fails. Actually everything fails because installing glibc fails... https://github.com/Linuxbrew/homebrew-core/issues/4388
$ brew install diffutils
==> Downloading https://linuxbrew.bintray.com/bottles/diffutils-3.6.x86_64_linux.bottle.tar.gz
######################################################################## 100.0%
==> Pouring diffutils-3.6.x86_64_linux.bottle.tar.gz
🍺 /home/friesner/jms2435/.linuxbrew/Cellar/diffutils/3.6: 49 files, 2.5MB
$ which cmp
~/.linuxbrew/bin/cmp
$ cmp --version
cmp (GNU diffutils) 3.6
Copyright (C) 2017 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Written by Torbjörn Granlund and David MacKenzie.
$ brew install gawk
==> Downloading https://ftp.gnu.org/gnu/gawk/gawk-4.2.0.tar.xz
Already downloaded: /home/friesner/jms2435/.cache/Homebrew/gawk-4.2.0.tar.xz
==> ./configure --prefix=/home/friesner/jms2435/.linuxbrew/Cellar/gawk/4.2.0 --without-libsigsegv-pre
==> make
==> make check
Last 15 lines from /home/friesner/jms2435/.cache/Homebrew/Logs/gawk/03.make:
! 143421883/./d
! 143421882/../d
143421884/eval.c/f
143421885/awk.h/f
143421886/POSIX.STD/f
--- 1,5 ----
! 143421883/./u
! 143421882/../u
143421884/eval.c/f
143421885/awk.h/f
143421886/POSIX.STD/f
make[2]: Leaving directory `/home/friesner/jms2435/tmp/gawk-20171119-9050-8sfe1x/gawk-4.2.0/test'
make[1]: *** [check] Error 1
make[1]: Leaving directory `/home/friesner/jms2435/tmp/gawk-20171119-9050-8sfe1x/gawk-4.2.0/test'
make: *** [check-recursive] Error 1
READ THIS: https://github.com/Linuxbrew/brew/blob/master/docs/Troubleshooting.md#troubleshooting
Please do not report this issue to Homebrew/brew or Homebrew/core, which support macOS only.
These open issues may also help:
brew install gcc fails. Actually everything fails because installing glibc fails... https://github.com/Linuxbrew/homebrew-core/issues/4388
Besides cmp
, are there any other dependencies of the make check
target?
If I comment-out the entire make check
block, everything installs just fine.
from linuxbrew-core.
make check
is failing not because cmp
is not available, but for some other reason. Does it fail outside of Linuxbrew if your run ./configure && make check
? If so, I'd suggest raising the issue with the upstream developer.
from linuxbrew-core.
Related Issues (20)
- Homebrew on Linux should use bottles if a symlink from /home/linuxbrew/.linuxbrew exists HOT 1
- libva 2.12.0 upgrade issue HOT 1
- `pkg-config` searches standard Linuxbrew installation path even when installed in a non-standard path HOT 1
- Neovim 0.5 install failure HOT 1
- zip manifest HTTP-404 error while install Maven HOT 1
- Auth issue with fish formula fails to get manifest from GH HOT 1
- awscli dependencies conflicts HOT 1
- clang-format: Failed to download resource clang-format_bottle_manifest HOT 8
- sudo <any_command> not working due to symlink? HOT 18
- gdu not merged HOT 1
- python-launcher: Failed to download resource "python-launcher_bottle_manifest" HOT 5
- Older local version when install Texlive HOT 4
- List of linuxbrew-core formulae that need to be backported to homebrew-core HOT 10
- Failure upgrading gcc 11.1.0_1 -> 11.2.0 HOT 1
- node: /usr/lib/x86_64-linux-gnu/libstdc++so.6: version `GLIBCXX_3.4.29' not found (required by node) HOT 5
- Bottle shfmt HOT 2
- qt installation error HOT 1
- :warning: Bottle request for docker [failed](https://github.com/Homebrew/linuxbrew-core/actions/runs/1100688862).
- Failed to build formula `highlight` on Ubuntu 16.04 LTS HOT 4
- scrcpy and ffmpeg install got error: failed to download resource "gobject-introspection--tutorial" HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from linuxbrew-core.