-
Notifications
You must be signed in to change notification settings - Fork 284
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
Auto-detect OpenSSL 1.1 #2190
Auto-detect OpenSSL 1.1 #2190
Conversation
fefab1b
to
cb6975b
Compare
@@ -21,6 +21,15 @@ configuration "openssl-mscoff" { | |||
|
|||
configuration "openssl" { | |||
sourceFiles "../lib/win-i386/eay.lib" "../lib/win-i386/ssl.lib" platform="windows-x86-dmd" | |||
sourceFiles "openssl_version.d" | |||
preBuildCommands `rdmd --eval=' |
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.
Will RDMD automatically pick LDC/GDC if DMD is not available?
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.
Yes. In fact it will even prefer ldc if ldc is in the same directory.
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.
If this script fails, will it fail the build ?
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.
Yes, but that's why the idea is to softly fail to 0.0.0
if no version could be detected. I also added a try/catch to be sure and enabled it for Posix only.
9d3cb21
to
8f69246
Compare
.travis.yml
Outdated
- dmd-2.079.1 | ||
- dmd-2.078.3 | ||
- dmd-2.077.1 | ||
- dmd-2.076.1 | ||
- dmd-2.075.1 |
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.
rdmd --eval
doesn't work with 2.075: https://travis-ci.org/vibe-d/vibe.d/jobs/405854762
the new mixin configs based on command output thingy that's being (been?) merged into dub could be useful here right? |
Do you have any link for that? |
58a6862
to
996cdfc
Compare
Yep, but it's uncertain whether this will be approved (and it will take quite a while until this dub version is available/used everywhere). In the meantime, this trick works and removes the TLS configuration pain for Posix. |
@s-ludwig: what's your opinion on this? Or can we finally move ahead with this? |
We should definitely move forward, I wanted to do that for months now actually... I mainly have two points:
|
This:
Awesome! Done. |
What I mean is this:
I think this should work fine. Looks like you accidentally added some |
2b75b6e
to
297e0bd
Compare
297e0bd
to
2c64e3c
Compare
Ah I see. Thanks! Updated.
Yeah I was in a bit of a hurry. Sorry. Fixed. |
Upgraded and fixed the Windows side to work with OpenSSL 1.1, too. Let's hope it passes now. |
fa84078
to
c31bd06
Compare
Awesome. Thanks a lot! I guess we can release 0.8.5 fairly soon then? |
Definitiely! I'd just try wait for #2247 before tagging the beta (but speaking of which, I'll just tag a new alpha right now). |
Can't build latest vibed on Windows 10 with follow error |
This is ugly, because dub is quite limited in this regard.
However, the
preBuildsCommands
+rdmd
has been successfully used for a couple ofrepositories at dlang-community already.
Also, I don't think this will work on Windows, but if the detection fails, the current behavior (i.e. using OpenSSL 1.0) is maintained.
For Posix-systems this should help a people a lot though and allows a good first five minutes experience.
edit: enabled it only for Posix systems