File: 0009-Raise-error-if-openssl-headers-not-found.patch

package info (click to toggle)
vagrant 2.3.7%2Bgit20230731.5fc64cde%2Bdfsg-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 17,616 kB
  • sloc: ruby: 111,820; sh: 462; makefile: 123; ansic: 34; lisp: 1
file content (25 lines) | stat: -rw-r--r-- 913 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
From: Lucas Nussbaum <lucas@debian.org>
Date: Mon, 6 May 2024 14:31:55 +0000
Subject: Raise error if openssl headers not found

Forwarded: not-needed, we are just being extra cautious
---
 ext/vagrant/vagrant_ssl/extconf.rb | 7 +------
 1 file changed, 1 insertion(+), 6 deletions(-)

diff --git a/ext/vagrant/vagrant_ssl/extconf.rb b/ext/vagrant/vagrant_ssl/extconf.rb
index fa09bdf..15947c5 100644
--- a/ext/vagrant/vagrant_ssl/extconf.rb
+++ b/ext/vagrant/vagrant_ssl/extconf.rb
@@ -12,10 +12,5 @@ if have_header("openssl/opensslv.h")
   append_ldflags(["-lssl", "-lcrypto"])
   create_makefile("vagrant/vagrant_ssl")
 else
-  # If the header file isn't found, just create a dummy
-  # Makefile and stub the library to make it a noop
-  File.open("Makefile", "wb") do |f|
-    f.write(dummy_makefile(__dir__).join("\n"))
-  end
-  FileUtils.touch("vagrant_ssl.so")
+  raise "openssl/opensslv.h not found"
 end