Files
chromebrew/packages/libmbedtls.rb
Satadru Pramanik, DO, MPH, MEng d214c8e6eb libmbedtls => 4.0 — py3_jsonschema → 4.25.1,py3_jsonschema_specifications → 2025.9.1,py3_markdown_it_py → 4.0.0,py3_mdurl → 0.1.2,py3_referencing → 0.37.0,py3_rich → 14.2.0,py3_rpds_py → 0.28.0,py3_uc_micro_py → 1.0.3,libmbedtls → 4.0.0,librhash → 1.4.6-1,py3_pygments → 2.19.2,py3_requests → 2.32.5,py3_twine → 6.2.0 (#13295)
* libmbedtls => 4.0

Signed-off-by: Satadru Pramanik <satadru@gmail.com>

* Add librhash compatibility symlink to keep cmake from breaking.

Signed-off-by: Satadru Pramanik <satadru@gmail.com>

* Add py3_jsonschema and add as dep to libmbedtls.

Signed-off-by: Satadru Pramanik <satadru@gmail.com>

* Add py3_attrs build dep to libmbedtls.

Signed-off-by: Satadru Pramanik <satadru@gmail.com>

* Add -Wno-dev to CMAKE_OPTIONS.

Signed-off-by: Satadru Pramanik <satadru@gmail.com>

* Do not cache git repos when in GitHub Actions.

Signed-off-by: Satadru Pramanik <satadru@gmail.com>

* Add more python packages

Signed-off-by: Satadru Pramanik <satadru@gmail.com>

* Add py3_jsonschema_specifications.

Signed-off-by: Satadru Pramanik <satadru@gmail.com>

* Add builds for py3_pygments

Signed-off-by: Satadru Pramanik <satadru@gmail.com>

* Adjust deps.

Signed-off-by: Satadru Pramanik <satadru@gmail.com>

* Add py3_jinja2 dep to mbedtls build

Signed-off-by: Satadru Pramanik <satadru@gmail.com>

* lint

Signed-off-by: Satadru Pramanik <satadru@gmail.com>

* lint

Signed-off-by: Satadru Pramanik <satadru@gmail.com>

* Disable tests.

Signed-off-by: Satadru Pramanik <satadru@gmail.com>

* Adjust rubocop reinstalls during builds.

Signed-off-by: Satadru Pramanik <satadru@gmail.com>

* Update i686 manifest

Signed-off-by: Satadru Pramanik <satadru@gmail.com>

* Add armv7l manifest

Signed-off-by: Satadru Pramanik <satadru@gmail.com>

* Add x86_64 filelists.

Signed-off-by: Satadru Pramanik <satadru@gmail.com>

* Use array in superclass check.

Signed-off-by: Satadru Pramanik <satadru@gmail.com>

---------

Signed-off-by: Satadru Pramanik <satadru@gmail.com>
2025-10-31 20:10:49 +00:00

38 lines
1.3 KiB
Ruby

require 'buildsystems/cmake'
class Libmbedtls < CMake
description 'An open source, portable, easy to use, readable and flexible SSL library'
homepage 'https://www.trustedfirmware.org/projects/mbed-tls/'
version '4.0.0'
license 'Apache-2.0'
compatibility 'all'
source_url 'https://github.com/ARMmbed/mbedtls.git'
git_hashtag "v#{version}"
binary_compression 'tar.zst'
binary_sha256({
aarch64: '1213726759c6fb3b093b71e95693c66892e7b0c2cbf82bdeec4136fe144220c9',
armv7l: '1213726759c6fb3b093b71e95693c66892e7b0c2cbf82bdeec4136fe144220c9',
i686: '5d62ecf51bc3329cdf377434f1ce09c29bca7988507447916d8324e5cda7a9c0',
x86_64: 'f9d9bd8d8601deda9e6ea6c7579c58cd52418433ee7d80b92e02e98603535072'
})
depends_on 'glibc' # R
depends_on 'py3_attrs' => :build
depends_on 'py3_jinja2' => :build
depends_on 'py3_jsonschema' => :build
# Tests pass on i686, armv7l.
# Tests fail on x86_64:
# Total Test time (real) = 40.18 sec
# The following tests FAILED:
# 104 - psa_crypto_storage_format.current-suite (Failed)
# 105 - psa_crypto_storage_format.misc-suite (Failed)
# 106 - psa_crypto_storage_format.v0-suite (Failed)
# 108 - psa_its-suite (Failed)
# run_tests
cmake_options "-DUSE_SHARED_MBEDTLS_LIBRARY=ON -DENABLE_TESTING=#{@run_tests ? 'ON' : 'OFF'}"
end