Index: radix-1.9/X11/app/xdg-desktop-portal/1.18.2/Makefile
===================================================================
--- radix-1.9/X11/app/xdg-desktop-portal/1.18.2/Makefile (nonexistent)
+++ radix-1.9/X11/app/xdg-desktop-portal/1.18.2/Makefile (revision 252)
@@ -0,0 +1,324 @@
+
+COMPONENT_TARGETS = $(HARDWARE_INTEL_PC32)
+COMPONENT_TARGETS += $(HARDWARE_INTEL_PC64)
+COMPONENT_TARGETS += $(HARDWARE_EBOX_3350DX2)
+COMPONENT_TARGETS += $(HARDWARE_CB1X)
+COMPONENT_TARGETS += $(HARDWARE_CB2X)
+COMPONENT_TARGETS += $(HARDWARE_CB3X)
+COMPONENT_TARGETS += $(HARDWARE_ORANGE_PP2E)
+COMPONENT_TARGETS += $(HARDWARE_NANOPI_NEO)
+COMPONENT_TARGETS += $(HARDWARE_ORANGE_PP)
+COMPONENT_TARGETS += $(HARDWARE_ORANGE_PL2)
+COMPONENT_TARGETS += $(HARDWARE_ORANGE_PI5)
+COMPONENT_TARGETS += $(HARDWARE_ORANGE_PI5B)
+COMPONENT_TARGETS += $(HARDWARE_ORANGE_PI5P)
+COMPONENT_TARGETS += $(HARDWARE_ROCK_5B)
+COMPONENT_TARGETS += $(HARDWARE_WECHIP_TX6)
+COMPONENT_TARGETS += $(HARDWARE_REPKA_PI3)
+COMPONENT_TARGETS += $(HARDWARE_FFRK3288)
+COMPONENT_TARGETS += $(HARDWARE_POIN2)
+COMPONENT_TARGETS += $(HARDWARE_RK3328_CC)
+COMPONENT_TARGETS += $(HARDWARE_KHADAS_EDGE)
+COMPONENT_TARGETS += $(HARDWARE_LEEZ_P710)
+COMPONENT_TARGETS += $(HARDWARE_M201)
+COMPONENT_TARGETS += $(HARDWARE_MXV)
+COMPONENT_TARGETS += $(HARDWARE_P201)
+COMPONENT_TARGETS += $(HARDWARE_NEXBOX_A95X)
+COMPONENT_TARGETS += $(HARDWARE_ODROID_C2)
+COMPONENT_TARGETS += $(HARDWARE_P212)
+COMPONENT_TARGETS += $(HARDWARE_KHADAS_VIM)
+COMPONENT_TARGETS += $(HARDWARE_Q201)
+COMPONENT_TARGETS += $(HARDWARE_ENYBOX_X2)
+COMPONENT_TARGETS += $(HARDWARE_KHADAS_VIM2)
+COMPONENT_TARGETS += $(HARDWARE_NIT6Q)
+COMPONENT_TARGETS += $(HARDWARE_OKMX6DL_C)
+COMPONENT_TARGETS += $(HARDWARE_OKMX6Q_C)
+COMPONENT_TARGETS += $(HARDWARE_BONE_BLACK)
+COMPONENT_TARGETS += $(HARDWARE_OMAP5UEVM)
+COMPONENT_TARGETS += $(HARDWARE_DRA7XXEVM)
+COMPONENT_TARGETS += $(HARDWARE_CI20)
+COMPONENT_TARGETS += $(HARDWARE_BAIKAL_T1)
+COMPONENT_TARGETS += $(HARDWARE_BAIKAL_M1)
+COMPONENT_TARGETS += $(HARDWARE_S824L)
+COMPONENT_TARGETS += $(HARDWARE_VESNIN)
+COMPONENT_TARGETS += $(HARDWARE_S824L_LSB)
+COMPONENT_TARGETS += $(HARDWARE_VESNIN_LSB)
+COMPONENT_TARGETS += $(HARDWARE_TL2WK2)
+COMPONENT_TARGETS += $(HARDWARE_TL2SV2)
+COMPONENT_TARGETS += $(HARDWARE_TL2WK2_LSB)
+COMPONENT_TARGETS += $(HARDWARE_TL2SV2_LSB)
+COMPONENT_TARGETS += $(HARDWARE_VISIONFIVE2)
+COMPONENT_TARGETS += $(HARDWARE_SIFIVE_U740)
+
+
+NEED_ABS_PATH = true
+COMPONENT_IS_3PP = true
+
+
+include ../../../../build-system/constants.mk
+
+
+SOURCE_REQUIRES = sources/packages/x/xdg-desktop-portal
+
+REQUIRES = app/bubblewrap/0.8.0
+REQUIRES += X11/libs/gdk-pixbuf2-xlib/2.40.2
+REQUIRES += X11/libs/libportal/0.6
+REQUIRES += X11/media/pipewire/0.3.80
+REQUIRES += libs/json-glib/1.6.6
+REQUIRES += libs/fuse3/3.16.2
+
+# ======= __END_OF_REQUIRES__ =======
+
+
+version = 1.18.2
+tar_xz_archive = $(SRC_PACKAGE_PATH)/packages/x/xdg-desktop-portal/xdg-desktop-portal-$(version).tar.xz
+SRC_ARCHIVE = $(tar_xz_archive)
+SRC_DIR = $(TARGET_BUILD_DIR)/xdg-desktop-portal-$(version)
+src_dir_name = xdg-desktop-portal-$(version)
+src_done = $(TARGET_BUILD_DIR)/.source_done
+
+PATCHES = PATCHES
+
+build_dir = $(TARGET_BUILD_DIR)/build
+build_target = $(TARGET_BUILD_DIR)/.build_done
+install_target = $(TARGET_BUILD_DIR)/.install_done
+
+cross_file = $(TARGET_BUILD_DIR)/$(TARGET)-cross
+
+
+####### Targets
+
+PKG_GROUP = xapp
+
+#
+# *PKG_NAME & *PKG_VERSION shouldn't be a reference to value.
+#
+PORTAL_PKG_NAME = xdg-desktop-portal
+PORTAL_PKG_VERSION = 1.18.2
+PORTAL_PKG_ARCH = $(PKGARCH)
+PORTAL_PKG_DISTRO_NAME = $(DISTRO_NAME)
+PORTAL_PKG_DISTRO_VERSION = $(DISTRO_VERSION)
+PORTAL_PKG_GROUP = $(PKG_GROUP)
+### |---handy-ruler-------------------------------|
+PORTAL_PKG_SHORT_DESCRIPTION = Desktop integration portal
+PORTAL_PKG_URL = $(BUG_URL)
+PORTAL_PKG_LICENSE = LGPLv2.1
+PORTAL_PKG_DESCRIPTION_FILE = $(TARGET_BUILD_DIR)/$(PORTAL_PKG_NAME)-pkg-description
+PORTAL_PKG_DESCRIPTION_FILE_IN = $(PORTAL_PKG_NAME)-pkg-description.in
+PORTAL_PKG_INSTALL_SCRIPT = $(PORTAL_PKG_NAME)-pkg-install.sh
+
+PORTAL_PKG = $(CURDIR)/$(TARGET_BUILD_DIR)/$(PORTAL_PKG_NAME)-package
+
+pkg_basename = $(PORTAL_PKG_NAME)-$(PORTAL_PKG_VERSION)-$(PORTAL_PKG_ARCH)-$(PORTAL_PKG_DISTRO_NAME)-$(PORTAL_PKG_DISTRO_VERSION)
+
+pkg_archive = $(TARGET_BUILD_DIR)/$(PKG_GROUP)/$(pkg_basename).$(pkg_arch_suffix)
+pkg_signature = $(call sign-name,$(pkg_archive))
+pkg_description = $(call desc-name,$(pkg_archive))
+products = $(call pkg-files,$(pkg_archive))
+
+BUILD_TARGETS = $(build_target)
+BUILD_TARGETS += $(install_target)
+
+PRODUCT_TARGETS = $(products)
+
+ROOTFS_TARGETS = $(pkg_archive)
+
+
+include ../../../../build-system/core.mk
+
+
+env_sysroot = DESTDIR=$(PORTAL_PKG)
+
+
+#
+# https://mesonbuild.com/Reference-tables.html :
+# =============================================
+#
+ifneq ($(filter $(TOOLCHAIN),$(TOOLCHAIN_A1X_GLIBC) $(TOOLCHAIN_A2X_GLIBC) \
+ $(TOOLCHAIN_H3_GLIBC) $(TOOLCHAIN_RK328X_GLIBC) \
+ $(TOOLCHAIN_S8XX_GLIBC) $(TOOLCHAIN_IMX6_GLIBC) \
+ $(TOOLCHAIN_AM335X_GLIBC) $(TOOLCHAIN_OMAP543X_GLIBC)),)
+cpu_name = arm
+endian = little
+endif
+ifneq ($(filter $(TOOLCHAIN),$(TOOLCHAIN_H5_GLIBC) $(TOOLCHAIN_RK33XX_GLIBC) \
+ $(TOOLCHAIN_RK339X_GLIBC) $(TOOLCHAIN_RK358X_GLIBC) \
+ $(TOOLCHAIN_S9XX_GLIBC) \
+ $(TOOLCHAIN_A311X_GLIBC) $(TOOLCHAIN_M1000_GLIBC)),)
+cpu_name = aarch64
+endian = little
+endif
+ifneq ($(filter $(TOOLCHAIN),$(TOOLCHAIN_JZ47XX_GLIBC) $(TOOLCHAIN_P5600_GLIBC)),)
+cpu_name = mips
+endian = little
+endif
+ifneq ($(filter $(TOOLCHAIN),$(TOOLCHAIN_POWER8_GLIBC) $(TOOLCHAIN_POWER9_GLIBC)),)
+cpu_name = ppc64
+endian = big
+endif
+ifneq ($(filter $(TOOLCHAIN),$(TOOLCHAIN_POWER8LE_GLIBC) $(TOOLCHAIN_POWER9LE_GLIBC)),)
+cpu_name = ppc64
+endian = little
+endif
+ifneq ($(filter $(TOOLCHAIN),$(TOOLCHAIN_RISCV64_GLIBC)),)
+cpu_name = riscv64
+endian = little
+endif
+ifneq ($(filter $(TOOLCHAIN),$(TOOLCHAIN_I586_GLIBC) $(TOOLCHAIN_I686_GLIBC)),)
+cpu_name = x86
+endian = little
+endif
+ifneq ($(filter $(TOOLCHAIN),$(TOOLCHAIN_X86_64_GLIBC)),)
+cpu_name = x86_64
+endian = little
+endif
+
+
+ifeq ($(__ENABLE_STATIC__),yes)
+extra_configure_switches += --default-library=both
+else
+extra_configure_switches += --default-library=shared
+endif
+
+
+extra_configure_switches += -Dflatpak-interfaces=disabled
+extra_configure_switches += -Dsystemd-user-unit-dir='/usr/share/systemd/user'
+extra_configure_switches += -Dlibportal=enabled
+extra_configure_switches += -Dgeoclue=disabled
+extra_configure_switches += -Dsystemd=disabled
+extra_configure_switches += -Ddocbook-docs=disabled
+extra_configure_switches += -Ddatarootdir=''
+extra_configure_switches += -Dinstalled-tests=false
+extra_configure_switches += -Dpytest=disabled
+extra_configure_switches += -Dman-pages=enabled
+extra_configure_switches += -Dsandboxed-image-validation=true
+
+
+TARGET_BIN_RPATH = /lib$(LIBSUFFIX):/usr/lib$(LIBSUFFIX)
+
+LDFLAGS += -Wl,-rpath,$(TARGET_BIN_RPATH)
+
+
+####### Dependencies
+
+$(src_done): $(SRC_ARCHIVE) $(PATCHES_DEP)
+ $(UNPACK_SRC_ARCHIVE)
+ $(APPLY_PATCHES)
+ @touch $@
+
+$(build_target): $(src_done)
+ @mkdir -p $(build_dir)
+ @echo "" > $(cross_file)
+ @echo "[build_machine]" >> $(cross_file)
+ @echo "system = '$(shell uname -s | tr 'L' 'l')'" >> $(cross_file)
+ @echo "cpu_family = '$(shell uname -m)'" >> $(cross_file)
+ @echo "cpu = '$(shell uname -m)'" >> $(cross_file)
+ @echo "endian = '$(shell lscpu | grep Endian | tr -s ' ' | cut -f3 -d' ' | tr 'L' 'l')'" >> $(cross_file)
+ @echo "" >> $(cross_file)
+ @echo "[host_machine]" >> $(cross_file)
+ @echo "system = 'linux'" >> $(cross_file)
+ @echo "cpu_family = '$(cpu_name)'" >> $(cross_file)
+ @echo "cpu = '$(cpu_name)'" >> $(cross_file)
+ @echo "endian = '$(endian)'" >> $(cross_file)
+ @echo "" >> $(cross_file)
+ @echo "[target_machine]" >> $(cross_file)
+ @echo "system = 'linux'" >> $(cross_file)
+ @echo "cpu_family = '$(cpu_name)'" >> $(cross_file)
+ @echo "cpu = '$(cpu_name)'" >> $(cross_file)
+ @echo "endian = '$(endian)'" >> $(cross_file)
+ @echo "" >> $(cross_file)
+ @echo "[binaries]" >> $(cross_file)
+ @echo "c = '$(TOOLCHAIN_PATH)/bin/$(TARGET)-gcc'" >> $(cross_file)
+ @echo "cpp = '$(TOOLCHAIN_PATH)/bin/$(TARGET)-g++'" >> $(cross_file)
+ @echo "ar = '$(AR)'" >> $(cross_file)
+ @echo "strip = '$(STRIP)'" >> $(cross_file)
+ @echo "pkgconfig = 'pkg-config'" >> $(cross_file)
+ @echo "" >> $(cross_file)
+ @meson setup \
+ --prefix=/usr \
+ --libdir=lib$(LIBSUFFIX) \
+ --libexecdir=/usr/libexec \
+ --bindir=/usr/bin \
+ --sbindir=/usr/sbin \
+ --includedir=/usr/include \
+ --datadir=/usr/share \
+ --mandir=/usr/share/man \
+ --sysconfdir=/etc \
+ --localstatedir=/var \
+ --buildtype=release \
+ -Dc_args="`echo -n "--sysroot=$(TARGET_DEST_DIR) $(CFLAGS)" | tr -s ' '`" \
+ -Dc_link_args="`echo -n "--sysroot=$(TARGET_DEST_DIR) $(LDFLAGS)" | tr -s ' '`" \
+ -Dcpp_args="`echo -n "--sysroot=$(TARGET_DEST_DIR) $(CFLAGS)" | tr -s ' '`" \
+ -Dcpp_link_args="`echo -n "--sysroot=$(TARGET_DEST_DIR) $(LDFLAGS)" | tr -s ' '`" \
+ $(extra_configure_switches) \
+ --cross-file=$(cross_file) $(SRC_DIR) $(build_dir)
+ @cd $(build_dir) && ninja -v
+ @touch $@
+
+$(install_target): $(build_target)
+ @mkdir -p $(PORTAL_PKG)
+ @cd $(build_dir) && $(env_sysroot) ninja install
+ # ======= Install Documentation =======
+ @if [ -d $(PORTAL_PKG)/usr/share/man ]; then \
+ ( cd $(PORTAL_PKG)/usr/share/man ; \
+ for manpagedir in `find . -type d -name "man*"` ; do \
+ ( cd $$manpagedir ; \
+ for eachpage in `find . -type l -maxdepth 1` ; do \
+ ln -s `readlink $$eachpage`.gz $$eachpage.gz ; \
+ rm $$eachpage ; \
+ done ; \
+ gzip -9 *.? ; \
+ ) \
+ done \
+ ) \
+ fi
+ @mkdir -p $(PORTAL_PKG)/usr/doc/$(src_dir_name)
+ @cp -a $(SRC_DIR)/COPYING \
+ $(PORTAL_PKG)/usr/doc/$(src_dir_name)
+ @mkdir -p $(PORTAL_PKG)/usr/share/doc/$(src_dir_name)
+ @( cd $(SRC_DIR) ; \
+ cp -a COPYING README.md SECURITY.md \
+ $(PORTAL_PKG)/usr/share/doc/$(src_dir_name) ; \
+ )
+ @( cd $(SRC_DIR) ; \
+ if [ -r NEWS ]; then \
+ DOCSDIR=`echo $(PORTAL_PKG)/usr/share/doc/$(src_dir_name)` ; \
+ cat NEWS | head -n 1000 > $$DOCSDIR/NEWS ; \
+ touch -r NEWS $$DOCSDIR/NEWS ; \
+ fi \
+ )
+ # ======= Install the same to $(TARGET_DEST_DIR) =======
+ $(call install-into-devenv, $(PORTAL_PKG))
+ # ======= tune pkg-config *.pc search path to the target destination for development =======
+ @( cd $(TARGET_DEST_DIR)/usr/share/pkgconfig ; \
+ sed -i "s,/usr,$(TARGET_DEST_DIR)/usr,g" xdg-desktop-portal.pc ; \
+ )
+ # ======= Strip binaries =======
+ @( cd $(PORTAL_PKG); \
+ find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs $(STRIP) --strip-unneeded 2> /dev/null ; \
+ )
+ @touch $@
+
+$(PORTAL_PKG_DESCRIPTION_FILE): $(PORTAL_PKG_DESCRIPTION_FILE_IN)
+ @cat $< | $(SED) -e "s/@VERSION@/$(version)/g" > $@
+
+$(pkg_certificate) : $(pkg_archive) ;
+$(pkg_signature) : $(pkg_archive) ;
+$(pkg_description) : $(pkg_archive) ;
+
+$(pkg_archive): $(install_target) $(PORTAL_PKG_DESCRIPTION_FILE) $(PORTAL_PKG_INSTALL_SCRIPT)
+ @cp $(PORTAL_PKG_DESCRIPTION_FILE) $(PORTAL_PKG)/.DESCRIPTION
+ @cp $(PORTAL_PKG_INSTALL_SCRIPT) $(PORTAL_PKG)/.INSTALL
+ @$(BUILD_PKG_REQUIRES) $(PORTAL_PKG)/.REQUIRES
+ @echo "pkgname=$(PORTAL_PKG_NAME)" > $(PORTAL_PKG)/.PKGINFO ; \
+ echo "pkgver=$(PORTAL_PKG_VERSION)" >> $(PORTAL_PKG)/.PKGINFO ; \
+ echo "arch=$(PORTAL_PKG_ARCH)" >> $(PORTAL_PKG)/.PKGINFO ; \
+ echo "distroname=$(PORTAL_PKG_DISTRO_NAME)" >> $(PORTAL_PKG)/.PKGINFO ; \
+ echo "distrover=$(PORTAL_PKG_DISTRO_VERSION)" >> $(PORTAL_PKG)/.PKGINFO ; \
+ echo "group=$(PORTAL_PKG_GROUP)" >> $(PORTAL_PKG)/.PKGINFO ; \
+ echo "short_description=\"$(PORTAL_PKG_SHORT_DESCRIPTION)\"" >> $(PORTAL_PKG)/.PKGINFO ; \
+ echo "url=$(PORTAL_PKG_URL)" >> $(PORTAL_PKG)/.PKGINFO ; \
+ echo "license=$(PORTAL_PKG_LICENSE)" >> $(PORTAL_PKG)/.PKGINFO
+ @$(PSEUDO) sh -c "cd $(PORTAL_PKG) && \
+ chown -R root:root . && \
+ $(MAKE_PACKAGE) -J --linkadd=yes $(GNUPG_OPTIONS) -m -d .. ."
Index: radix-1.9/X11/app/xdg-desktop-portal/1.18.2/PATCHES
===================================================================
--- radix-1.9/X11/app/xdg-desktop-portal/1.18.2/PATCHES (nonexistent)
+++ radix-1.9/X11/app/xdg-desktop-portal/1.18.2/PATCHES (revision 252)
@@ -0,0 +1,2 @@
+
+../../../../sources/packages/x/xdg-desktop-portal/patches/xdg-desktop-portal-1.18.2-bwrap-cross.patch -p0
Index: radix-1.9/X11/app/xdg-desktop-portal/1.18.2/xdg-desktop-portal-pkg-description.in
===================================================================
--- radix-1.9/X11/app/xdg-desktop-portal/1.18.2/xdg-desktop-portal-pkg-description.in (nonexistent)
+++ radix-1.9/X11/app/xdg-desktop-portal/1.18.2/xdg-desktop-portal-pkg-description.in (revision 252)
@@ -0,0 +1,19 @@
+# HOW TO EDIT THIS FILE:
+# The "handy ruler" below makes it easier to edit a package description. Line
+# up the first '|' above the ':' following the base package name, and the '|'
+# on the right side marks the last column you can put a character in. You must
+# make exactly 11 lines for the formatting to be correct. It's also
+# customary to leave one space after the ':'.
+
+ |-----handy-ruler------------------------------------------------------|
+xdg-desktop-portal: xdg-desktop-portal @VERSION@ (Desktop integration portal)
+xdg-desktop-portal:
+xdg-desktop-portal: A portal frontend service for Flatpak and possibly other desktop
+xdg-desktop-portal: containment frameworks. xdg-desktop-portal works by exposing a
+xdg-desktop-portal: series of D-Bus interfaces known as _portals_ under a well-known
+xdg-desktop-portal: name (org.freedesktop.portal.Desktop) and object path
+xdg-desktop-portal: (/org/freedesktop/portal/desktop). The portal interfaces include
+xdg-desktop-portal: APIs for file access, opening URIs, printing and others.
+xdg-desktop-portal:
+xdg-desktop-portal: Sources: https://github.com/flatpak/xdg-desktop-portal
+xdg-desktop-portal:
Index: radix-1.9/X11/app/xdg-desktop-portal/1.18.2/xdg-desktop-portal-pkg-install.sh
===================================================================
--- radix-1.9/X11/app/xdg-desktop-portal/1.18.2/xdg-desktop-portal-pkg-install.sh (nonexistent)
+++ radix-1.9/X11/app/xdg-desktop-portal/1.18.2/xdg-desktop-portal-pkg-install.sh (revision 252)
@@ -0,0 +1,53 @@
+#!/bin/sh
+
+# Preserve new files
+install_file() {
+ NEW="$1"
+ OLD="`dirname $NEW`/`basename $NEW .new`"
+ # If there's no file by that name, mv it over:
+ if [ ! -r $OLD ]; then
+ mv $NEW $OLD
+ elif [ "`cat $OLD | md5sum`" = "`cat $NEW | md5sum`" ]; then # toss the redundant copy
+ rm $NEW
+ fi
+ # Otherwise, we leave the .new copy for the admin to consider...
+}
+
+
+# arg 1: the new package version
+pre_install() {
+ /bin/true
+}
+
+# arg 1: the new package version
+post_install() {
+ /bin/true
+}
+
+# arg 1: the new package version
+# arg 2: the old package version
+pre_update() {
+ /bin/true
+}
+
+# arg 1: the new package version
+# arg 2: the old package version
+post_update() {
+ post_install
+}
+
+# arg 1: the old package version
+pre_remove() {
+ /bin/true
+}
+
+# arg 1: the old package version
+post_remove() {
+ /bin/true
+}
+
+
+operation=$1
+shift
+
+$operation $*
Property changes on: radix-1.9/X11/app/xdg-desktop-portal/1.18.2/xdg-desktop-portal-pkg-install.sh
___________________________________________________________________
Added: svn:executable
## -0,0 +1 ##
+*
\ No newline at end of property
Index: radix-1.9/X11/app/xdg-desktop-portal/1.18.2
===================================================================
--- radix-1.9/X11/app/xdg-desktop-portal/1.18.2 (nonexistent)
+++ radix-1.9/X11/app/xdg-desktop-portal/1.18.2 (revision 252)
Property changes on: radix-1.9/X11/app/xdg-desktop-portal/1.18.2
___________________________________________________________________
Added: svn:ignore
## -0,0 +1,74 ##
+
+# install dir
+dist
+
+# Target build dirs
+.a1x-newlib
+.a2x-newlib
+.at91sam7s-newlib
+
+.build-machine
+
+.a1x-glibc
+.a2x-glibc
+.h3-glibc
+.h5-glibc
+.i586-glibc
+.i686-glibc
+.imx6-glibc
+.jz47xx-glibc
+.makefile
+.am335x-glibc
+.omap543x-glibc
+.p5600-glibc
+.power8-glibc
+.power8le-glibc
+.power9-glibc
+.power9le-glibc
+.m1000-glibc
+.riscv64-glibc
+.rk328x-glibc
+.rk33xx-glibc
+.rk339x-glibc
+.rk358x-glibc
+.s8xx-glibc
+.s9xx-glibc
+.x86_64-glibc
+
+# Hidden files (each file)
+.makefile
+.dist
+.rootfs
+
+# src & hw requires
+.src_requires
+.src_requires_depend
+.requires
+.requires_depend
+
+# Tarballs
+*.gz
+*.bz2
+*.lz
+*.xz
+*.tgz
+*.txz
+
+# Signatures
+*.asc
+*.sig
+*.sign
+*.sha1sum
+
+# Patches
+*.patch
+
+# Descriptions
+*.dsc
+*.txt
+
+# Default linux config files
+*.defconfig
+
+# backup copies
+*~
Index: radix-1.9/products/X11/Makefile
===================================================================
--- radix-1.9/products/X11/Makefile (revision 251)
+++ radix-1.9/products/X11/Makefile (revision 252)
@@ -486,6 +486,7 @@
endif
REQUIRES += X11/app/desktop-file-utils/0.26
+REQUIRES += X11/app/xdg-desktop-portal/1.18.2
REQUIRES += X11/app/xdg-user-dirs/0.18
REQUIRES += X11/app/pyxdg/0.28
REQUIRES += X11/libs/hicolor-icon-theme/0.17
Index: radix-1.9/sources/packages/x/xdg-desktop-portal/Makefile
===================================================================
--- radix-1.9/sources/packages/x/xdg-desktop-portal/Makefile (nonexistent)
+++ radix-1.9/sources/packages/x/xdg-desktop-portal/Makefile (revision 252)
@@ -0,0 +1,56 @@
+
+COMPONENT_TARGETS = $(HARDWARE_NOARCH)
+
+
+include ../../../../build-system/constants.mk
+
+
+url = $(DOWNLOAD_SERVER)/sources/packages/x/xdg-desktop-portal
+
+versions = 1.18.2
+pkgname = xdg-desktop-portal
+suffix = tar.xz
+
+tarballs = $(addsuffix .$(suffix), $(addprefix $(pkgname)-, $(versions)))
+sha1s = $(addsuffix .sha1sum, $(tarballs))
+
+patches = $(CURDIR)/patches/xdg-desktop-portal-1.18.2-bwrap-cross.patch
+
+.NOTPARALLEL: $(patches)
+
+
+BUILD_TARGETS = $(tarballs) $(sha1s) $(patches)
+
+
+include ../../../../build-system/core.mk
+
+
+.PHONY: download_clean
+
+
+$(tarballs):
+ @echo -e "\n======= Downloading source tarballs =======" ; \
+ for tarball in $(tarballs) ; do \
+ echo "$(url)/$$tarball" | xargs -n 1 -P 100 wget $(WGET_OPTIONS) - & \
+ done ; wait
+
+$(sha1s): $(tarballs)
+ @for sha in $@ ; do \
+ echo -e "\n======= Downloading '$$sha' signature =======\n" ; \
+ echo "$(url)/$$sha" | xargs -n 1 -P 100 wget $(WGET_OPTIONS) - & wait %1 ; \
+ touch $$sha ; \
+ echo -e "\n======= Check the '$$sha' sha1sum =======\n" ; \
+ sha1sum --check $$sha ; ret="$$?" ; \
+ if [ "$$ret" == "1" ]; then \
+ echo -e "\n======= ERROR: Bad '$$sha' sha1sum =======\n" ; \
+ exit 1 ; \
+ fi ; \
+ done
+
+$(patches): $(sha1s)
+ @echo -e "\n======= Create Patches =======\n" ; \
+ ( cd create-1.18.2-bwrap-cross-patch ; ./create.patch.sh ) ; \
+ echo -e "\n"
+
+download_clean:
+ @rm -f $(tarballs) $(sha1s) $(patches)
Index: radix-1.9/sources/packages/x/xdg-desktop-portal/create-1.18.2-bwrap-cross-patch/create.patch.sh
===================================================================
--- radix-1.9/sources/packages/x/xdg-desktop-portal/create-1.18.2-bwrap-cross-patch/create.patch.sh (nonexistent)
+++ radix-1.9/sources/packages/x/xdg-desktop-portal/create-1.18.2-bwrap-cross-patch/create.patch.sh (revision 252)
@@ -0,0 +1,15 @@
+#!/bin/sh
+
+VERSION=1.18.2
+
+tar --files-from=file.list -xJvf ../xdg-desktop-portal-$VERSION.tar.xz
+mv xdg-desktop-portal-$VERSION xdg-desktop-portal-$VERSION-orig
+
+cp -rf ./xdg-desktop-portal-$VERSION-new ./xdg-desktop-portal-$VERSION
+
+diff --unified -Nr xdg-desktop-portal-$VERSION-orig xdg-desktop-portal-$VERSION > xdg-desktop-portal-$VERSION-bwrap-cross.patch
+
+mv xdg-desktop-portal-$VERSION-bwrap-cross.patch ../patches
+
+rm -rf ./xdg-desktop-portal-$VERSION
+rm -rf ./xdg-desktop-portal-$VERSION-orig
Property changes on: radix-1.9/sources/packages/x/xdg-desktop-portal/create-1.18.2-bwrap-cross-patch/create.patch.sh
___________________________________________________________________
Added: svn:executable
## -0,0 +1 ##
+*
\ No newline at end of property
Index: radix-1.9/sources/packages/x/xdg-desktop-portal/create-1.18.2-bwrap-cross-patch/file.list
===================================================================
--- radix-1.9/sources/packages/x/xdg-desktop-portal/create-1.18.2-bwrap-cross-patch/file.list (nonexistent)
+++ radix-1.9/sources/packages/x/xdg-desktop-portal/create-1.18.2-bwrap-cross-patch/file.list (revision 252)
@@ -0,0 +1 @@
+xdg-desktop-portal-1.18.2/meson.build
Index: radix-1.9/sources/packages/x/xdg-desktop-portal/create-1.18.2-bwrap-cross-patch/xdg-desktop-portal-1.18.2-new/meson.build
===================================================================
--- radix-1.9/sources/packages/x/xdg-desktop-portal/create-1.18.2-bwrap-cross-patch/xdg-desktop-portal-1.18.2-new/meson.build (nonexistent)
+++ radix-1.9/sources/packages/x/xdg-desktop-portal/create-1.18.2-bwrap-cross-patch/xdg-desktop-portal-1.18.2-new/meson.build (revision 252)
@@ -0,0 +1,208 @@
+project(
+ 'xdg-desktop-portal',
+ 'c',
+ version: '1.18.2',
+ meson_version: '>= 0.58',
+ license: 'LGPL-2.0-or-later',
+ default_options: ['warning_level=2'])
+
+###### various directories we'll use later
+# foodir are built-in ones, foo_dir are our options
+
+prefix = get_option('prefix')
+datadir = prefix / get_option('datadir')
+libexecdir = prefix / get_option('libexecdir')
+sysconfdir = prefix / get_option('sysconfdir')
+localedir = prefix / get_option('localedir')
+dbus_service_dir = get_option('dbus-service-dir')
+if dbus_service_dir == ''
+ dbus_service_dir = prefix / datadir / 'dbus-1' / 'services'
+endif
+
+flatpak_intf_dir = get_option('flatpak-interfaces-dir')
+if flatpak_intf_dir == ''
+ flatpak_dep = dependency('flatpak', version: '>= 1.5.0', required: get_option('flatpak-interfaces'))
+ if flatpak_dep.found()
+ flatpak_intf_dir = flatpak_dep.get_variable(pkgconfig: 'interfaces_dir')
+ endif
+endif
+
+systemd_userunit_dir = get_option('systemd-user-unit-dir')
+if systemd_userunit_dir == ''
+ # This is deliberately not ${libdir}: systemd units always go in
+ # .../lib, never .../lib64 or .../lib/x86_64-linux-gnu
+ systemd_userunit_dir = prefix / 'lib' / 'systemd' / 'user'
+endif
+
+dataroot_dir = get_option('datarootdir')
+if dataroot_dir == ''
+ dataroot_dir = datadir
+endif
+
+installed_tests_dir = prefix / libexecdir / 'installed-tests' / meson.project_name()
+installed_tests_data_dir = prefix / datadir / 'installed-tests' / meson.project_name()
+docs_dir = datadir / 'doc' / meson.project_name()
+
+summary({
+ 'DBus service dir': dbus_service_dir,
+ 'Flatpak interfaces dir': flatpak_intf_dir,
+ 'systemd user unit dir': systemd_userunit_dir,
+ 'Installed tests dir': installed_tests_dir,
+ },
+ section: 'Directories',
+)
+
+###### various include directories we'll use later
+# These are set here so meson handles the relative paths correctly,
+# makes life easier for us
+
+common_includes = include_directories('.') # config.h
+src_includes = include_directories('src')
+
+###### plugins, dependencies, compiler setup
+
+i18n = import('i18n')
+gnome = import('gnome')
+pkgconfig = import('pkgconfig')
+
+cc = meson.get_compiler('c')
+cflags = [
+ '-Wno-unused-parameter',
+ '-Wno-sign-compare',
+ '-Wno-missing-field-initializers',
+]
+add_project_arguments(cc.get_supported_arguments(cflags), language : 'c')
+
+config_h = configuration_data()
+config_h.set('_GNU_SOURCE', 1)
+config_h.set_quoted('G_LOG_DOMAIN', 'xdg-desktop-portal')
+config_h.set_quoted('DATADIR', datadir)
+config_h.set_quoted('LIBEXECDIR', libexecdir)
+config_h.set_quoted('LOCALEDIR', localedir)
+config_h.set_quoted('SYSCONFDIR', sysconfdir)
+config_h.set_quoted('GETTEXT_PACKAGE', 'xdg-desktop-portal')
+config_h.set_quoted('PACKAGE_STRING', 'xdg-desktop-portal @0@'.format(meson.project_version()))
+if cc.has_function('renameat2')
+ config_h.set('HAVE_RENAMEAT2', 1)
+endif
+
+check_headers = [
+ ['sys/vfs.h', 'HAVE_SYS_VFS_H'],
+ ['sys/mount.h', 'HAVE_SYS_MOUNT_H'],
+ ['sys/statfs.h', 'HAVE_SYS_STATFS_H'],
+ ['sys/xattr.h', 'HAVE_SYS_XATTR_H'],
+ ['sys/extattr.h', 'HAVE_SYS_EXTATTR_H'],
+]
+
+foreach h : check_headers
+ config_h.set(h.get(1), cc.has_header(h.get(0)))
+endforeach
+
+glib_dep = dependency('glib-2.0', version: '>= 2.66')
+gio_dep = dependency('gio-2.0')
+gio_unix_dep = dependency('gio-unix-2.0')
+json_glib_dep = dependency('json-glib-1.0')
+fuse3_dep = dependency('fuse3', version: '>= 3.10.0')
+gdk_pixbuf_dep = dependency('gdk-pixbuf-2.0')
+geoclue_dep = dependency('libgeoclue-2.0',
+ version: '>= 2.5.2',
+ required: get_option('geoclue'))
+libportal_dep = dependency('libportal',
+ required: get_option('libportal'))
+pipewire_dep = dependency('libpipewire-0.3', version: '>= 0.2.90')
+libsystemd_dep = dependency('libsystemd', required: get_option('systemd'))
+
+
+use_bwrap = get_option('sandboxed-image-validation')
+bwrap = find_program('bwrap', required: false)
+
+if not use_bwrap
+ warning('''
+ Sandboxed image validation with Bubblewrap is DISABLED.
+ If your system can run Bubblewrap, it's **hightly** recommended that you enable this
+ option. Bitmap validation and processing is a common attack vector.
+ By proceeding with sandboxed image validation disabled, you acknowledge that you
+ are lowering your system's security, and are subject to known or unknown exploits.
+ ''')
+endif
+
+have_libportal = libportal_dep.found()
+if have_libportal
+ config_h.set('HAVE_LIBPORTAL', 1)
+endif
+
+have_geoclue = geoclue_dep.found()
+if have_geoclue
+ config_h.set('HAVE_GEOCLUE', 1)
+endif
+
+have_libsystemd = libsystemd_dep.found()
+if have_libsystemd
+ config_h.set('HAVE_LIBSYSTEMD', 1)
+endif
+
+add_project_arguments(['-DGLIB_VERSION_MIN_REQUIRED=GLIB_VERSION_2_66'], language: 'c')
+
+build_docbook = false
+xmlto = find_program('xmlto', required: get_option('docbook-docs'))
+if xmlto.found()
+ fs = import('fs')
+ # we're going to copy this file in to our build tree
+ if fs.is_file(flatpak_intf_dir / 'org.freedesktop.portal.Flatpak.xml')
+ build_docbook = true
+ elif get_option('docbook-docs').enabled()
+ error('Flatpak development files are required to build DocBook docs')
+ endif
+endif
+
+rst2man = find_program('rst2man', 'rst2man.py', required: get_option('man-pages'))
+
+enable_installed_tests = get_option('installed-tests')
+
+###### systemd units, dbus service files, pkgconfig
+
+base_config = configuration_data()
+base_config.set('prefix', prefix)
+base_config.set('datadir', datadir)
+base_config.set('datarootdir', dataroot_dir)
+base_config.set('libexecdir', libexecdir)
+base_config.set('VERSION', meson.project_version())
+base_config.set('extraargs', '')
+
+pkgconfig = import('pkgconfig')
+pkgconfig.generate(
+ name: 'xdg-desktop-portal',
+ description: 'Desktop integration portal',
+ dataonly: true,
+ variables: {
+ 'prefix': get_option('prefix'),
+ 'datarootdir': dataroot_dir,
+ 'datadir': '${prefix}/@0@'.format(get_option('datadir')),
+ 'interfaces_dir': '${datadir}/dbus-1/interfaces/',
+ },
+)
+
+subdir('data')
+subdir('src')
+subdir('document-portal')
+subdir('tests')
+subdir('po')
+subdir('doc')
+
+###### generate config.h
+configure_file(output: 'config.h', configuration: config_h)
+
+summary({
+ 'Enable docbook documentation': build_docbook,
+ 'Enable libsystemd support': have_libsystemd,
+ 'Enable geoclue support': have_geoclue,
+ 'Enable libportal support': have_libportal,
+ 'Enable installed tests:': enable_installed_tests,
+ 'Enable python test suite': enable_pytest,
+ 'Build man pages': rst2man.found(),
+ 'Build flatpak interfaces': flatpak_intf_dir != '',
+ 'Sandboxed image validation': use_bwrap,
+ },
+ section: 'Optional builds',
+ bool_yn: true,
+)
Index: radix-1.9/sources/packages/x/xdg-desktop-portal/patches/README
===================================================================
--- radix-1.9/sources/packages/x/xdg-desktop-portal/patches/README (nonexistent)
+++ radix-1.9/sources/packages/x/xdg-desktop-portal/patches/README (revision 252)
@@ -0,0 +1,6 @@
+
+/* begin *
+
+ TODO: Leave some comment here.
+
+ * end */
Index: radix-1.9/sources/packages/x/xdg-desktop-portal/patches
===================================================================
--- radix-1.9/sources/packages/x/xdg-desktop-portal/patches (nonexistent)
+++ radix-1.9/sources/packages/x/xdg-desktop-portal/patches (revision 252)
Property changes on: radix-1.9/sources/packages/x/xdg-desktop-portal/patches
___________________________________________________________________
Added: svn:ignore
## -0,0 +1,74 ##
+
+# install dir
+dist
+
+# Target build dirs
+.a1x-newlib
+.a2x-newlib
+.at91sam7s-newlib
+
+.build-machine
+
+.a1x-glibc
+.a2x-glibc
+.h3-glibc
+.h5-glibc
+.i586-glibc
+.i686-glibc
+.imx6-glibc
+.jz47xx-glibc
+.makefile
+.am335x-glibc
+.omap543x-glibc
+.p5600-glibc
+.power8-glibc
+.power8le-glibc
+.power9-glibc
+.power9le-glibc
+.m1000-glibc
+.riscv64-glibc
+.rk328x-glibc
+.rk33xx-glibc
+.rk339x-glibc
+.rk358x-glibc
+.s8xx-glibc
+.s9xx-glibc
+.x86_64-glibc
+
+# Hidden files (each file)
+.makefile
+.dist
+.rootfs
+
+# src & hw requires
+.src_requires
+.src_requires_depend
+.requires
+.requires_depend
+
+# Tarballs
+*.gz
+*.bz2
+*.lz
+*.xz
+*.tgz
+*.txz
+
+# Signatures
+*.asc
+*.sig
+*.sign
+*.sha1sum
+
+# Patches
+*.patch
+
+# Descriptions
+*.dsc
+*.txt
+
+# Default linux config files
+*.defconfig
+
+# backup copies
+*~
Index: radix-1.9/sources/packages/x/xdg-desktop-portal
===================================================================
--- radix-1.9/sources/packages/x/xdg-desktop-portal (nonexistent)
+++ radix-1.9/sources/packages/x/xdg-desktop-portal (revision 252)
Property changes on: radix-1.9/sources/packages/x/xdg-desktop-portal
___________________________________________________________________
Added: svn:ignore
## -0,0 +1,74 ##
+
+# install dir
+dist
+
+# Target build dirs
+.a1x-newlib
+.a2x-newlib
+.at91sam7s-newlib
+
+.build-machine
+
+.a1x-glibc
+.a2x-glibc
+.h3-glibc
+.h5-glibc
+.i586-glibc
+.i686-glibc
+.imx6-glibc
+.jz47xx-glibc
+.makefile
+.am335x-glibc
+.omap543x-glibc
+.p5600-glibc
+.power8-glibc
+.power8le-glibc
+.power9-glibc
+.power9le-glibc
+.m1000-glibc
+.riscv64-glibc
+.rk328x-glibc
+.rk33xx-glibc
+.rk339x-glibc
+.rk358x-glibc
+.s8xx-glibc
+.s9xx-glibc
+.x86_64-glibc
+
+# Hidden files (each file)
+.makefile
+.dist
+.rootfs
+
+# src & hw requires
+.src_requires
+.src_requires_depend
+.requires
+.requires_depend
+
+# Tarballs
+*.gz
+*.bz2
+*.lz
+*.xz
+*.tgz
+*.txz
+
+# Signatures
+*.asc
+*.sig
+*.sign
+*.sha1sum
+
+# Patches
+*.patch
+
+# Descriptions
+*.dsc
+*.txt
+
+# Default linux config files
+*.defconfig
+
+# backup copies
+*~