-
-
Notifications
You must be signed in to change notification settings - Fork 11.3k
fontforge fails to install, because glibtoolize doesn't respect Homebrew's Library location #43874
Comments
I manually hacked /usr/local/homebrew/Cellar/libtool/2.4.6/bin/glibtool line 88 from and /usr/local/homebrew/Cellar/libtool/2.4.6/bin/glibtoolize line 49 from and the bootstrap stuff of fontforge was able to finish, so the problem is definitely the hardcoded default homebrew paths in glibtool and glibtoolize (from the |
You could also set the
Or, inline.
|
Out of curiosity, did you recently move your SED="@@HOMEBREW_PREFIX@@/Library/ENV/4.3/sed" |
No, I never moved my Homebrew installation. So nothing changed in this regards on my installation ever. Though I noticed that not using Perhaps the problem is that the
Therefore someone else's default path setup was used to built the scripts? Just a random guess. Not sure. But then the problem is not the prefix (which is
In the formula (https://github.com/Homebrew/homebrew/blob/master/Library/Formula/libtool.rb |
This is how I installed
Then
Brew prefix and Cellar.
|
@viotti And what does In my case it would print out the wrong paths to
( I installed my stuff rather similar to your way besides using a different path. 😄 Of course, manually overwriting SED each time might work, but that's just a unnecessary kludge, IMHO. I consider the installed |
This command should do more generally: |
Yep,
I totally agree that overriding SED is not a definitive solution. I proposed it just as a temporary workaround. This is how the tool fails for me.
OTOH, presetting SED makes
|
@the-real-tokai Can you elaborate more about how you have a
@viotti That configuration isn't really supported (and I'd probably rather we just killed it as it's going to be full of bugs as we don't test it). |
I like it that way, as it keeps the random homebrew directories (Cellar, .git, Library, etc.) cleanly separated into Removing the possibility to install homebrew in such way(s) as workaround for such harmless issues like the broken 'glibtool*' path would be a rather unwelcome step, IMHO. In general it works rather well, and certainly this issue could be fixed directly in the formula, I believe. 😄 |
It also means you won't get most binary packages and have weird bugs like this. I'd recommend just adding |
@MikeMcQuaid I'm not entirely sure what you mean with 'won't get most binary packages'. But in Anyway… |
Most of our binary packages only work if you install Homebrew into |
Been using Homebrew for over a year in non-standard directories to avoid privileged installs that increases the chances of compromising a hosting OS. Swapping around HOMEBREW_PREFIX, HOMEBREW_CELLAR, HOMEBREW_LIBRARY_PATH, and HOMEBREW_CACHE in my shell makes it easy to test new packages or combination of pacakges. During several OSX upgrades over the last few years, /usr/local files installed by brew were destroyed. Overall, my experience using this approach has been very satisfying, even with pre-existing binary bottles. For:
Adding It is interesting to note that:
but note there is no
|
@skaht We don't support overriding variables like that, just to note. Please don't file issues that arise when using that configuration, thanks. |
@MikeMcQuaid - Point taken concerning using a non-standard However, here is a solution realized today to using bottled libtool binary that definitely has a sed path location issue with a non-standard
Is there a list of bottled binary compatibility issues slowly emerging when people use their own |
@skaht To help us debug this issue can you explain:
|
I recently have the issue related to |
monnoval's solution worked for me just now on el capitan. |
@monnoval For me, |
brew uninstall libtool && brew install libtool as per: Homebrew/legacy-homebrew#43874 Signed-off-by: Michael Ira Krufky <[email protected]>
Fix the following error: ``` $ autoreconf --install /usr/local/bin/glibtoolize: line 401: /usr/local/Library/ENV/4.3/sed: No such file or directory /usr/local/bin/glibtoolize: line 407: /usr/local/Library/ENV/4.3/sed: No such file or directory /usr/local/bin/glibtoolize: line 1419: /usr/local/Library/ENV/4.3/sed: No such file or directory /usr/local/bin/glibtoolize: line 2247: /usr/local/Library/ENV/4.3/sed: No such file or directory /usr/local/bin/glibtoolize: line 401: /usr/local/Library/ENV/4.3/sed: No such file or directory /usr/local/bin/glibtoolize: line 407: /usr/local/Library/ENV/4.3/sed: No such file or directory /usr/local/bin/glibtoolize: line 401: /usr/local/Library/ENV/4.3/sed: No such file or directory /usr/local/bin/glibtoolize: line 407: /usr/local/Library/ENV/4.3/sed: No such file or directory /usr/local/bin/glibtoolize: line 401: /usr/local/Library/ENV/4.3/sed: No such file or directory /usr/local/bin/glibtoolize: line 407: /usr/local/Library/ENV/4.3/sed: No such file or directory /usr/local/bin/glibtoolize: line 401: /usr/local/Library/ENV/4.3/sed: No such file or directory /usr/local/bin/glibtoolize: line 407: /usr/local/Library/ENV/4.3/sed: No such file or directory /usr/local/bin/glibtoolize: line 401: /usr/local/Library/ENV/4.3/sed: No such file or directory /usr/local/bin/glibtoolize: line 407: /usr/local/Library/ENV/4.3/sed: No such file or directory /usr/local/bin/glibtoolize: line 401: /usr/local/Library/ENV/4.3/sed: No such file or directory /usr/local/bin/glibtoolize: line 407: /usr/local/Library/ENV/4.3/sed: No such file or directory /usr/local/bin/glibtoolize: line 401: /usr/local/Library/ENV/4.3/sed: No such file or directory /usr/local/bin/glibtoolize: line 407: /usr/local/Library/ENV/4.3/sed: No such file or directory /usr/local/bin/glibtoolize: line 2023: /usr/local/Library/ENV/4.3/sed: No such file or directory configure.ac:51: installing './compile' configure.ac:10: installing './config.guess' configure.ac:10: installing './config.sub' configure.ac:12: installing './install-sh' configure.ac:58: error: required file './ltmain.sh' not found configure.ac:12: installing './missing' dvbtee/Makefile.am: installing './depcomp' autoreconf: automake failed with exit status: 1 ``` brew uninstall libtool && brew install libtool as suggested here: Homebrew/legacy-homebrew#43874 closes #22 Signed-off-by: Michael Ira Krufky <[email protected]>
Sounds like this is mostly fixed. If not: we'll accept PRs for this but we're not actively working on it at this time. |
I'm not entirely sure what's going on here or how to fix this (except manually hacking glibtoolize):
glibtoolize
(vialibtool
formula, v2.4.6) is available in the system, but it looks like it's broken and the glibtoolize script links to sed in a location that doesn't exist on my system (my Homebrew stuff is located in/usr/local/homebrew/
and not merged into/usr/local
directly, so it should be/usr/local/homebrew/Library/ENV/4.3/sed
.)I guess the broken glibtoolize breaks the build/ bootstrap process of fontforge.
The text was updated successfully, but these errors were encountered: