While building new upstream glycin package target doesn’t match build. Have to use UNKNOWN not LIBREELEC
Need to investigate further. Previous issues with target were addressed in 1.85.0. Note: librespot build uses different env variable to link, that doesn’t work with glycin.
diff --git a/packages/graphics/glycin/package.mk b/packages/graphics/glycin/package.mk
new file mode 100644
index 0000000000..2abf91f693
--- /dev/null
+++ b/packages/graphics/glycin/package.mk
@@ -0,0 +1,39 @@
+# SPDX-License-Identifier: GPL-2.0-only
+# Copyright (C) 2025-present Team LibreELEC (https://libreelec.tv)
+
+PKG_NAME="glycin"
+PKG_VERSION="2.0.alpha.5"
+PKG_SHA256="7916da1ca405f8cec058e00992c0349f893434b850896762aba761c197a6d37d"
+PKG_LICENSE="OSS"
+PKG_SITE="http://www.gtk.org/"
+PKG_URL="https://gitlab.gnome.org/GNOME/glycin/-/archive/${PKG_VERSION}/glycin-${PKG_VERSION}.tar.bz2"
+PKG_DEPENDS_TARGET="toolchain cargo:host fontconfig libseccomp lcms2 glib"
+PKG_LONGDESC="Sandboxed and extendable image loading"
+PKG_BUILD_FLAGS="-sysroot"
+
+configure_package() {
+ if [ "${DISPLAYSERVER}" = "x11" ]; then
+ PKG_DEPENDS_TARGET+=" libX11"
+ fi
+}
+
+pre_configure_target() {
+ PKG_MESON_OPTS_TARGET="--wrap-mode=nodownload \
+ -Dglycin-loaders=false \
+ -Dlibglycin-gtk4=false \
+ -Dintrospection=false \
+ -Dtests=false \
+ -Dthumbnailer=false \
+ -Dvapi=false"
+
+ export PKG_CONFIG_PATH="$(get_install_dir libseccomp)/usr/lib/pkgconfig:${PKG_CONFIG_PATH}"
+ export CARGO_TARGET_X86_64_UNKNOWN_LINUX_GNU_LINKER=${TARGET_CC}
+}
+
+pre_make_target() {
+ :
+ #export BINDGEN_EXTRA_CLANG_ARGS="--sysroot=${SYSROOT_PREFIX}"
+ #export RUSTC_LINKER=${TARGET_CC}
+ #export CARGO_BUILD_TARGET=x86_64-unknown-linux-gnu
+ #${TARGET_NAME}
+}
While building new upstream glycin package target doesn’t match build. Have to use UNKNOWN not LIBREELEC
Need to investigate further. Previous issues with target were addressed in 1.85.0. Note: librespot build uses different env variable to link, that doesn’t work with glycin.