Skip to content
Merged
Show file tree
Hide file tree
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
3 changes: 2 additions & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -617,7 +617,8 @@ Check [#66](https://github.com/AcademySoftwareFoundation/aswf-docker/pull/66) fo
aswfdocker release -t IMAGE -g baseos-gl-conan -v 4 -v 5 -v 6 --target baseos-gl-conan --docker-org aswf -m "RELEASE_NOTES!"

# Common packages
aswfdocker release -t PACKAGE -g common -v 4 -v 5 -v 6 --target ninja --target cmake --docker-org aswf -m "RELEASE_NOTES!"
aswfdocker release -t PACKAGE -g common -v 4 -v 5 -v 6 --target openssl --docker-org aswf -m "RELEASE_NOTES!"
aswfdocker release -t PACKAGE -g common -v 4 -v 5 -v 6 --target ninja -target cmake --docker-org aswf -m "RELEASE_NOTES!"
aswfdocker release -t PACKAGE -g common -v 4-clang16 -v 4-clang17 -v 5-clang18 -v 5-clang19 -v 6-clang19 -v 6-clang20 --target clang --docker-org aswf -m "RELEASE_NOTES!"
# Wait for clang builds to finish (from 2 to 3 hours!)

Expand Down
8 changes: 5 additions & 3 deletions packages/conan/recipes/cmake/conanfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@

required_conan_version = ">=1.51.0"


class CMakeConan(ConanFile):
name = "cmake"
package_type = "application"
Expand All @@ -34,7 +35,7 @@ class CMakeConan(ConanFile):
"bootstrap": [True, False],
}
default_options = {
"with_openssl": False, # ASWF: Avoid bringing in OpenSSL dependency
"with_openssl": True,
"bootstrap": False,
}

Expand Down Expand Up @@ -119,6 +120,8 @@ def generate(self):
if self.options.with_openssl:
openssl = self.dependencies["openssl"]
tc.variables["OPENSSL_USE_STATIC_LIBS"] = not openssl.options.shared
# Point CMake to the OpenSSL system location
tc.variables["OPENSSL_ROOT_DIR"] = "/usr"
if cross_building(self):
tc.variables["HAVE_POLL_FINE_EXITCODE"] = ''
tc.variables["HAVE_POLL_FINE_EXITCODE__TRYRUN_OUTPUT"] = ''
Expand All @@ -130,10 +133,9 @@ def generate(self):
tc.generate()
tc = CMakeDeps(self)
# CMake try_compile failure: https://github.com/conan-io/conan-center-index/pull/16073#discussion_r1110037534
tc.set_property("openssl", "cmake_find_mode", "module")
tc.set_property("openssl", "cmake_find_mode", "none")
tc.generate()


def build(self):
if self.options.bootstrap:
toolchain_file_content = json.loads(load(self, os.path.join(self.generators_folder, "bootstrap_args")))
Expand Down
37 changes: 30 additions & 7 deletions packages/conan/recipes/openssl/conanfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,22 +2,45 @@
# SPDX-License-Identifier: MIT

from conan import ConanFile
from conan.tools.files import load
import re


class SystemOpenSSLConan(ConanFile):
name = "openssl"
version = "system"


settings = "os", "arch", "compiler", "build_type"
options = {
"shared": [True, False],
}
default_options = {
"shared": True,
}


def set_version(self):
content = load(self, "/usr/lib64/pkgconfig/openssl.pc")
match = re.search(r"^Version:\s*(.+)$", content, re.MULTILINE)
self.version = match.group(1).strip()

def package_info(self):
self.cpp_info.includedirs = []
self.cpp_info.system_libs = ["ssl", "crypto"]

self.cpp_info.set_property("cmake_find_mode", "both")
self.cpp_info.set_property("cmake_file_name", "OpenSSL")
self.cpp_info.set_property("cmake_target_name", "OpenSSL::OpenSSL")
self.cpp_info.set_property("pkg_config_name", "openssl")

# Point to system OpenSSL
self.cpp_info.includedirs = ["/usr/include"]
self.cpp_info.libdirs = ["/usr/lib64"]

# Component: Crypto
self.cpp_info.components["Crypto"].set_property("cmake_target_name", "OpenSSL::Crypto")
self.cpp_info.components["Crypto"].libs = ["crypto"]
self.cpp_info.components["Crypto"].includedirs = ["/usr/include"]
self.cpp_info.components["Crypto"].libdirs = ["/usr/lib64"]
self.cpp_info.components["Crypto"].system_libs = ["dl", "pthread"]

# Component: SSL
self.cpp_info.components["SSL"].set_property("cmake_target_name", "OpenSSL::SSL")
self.cpp_info.components["SSL"].libs = ["ssl"]
self.cpp_info.components["SSL"].includedirs = ["/usr/include"]
self.cpp_info.components["SSL"].libdirs = ["/usr/lib64"]
self.cpp_info.components["SSL"].requires = ["Crypto"]
1 change: 1 addition & 0 deletions packages/conan/settings/profiles_aswf/ci_common4
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ build_type=Release
*:shared=True
[tool_requires]
[replace_requires]
openssl/*: openssl/1.1.1k@aswf/ci_common4
[replace_tool_requires]
cmake/*: cmake/3.31.7@aswf/ci_common4
ninja/*: ninja/1.13.1@aswf/ci_common4
Expand Down
1 change: 1 addition & 0 deletions packages/conan/settings/profiles_aswf/ci_common5
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ build_type=Release
*:shared=True
[tool_requires]
[replace_requires]
openssl/*: openssl/1.1.1k@aswf/ci_common5
[replace_tool_requires]
cmake/*: cmake/3.31.7@aswf/ci_common5
ninja/*: ninja/1.13.1@aswf/ci_common5
Expand Down
1 change: 1 addition & 0 deletions packages/conan/settings/profiles_aswf/ci_common6
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ build_type=Release
*:shared=True
[tool_requires]
[replace_requires]
openssl/*: openssl/1.1.1k@aswf/ci_common6
[replace_tool_requires]
cmake/*: cmake/4.0.2@aswf/ci_common6
ninja/*: ninja/1.13.1@aswf/ci_common6
Expand Down
2 changes: 1 addition & 1 deletion packages/conan/settings/profiles_aswf/vfx2024
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ openfx/*: openfx/1.5s@aswf/vfx2024
opengl/*: opengl/system@aswf/vfx2024
openjpeg/*: openjpeg/2.4.0@aswf/vfx2024
openjph/*: openjph/0.24.5@aswf/vfx2024
openssl/*: openssl/system@aswf/vfx2024
openssl/*: openssl/1.1.1k@aswf/vfx2024
opensubdiv/*: opensubdiv/3.6.1@aswf/vfx2024
openusd/*: openusd/24.08@aswf/vfx2024
openvdb/*: openvdb/11.0.0@aswf/vfx2024
Expand Down
2 changes: 1 addition & 1 deletion packages/conan/settings/profiles_aswf/vfx2025
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ openfx/*: openfx/1.5s@aswf/vfx2025
opengl/*: opengl/system@aswf/vfx2025
openjpeg/*: openjpeg/2.4.0@aswf/vfx2025
openjph/*: openjph/0.24.5@aswf/vfx2025
openssl/*: openssl/system@aswf/vfx2025
openssl/*: openssl/1.1.1k@aswf/vfx2025
opensubdiv/*: opensubdiv/3.6.1@aswf/vfx2025
openusd/*: openusd/25.05.01@aswf/vfx2025
openvdb/*: openvdb/12.1.1@aswf/vfx2025
Expand Down
2 changes: 1 addition & 1 deletion packages/conan/settings/profiles_aswf/vfx2026
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ openfx/*: openfx/1.5s@aswf/vfx2026
opengl/*: opengl/system@aswf/vfx2026
openjpeg/*: openjpeg/2.4.0@aswf/vfx2026
openjph/*: openjph/0.24.5@aswf/vfx2026
openssl/*: openssl/system@aswf/vfx2026
openssl/*: openssl/1.1.1k@aswf/vfx2026
opensubdiv/*: opensubdiv/3.7.0@aswf/vfx2026
openusd/*: openusd/26.03@aswf/vfx2026
openvdb/*: openvdb/13.0.0@aswf/vfx2026
Expand Down
1 change: 1 addition & 0 deletions packages/conan/settings/profiles_aswftesting/ci_common4
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ build_type=Release
*:shared=True
[tool_requires]
[replace_requires]
openssl/*: openssl/1.1.1k@aswftesting/ci_common4
[replace_tool_requires]
cmake/*: cmake/3.31.7@aswftesting/ci_common4
ninja/*: ninja/1.13.1@aswftesting/ci_common4
Expand Down
1 change: 1 addition & 0 deletions packages/conan/settings/profiles_aswftesting/ci_common5
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ build_type=Release
*:shared=True
[tool_requires]
[replace_requires]
openssl/*: openssl/1.1.1k@aswftesting/ci_common5
[replace_tool_requires]
cmake/*: cmake/3.31.7@aswftesting/ci_common5
ninja/*: ninja/1.13.1@aswftesting/ci_common5
Expand Down
1 change: 1 addition & 0 deletions packages/conan/settings/profiles_aswftesting/ci_common6
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ build_type=Release
*:shared=True
[tool_requires]
[replace_requires]
openssl/*: openssl/1.1.1k@aswftesting/ci_common6
[replace_tool_requires]
cmake/*: cmake/4.0.2@aswftesting/ci_common6
ninja/*: ninja/1.13.1@aswftesting/ci_common6
Expand Down
2 changes: 1 addition & 1 deletion packages/conan/settings/profiles_aswftesting/vfx2024
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ openfx/*: openfx/1.5s@aswftesting/vfx2024
opengl/*: opengl/system@aswftesting/vfx2024
openjpeg/*: openjpeg/2.4.0@aswftesting/vfx2024
openjph/*: openjph/0.24.5@aswftesting/vfx2024
openssl/*: openssl/system@aswftesting/vfx2024
openssl/*: openssl/1.1.1k@aswftesting/vfx2024
opensubdiv/*: opensubdiv/3.6.1@aswftesting/vfx2024
openusd/*: openusd/24.08@aswftesting/vfx2024
openvdb/*: openvdb/11.0.0@aswftesting/vfx2024
Expand Down
2 changes: 1 addition & 1 deletion packages/conan/settings/profiles_aswftesting/vfx2025
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ openfx/*: openfx/1.5s@aswftesting/vfx2025
opengl/*: opengl/system@aswftesting/vfx2025
openjpeg/*: openjpeg/2.4.0@aswftesting/vfx2025
openjph/*: openjph/0.24.5@aswftesting/vfx2025
openssl/*: openssl/system@aswftesting/vfx2025
openssl/*: openssl/1.1.1k@aswftesting/vfx2025
opensubdiv/*: opensubdiv/3.6.1@aswftesting/vfx2025
openusd/*: openusd/25.05.01@aswftesting/vfx2025
openvdb/*: openvdb/12.1.1@aswftesting/vfx2025
Expand Down
2 changes: 1 addition & 1 deletion packages/conan/settings/profiles_aswftesting/vfx2026
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ openfx/*: openfx/1.5s@aswftesting/vfx2026
opengl/*: opengl/system@aswftesting/vfx2026
openjpeg/*: openjpeg/2.4.0@aswftesting/vfx2026
openjph/*: openjph/0.24.5@aswftesting/vfx2026
openssl/*: openssl/system@aswftesting/vfx2026
openssl/*: openssl/1.1.1k@aswftesting/vfx2026
opensubdiv/*: opensubdiv/3.7.0@aswftesting/vfx2026
openusd/*: openusd/26.03@aswftesting/vfx2026
openvdb/*: openvdb/13.0.0@aswftesting/vfx2026
Expand Down
6 changes: 3 additions & 3 deletions python/aswfdocker/builder.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,9 +109,9 @@ def make_bake_dict(
+ "_VERSION"
),
"ASWF_CONAN_HOME": constants.ASWF_CONAN_HOME,
"ASWF_CONAN_BUILD_MISSING": "--build=missing"
if build_missing
else "",
"ASWF_CONAN_BUILD_MISSING": (
"--build=missing" if build_missing else ""
),
"ASWF_CONAN_NO_REMOTE": "--no-remote" if no_remote else "",
"ASWF_CONAN_PUSH": "TRUE" if self.push else "",
}
Expand Down
8 changes: 5 additions & 3 deletions python/aswfdocker/cli/aswfdocker.py
Original file line number Diff line number Diff line change
Expand Up @@ -270,9 +270,11 @@ def getdockerorg(build_info):
def getdockerpush(build_info):
"""Prints if the images should be pushed according to the current repo uri and branch name"""
click.echo(
"true"
if utils.get_docker_push(build_info.repo_uri, build_info.source_branch)
else "false",
(
"true"
if utils.get_docker_push(build_info.repo_uri, build_info.source_branch)
else "false"
),
nl=False,
)

Expand Down
17 changes: 9 additions & 8 deletions python/aswfdocker/data/versions.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,7 @@ versions:
ASWF_CMAKE_VERSION: "3.31.7"
ASWF_NINJA_VERSION: "1.13.1"
ASWF_SONAR_VERSION: "8.0.1.6346"
ASWF_OPENSSL_VERSION: "1.1.1k"
ASWF_YQ_VERSION: "4.45.2"
ASWF_BASEOS_DISTRO: "rockylinux8"
ASWF_BASEOS_IMAGE: "nvidia/cuda"
Expand Down Expand Up @@ -191,6 +192,7 @@ versions:
ASWF_GLVND_VERSION: "1.7.0"
ASWF_CCACHE_VERSION: "4.9.1"
ASWF_CMAKE_VERSION: "3.31.7"
ASWF_OPENSSL_VERSION: "1.1.1k"
ASWF_NINJA_VERSION: "1.13.1"
ASWF_SONAR_VERSION: "8.0.1.6346"
ASWF_YQ_VERSION: "4.45.2"
Expand Down Expand Up @@ -227,6 +229,7 @@ versions:
ASWF_GLVND_VERSION: "1.7.0"
ASWF_CCACHE_VERSION: "4.11.3"
ASWF_CMAKE_VERSION: "4.0.2"
ASWF_OPENSSL_VERSION: "1.1.1k"
ASWF_NINJA_VERSION: "1.13.1"
ASWF_SONAR_VERSION: "8.0.1.6346"
ASWF_YQ_VERSION: "4.45.4"
Expand Down Expand Up @@ -542,7 +545,6 @@ versions:
ASWF_OPENCL_ICD_LOADER_VERSION: "system"
ASWF_OPENGL_VERSION: "system"
ASWF_OPENJPEG_VERSION: "2.4.0"
ASWF_OPENSSL_VERSION: "system"
ASWF_OPUS_VERSION: "system"
ASWF_PCRE2_VERSION: "system"
ASWF_PULSEAUDIO_VERSION: "system"
Expand Down Expand Up @@ -678,7 +680,6 @@ versions:
ASWF_OPENCL_ICD_LOADER_VERSION: "system"
ASWF_OPENGL_VERSION: "system"
ASWF_OPENJPEG_VERSION: "2.4.0"
ASWF_OPENSSL_VERSION: "system"
ASWF_OPUS_VERSION: "system"
ASWF_PCRE2_VERSION: "system"
ASWF_PULSEAUDIO_VERSION: "system"
Expand Down Expand Up @@ -815,7 +816,6 @@ versions:
ASWF_OPENCL_ICD_LOADER_VERSION: "system"
ASWF_OPENGL_VERSION: "system"
ASWF_OPENJPEG_VERSION: "2.4.0"
ASWF_OPENSSL_VERSION: "system"
ASWF_OPUS_VERSION: "system"
ASWF_PCRE2_VERSION: "system"
ASWF_PULSEAUDIO_VERSION: "system"
Expand Down Expand Up @@ -950,6 +950,10 @@ ci-packages:
- "4.6"
- "5.5"
- "6.3"
openssl:
- "4.5"
- "5.4"
- "6.2"
cpython:
- "2019.2"
- "2020.2"
Expand Down Expand Up @@ -1427,10 +1431,6 @@ ci-packages:
- "2024.6"
- "2025.5"
- "2026.3"
openssl:
- "2024.6"
- "2025.5"
- "2026.3"
opus:
- "2024.6"
- "2025.5"
Expand Down Expand Up @@ -1698,6 +1698,8 @@ ci-images:

groups:
package:
common-wrappers:
- openssl
common:
- clang
- cmake
Expand All @@ -1714,7 +1716,6 @@ groups:
- opencl-headers
- opencl-icd-loader
- opengl
- openssl
- pcre2
- sqlite3
- tcl
Expand Down
4 changes: 2 additions & 2 deletions python/aswfdocker/tests/test_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -155,11 +155,11 @@ def test_cli_packages(self):
pkgs = result.output.split("\n")
self.assertGreater(len(pkgs), 20)
clang_version = list(
index.Index().iter_versions(constants.ImageType.PACKAGE, "clang")
index.Index().iter_versions(constants.ImageType.PACKAGE, "openssl")
)[0]
self.assertEqual(
pkgs[0],
f"common/ci-package-clang:{clang_version}",
f"common-wrappers/ci-package-openssl:{clang_version}",
)

def test_cli_images(self):
Expand Down
Loading