Uploaded image for project: 'AI Platform Core Components'
  1. AI Platform Core Components
  2. AIPCC-472

builder: set OPENSSL_NO_VENDOR=1 globally

    • False
    • Hide

      None

      Show
      None
    • False
    • AIPCC Sprint 1

      Several Python packages with Rust code depend on the "openssl" and "openssl-sys" package. Some packages are configured to default to vendoring OpenSSL, e.g. they compile their own OpenSSL binaries. We want to have all packages use system OpenSSL.

      Vendoring can be disabled by setting the env var "OPENSSL_NO_VENDOR=1". In AIPCC-317 I set the env var for hf-transfer. Now a new package outlines_core also has Rust with OpenSSL. We should set the env var globally for all builds.

      So far only "hf-transfer" has an explicit opt-in on vendored feature. The other Rust-based packages use the crate's default setting.

      [dependencies]
      openssl = { version = "0.10", features = ["vendored"] }

      Reference:

      https://docs.rs/openssl/latest/openssl/#manual

      TODO:

      • Set OPENSSL_NO_VENDOR=1 globally for all builds
      • Remove OPENSSL_NO_VENDOR: 1 from hf-transfer settings

              cheimes@redhat.com Christian Heimes
              cheimes@redhat.com Christian Heimes
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: