profile changes
This commit is contained in:
+11
-4
@@ -5,7 +5,7 @@ license = "Apache-2.0"
|
||||
url = "https://www.openssl.org/"
|
||||
source = tarball(
|
||||
url=f"https://github.com/openssl/openssl/releases/download/openssl-{version}/openssl-{version}.tar.gz",
|
||||
sha256="?",
|
||||
sha256="002a2d6b30b58bf4bea46c43bdd96365aaf8daa6c428782aa4feee06da197df3",
|
||||
)
|
||||
host_deps = ["binutils", "gcc"]
|
||||
deps = ["zlib"]
|
||||
@@ -18,9 +18,9 @@ ossl_targets = {
|
||||
|
||||
|
||||
def configure(self):
|
||||
target = ossl_targets.get(self.profile["arch"])
|
||||
target = ossl_targets.get(self.arch)
|
||||
if target is None:
|
||||
raise ValueError(f"openssl: unsupported arch {self.profile['arch']}")
|
||||
raise ValueError(f"openssl: unsupported arch {self.arch}")
|
||||
|
||||
self.run(
|
||||
self.source_dir / "Configure",
|
||||
@@ -48,6 +48,13 @@ def build(self):
|
||||
|
||||
|
||||
def install(self):
|
||||
# OpenSSL's Makefile assigns `DESTDIR=` itself, so an environment DESTDIR is
|
||||
# ignored; it must be passed as a make command-line variable to take effect.
|
||||
# Without this, the (glibc) target libs install straight into the musl
|
||||
# builder's /usr/lib and break it mid-install.
|
||||
self.run(
|
||||
"make", "install_sw", "install_ssldirs", env={"DESTDIR": str(self.dest_dir)}
|
||||
"make",
|
||||
"install_sw",
|
||||
"install_ssldirs",
|
||||
f"DESTDIR={self.dest_dir}",
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user