Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[solved] xdg-desktop-portal-kde-5.15.5-r1 fails to build
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Unsupported Software
View previous topic :: View next topic  
Author Message
Elleni
Veteran
Veteran


Joined: 23 May 2006
Posts: 1289

PostPosted: Sat May 18, 2019 9:46 pm    Post subject: [solved] xdg-desktop-portal-kde-5.15.5-r1 fails to build Reply with quote

Should I file a bug, or is there a known fix?

build log:
http://dpaste.com/1MMCQY8

emerge --info
Code:
Portage 2.3.62 (python 3.6.5-final-0, default/linux/amd64/17.0/desktop/plasma, gcc-8.3.0, glibc-2.29-r2, 4.19.37-gentoo x86_64)
=================================================================
System uname: Linux-4.19.37-gentoo-x86_64-Intel-R-_Core-TM-_i7-4790S_CPU_@_3.20GHz-with-gentoo-2.6
KiB Mem:     8121400 total,   2407220 free
KiB Swap:    8388604 total,   7590140 free
Timestamp of repository gentoo: Sat, 18 May 2019 20:00:01 +0000
Head commit of repository gentoo: 1ed19738119325f293dd2e1180ffd73b945efebf
sh bash 4.4_p23-r1
ld GNU ld (Gentoo 2.31.1 p7) 2.31.1
app-shells/bash:          4.4_p23-r1::gentoo
dev-java/java-config:     2.2.0-r4::gentoo
dev-lang/perl:            5.26.2::gentoo
dev-lang/python:          2.7.15::gentoo, 3.6.5::gentoo
dev-util/cmake:           3.14.3::gentoo
sys-apps/baselayout:      2.6-r1::gentoo
sys-apps/openrc:          0.41.2::gentoo
sys-apps/sandbox:         2.13::gentoo
sys-devel/autoconf:       2.13-r1::gentoo, 2.69-r4::gentoo
sys-devel/automake:       1.11.6-r3::gentoo, 1.16.1-r1::gentoo
sys-devel/binutils:       2.31.1-r6::gentoo
sys-devel/gcc:            8.3.0-r1::gentoo
sys-devel/gcc-config:     2.0::gentoo
sys-devel/libtool:        2.4.6-r3::gentoo
sys-devel/make:           4.2.1-r4::gentoo
sys-kernel/linux-headers: 4.14-r1::gentoo (virtual/os-headers)
sys-libs/glibc:           2.29-r2::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000
    sync-rsync-verify-jobs: 1
    sync-rsync-extra-opts:
    sync-rsync-verify-max-age: 24
    sync-rsync-verify-metamanifest: yes

x-portage
    location: /usr/local/portage
    masters: gentoo
    priority: 0

dantrell-gnome-3-32
    location: /var/lib/layman/dantrell-gnome-3-32
    masters: gentoo
    priority: 100

dantrell-gnome
    location: /var/lib/layman/dantrell-gnome
    masters: gentoo
    priority: 150

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe"
CHOST="x86_64-pc-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/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=native -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
ENV_UNSET="DBUS_SESSION_BUS_ADDRESS DISPLAY GOBIN PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR"
FCFLAGS="-march=native -O2 -pipe"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs buildpkg candy 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 sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-march=native -O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="de_CH.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="de de_DE"
MAKEOPTS="-j9"
PKGDIR="/usr/portage/packages"
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"
USE="X a52 aac acl acpi activities aes alsa amd64 avx avx2 berkdb bittorrent bluetooth branding bzip2 cairo cdda cdr cli colord crypt cups cxx dbus declarative dri dri3 dts dvd dvdr eds egl elogind emboss encode evo exif f16c fam ffmpeg flac fma3 fortran gdbm gif glamor gles gnome gnome-keyring gnome-online-accounts gnutls gpm grub gtk gtk3 gtkstyle iconv introspection ipv6 jpeg kde kipi kwallet lcms ldap libnotify libsecret libtirpc lm_sensors lvm mad mmx mmxext mng mp3 mp4 mpeg multilib nautilus ncurses nls nptl ocr ogg opengl openmp osmesa pam pango pclmul pcre pdf phonon plasma png policykit popcnt ppds pulseaudio qml qt5 rdp readline realtime s3tc scanner sdl seccomp semantic-desktop sna spell spice sse sse2 sse3 sse4_1 sse4_2 ssh ssl ssse3 staging startup-notification svg tcpd theora tiff tracker truetype udev udisks unicode upower usb vaapi vdpau vhost-net vkd3d vnc vorbis vpx vulkan wayland webrtc-aec widgets wxwidgets x264 xattr xcb xcomposite xml xv xvid zlib" ABI_X86="64 32" ALSA_CARDS="hda-intel" 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_X86="aes avx avx2 f16c fma3 mmx mmxext pclmul popcnt sse sse2 sse3 sse4_1 sse4_2 ssh ssl ssse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="evdev" KERNEL="linux" L10N="de" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" NETBEANS_MODULES="apisupport cnd groovy gsf harness ide identity j2ee java mobility nb php profiler soa visualweb webcommon websvccommon xml" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-6 php7-1" POSTGRES_TARGETS="postgres9_5 postgres10" PYTHON_SINGLE_TARGET="python3_6" PYTHON_TARGETS="python2_7 python3_6" QEMU_SOFTMMU_TARGETS="i386 x86_64" QEMU_USER_TARGETS="i386 x86_64" RUBY_TARGETS="ruby24" SANE_BACKENDS="pixma" USERLAND="GNU" VIDEO_CARDS="intel i965 virgl" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CC, CPPFLAGS, CTARGET, CXX, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS


Last edited by Elleni on Thu May 30, 2019 5:30 pm; edited 1 time in total
Back to top
View user's profile Send private message
asturm
Developer
Developer


Joined: 05 Apr 2007
Posts: 9303

PostPosted: Sat May 18, 2019 9:54 pm    Post subject: Reply with quote

Code:
/usr/include/pipewire/utils.h

PipeWire is not in portage.
Back to top
View user's profile Send private message
Hu
Administrator
Administrator


Joined: 06 Mar 2007
Posts: 22725

PostPosted: Sat May 18, 2019 10:56 pm    Post subject: Reply with quote

This is a bug.
Code:
In file included from /usr/include/pipewire/protocol.h:33,
                 from /usr/include/pipewire/proxy.h:99,
                 from /usr/include/pipewire/interfaces.h:32,
                 from /usr/include/pipewire/pipewire.h:31,
                 from src/xdg-desktop-portal-kde_autogen/EWIEGA46WW/../../../../xdg-desktop-portal-kde-5.15.5/src/screencaststream.h:40,
                 from src/xdg-desktop-portal-kde_autogen/EWIEGA46WW/moc_screencaststream.cpp:9,
                 from src/xdg-desktop-portal-kde_autogen/mocs_compilation.cpp:17:
/usr/include/pipewire/utils.h: In function ‘spa_pod* pw_spa_pod_copy(const spa_pod*)’:
/usr/include/pipewire/utils.h:61:17: error: invalid conversion from ‘void*’ to ‘spa_pod*’ [-fpermissive]
  if ((c = malloc(size)) == NULL)
That header is not valid C++, but a C++ program included it anyway.
Back to top
View user's profile Send private message
asturm
Developer
Developer


Joined: 05 Apr 2007
Posts: 9303

PostPosted: Sun May 19, 2019 10:06 am    Post subject: Reply with quote

https://bugs.gentoo.org/667014
Back to top
View user's profile Send private message
Elleni
Veteran
Veteran


Joined: 23 May 2006
Posts: 1289

PostPosted: Sat May 25, 2019 6:35 am    Post subject: Reply with quote

I read the bug report, but I am a bit puzzled. Does this mean that everyone having kde-plasma-meta compiled, will hit this, or is it just me. I am asking as I do not see any other users hitting this. Problem is, I cannot finish world update thus cannot issue an emerge --depclean. I also see nothing requiring this package issuing equery:

Code:
equery d xdg-desktop-portal-kde
 * These packages depend on xdg-desktop-portal-kde:



So how am I supposed to fix this? Or is it just about waiting untill pipewire will be in tree or upstream fixes/removes this dependency? Or would I have to unmerge kde-plasma-meta in order to successfully finish a world update?
Back to top
View user's profile Send private message
asturm
Developer
Developer


Joined: 05 Apr 2007
Posts: 9303

PostPosted: Sat May 25, 2019 7:27 am    Post subject: Reply with quote

asturm wrote:
If you encounter a build error related to a library that is not in Gentoo repositories, you should take it up with
a) the person you are sourcing that external package from, or
b) the upstream of the package that fails as a consequence.

We can certainly start to care about libraries not in tree on our side and hard-disable PipeWire support in xdg-desktop-portal-kde, but then someone is going to complain they can not test with it anymore.

Bug report suggests it should work with PipeWire git master, why not try that?
Back to top
View user's profile Send private message
dantrell
l33t
l33t


Joined: 01 Jun 2007
Posts: 915
Location: Earth

PostPosted: Wed May 29, 2019 11:22 am    Post subject: Reply with quote

Elleni wrote:
Should I file a bug, or is there a known fix?

I resolved this on my end.

Sync up and yada yada. ;)
_________________
Dantrell B.
Back to top
View user's profile Send private message
Elleni
Veteran
Veteran


Joined: 23 May 2006
Posts: 1289

PostPosted: Wed May 29, 2019 10:59 pm    Post subject: Reply with quote

Hey dantrell,

I had no idea this could have something to do with the combined profile until Spargeltarzan posted in your support thread. It worked at one of my two boxes, but not on the second one, there I get
this

That's what I tried to explain to asturm, I was thinking this error comes from a dependency of plasma-meta so I could not understand his point of view.

Thank you for the pointer.
Back to top
View user's profile Send private message
dantrell
l33t
l33t


Joined: 01 Jun 2007
Posts: 915
Location: Earth

PostPosted: Thu May 30, 2019 2:35 am    Post subject: Reply with quote

Elleni wrote:
[...] I was thinking this error comes from a dependency of plasma-meta so I could not understand his point of view.

To be fair, asturm wasn't as clear as he could have been.

Let's see if I can break it down a bit:

1. The reason why kde-plasma/xdg-desktop-portal-kde-5.15.5 fails to build is because it auto-magically detected that PipeWire was installed and tried to build againist it.

2. The reason why media-video/pipewire is required is because Mutter in GNOME 3.32 hard(?) depends on it.

3. The reason why kde-plasma/xdg-desktop-portal-kde pulled in at all is because kde-plasma/plasma-meta has the desktop-portal USE flag enabled.

You are looking at cause #3 and asturm is looking at cause #1. Either way, the root issue that PipeWire is installed and this isn't currently a Gentoo concern because PipeWire and GNOME 3.32 aren't in the main tree (yet) but it affects quite a few overlays.

Workarounds (i.e. solutions that don't involve fixing the build failure) include:

1. Disabling the desktop-portal USE flag on kde-plasma/plasma-meta if you don't need the desktop portal.

2. Uninstalling media-video/pipewire, installing kde-plasma/xdg-desktop-portal-kde and then reinstalling media-video/pipewire if you do need the desktop portal.

Solutions include:

1. Greg Turner's method on Gentoo bug #667014.

2. Improving on asturm's method in this thread by adding a PipeWire configure option to xdg-desktop-portal-kde and disabling it by default (this is better than hard disabling it entirely since users who want to test it can still do so).

Why the issue was resolved on only one of your two machines:

I only partially implemented Greg Turner's solution. I don't really want to roll out a "live" version of PipeWire so I'm going to finish up by implementing the latter solution.
_________________
Dantrell B.
Back to top
View user's profile Send private message
asturm
Developer
Developer


Joined: 05 Apr 2007
Posts: 9303

PostPosted: Thu May 30, 2019 7:03 am    Post subject: Reply with quote

dantrell wrote:
2. Improving on asturm's method in this thread by adding a PipeWire configure option to xdg-desktop-portal-kde and disabling it by default

Chicken-Egg problem - this is only possible where PipeWire is available, i.e. not in Gentoo ebuild repository. (the alternative, adding a USE flag without dependency, is a QA violation)
Back to top
View user's profile Send private message
dantrell
l33t
l33t


Joined: 01 Jun 2007
Posts: 915
Location: Earth

PostPosted: Thu May 30, 2019 7:22 am    Post subject: Reply with quote

asturm wrote:
Chicken-Egg problem - this is only possible where PipeWire is available, i.e. not in Gentoo ebuild repository. (the alternative, adding a USE flag without dependency, is a QA violation)

Good thing it's available on my end then. :wink:

Elleni wrote:
It worked at one of my two boxes, but not on the second one, there I get [...]

I gave kde-plasma/xdg-desktop-portal-kde a PipeWire configure option that is disabled by default.

Please sync up and try again. :twisted:
_________________
Dantrell B.
Back to top
View user's profile Send private message
asturm
Developer
Developer


Joined: 05 Apr 2007
Posts: 9303

PostPosted: Thu May 30, 2019 7:32 am    Post subject: Reply with quote

Needless to say, we would all be better off if someone added PipeWire to tree. ;)
Back to top
View user's profile Send private message
Elleni
Veteran
Veteran


Joined: 23 May 2006
Posts: 1289

PostPosted: Thu May 30, 2019 5:27 pm    Post subject: Reply with quote

Hey guys, it works now. -> [solved]. Dantrell you are among others like Neddy, szatox, Chiitoo, Hu, Ant P, pjp, krinn and many more users the reason, it makes me feel so happy and confident while using gentoo. Besides the developpers and maintainers it's YOU that make gentoo rock! Thanks a lot to all of you, I feel like I have a ton of mentors helping me out every time something is screwed on my gentoo boxes or when I try to learn something new in linux.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Unsupported Software All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum