-
-
Notifications
You must be signed in to change notification settings - Fork 11.3k
10.11 [Tracking Issue] #40837
Comments
Correct me if I'm wrong, but I believe this is an issue; if you have a Adding For whatever its worth, I've been using |
It'll just require a
You're not getting most binary packages which means stuff is much more likely to break. |
chown... what? You can't chown
If you mean I'm not getting the bottled binary packages, yes, those would break; but back in February, PRs #37059 - #37072 were the result of an experiment I did, attempting to install every homebrew formula in this custom directory. Essentially, these were the only ones that failed (for unrelated reasons). I may not have tested each package thoroughly, but I'd say (generally) it was a success. |
This doesn't match what I've seen; I've been installing Homebrew fine onto a clean 10.11 VM into |
I'll double check. |
@MikeMcQuaid Ok you're right, but I'm still (kind of) right-ish:
So... still a bit of an issue, I'd say ...? |
I wouldn't necessarily rely on this behaviour remaining consistent to the actual release, based on past experience. I believe that we should still be able to create that directory somehow. |
I agree. If there isn't a way to re-create it in later betas, its probably time to raise a stink. |
Are you sure it's literally impossible for a |
Quite — at least by any conventional, reasonable method I know of.
The only feasible method I can think of is to do something like:
But this method is also the basic rubric for installing nigh-undeleteable malware. Also the following files exist:
But these are completely undocumented and how they work is anyone's guess, I think. (My personal opinion: I understand why Apple implemented this for iOS, but rootless for OS X is a pretty half-baked idea. As I mention above the fact that one can turn it off and on at will makes it a great way to install malware which effectively cannot be removed, particularly if one can manage to overwrite Apple's Installer certificate.) |
As regards re-creating Contents (In case someone wants to recreate on OpenRadar or elsewhere):
I'll report back if I get any updates. |
Thanks @geoff-codes. I wouldn't worry too much; I'd be very surprised if the current behaviour survives to GA. |
Yeah I've just been trying out more of an "if you see something, say something" approach these days 📥. |
Definitely. We always appreciate upstream bug reports about such things! |
Everything with a
I'm not quite sure why There's also a small exemption list that permits certain non-Apple binaries in |
If |
@chdiza Without a working system to test, I would guess that
in #40837 (comment) really means that the symlinks themselves can't be modified. The directories |
Yes. You can still seem to write files to |
FWIW, |
Moot point. Homebrew trades
Define "from time to time". You mean, after each system upgrade? Actually I don't understand "kept reverting to root ownership" mentioned above. The claim is not clear at all. Define "kept". Does that mean "after reboot"? Or "after toggling SIP"? At least I haven't seen that myself after a clean install of the final released build. Moreover, with SIP I can chmod on
No one stops you from running Homebrew from the root account "for production", as far as I could tell. The ownership will be
Ridiculous. |
Such users are likely clever enough to fix their automated jobs once and for all. It surely would be less of a hassle than having such jobs periodically fail because permissions are reset.
According to the link above, yes. But OS X 10.11 might check permissions at other times as well (a hint is that the Repair Permissions function in Disk Utility is not needed any longer). However,
Ah, a clean install already has
As long as the feature is not officially supported (last time I checked it wasn't), no thanks.
Reasonable, if Homebrew is owned by me and the formulas are installed with administrator privileges. Anyway, If OS X lets you change the rights on |
Some replies which hopefully help handle various points raised before this discussion takes over the thread:
People can do what they like with their Homebrew installations, but we aren't going to rush a decision here and the plan for the foreseeable is to stay in |
@lifepillar
Okay, I'll just assume for now that OS X reverts /usr/local's permissions without notice from time to time. But what won't ever happen is /usr/local being deleted once it's already there (without action on the user's part anyway). So where does that booting into recovery from time to time coming from? |
@zmwangx I have realized after your reply that Recovery Mode is necessary only under certain circumstances. |
👍. I am breaking the guidelines by doing this, because I have multi-user (family) systems and it's possible for someone else to need to install something. Currently Homebrew is assuming all systems are only single user which can cause trouble when it's not true. |
|
^^^ |
Speaking as someone who's been upgrading with every 10.11 beta and struggled endlessly with SIP, 👍 for @DomT4's comments above. For those seeking change, his conclusion warrants special attention:
As others have noted and many have experienced, Apple's implementation of and communication on SIP has been (at best) inconsistent. I can confirm that in my local environment (latest public beta) the permissions on |
I found the answer to disable new security layer in the OS X 10.11. csrutil disable Then I can manage all system applications and files. |
@ivan-leschinsky Please be aware Homebrew isn't recommending doing that for more than the length of time it takes to fix whatever permission issues you are seeing, unless you have other reasons to want full root access. We believe rootless is generally a good thing for the vast majority of users. |
@DomT4 Got it. But disabling rootless doesn't helped me. |
@ivan-leschinsky What problems are you seeing? |
@DomT4 I saw |
@ivan-leschinsky Glad to hear! Let us know if you hit any further issues :) |
Looks like there's a mongoclient update; see #44724. |
Have you solved this problem?
Running |
@magic890 did you try running the suggested command? |
Haven't hit that issue just yet, but I ran across this interesting article that explains why they were removed |
@bfontaine I ran |
@magic890 I think @bfontaine means have you used this command: I ran across the same issue you had, but the above command solved it for me. |
Ok, now it is fixed. Thank you. |
You should use the -h option with chown, because you have to be careful in case the link points outside of /usr/local. And of course the link itself would not get changed, which might inhibit future homebrew operations. I had a look at my /usr/local and there was a single link which linked outside; With El Capitan, chown'ing this results in In general, with almost any use of chown you want the -h flag. I would call it's normal behaviour a mis-design. |
Closing as most of the issues here are dealt with and fixed. The remaining ones are:
Thanks for coming along for the ride all. 10.11 was less a nightmare than 10.10, so that's something 😸. |
You're welcome! Glad this went well. |
This is essentially a triage of various issues and progress on them. Did the same thing for 10.10 last year and it worked relatively well at keeping everyone in the loop.
This thread will be comment-policed fairly hard; Please keep comments related to failures/issues/etc. If you can reproduce an issue providing a
brew gist-logs FORMULA
is preferred over a simple 👍 - Thanks!New issues should still be filed as new issues. This is only a centralised tracking thread rather than a solve-everything-here thread.
Core Fixes:
pkg-config
files were added for 10.11 - 4a8fcd1Potential Issues:
/usr/local
isn't write-protected.Formulae Issues Outstanding:
/Applications/Xcode-beta.app/
to/Applications/Xcode.app/
.readline
, needs investigating.Formulae Fixed:
htonll
problems - zookeeper failed to build on 10.11 #42374. Fixed by e00142f.The text was updated successfully, but these errors were encountered: