aports/community/dqlite/APKBUILD
mio 623142f6d8 community/dqlite: fix build with libuv 1.51.0
Fix build error due to conflicting types.

```
In file included from ␛[01m␛[Ksrc/response.h:4␛[m␛[K,
                 from ␛[01m␛[Ksrc/response.c:1␛[m␛[K:
␛[01m␛[Ksrc/lib/serialize.h:40:16:␛[m␛[K ␛[01;31m␛[Kerror: ␛[m␛[Kconflicting types for '␛[01m␛[Kfloat_t␛[m␛[K'; have '␛[01m␛[Kdouble␛[m␛[K'
   40 | typedef double ␛[01;31m␛[Kfloat_t␛[m␛[K;
      |                ␛[01;31m␛[K^~~~~~~␛[m␛[K
In file included from ␛[01m␛[K/usr/include/math.h:12␛[m␛[K,
                 from ␛[01m␛[K/usr/include/uv.h:61␛[m␛[K,
                 from ␛[01m␛[Ksrc/lib/serialize.h:7␛[m␛[K:
␛[01m␛[K/usr/include/bits/alltypes.h:22:15:␛[m␛[K ␛[01;36m␛[Knote: ␛[m␛[Kprevious declaration of '␛[01m␛[Kfloat_t␛[m␛[K' with type '␛[01m␛[Kfloat_t␛[m␛[K' {aka '␛[01m␛[Kfloat␛[m␛[K'}
   22 | typedef float ␛[01;36m␛[Kfloat_t␛[m␛[K;
      |               ␛[01;36m␛[K^~~~~~~␛[m␛[K
```
2025-05-13 18:12:06 +00:00

48 lines
1.5 KiB
Text

# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=dqlite
pkgver=1.18.1
pkgrel=1
pkgdesc="Embeddable, replicated and fault tolerant SQL engine"
url="https://dqlite.io/"
arch="all"
license="LGPL-3.0-only"
depends="raft"
makedepends="libuv-dev sqlite-dev raft-dev autoconf automake libtool linux-headers"
subpackages="$pkgname-static $pkgname-dev $pkgname-doc"
source="$pkgname-$pkgver.tar.gz::https://github.com/canonical/dqlite/archive/v$pkgver.tar.gz
no-werror.patch
disable-failing-tests.patch
rename-float-t.patch
"
prepare() {
default_prepare
autoreconf -i
}
build() {
./configure \
--prefix=/usr
make
}
check() {
# for these arch, make check fails
case "$CARCH" in
aarch64|arm*|loongarch64|s390x|ppc64le|riscv64) return 0 ;;
*) make check
esac
}
package() {
make DESTDIR="$pkgdir" install
install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/dqlite/LICENSE
}
sha512sums="
780f4e459a8af7f998d5ccf87d96fc68e8f15abedc5c2fac2d37dd813bfea94d03bbc0db863c670c01f2810f033d6601d21f6d0fe474b9ecb9be48a4e5b36aa6 dqlite-1.18.1.tar.gz
fd55ca2d2ad74f645a208669b5a7c3e8ccbeff8fa52cf733f1a6b1ac8cf086adda38f01000eefa8f7a145f06e4e0dc2b35c972f4467749c957977d99f6611e44 no-werror.patch
12c59b4279e46d2a622d2ea0364e212c6cbefb29d5b50f2d85396e40119d1f16028ca1120803fb99d18474b6e6a8a049a92ee54daa138e98406c3a21f8d7f49e disable-failing-tests.patch
75339c94963935840c7c75dc253ab6c9678e60a17c029e102d692dd0661961159095991c2a252858d62e65b9aa1dac65b34fd411921f9484c43e1f236a87e7d0 rename-float-t.patch
"