mirror of
https://github.com/chromebrew/chromebrew.git
synced 2026-01-09 07:28:01 -05:00
* Update buildsystems, update jq, add jq to core for arm. Signed-off-by: Satadru Pramanik <satadru@gmail.com> * Only report build options if they exist. Signed-off-by: Satadru Pramanik <satadru@gmail.com> * Fix overeager sed replacement. Signed-off-by: Satadru Pramanik <satadru@gmail.com> * workflow debugging Signed-off-by: Satadru Pramanik <satadru@gmail.com> * Add logging for build errors. Signed-off-by: Satadru Pramanik <satadru@gmail.com> * Revert to function in each package file. Signed-off-by: Satadru Pramanik <satadru@gmail.com> * Update jq since it needs gcc14 to build. Signed-off-by: Satadru Pramanik <satadru@gmail.com> * Add built packages for linux/386 to buildsystems * remove deprecated gfbgraph Signed-off-by: Satadru Pramanik <satadru@gmail.com> * fix git tag for gnome_maps Signed-off-by: Satadru Pramanik <satadru@gmail.com> * Update llvm20 package file. Signed-off-by: Satadru Pramanik <satadru@gmail.com> * Update gnome_maps deps. Signed-off-by: Satadru Pramanik <satadru@gmail.com> * Abstract out buildsystems_methods reporting. Signed-off-by: Satadru Pramanik <satadru@gmail.com> * Keep LIBC_VERSION const from being empty. Signed-off-by: Satadru Pramanik <satadru@gmail.com> * Update crew_profile_base and libxml2 Signed-off-by: Satadru Pramanik <satadru@gmail.com> * clarify Signed-off-by: Satadru Pramanik <satadru@gmail.com> * lint Signed-off-by: Satadru Pramanik <satadru@gmail.com> * Update libarchive Signed-off-by: Satadru Pramanik <satadru@gmail.com> * update libavif Signed-off-by: Satadru Pramanik <satadru@gmail.com> * more updates Signed-off-by: Satadru Pramanik <satadru@gmail.com> * Add libxml2 build comment. Signed-off-by: Satadru Pramanik <satadru@gmail.com> * Add build comment to libarchive. Signed-off-by: Satadru Pramanik <satadru@gmail.com> * Don't warn for missing directory during package removal. Signed-off-by: Satadru Pramanik <satadru@gmail.com> --------- Signed-off-by: Satadru Pramanik <satadru@gmail.com> Co-authored-by: Satadru Pramanik <satadru@gmail.com> Co-authored-by: satmandu <satmandu@users.noreply.github.com>
96 lines
3.3 KiB
Ruby
96 lines
3.3 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.9'
|
|
license 'GPL-3'
|
|
compatibility 'all'
|
|
source_url "https://www.gnupg.org/ftp/gcrypt/gnutls/v3.8/gnutls-#{version}.tar.xz"
|
|
source_sha256 'ac4f020e583880b51380ed226e59033244bc536cad2623f2e26f5afa2939d8fb'
|
|
binary_compression 'tar.zst'
|
|
|
|
binary_sha256({
|
|
aarch64: '9e18ff0e8ab2abc61e898f3cea01952608405a97217a8b997a33b87145c5c409',
|
|
armv7l: '9e18ff0e8ab2abc61e898f3cea01952608405a97217a8b997a33b87145c5c409',
|
|
i686: '38745b4e51abac40bb37e4b8ce7c8adaf0d79617214eaa178d58c8f537399bc1',
|
|
x86_64: 'b1be5700a0f61150573c8220ccc385851fcb52d8da263b5ff22d0f1991a6fc54'
|
|
})
|
|
|
|
depends_on 'brotli' # R
|
|
depends_on 'ca_certificates' # L
|
|
depends_on 'gcc_lib' # R
|
|
depends_on 'glibc' # R
|
|
depends_on 'gmp' # R
|
|
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 '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
|
|
|
|
autotools_configure_options "--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
|