Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Get Homebrew working #357

Open
stek29 opened this issue Nov 2, 2017 · 4 comments
Open

Get Homebrew working #357

stek29 opened this issue Nov 2, 2017 · 4 comments
Labels
Application Compatibility Darling needs fixes for compatibility with a specific Application

Comments

@stek29
Copy link
Contributor

stek29 commented Nov 2, 2017

Install script

So, Homebrew install script kinda works with following diff if you install CL Tools first:

67c67
<   system "/usr/bin/sudo", *args
---
>   system *args
171a172
> =begin
174a176
> =end
238c240
<   sudo "/usr/bin/chgrp", "admin", *chgrps unless chgrps.empty?
---
> #  sudo "/usr/bin/chgrp", "admin", *chgrps unless chgrps.empty?
  1. sudo is disabled, see getpwnam/getpwuid work only for root/0 under fake sudo #354
  2. dsmemberutil check for belonging to admin group is disabled, see memberd missing #353 and "admin" group missing #355
  3. chgrp is disabled since admin group doesn't exist on darling, see "admin" group missing #355

But, it's unable to download Homebrew anyway:

  1. git segfaults, see Apple CLI Tools git index-pack segfault #356
  2. --force-curl doesn't help either because tar fails with "Can't set permissions to 0755". I haven't looked into why this happens yet.
@ahyattdev ahyattdev added the Application Compatibility Darling needs fixes for compatibility with a specific Application label May 1, 2018
ahyattdev pushed a commit to darlinghq/darling-libxpc that referenced this issue Dec 17, 2018
Libinfo should now attempt to do directory service
related stuff.

darlinghq/darling#357
ahyattdev pushed a commit to darlinghq/darling-DirectoryService that referenced this issue Dec 17, 2018
ahyattdev pushed a commit that referenced this issue Dec 17, 2018
Many xpc functions related to talking to DirectoryService
are stubs, so this won’t work. This does get it to attempt
talking to DirectoryService, however.
ahyattdev pushed a commit that referenced this issue Apr 12, 2020
@facekapow
Copy link
Member

The Homebrew installer now successfully installs Homebrew! Due to the chown bug (see #711), it fails the first time it runs, but it succeeds the second time! It's pretty slow (due to still-unoptimized CoreCrypto code), but it installs!

Unfortunately, brew install <anything> doesn't work yet, for the reason described above; tar fails when setting permissions on newly created symlinks (e.g. gettext/0.20.2/lib/libgettextlib.dylib: Can't set permissions to 0755).

@gusbemacbe
Copy link

@stek29 and @facekapow , is it safe to install Homebrew inside Darling?

@facekapow
Copy link
Member

@gusbemacbe Absolutely. It might take a couple runs of the installer due to a couple of bugs like I mentioned above, but it should install and run just fine.

Oh, and I forgot to update this issue after fixing a couple of issues with Homebrew: installing software should now work, though Homebrew might hang sometimes. If that happens, just Ctrl-C/kill Homebrew and run it again and it should work fine after that.

@theotheroracle
Copy link

theotheroracle commented Jul 19, 2023

i'm on version 2023-05-02, and i couldn't get homebrew working, i'm getting stuck on this error:

mkdir: /Users/hive/Library/Caches/Homebrew: Permission denied
Failed during: /usr/bin/sudo /bin/mkdir -p /Users/hive/Library/Caches/Homebrew

i'm not familiar with how the container system works so i'm not sure if this is related to darling or nixos, which i'm using

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Application Compatibility Darling needs fixes for compatibility with a specific Application
Projects
None yet
Development

No branches or pull requests

5 participants