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

pwntools: switch to openssl@3 #134580

Merged
Merged
Changes from 1 commit
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
13 changes: 8 additions & 5 deletions Formula/pwntools.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ class Pwntools < Formula
url "https://files.pythonhosted.org/packages/fa/76/aed9a42988214d6af85aa650a90be6225cfc689ad5f5c3c3b61059668f4b/pwntools-4.10.0.tar.gz"
sha256 "588e89ea678527c0b5b6caeeee7e76e31352e78e2f1cf3dda7bc9acf526e446d"
license "MIT"
revision 1
head "https://github.com/Gallopsled/pwntools.git", branch: "dev"

bottle do
Expand All @@ -19,9 +20,11 @@ class Pwntools < Formula
sha256 cellar: :any_skip_relocation, x86_64_linux: "8c077d29c8db5bd4a2665536e6b0460043f0dea6c25554083536cf1c8f7e8bc6"
end

# `pkg-config`, `rust`, and `openssl@3` are for cryptography.
depends_on "pkg-config" => :build
Comment on lines +22 to +23
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💯

depends_on "rust" => :build
depends_on "cffi"
depends_on "openssl@1.1"
depends_on "openssl@3"
depends_on "pycparser"
depends_on "pygments"
depends_on "python@3.11"
Expand All @@ -30,10 +33,6 @@ class Pwntools < Formula

uses_from_macos "libffi"

on_linux do
depends_on "pkg-config" => :build
end

conflicts_with "moreutils", because: "both install an `errno` executable"

resource "bcrypt" do
Expand Down Expand Up @@ -162,6 +161,10 @@ class Pwntools < Formula
end

def install
# Ensure that the `openssl` crate picks up the intended library.
ENV["OPENSSL_DIR"] = Formula["openssl@3"].opt_prefix
ENV["OPENSSL_NO_VENDOR"] = "1"

ENV["LIBUNICORN_PATH"] = Formula["unicorn"].opt_lib
virtualenv_install_with_resources
bin.each_child do |f|
Expand Down