From 9aa6f69801ac8523541f65b15f6977b62c72195b Mon Sep 17 00:00:00 2001 From: classabbyamp Date: Wed, 14 Jan 2026 09:57:47 -0500 Subject: [PATCH] fractal: update to 13. --- srcpkgs/fractal/template | 27 +++++++++++++++++++++------ 1 file changed, 21 insertions(+), 6 deletions(-) diff --git a/srcpkgs/fractal/template b/srcpkgs/fractal/template index 53531bd21164c5..cd584af50249bf 100644 --- a/srcpkgs/fractal/template +++ b/srcpkgs/fractal/template @@ -1,11 +1,11 @@ # Template file for 'fractal' pkgname=fractal -version=11.1 +version=13 revision=1 build_style=meson build_helper=rust hostmakedepends="cargo clang desktop-file-utils gettext glib-devel - gtk4-update-icon-cache nodejs pkg-config" + gtk4-update-icon-cache nodejs pkg-config blueprint-compiler" makedepends="gst-plugins-base1-devel gtksourceview5-devel libadwaita-devel libseccomp-devel libshumate-devel pipewire-devel rust-std xdg-desktop-portal libwebp-devel" @@ -16,16 +16,15 @@ license="GPL-3.0-or-later" homepage="https://wiki.gnome.org/Apps/Fractal" changelog="https://gitlab.gnome.org/World/fractal/-/releases" distfiles="https://gitlab.gnome.org/World/fractal/-/archive/${version}/fractal-${version}.tar.gz" -checksum=64b84201976818d148a20351e4fcccc426739ccbfba485b911ca7625c559338f +checksum=fae738e94f7ec9eb03712ddc0b9792397ea268bae859eaff5814a093953c7402 export PATH="$PATH:$XBPS_BUILDDIR/${pkgname}-${version}/node_modules/.bin" -if [ "$XBPS_TARGET_WORDSIZE" = 32 ]; then +if [ "$XBPS_TARGET_WORDSIZE" -eq 32 ]; then broken="runs out of memory when linking" fi -nocross=yes if [ "$XBPS_TARGET_LIBC" = musl ]; then - broken="broken" + broken="glycin crate needs libc::close_range" fi post_patch() { @@ -33,12 +32,28 @@ post_patch() { vsed -i src/meson.build \ -e "s%rust_target /%'${RUST_TARGET}' / &%" fi + # this package uses stupid amounts of memory when allowed to do LTO + # also, by setting codegen-units to 1, upstream tries to optimise more + # but just ends up using more memory + # disable debug information generation to further lower memory usage + vsed -i Cargo.toml -e 's/lto = "thin"/lto = "off"/; /codegen-units/d; s/debug = true/debug = false/' } pre_configure() { npm i sass } +pre_build() { + if [ "$CROSS_BUILD" ]; then + export GI_TYPELIB_PATH="${XBPS_CROSS_BASE}/usr/lib/girepository-1.0" + fi +} + +# NOTE: explicitly prevent rebuild due to XBPS wrappers being regenerated +do_check() { + meson test -C build --no-rebuild ${makejobs} +} + # NOTE: explicitly prevent rebuild: https://gitlab.gnome.org/GNOME/fractal/-/issues/1327 do_install() { meson install -C build --destdir $DESTDIR --no-rebuild