Skip to content
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

virtuoso: patches for OpenSSL 1.1 #46885

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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