haproxy-awslc: don't check() on dynamic lib of aws-lc for now

Make building w/ staticlib works.
This commit is contained in:
Whyme Lyu 2026-02-16 01:08:31 +08:00
parent 7a8917a540
commit 2fa130ab95
2 changed files with 11 additions and 4 deletions

View file

@ -1,7 +1,7 @@
pkgbase = haproxy-awslc
pkgdesc = Reliable, high performance TCP/HTTP load balancer built with aws-lc
pkgver = 3.3.3
pkgrel = 2
pkgrel = 3
url = https://www.haproxy.org/
install = haproxy.install
arch = x86_64

View file

@ -15,7 +15,7 @@
pkgname=haproxy-awslc
_pkgname=haproxy
pkgver=3.3.3
pkgrel=2
pkgrel=3
pkgdesc='Reliable, high performance TCP/HTTP load balancer built with aws-lc'
url='https://www.haproxy.org/'
@ -105,10 +105,17 @@ build() {
check() {
cd "haproxy-${pkgver%.*}"
# We need to make sure haproxy actually links to .so of aws-lc
# I'd like to make sure haproxy actually links to .so of aws-lc
# A misconfigured build could fallback to linking openssl because aws-lc
# doesn't change the soname.
ldd ./haproxy | grep -Fq /usr/lib/aws-lc/
#
# ldd ./haproxy | grep -Fq /usr/lib/aws-lc/
#
# However, aws-lc upstream doesn't promise ABI stability yet. The
# maintainer of AUR/aws-lc decides to go with staticlib for now.
# Good news for me: the build process of haproxy stays the same.
#
# Upstream issue: https://github.com/aws/aws-lc/issues/1098
if [ $? = 1 ]; then
echo "Executable \`haproxy' isn't linked to aws-lc libraries. Abort"
return 1