-
-
Notifications
You must be signed in to change notification settings - Fork 11.3k
Removing the header files breaks go's ability to install the cross compilers. #12507
Comments
Currently, this is not possible as there is no way to add code that gets run post-link. The only way to prevent files from being symlinked is to install them to a place like libexec. I think the real problem is that if Go duplicates system headers, then they should be installing to and searching somewhere like This is much better than relying on the ability and foresight of a package manager to selectively sandbox items from a common directory. |
I totally agree with you but in the mean time I still need to be able to build the cross compilers. Maybe a san alternative solution the cross compilers could be build (optionally) when installing go. |
I don't like the idea of an option for this. The problem is that when go installs headers other things start to break silently which makes this a hard bug to track down. Users often fail to report that they invoked the |
What I intended to say was: As only the cross compilers need the headers when being build themselves. It might be an option to do this (building the cross compiler) when installing go. Like this the headers can be removed without preventing people from installing the cross compilers. |
Judging from the go maintainer's comment on the bug, the headers aren't meant to be installed; adding an option to build the cross-compiler while building go sounds like the best route to me. |
Yes, what @mistydemeo said. It would be nice if whoever makes this change would rework the go formula to perform the build first (i.e., in the temporary build directory) and then install files into |
Ok, I changed the formula: #12547 |
Closing in favor of #12547. |
The headers should not be removed form the keg. Instead they should not be symlinked.
suggested solution:
[ISSUE SPLIT]: #12457 (comment)
The text was updated successfully, but these errors were encountered: