Darling: Get Homebrew working

Created on 3 Nov 2017  路  3Comments  路  Source: darlinghq/darling

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 #354
2) dsmemberutil check for belonging to admin group is disabled, see #353 and #355
3) chgrp is disabled since admin group doesn't exist on darling, see #355

But, it's unable to download Homebrew anyway:
1) git segfaults, see #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.

Application Compatibility

Most helpful comment

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).

All 3 comments

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).

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

@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.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

PhilipDeegan picture PhilipDeegan  路  7Comments

wusikijeronii picture wusikijeronii  路  4Comments

xlmnxp picture xlmnxp  路  7Comments

CuriousTommy picture CuriousTommy  路  6Comments

LubosD picture LubosD  路  5Comments