Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 932248 - kde-apps/krdc-23.08.5-r2[rdp] doesn't work with net-misc/freerdp:3 on wayland systems
Summary: kde-apps/krdc-23.08.5-r2[rdp] doesn't work with net-misc/freerdp:3 on wayland...
Status: UNCONFIRMED
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:
Depends on:
Blocks:
 
Reported: 2024-05-20 03:07 UTC by François Bissey
Modified: 2024-09-15 18:40 UTC (History)
3 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description François Bissey 2024-05-20 03:07:58 UTC
net-misc/freerdp:3 has removed wayland client interface because it is deprecated and not maintained anymore upstream (#930197). When building krdc with rdp on a wayland system, support for wayland is not checked and you end up with a message saying that krdc cannot find wlfreerdp.
Installing freerdp:2 with the useflags wayland and client fixes the issue, but the ebuild should properly select freerdp:2 in this case.

Reproducible: Always
Comment 1 Andreas Sturmlechner gentoo-dev 2024-05-20 11:10:51 UTC
emerge --info, any versions involved ... ?
Comment 2 François Bissey 2024-05-20 22:19:33 UTC
Sure:
$ emerge --info krdc
Portage 3.0.63 (python 3.12.3-final-0, default/linux/amd64/23.0/desktop/plasma/systemd, gcc-13, glibc-2.39-r6, 6.6.30-gentoo-dist x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-6.6.30-gentoo-dist-x86_64-Intel-R-_Core-TM-_i7-9700_CPU_@_3.00GHz-with-glibc2.39
KiB Mem:    32638568 total,  25825460 free
KiB Swap:    2097148 total,   2097148 free
Timestamp of repository gentoo: Sun, 19 May 2024 10:05:00 +0000
Head commit of repository gentoo: 0ca5020ae370c9f1dc370595ed9b093e5d2f5e8b
Timestamp of repository dlang: Sun, 12 May 2024 05:06:59 +0000
Head commit of repository dlang: f726d9b277b0a0914b0fda6e7932d8ae80b7589e

Head commit of repository jaredallard-overlay: d839f8318394917b3651df4bcf98d57203500a6d

Head commit of repository sage-on-gentoo: b7955e1565b744ea41c6d51be55bf763410c3b45

Timestamp of repository science: Fri, 17 May 2024 12:21:00 +0000
Head commit of repository science: 33b8ebaab86a57fa9013e2cc1e669fe2ff2d60f8

sh bash 5.1_p16-r6
ld GNU ld (Gentoo 2.42 p3) 2.42.0
app-misc/pax-utils:        1.3.7::gentoo
app-shells/bash:           5.1_p16-r6::gentoo
dev-build/autoconf:        2.13-r8::gentoo, 2.71-r7::gentoo
dev-build/automake:        1.16.5-r2::gentoo
dev-build/cmake:           3.28.5::gentoo
dev-build/libtool:         2.4.7-r4::gentoo
dev-build/make:            4.4.1-r1::gentoo
dev-build/meson:           1.4.0-r1::gentoo
dev-java/java-config:      2.3.3-r1::gentoo
dev-lang/perl:             5.38.2-r3::gentoo
dev-lang/python:           3.10.14_p1::gentoo, 3.11.9::gentoo, 3.12.3::gentoo
dev-lang/rust-bin:         1.77.1::gentoo
sys-apps/baselayout:       2.15::gentoo
sys-apps/sandbox:          2.38::gentoo
sys-apps/systemd:          255.4::gentoo
sys-devel/binutils:        2.42-r1::gentoo
sys-devel/binutils-config: 5.5::gentoo
sys-devel/clang:           15.0.7-r3::gentoo, 16.0.6::gentoo, 17.0.6::gentoo
sys-devel/gcc:             13.2.1_p20240503::gentoo
sys-devel/gcc-config:      2.11::gentoo
sys-devel/lld:             15.0.7::gentoo, 17.0.6::gentoo
sys-devel/llvm:            15.0.7-r3::gentoo, 16.0.6::gentoo, 17.0.6::gentoo
sys-kernel/linux-headers:  6.6-r1::gentoo (virtual/os-headers)
sys-libs/glibc:            2.39-r6::gentoo
Repositories:

gentoo
    location: /var/db/repos/gentoo
    sync-type: rsync
    sync-uri: rsync://rsync.au.gentoo.org/gentoo-portage
    priority: -1000
    volatile: False
    sync-rsync-verify-jobs: 1
    sync-rsync-extra-opts: 
    sync-rsync-verify-metamanifest: yes
    sync-rsync-verify-max-age: 24

Test_overlay
    location: /home/fbissey/Work/Overlays/testing
    masters: gentoo
    volatile: True

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

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

sage-on-gentoo
    location: /var/db/repos/sage-on-gentoo
    sync-type: git
    sync-uri: https://github.com/cschwan/sage-on-gentoo.git
    masters: gentoo
    volatile: False

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

Installed sets: @sagemath
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="@FREE LPPL-1.0 GFL TeX-collection LPPL-1.3a all-rights-reserved"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/themes/oxygen-gtk/gtk-2.0"
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/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-O2 -pipe"
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"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs buildpkg-live clean-logs config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync merge-wait multilib-strict network-sandbox news parallel-fetch pid-sandbox pkgdir-index-trusted preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms sign split-log strict strict-keepdir unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync warn-on-large-env xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="https://mirror.aarnet.edu.au/pub/gentoo/"
LANG="C.UTF8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,-z,pack-relative-relocs"
LEX="flex"
LINGUAS="en en_GB fr fr_FR"
MAKEOPTS="-j8"
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="/home"
SHELL="/bin/bash"
USE="X a52 aac acl acpi activities alsa amd64 branding bzip2 cairo caps cdda cdr cet crypt cups dav1d dbus declarative dri dts dvd dvdr encode epub eselect-ldso exif expat faad ffmpeg flac gdbm gif gles2 gmp gpm gstreamer gtk gui iconv icu ios ipv6 jpeg jpeg2k jpegxl kde kdesu kerberos kipi kwallet lapack lcms libass libnotify libtirpc lspclient lz4 lzma lzo mad matroska mng mobi mp3 mp4 mpeg multilib musicbrainz ncurses networkmanager nls numa office ogg opengl openh264 openmp pam pango pcre pdf pipewire plasma png policykit ppds pulseaudio qml qt5 qt6 readline screencast sdl seccomp semantic-desktop sound spell ssl startup-notification svg svt-av1 systemd taglib test-rust theora tiff truetype twolame udev udisks unicode upower usb vaapi vdpau verify-sig vnc vorbis vpx vulkan wavpack wayland webp widgets wxwidgets x264 x265 xattr xcb xft xinerama xml xv xvid xxhash zip zlib zstd" ABI_X86="64" ADA_TARGET="gcc_12" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_anon authn_dbm authn_file authz_dbm authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir env expires ext_filter file_cache filter headers include info log_config logio 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="mmx mmxext sse sse2 aes avx avx2 f16c fma3 pclmul popcnt rdrand sse3 sse4_1 sse4_2 ssse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax mtk3301 ntrip navcom oceanserver oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 tsip tripmate tnt ublox" INPUT_DEVICES="libinput" KERNEL="linux" L10N="en en-US en-GB fr" LCD_DEVICES="bayrad cfontz glk hd44780 lb216 lcdm001 mtxorb text" LLVM_TARGETS="BPF" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PERL_FEATURES="ithreads" PHP_TARGETS="php8-1" POSTGRES_TARGETS="postgres15" PYTHON_SINGLE_TARGET="python3_11" PYTHON_TARGETS="python3_11 python3_12" QEMU_SOFTMMU_TARGETS="x86_64 i386" QEMU_USER_TARGETS="x86_64 i386" RUBY_TARGETS="ruby31 ruby2.7" VIDEO_CARDS="intel i965 iris" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipp2p iface geoip fuzzy condition tarpit sysrq proto 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, MAKE, MAKEFLAGS, NM, OBJCOPY, OBJDUMP, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PYTHONPATH, RANLIB, READELF, RUSTFLAGS, SIZE, STRINGS, STRIP, YACC, YFLAGS

=================================================================
                        Package Settings
=================================================================

kde-apps/krdc-23.08.5-r2::gentoo was built with the following:
USE="activities handbook rdp vnc -debug" ABI_X86="(64)"

I looked at the krdc-24.02.2 ebuild and see nothing there to deal with issue.
I currently have the following in package.use to deal with the situation:
net-misc/freerdp:2 client
net-misc/freerdp:3 -client
freerdp is slotted but only one slot can install client(s) at a time. On my system freerdp is only pulled by krdc on my system (so I could technically mask freerdp:3 instead).
Interestingly the dependency listed by equery is
kde-apps/krdc-23.08.5-r2 (rdp ? >=net-misc/freerdp-1.1.0_beta1[X])
but on a wayland system it should be wayland instead of X.
Comment 3 Mike Gilbert gentoo-dev 2024-05-21 00:36:25 UTC
As I understand it:

krdc-23 calls xfreerdp or wlfreerdp. Getting the dependencies right here is difficult since since the the binary to call is determined at runtime?

Installing net-misc/freerdp:2[client,wayland] should resolve the issue.

krdc-24 directly links with libfreerdp2 and does not call any freerdp binary, so I expect upgrading to krdc-24 would also resolve the issue.
Comment 4 François Bissey 2024-05-21 00:52:09 UTC
I was not aware that krdc-24.02.2 is using the library directly. This is a much better way to handle it.
krdc-23.08.5 does indeed do runtime detection and has no provision for fallback, it is all hardcoded. Adding to that, the fact that krdc does not have (or need) a wayland useflag that could be requesting matching dependencies makes the situation completely intractable.

The only thing would be to have some kind of info message in 23.08.5 about wayland systems.
Comment 5 Larry the Git Cow gentoo-dev 2024-05-21 01:39:29 UTC
The bug has been referenced in the following commit(s):

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

commit 0d94a1c916f0b733818b34f1653054ac20194e60
Author:     Mike Gilbert <floppym@gentoo.org>
AuthorDate: 2024-05-21 01:34:05 +0000
Commit:     Mike Gilbert <floppym@gentoo.org>
CommitDate: 2024-05-21 01:36:20 +0000

    kde-apps/krdc: depend on net-misc/freerdp[client]
    
    The previous dependency on net-misc/freerdp[X] was incorrect. krdc
    calls wlfreerdp or xfreerdp depending the runtime environment.
    
    There is no perfect way to express this runtime dependency, but we do
    need a client installed at minimum.
    
    Bug: https://bugs.gentoo.org/932248
    Signed-off-by: Mike Gilbert <floppym@gentoo.org>

 kde-apps/krdc/{krdc-23.08.5-r2.ebuild => krdc-23.08.5-r3.ebuild} | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)