-
-
Notifications
You must be signed in to change notification settings - Fork 14.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
gnutls: try to fix build on Darwin, after update
- Loading branch information
Showing
1 changed file
with
3 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
d6454e6
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd be wary of adding frameworks to core packages until we implement #24693. I think this will probably make
gnutls
crash, but I haven't tested it yet.d6454e6
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh. It seemed required to fix the build. For now we could leave darwin on 3.5.10, but that version will probably become vulnerable at some point...
d6454e6
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No, I wouldn't want to separate the version, but there might be a flag to turn off the Security.framework requirement (for now at least). I'll try to take a look later. And yeah, this does add a segfault. I guess we could also fix the segfault 😄
d6454e6
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I see no option for this and the CF includes are only guarded by
#ifdef __APPLE__
(similarlyLDFLAGS
), so we would have to touch the code a bit. The motivation:d6454e6
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
d6454e6
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Well,
curl/fetchurl
can optionally depend on it, instead of our defaultopenssl
. Still, I think bootstrapping should always be able to avoidgnutls
– even if it meant using lighter than default configurations for the bootstrap-intermediate packages.d6454e6
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@copumpkin: what (temporary) approach do you suggest now on staging so we don't block it?
d6454e6
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I reverted Darwin to gnutls-3.5.10 so that Hydra can keep working 42fd720, but we can easily choose another solution anytime...
d6454e6
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
d6454e6
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
gnutls now has a security update, but it's only DOS in server code (null pointer dereference), so I guess Darwin can still go without updating it.
d6454e6
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let me open a tagged issue, at least: #58481 (I'm not motivated to work on a solution.)