Skip to content

Update macOS PATH shenanigans#12873

Merged
Frenzie merged 2 commits into
koreader:masterfrom
NiLuJe:macos_path
Dec 12, 2024
Merged

Update macOS PATH shenanigans#12873
Frenzie merged 2 commits into
koreader:masterfrom
NiLuJe:macos_path

Conversation

@NiLuJe

@NiLuJe NiLuJe commented Dec 8, 2024

Copy link
Copy Markdown
Member

One, the brew prefix differs on aarch64 hosts, two, this was completely nuts: the homebrew install process already handles that via an eval $(brew shellenv) in the shell profile.

Fix #12868


This change is Reviewable

One, the brew prefix differs on aarch64 hosts, two, this was completely
nuts: the homebrew install process already handles that via an `eval
$(brew shellenv)` in the shell profile.

Fix koreader#12868
@Frenzie

Frenzie commented Dec 8, 2024

Copy link
Copy Markdown
Member

the homebrew install process already handles that via an eval $(brew shellenv) in the shell profile

Did they change that? I'm reasonably sure I had to add or execute that manually.

@Frenzie Frenzie added this to the 2025.01 milestone Dec 8, 2024
@NiLuJe

NiLuJe commented Dec 8, 2024

Copy link
Copy Markdown
Member Author

the homebrew install process already handles that via an eval $(brew shellenv) in the shell profile

Did they change that? I'm reasonably sure I had to add or execute that manually.

They stop short of (permanently) doing it for you, but it's pretty straightforward:

https://github.com/Homebrew/install/blob/b97ae4e573001de51aed03adc9090d3ee8bfb96e/install.sh#L1063-L1068

@Frenzie

Frenzie commented Dec 8, 2024

Copy link
Copy Markdown
Member

Yes, that's what I mean. I'd be inclined to remove it fully really because brew tells you all about it. But you phrased that as if it were automated. :)

@NiLuJe

NiLuJe commented Dec 8, 2024

Copy link
Copy Markdown
Member Author

That's a relatively fair point: you wouldn't even be able to invoke brew to install stuff in the first place if this weren't done.

…ven be

able to invoke brew at all if this weren't already the case.
@Frenzie Frenzie merged commit 85b8689 into koreader:master Dec 12, 2024
0xstillb pushed a commit to 0xstillb/koreader-thai that referenced this pull request May 9, 2026
Drop the sentence about brew being in PATH altogether: you wouldn't even be
able to invoke brew at all if this weren't already the case.

Fix koreader#12868
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

incompatible bash version: 3.2.57(1)-release, need >=4.0 (needs brew install bash)

3 participants