Download raw body.
Disable security/vaultwarden,mysql on unsupported archs
On 8/12/24 1:44 AM, Jeremie Courreges-Anglas wrote:
>
> The mysql flavor now fails with:
>
> thread 'main' panicked at /local/pobj/vaultwarden-1.31.0-mysql/vaultwarden-1.31.0/modcargo-crates/mysqlclient-sys-0.4.0/build.rs:219:13:
> mysqlclient-sys does not provide bundled bindings for libmysqlclient `3.3.6` for the target `riscv64gc-unknown-openbsd`.
> Consider using the `buildtime_bindgen` feature or contribute bindings to the crate
>
> https://github.com/sgrif/mysqlclient-sys/blob/4f9afd960779b463e05363279678da56f025015c/build.rs#L220
>
> Generating the bindings from within the port looks doable but non
> trivial. Skipping the mysql FLAVOR where the bindings aren't
> available lets the other FLAVORS build.
>
> ok?
OK aisha
>
>
> Index: Makefile
> ===================================================================
> RCS file: /cvs/ports/security/vaultwarden/Makefile,v
> diff -u -p -r1.35 Makefile
> --- Makefile 10 Jul 2024 04:55:58 -0000 1.35
> +++ Makefile 12 Aug 2024 05:38:55 -0000
> @@ -3,6 +3,9 @@ NOT_FOR_ARCHS = sparc64
>
> BROKEN-i386 = raw-cpuid-10.2.0/src/lib.rs:80:37 "could not find `arch` in `self`"
>
> +# The mysqlclient-sys crate bundles bindings for arm64 and x86 only
> +# See below the restriction for the mysql FLAVOR
> +
> COMMENT = unofficial bitwarden compatible server
>
> DIST_TUPLE = github dani-garcia vaultwarden 1.31.0 .
> @@ -33,6 +36,7 @@ FLAVOR ?=
> MODCARGO_FEATURES += mysql
> WANTLIB += mariadb
> LIB_DEPENDS += databases/mariadb
> +ONLY_FOR_ARCHS = amd64 aarch64 i386
> .endif
> .if ${FLAVOR:Mpostgresql}
> MODCARGO_FEATURES += postgresql
>
Disable security/vaultwarden,mysql on unsupported archs