Skip to content
Snippets Groups Projects
Commit d01b0b34 authored by Hoang Nguyen's avatar Hoang Nguyen :turtle: Committed by alice
Browse files

testing/usql: upgrade to 0.12.13

Disable on all 32-bit archs as upstream doesn't seem to care about them.
parent b8ddf17b
No related branches found
No related tags found
1 merge request!38291testing/usql: upgrade to 0.12.13
Pipeline #142501 passed
# Maintainer: Hoang Nguyen <folliekazetani@protonmail.com> # Maintainer: Hoang Nguyen <folliekazetani@protonmail.com>
pkgname=usql pkgname=usql
pkgver=0.12.0 pkgver=0.12.13
pkgrel=4 pkgrel=0
pkgdesc="Universal command-line interface for SQL databases" pkgdesc="Universal command-line interface for SQL databases"
url="https://github.com/xo/usql" url="https://github.com/xo/usql"
# ftbfs # riscv64: ftbfs
arch="all !riscv64" # x86, armhf, armv7: netezza and cockroachdb drivers fail to build on 32-bit
# - https://github.com/xo/usql/issues/59
# - https://github.com/IBM/nzgo/issues/38
# - https://github.com/cockroachdb/pebble/issues/1575
arch="all !riscv64 !armhf !armv7 !x86"
license="MIT" license="MIT"
makedepends="go unixodbc-dev icu-dev" makedepends="go unixodbc-dev icu-dev"
source=" source="$pkgname-$pkgver.tar.gz::https://github.com/xo/usql/archive/refs/tags/v$pkgver.tar.gz"
$pkgname-$pkgver.tar.gz::https://github.com/xo/usql/archive/refs/tags/v$pkgver.tar.gz
maxuint32-to-maxint32-pebble.patch.noauto::https://github.com/cockroachdb/pebble/commit/fcba2dcd95208a9681107aa15384d3489b17b0fa.diff
"
export CGO_ENABLED=1 # needed for godror and odbc drivers export CGO_ENABLED=1 # needed for godror and odbc drivers
export GOFLAGS="$GOFLAGS -modcacherw" export GOFLAGS="$GOFLAGS -modcacherw"
...@@ -21,23 +22,6 @@ export GOMODCACHE="${GOMODCACHE:-"$srcdir/go"}" ...@@ -21,23 +22,6 @@ export GOMODCACHE="${GOMODCACHE:-"$srcdir/go"}"
export _GOTAGS="all sqlite_app_armor sqlite_fts5 sqlite_introspect sqlite_json1 sqlite_stat4 sqlite_userauth sqlite_vtable sqlite_icu" export _GOTAGS="all sqlite_app_armor sqlite_fts5 sqlite_introspect sqlite_json1 sqlite_stat4 sqlite_userauth sqlite_vtable sqlite_icu"
# netezza driver fails to build on 32-bit
# https://github.com/IBM/nzgo/issues/38
case "$CARCH" in
x86 | armhf | armv7) export _GOTAGS="$_GOTAGS no_netezza";;
esac
prepare() {
default_prepare
go mod download
chmod -R +w "$GOMODCACHE"
patch -p1 \
-d "$GOMODCACHE/github.com/cockroachdb/pebble@v0.0.0-20220802234154-04f9100f89f0" \
-i "$srcdir"/maxuint32-to-maxint32-pebble.patch.noauto
}
build() { build() {
local _goldflags=" local _goldflags="
-X github.com/xo/usql/text.CommandName=$pkgname -X github.com/xo/usql/text.CommandName=$pkgname
...@@ -57,6 +41,5 @@ package() { ...@@ -57,6 +41,5 @@ package() {
} }
sha512sums=" sha512sums="
c4f0ccd299e428e9e563b489e2d3c59ef07b22377bea462faf0e2495345354291e701592ccd0d308daa6606bcc1cff67b7f2751756b13b6c4c95b682c7c8707d usql-0.12.0.tar.gz da0a863fe8f48dff6ab19c4fe9284cf2f912ab9d108aa1a6645aec84d9865cd6a5aa75b5f966ca82fe0d437a9afdc9baae8c35eeab868ba899f362de928c45a1 usql-0.12.13.tar.gz
ea629cc5da5eb414318f688c29f92833e2469794261eb697264fce2c48c8943a47bafedacb075996f35f46c8fd5dcaf0b2bc686d882c463e2e07e481eeedfd0a maxuint32-to-maxint32-pebble.patch.noauto
" "
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment