From: Naofumi Yasufuku <naofumi@yasufuku.dev>
To: Eli Zaretskii <eliz@gnu.org>
Cc: 57015@debbugs.gnu.org
Subject: bug#57015: 29.0.50; macOS: libgccjit was not found: Homebrew libgccjit 12.1.0
Date: Sun, 07 Aug 2022 03:30:08 +0900 [thread overview]
Message-ID: <m1iln5xm1b.fsf@yasufuku.dev> (raw)
In-Reply-To: <83sfm9xqwn.fsf@gnu.org>
Eli Zaretskii <eliz@gnu.org> writes:
>> From: Naofumi Yasufuku <naofumi@yasufuku.dev>
>> Cc: 57015@debbugs.gnu.org
>> Date: Sun, 07 Aug 2022 01:36:39 +0900
>>
>> --- a/configure.ac
>> +++ b/configure.ac
>> @@ -3843,8 +3843,15 @@ AC_DEFUN
>> if test -n "`$BREW --prefix --installed libgccjit 2>/dev/null`"; then
>> MAC_CFLAGS="-I$(dirname $($BREW ls -v libgccjit | \
>> grep libgccjit.h))"
>> - MAC_LIBS="-L$(dirname $($BREW ls -v libgccjit| \
>> - grep -E 'libgccjit\.(so|dylib)$'))"
>> + MAC_LIBS="-L$(dirname $($BREW ls -v libgccjit | \
>> + grep -E 'current/libgccjit\.(so|dylib)$' | \
>> + head -1))"
>> + if test "x${MAC_LIBS}" = "x-L"; then
>> + # Try for Homebrew libgccjit < 12.1.0.
>> + MAC_LIBS="-L$(dirname $($BREW ls -v libgccjit | \
>> + grep -E 'libgccjit\.(so|dylib)$' | \
>> + head -1))"
>> + fi
>> fi
>> fi
>>
>
> Is 'dirname' guaranteed to be available?
I suppose so, but at least Homebrew's 'brew' shell script also
uses 'dirname':
--8<---------------cut here---------------start------------->8---
sh-3.2$ type dirname
dirname is /usr/bin/dirname
sh-3.2$
sh-3.2$ type brew
brew is /usr/local/bin/brew
sh-3.2$
sh-3.2$ ls -l /usr/local/bin/brew
lrwxr-xr-x 1 naofumi admin 28 Jan 20 2017 /usr/local/bin/brew -> /usr/local/Homebrew/bin/brew
sh-3.2$
sh-3.2$ file /usr/local/Homebrew/bin/brew
/usr/local/Homebrew/bin/brew: Bourne-Again shell script text executable, ASCII text
sh-3.2$
sh-3.2$ grep -n dirname /usr/local/Homebrew/bin/brew
26: local target target_dirname
28: target_dirname="$(dirname "${target}")"
30: quiet_cd "${directory}" && quiet_cd "${target_dirname}" && pwd -P
sh-3.2$
sh-3.2$ less /usr/local/Homebrew/bin/brew
..
symlink_target_directory() {
local target target_dirname
target="$(readlink "$1")"
target_dirname="$(dirname "${target}")"
local directory="$2"
quiet_cd "${directory}" && quiet_cd "${target_dirname}" && pwd -P
}
..
--8<---------------cut here---------------end--------------->8---
https://github.com/Homebrew/brew/blob/3.5.8/bin/brew#L25
Regards,
Naofumi
next prev parent reply other threads:[~2022-08-06 18:30 UTC|newest]
Thread overview: 39+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-08-06 11:38 bug#57015: 29.0.50; macOS: libgccjit was not found: Homebrew libgccjit 12.1.0 Naofumi Yasufuku
2022-08-06 12:13 ` Eli Zaretskii
2022-08-06 15:13 ` Naofumi Yasufuku
[not found] ` <m1les1xrag.fsf@yasufuku.dev>
2022-08-06 16:44 ` Eli Zaretskii
2022-08-06 18:30 ` Naofumi Yasufuku [this message]
2022-08-08 6:03 ` bug#57015: bug#57029: macos cannot build emacs after updated gcc and libgccjit to 12.1 Gerd Möllmann
2022-08-08 8:08 ` Andreas Schwab
2022-08-08 12:57 ` Gerd Möllmann
2022-08-07 9:57 ` bug#57015: 29.0.50; macOS: libgccjit was not found: Homebrew libgccjit 12.1.0 Stefan Kangas
2022-08-07 10:24 ` Eli Zaretskii
2022-08-07 10:57 ` Stefan Kangas
2022-08-07 11:32 ` Eli Zaretskii
2022-08-07 12:03 ` Stefan Kangas
2022-08-07 12:55 ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-08-07 13:14 ` Eli Zaretskii
2022-08-07 13:52 ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-08-07 14:26 ` Stefan Kangas
2022-08-07 14:32 ` Eli Zaretskii
2022-08-08 6:23 ` bug#57015: bug#57029: macos cannot build emacs after updated gcc and libgccjit to 12.1 Gerd Möllmann
2022-08-07 12:58 ` Lars Ingebrigtsen
2022-08-09 15:33 ` bug#57015: 29.0.50; macOS: libgccjit was not found: Homebrew libgccjit 12.1.0 Dario Gjorgjevski
2022-08-10 14:42 ` Naofumi Yasufuku
2022-08-10 15:52 ` Eli Zaretskii
2022-08-10 16:14 ` Stefan Kangas
2022-08-11 16:20 ` Eli Zaretskii
2022-08-16 13:28 ` Dario Gjorgjevski
2022-08-16 13:44 ` Eli Zaretskii
2022-08-16 13:58 ` Dario Gjorgjevski
2022-08-16 14:08 ` Eli Zaretskii
2022-08-16 14:17 ` Dario Gjorgjevski
2022-08-16 14:32 ` Stefan Kangas
2022-08-16 15:08 ` Dario Gjorgjevski
2022-08-16 15:48 ` Stefan Kangas
2022-08-16 15:52 ` Eli Zaretskii
2022-08-19 7:24 ` bug#57015: bug#57029: macos cannot build emacs after updated gcc and libgccjit to 12.1 Gerd Möllmann
2022-08-19 7:38 ` Eli Zaretskii
2022-08-19 9:05 ` Gerd Möllmann
2022-09-05 18:43 ` Lars Ingebrigtsen
[not found] <5F111D5A-02D2-438E-B469-1C602BF8D00E@gmail.com>
2022-08-06 15:03 ` bug#57015: 29.0.50; macOS: libgccjit was not found: Homebrew libgccjit 12.1.0 Eli Zaretskii
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=m1iln5xm1b.fsf@yasufuku.dev \
--to=naofumi@yasufuku.dev \
--cc=57015@debbugs.gnu.org \
--cc=eliz@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).