Skip to content

Commit

Permalink
virtuoso: patches for OpenSSL 1.1
Browse files Browse the repository at this point in the history
Closes #46885.

Signed-off-by: FX Coudert <fxcoudert@gmail.com>
  • Loading branch information
Bo98 authored and fxcoudert committed Nov 19, 2019
1 parent bb9ad8c commit 3386e02
Showing 1 changed file with 21 additions and 10 deletions.
31 changes: 21 additions & 10 deletions Formula/virtuoso.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ class Virtuoso < Formula
# This explicit version should be safe to remove next release.
version "7.2.5.1"
sha256 "826477d25a8493a68064919873fb4da4823ebe09537c04ff4d26ba49d9543d64"
revision 1
# HEAD is disabled as the below, required patches are not compatible.

bottle do
cellar :any
Expand All @@ -16,24 +18,33 @@ class Virtuoso < Formula
sha256 "bb86d15d36d1affafc57ff612ea0a6c88425882bbf5e1bd4cabe5bc1f434a31e" => :sierra
end

head do
url "https://github.com/openlink/virtuoso-opensource.git", :branch => "develop/7"

depends_on "autoconf" => :build
depends_on "automake" => :build
depends_on "libtool" => :build
end

depends_on "autoconf" => :build
depends_on "automake" => :build
# If gawk isn't found, make fails deep into the process.
depends_on "gawk" => :build
depends_on "openssl" # no OpenSSL 1.1 support
depends_on "libtool" => :build
depends_on "openssl@1.1"

conflicts_with "unixodbc", :because => "Both install `isql` binaries."

skip_clean :la

# Support OpenSSL 1.1
patch do
url "https://sources.debian.org/data/main/v/virtuoso-opensource/7.2.5.1+dfsg-2/debian/patches/ssl1.1.patch"
sha256 "9fcaaff5394706fcc448e35e30f89c20fe83f5eb0fbe1411d4b2550d1ec37bf3"
end

# TLS 1.3 compile error patch.
# This also updates the default TLS protocols to allow TLS 1.3.
patch do
url "https://github.com/openlink/virtuoso-opensource/commit/67e09939cf62dc753feca8381396346f6d3d4a06.patch?full_index=1"
sha256 "485f54e4c79d4e1e8b30c4900e5c10ae77bded3928f187e7e2e960d345ca5378"
end

def install
system "./autogen.sh" if build.head?
# We patched configure.ac on stable so need to rerun the autogen.
system "./autogen.sh"
system "./configure", "--disable-dependency-tracking",
"--prefix=#{prefix}"
system "make", "install"
Expand Down

0 comments on commit 3386e02

Please sign in to comment.