From 5d2b505a10c91513eebecc15ea5968c255b9d520 Mon Sep 17 00:00:00 2001 From: Leah Neukirchen Date: Sat, 24 Feb 2024 17:28:12 +0100 Subject: [PATCH] zeroinstall: rebuild and fix for ocaml-5.1.1. --- srcpkgs/zeroinstall/template | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/srcpkgs/zeroinstall/template b/srcpkgs/zeroinstall/template index fedca44abc9..2c4ed761830 100644 --- a/srcpkgs/zeroinstall/template +++ b/srcpkgs/zeroinstall/template @@ -1,10 +1,10 @@ # Template file for 'zeroinstall' pkgname=zeroinstall version=2.18 -revision=1 +revision=2 build_style=gnu-makefile make_install_target="install_system" -hostmakedepends="gettext ocaml opam m4 tar pkg-config which" +hostmakedepends="gettext ocaml opam m4 tar pkg-config which git" makedepends="openssl-devel libcurl-devel gnupg glib-devel gtk+3-devel" depends="gnupg desktop-file-utils hicolor-icon-theme xdg-utils" short_desc="Cross-distribution software installation system" @@ -18,13 +18,15 @@ nocross="opam is nocross" disable_parallel_build=yes case "$XBPS_TARGET_MACHINE" in - ppc64*) ;; - ppc*) broken="relocation out of range";; + x86_64*|aarch64*|riscv64*) ;; + *) broken="needs ocurl which wants ocamlopt";; esac pre_build() { opam init -y --compiler=ocaml-system --disable-sandboxing eval $(opam env) + # thx @kit-ty-kate for ocaml 5 fix. + opam pin add -yn git+https://github.com/ocaml-community/obus#03129dac072e7a7370c2c92b9d447e47f784b7c7 opam install -y yojson xmlm ounit lwt lwt_react obus ocurl sha dune lablgtk3 lwt_glib }