Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 914510 - sys-apps/xdg-desktop-portal-1.18.0 can not find a suitable python implementation in the ebuild
Summary: sys-apps/xdg-desktop-portal-1.18.0 can not find a suitable python implementat...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo KDE team
URL:
Whiteboard:
Keywords: PullRequest
Depends on:
Blocks:
 
Reported: 2023-09-22 08:06 UTC by Mia Neufeld
Modified: 2023-09-22 17:03 UTC (History)
9 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
build log (build.log,2.11 KB, text/x-log)
2023-09-22 08:06 UTC, Mia Neufeld
Details
emerge --info (emerge.info,19.27 KB, text/plain)
2023-09-22 08:06 UTC, Mia Neufeld
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Mia Neufeld 2023-09-22 08:06:35 UTC
Created attachment 871093 [details]
build log

Short excerpt from the build.log

 * No Python implementation found for the build. This is usually
 * a bug in the ebuild. Please report it to bugs.gentoo.org
 * along with the build log

Reproducible in a chroot after updating and `ACCEPT_KEYWORDS="~amd64" emerge -1 xdg-desktop-portal`
Comment 1 Mia Neufeld 2023-09-22 08:06:54 UTC
Created attachment 871094 [details]
emerge --info
Comment 2 HougeLangley 2023-09-22 09:00:27 UTC
Same problem
Comment 3 Mia Neufeld 2023-09-22 09:14:38 UTC
I have created a pull request to address this issue. 

Currently, the ebuild always calls python_setup, and in turn, python_check_deps, however with USE="-test" the necessary dependencies will not be installed.

https://github.com/gentoo/gentoo/pull/32987
Comment 4 darkbasic 2023-09-22 10:09:37 UTC
Unfortunately I still get data/meson.build:4:25: ERROR: File /usr/share/dbus-1/interfaces/org.freedesktop.portal.Flatpak.xml does not exist. after applying the patch.

 * Package:    sys-apps/xdg-desktop-portal-1.18.0:0
 * Repository: gentoo
 * Maintainer: kde@gentoo.org
 * USE:        elibc_glibc kernel_linux ppc64 systemd
 * FEATURES:   network-sandbox preserve-libs sandbox userpriv usersandbox


 * Applying xdg-desktop-portal-1.18.0-sandbox-disable-failing-tests.patch ...
 [ ok ]
meson setup --libdir lib64 --localstatedir /var/lib --prefix /usr --sysconfdir /etc --wrap-mode nodownload --build.pkg-config-path /usr/share/pkgconfig --pkg-config-path /usr/share/pkgconfig --native-file /var/tmp/portage/sys-apps/xdg-desktop-portal-1.18.0/temp/meson.powerpc64le-un>
The Meson build system
Version: 1.1.1
Source dir: /var/tmp/portage/sys-apps/xdg-desktop-portal-1.18.0/work/xdg-desktop-portal-1.18.0
Build dir: /var/tmp/portage/sys-apps/xdg-desktop-portal-1.18.0/work/xdg-desktop-portal-1.18.0-build
Build type: native build
Project name: xdg-desktop-portal
Project version: 1.18.0
C compiler for the host machine: powerpc64le-unknown-linux-gnu-gcc (gcc 12.3.1 "powerpc64le-unknown-linux-gnu-gcc (Gentoo 12.3.1_p20230526 p2) 12.3.1 20230526")
C linker for the host machine: powerpc64le-unknown-linux-gnu-gcc ld.bfd 2.40
Host machine cpu family: ppc64
Host machine cpu: ppc64le
Compiler for C supports arguments -Wno-unused-parameter: YES
Compiler for C supports arguments -Wno-sign-compare: YES
Compiler for C supports arguments -Wno-missing-field-initializers: YES
Checking for function "renameat2" : YES
Has header "sys/vfs.h" : YES
Has header "sys/mount.h" : YES
Has header "sys/statfs.h" : YES
Has header "sys/xattr.h" : YES
Has header "sys/extattr.h" : NO
Found pkg-config: /usr/bin/powerpc64le-unknown-linux-gnu-pkg-config (1.8.1)
Run-time dependency glib-2.0 found: YES 2.78.0
Run-time dependency gio-2.0 found: YES 2.78.0
Run-time dependency gio-unix-2.0 found: YES 2.78.0
Run-time dependency json-glib-1.0 found: YES 1.6.6
Run-time dependency fuse3 found: YES 3.15.1
Run-time dependency gdk-pixbuf-2.0 found: YES 2.42.10
Dependency libgeoclue-2.0 skipped: feature geoclue disabled
Dependency libportal skipped: feature libportal disabled
Run-time dependency libpipewire-0.3 found: YES 0.3.80
Run-time dependency libsystemd found: YES 253
Program bwrap found: YES (/usr/bin/bwrap)
Program xmlto skipped: feature docbook-docs disabled
Program rst2man rst2man.py skipped: feature man-pages disabled

data/meson.build:4:25: ERROR: File /usr/share/dbus-1/interfaces/org.freedesktop.portal.Flatpak.xml does not exist.

A full log can be found at /var/tmp/portage/sys-apps/xdg-desktop-portal-1.18.0/work/xdg-desktop-portal-1.18.0-build/meson-logs/meson-log.txt
 * ERROR: sys-apps/xdg-desktop-portal-1.18.0::gentoo failed (configure phase):
 *   (no error message)
 *
 * Call stack:
 *     ebuild.sh, line  136:  Called src_configure
 *   environment, line 2431:  Called meson_src_configure
 *   environment, line 1768:  Called die
 * The specific snippet of code:
 *	 "${mesonargs[@]}" ) || die
 *
 * If you need support, post the output of `emerge --info '=sys-apps/xdg-desktop-portal-1.18.0::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=sys-apps/xdg-desktop-portal-1.18.0::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/sys-apps/xdg-desktop-portal-1.18.0/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/sys-apps/xdg-desktop-portal-1.18.0/temp/environment'.
 * Working directory: '/var/tmp/portage/sys-apps/xdg-desktop-portal-1.18.0/work/xdg-desktop-portal-1.18.0'
 * S: '/var/tmp/portage/sys-apps/xdg-desktop-portal-1.18.0/work/xdg-desktop-portal-1.18.0'

# emerge --info
Portage 3.0.49 (python 3.11.5-final-0, default/linux/ppc64le/17.0/desktop/gnome/systemd/merged-usr, gcc-12, glibc-2.37-r3, 6.5.4-gentoo-dist ppc64le)
=================================================================
System uname: Linux-6.5.4-gentoo-dist-ppc64le-POWER9,_altivec_supported-with-glibc2.37
KiB Mem:    65402440 total,  21721472 free
KiB Swap:   16777212 total,  16748316 free
Timestamp of repository bobwya: Wed, 20 Sep 2023 20:03:36 +0000
Head commit of repository bobwya: f51d909d21ec3ad9688e1f732c0b3e797efb993f

Timestamp of repository gentoo: Fri, 22 Sep 2023 09:46:43 +0000
Head commit of repository gentoo: 0d24697f10131d7bbae594a5041ac803d176d5ce

Timestamp of repository guru: Thu, 21 Sep 2023 10:16:31 +0000
Head commit of repository guru: f7671961d421cdbc6a8ab94372548df7c0da2934

Timestamp of repository pf4public: Thu, 21 Sep 2023 23:01:36 +0000
Head commit of repository pf4public: 5fe7d4b117197ca068ea8a80c83bbb74d51886d8

sh bash 5.1_p16-r6
ld GNU ld (Gentoo 2.40 p5) 2.40.0
ccache version 4.8.2 [disabled]
app-misc/pax-utils:        1.3.7::gentoo
app-shells/bash:           5.1_p16-r6::gentoo
dev-java/java-config:      2.3.1-r1::gentoo
dev-lang/perl:             5.38.0-r1::gentoo
dev-lang/python:           3.11.5::gentoo
dev-lang/rust:             1.71.1::gentoo
dev-util/ccache:           4.8.2::gentoo
dev-util/cmake:            3.26.5-r2::gentoo
dev-util/meson:            1.1.1::gentoo
sys-apps/baselayout:       2.14::gentoo
sys-apps/sandbox:          2.37::gentoo
sys-apps/systemd:          253.6::gentoo
sys-devel/autoconf:        2.13-r7::gentoo, 2.71-r6::gentoo
sys-devel/automake:        1.16.5::gentoo
sys-devel/binutils:        2.40-r5::gentoo
sys-devel/binutils-config: 5.5::gentoo
sys-devel/clang:           15.0.7-r3::gentoo, 16.0.6::gentoo
sys-devel/gcc:             12.3.1_p20230526::gentoo
sys-devel/gcc-config:      2.11::gentoo
sys-devel/libtool:         2.4.7-r1::gentoo
sys-devel/lld:             16.0.6::gentoo
sys-devel/llvm:            15.0.7-r3::gentoo, 16.0.6::gentoo
sys-devel/make:            4.4.1-r1::gentoo
sys-kernel/linux-headers:  6.1::gentoo (virtual/os-headers)
sys-libs/glibc:            2.37-r3::gentoo
Repositories:

bobwya
    location: /var/db/repos/bobwya
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/bobwya.git
    masters: gentoo
    priority: -1100
    volatile: False

gentoo
    location: /var/db/repos/gentoo
    sync-type: git
    sync-uri: https://anongit.gentoo.org/git/repo/sync/gentoo.git
    priority: -1000
    volatile: False
    sync-git-verify-commit-signature: yes

darkbasic
    location: /var/db/repos/darkbasic
    masters: gentoo
    volatile: False

guru
    location: /var/db/repos/guru
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/guru.git
    masters: gentoo
    volatile: False

pf4public
    location: /var/db/repos/pf4public
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/pf4public.git
    masters: gentoo
    volatile: False

ACCEPT_KEYWORDS="ppc64"
ACCEPT_LICENSE="@FREE @FREE unRAR fping freedist Microsoft-vscode SSPL-1"
CBUILD="powerpc64le-unknown-linux-gnu"
CFLAGS="-O2 -pipe -mcpu=power9 -mtune=power9"
CHOST="powerpc64le-unknown-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/config /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php8.1/ext-active/ /etc/php/cgi-php8.1/ext-active/ /etc/php/cli-php8.1/ext-active/ /etc/php/fpm-php8.1/ext-active/ /etc/php/phpdbg-php8.1/ext-active/ /etc/revdep-rebuild /etc/sandbox.d"
CXXFLAGS="-O2 -pipe -mcpu=power9 -mtune=power9"
DISTDIR="/var/cache/distfiles"
ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY GDK_PIXBUF_MODULE_FILE GOBIN GOPATH PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR XDG_STATE_HOME"
FCFLAGS="-O2 -pipe -mcpu=power9 -mtune=power9"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs buildpkg-live config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch pid-sandbox preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe -mcpu=power9 -mtune=power9"
GENTOO_MIRRORS="https://gentoo.mirror.garr.it/"
LANG="en_US.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LEX="flex"
MAKEOPTS="-j32"
PKGDIR="/var/cache/binpkgs"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
SHELL="/bin/bash"
USE="X a52 aac acl alsa bluetooth branding btrfs bzip2 cairo cdda cdr cli colord crypt cups dbus dri dts dvd dvdr eds encode evo exif flac fortran gdbm gif gnome gnome-keyring gnome-online-accounts gpm grub gstreamer gtk gui iconv icu introspection ipv6 jpeg keyring lcms libnotify mad mng mp3 mp4 mpeg nautilus ncurses networkmanager nls nptl ogg opencl opengl openmp pam pango pcre pdf pipewire png policykit ppc64 ppds pulseaudio qt5 readline screencast sdl seccomp sound spell ssl startup-notification svg systemd test-rust tiff tracker truetype udev udisks unicode upower usb vaapi vorbis vpx vulkan wayland wxwidgets x264 xattr xcb xft xml xv xvid zeroconf zlib" ADA_TARGET="gnat_2021" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="karbon sheets words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_PPC="altivec vsx vsx2 vsx3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="libinput" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php8-1" POSTGRES_TARGETS="postgres13" PYTHON_SINGLE_TARGET="python3_11" PYTHON_TARGETS="python3_11" QEMU_SOFTMMU_TARGETS="ppc ppc64 i386 x86_64 arm aarch64" QEMU_USER_TARGETS="ppc ppc64 i386 x86_64 arm aarch64" RUBY_TARGETS="ruby31" VIDEO_CARDS="amdgpu radeon" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq proto steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  ADDR2LINE, AR, ARFLAGS, AS, ASFLAGS, CC, CCLD, CONFIG_SHELL, CPP, CPPFLAGS, CTARGET, CXX, CXXFILT, ELFEDIT, EMERGE_DEFAULT_OPTS, EXTRA_ECONF, F77FLAGS, FC, GCOV, GPROF, INSTALL_MASK, LC_ALL, LD, LFLAGS, LIBTOOL, LINGUAS, MAKE, MAKEFLAGS, NM, OBJCOPY, OBJDUMP, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, RANLIB, READELF, RUSTFLAGS, SIZE, STRINGS, STRIP, YACC, YFLAGS
Comment 5 Andreas 2023-09-22 10:11:19 UTC
With the patch it solves the python issue but fails a little bit later:

Dependency libgeoclue-2.0 skipped: feature geoclue disabled
Dependency libportal skipped: feature libportal disabled
Run-time dependency libpipewire-0.3 found: YES 0.3.80
Dependency libsystemd skipped: feature systemd disabled
Program bwrap found: NO

meson.build:117:8: ERROR: Program 'bwrap' not found or not executable
Comment 6 darkbasic 2023-09-22 10:12:52 UTC
Maybe we could add a flatpak use flag?
Comment 7 Bernd Feige 2023-09-22 10:51:29 UTC
Here, configure works, without patch, if I emerge dev-python/python-dbusmock before. Seems that sys-apps/xdg-desktop-portal-1.18 should depend on that.
Comment 8 darkbasic 2023-09-22 11:15:48 UTC
I've tried to emerge dev-python/python-dbusmock-0.29.1 but it didn't help: the patch is still needed.
Comment 9 Harris Landgarten 2023-09-22 12:16:53 UTC
on my system, I installed python-dbusmock and sys-apps/flatplat and then xdg-desktop-portal built to completion.
Comment 10 Tiernan Hubble 2023-09-22 14:17:45 UTC
In addition to the required Python patch fix, it looks like "sys-apps/bubblewrap" and "sys-apps/flatpak" are not optional when using the Meson build system:
https://github.com/flatpak/xdg-desktop-portal/commit/2e68670fa0a19dd6616c789636b330805c3069dc
https://github.com/flatpak/xdg-desktop-portal/commit/a6ba779e6affda3fb19ab9f4c8977f4e8bb0ff20

Previous versions were using the Makefile build system which apparently didn't have this constraint.

I installed both packages (as well as applying the Python patch) and xdg-desktop-portal-1.18.0 now builds and installs fine.

I'm not sure if this is necessary, or possible to patch? I don't intend to use Flatpak, but I guess it's not a huge deal to have it installed.
Comment 11 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-09-22 14:22:16 UTC
Yeah, see https://github.com/gentoo/gentoo/pull/32987#issuecomment-1731474964 wrt flatpak.
Comment 12 Drew W 2023-09-22 16:28:27 UTC
(In reply to Harris Landgarten from comment #9)
> on my system, I installed python-dbusmock and sys-apps/flatplat and then
> xdg-desktop-portal built to completion.

This did not fix the issue for me.
Comment 13 Larry the Git Cow gentoo-dev 2023-09-22 17:01:32 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f492ba3ccf3ee97f3fadc98d70da398ca61c4c85

commit f492ba3ccf3ee97f3fadc98d70da398ca61c4c85
Author:     Mia Neufeld <mia@xenialinux.com>
AuthorDate: 2023-09-22 08:59:05 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2023-09-22 17:01:21 +0000

    sys-apps/xdg-desktop-portal: Fix python_setup for USE="-test"
    
    Closes: https://bugs.gentoo.org/914510
    Signed-off-by: Mia Neufeld <mia@xenialinux.com>
    Closes: https://github.com/gentoo/gentoo/pull/32987
    Signed-off-by: Sam James <sam@gentoo.org>

 sys-apps/xdg-desktop-portal/xdg-desktop-portal-1.18.0.ebuild | 4 ++++
 1 file changed, 4 insertions(+)

Additionally, it has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b17fcfae7a5b01d42d887380cb74386c00a6e6bd

commit b17fcfae7a5b01d42d887380cb74386c00a6e6bd
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2023-09-22 16:53:37 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2023-09-22 17:01:21 +0000

    sys-apps/xdg-desktop-portal: various fixes
    
    * Fix missing flatpak, bubblewrap dependencies. 1.18.0 makes these mandatory
      by way of dropping autotools support. Previous versions always required this
      in their meson build system, but we didn't use meson before.
    
      Include a variant of https://github.com/flatpak/xdg-desktop-portal/pull/1100 on top
      to make flatpak optional as well as bubblewrap (we need the latter optional
      because not all of our platforms support seccomp).
    
    * Fix dependency sorting. Only GNOME uses the 'in order of build system' rule,
      others usually do alphabetical.
    
    * Always install man pages per QA policy.
    
    Bug: https://bugs.gentoo.org/914510
    Fixes: de9365facce0ed2d37216f8cd73c64d7ef2b2a64
    Signed-off-by: Sam James <sam@gentoo.org>

 profiles/arch/powerpc/ppc32/package.use.mask       |  4 ++
 ...-allow-linux-to-build-without-flatpak-ins.patch | 37 ++++++++++++++
 ...d-allow-linux-to-build-without-bubblewrap.patch | 33 +++++++++++++
 .../files/0003-Make-flatpak-bwrap-optional.patch   | 57 ++++++++++++++++++++++
 sys-apps/xdg-desktop-portal/metadata.xml           |  4 ++
 ....ebuild => xdg-desktop-portal-1.18.0-r1.ebuild} | 33 ++++++++-----
 6 files changed, 157 insertions(+), 11 deletions(-)