mirror of
https://github.com/chromebrew/chromebrew.git
synced 2026-05-01 03:00:26 -04:00
* gnutls -> 3.8.12 in updater-gnutls-3.8.12 * Add patch for nettle 4.0 Signed-off-by: Satadru Pramanik <satadru@gmail.com> * Update https://gitlab.com/gnutls/gnutls/-/merge_requests/2075.diff and use wget_static for build. Signed-off-by: Satadru Pramanik <satadru@gmail.com> * Add wget_static from https://github.com/chromebrew/chromebrew/pull/14840 Signed-off-by: Satadru Pramanik <satadru@gmail.com> * Add version check for patch. Signed-off-by: Satadru Pramanik <satadru@gmail.com> * Mark packages from successful builds as automatically buildable. * updater-gnutls-3.8.12: Package File Update Run on linux/386 container. * updater-gnutls-3.8.12: Package File Update Run on linux/amd64 container. * updater-gnutls-3.8.12: Package File Update Run on linux/arm/v7 container. * s/conflicts_ok/conflicts_with 'wget2'/ Signed-off-by: Satadru Pramanik <satadru@gmail.com> * Add conflicts_with 'wget_static' to wget2. Signed-off-by: Satadru Pramanik <satadru@gmail.com> --------- Signed-off-by: Satadru Pramanik <satadru@gmail.com> Co-authored-by: github-merge-queue <github-merge-queue@users.noreply.github.com> Co-authored-by: Satadru Pramanik <satadru@gmail.com> Co-authored-by: satmandu <satmandu@users.noreply.github.com> Co-authored-by: chromebrew-actions[bot] <chromebrew-actions[bot]@users.noreply.github.com>
109 lines
3.6 KiB
Ruby
109 lines
3.6 KiB
Ruby
require 'buildsystems/autotools'
|
|
|
|
class Gnutls < Autotools
|
|
description 'GnuTLS is a secure communications library implementing the SSL, TLS and DTLS protocols and technologies around them.'
|
|
homepage 'https://gnutls.org/'
|
|
version '3.8.12'
|
|
license 'GPL-3'
|
|
compatibility 'all'
|
|
source_url 'https://gitlab.com/gnutls/gnutls.git'
|
|
git_hashtag version
|
|
binary_compression 'tar.zst'
|
|
|
|
binary_sha256({
|
|
aarch64: '7e5d7741139db8e2c9614fa662663b2e003ee8a68319ae99bd909a243971754d',
|
|
armv7l: '7e5d7741139db8e2c9614fa662663b2e003ee8a68319ae99bd909a243971754d',
|
|
i686: 'c8c5e45df68e6d3c7c38b66fd54990c3cfd6a5bed3e78d3cd765c4b55a4d9231',
|
|
x86_64: 'c99a27294d0833284c23a77c800a3ca9e7f769d122a6ea7a95db6e68ed7e1d2b'
|
|
})
|
|
|
|
depends_on 'brotli' # R
|
|
depends_on 'ca_certificates' # L
|
|
depends_on 'gcc_lib' # R
|
|
depends_on 'glibc' # R
|
|
depends_on 'gmp' # R
|
|
depends_on 'gperf' => :build
|
|
depends_on 'libev' => :build
|
|
depends_on 'libffi' => :build
|
|
depends_on 'libidn2' # R
|
|
depends_on 'libtasn1' # R
|
|
depends_on 'libunbound' # R
|
|
depends_on 'libunistring' # R
|
|
depends_on 'nettle' # R
|
|
depends_on 'openssl' # R
|
|
depends_on 'p11kit' # R
|
|
depends_on 'trousers' => :build
|
|
depends_on 'wget_static' => :build
|
|
depends_on 'zlib' # R
|
|
depends_on 'zstd' # R
|
|
|
|
no_lto
|
|
|
|
def self.prebuild
|
|
# Use IPv4 fallback if default connection fails.
|
|
system "#{CREW_PREFIX}/sbin/unbound-anchor -a '#{CREW_PREFIX}/etc/unbound/root.key' || #{CREW_PREFIX}/sbin/unbound-anchor -4 -a '#{CREW_PREFIX}/etc/unbound/root.key'"
|
|
# Rebuild ca-certificates.
|
|
system "#{CREW_PREFIX}/bin/update-ca-certificates --fresh --certsconf #{CREW_PREFIX}/etc/ca-certificates.conf"
|
|
end
|
|
|
|
def self.patch
|
|
patches = [
|
|
# nettle 4.0 patch
|
|
['https://gitlab.com/gnutls/gnutls/-/merge_requests/2075.diff', '890a5b576253d1088f91e187e0a2979283d034b7d5f41eca13c0e857f37e61f3']
|
|
]
|
|
ConvenienceFunctions.patch(patches) if version == '3.8.12'
|
|
end
|
|
|
|
autotools_configure_options "--disable-doc \
|
|
--enable-manpages \
|
|
--enable-shared \
|
|
--with-pic \
|
|
--with-system-priority-file=#{CREW_PREFIX}/etc/gnutls/default-priorities \
|
|
--with-trousers-lib=#{CREW_LIB_PREFIX}/libtspi.so.1 \
|
|
--with-unbound-root-key-file=#{CREW_PREFIX}/etc/unbound/root.key \
|
|
--with-default-trust-store-file=#{CREW_PREFIX}/etc/ssl/certs/ca-certificates.crt"
|
|
|
|
def self.check
|
|
# There are numerous failures in the test suite on all systems.
|
|
# FAIL: tls13/key_share
|
|
# FAIL: tls13/compress-cert
|
|
# FAIL: tls13/compress-cert-neg
|
|
# FAIL: tls13/compress-cert-neg2
|
|
# FAIL: tls13/compress-cert-cli
|
|
# FAIL: tls13/psk-ke-modes
|
|
# FAIL: simple
|
|
# FAIL: pkcs12_encode
|
|
# FAIL: x509cert-ct
|
|
# FAIL: key-openssl
|
|
# FAIL: fips-test
|
|
# FAIL: rsa-rsa-pss
|
|
# FAIL: privkey-keygen
|
|
# FAIL: aead-cipher-vec
|
|
# FAIL: kdf-api
|
|
# FAIL: ciphersuite-name
|
|
# FAIL: x509-upnconstraint
|
|
# FAIL: cipher-padding
|
|
# FAIL: pkcs7-verify-double-free
|
|
# FAIL: privkey-keygen
|
|
# FAIL: aead-cipher-vec
|
|
# FAIL: kdf-api
|
|
# FAIL: ciphersuite-name
|
|
# FAIL: x509-upnconstraint
|
|
# FAIL: cipher-padding
|
|
# FAIL: pkcs7-verify-double-free
|
|
# FAIL: fips-rsa-sizes
|
|
# FAIL: tls12-resume-psk
|
|
# FAIL: tls12-resume-x509
|
|
# FAIL: tls12-resume-anon
|
|
# FAIL: tls13-resume-psk
|
|
# FAIL: tls13-resume-x509
|
|
# FAIL: record-sendfile
|
|
# FAIL: system-override-sig-tls.sh
|
|
# FAIL: system-override-sig-allowlist.sh
|
|
# FAIL: system-override-hash-allowlist.sh
|
|
# FAIL: system-override-curves-allowlist.sh
|
|
# FAIL: protocol-set-allowlist.sh
|
|
system 'make check || true'
|
|
end
|
|
end
|