Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 810694 - net-p2p/qbittorrent[webui] w/ >=dev-qt/qtcore-5.15.2-r10: Web UI offers to download html file instead of opening it
Summary: net-p2p/qbittorrent[webui] w/ >=dev-qt/qtcore-5.15.2-r10: Web UI offers to do...
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: Normal normal (vote)
Assignee: Mikle Kolyada
URL: https://github.com/qbittorrent/qBitto...
Whiteboard:
Keywords: UPSTREAM
Depends on:
Blocks:
 
Reported: 2021-08-27 18:29 UTC by Sylvia
Modified: 2021-10-03 13:31 UTC (History)
2 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 Sylvia 2021-08-27 18:29:35 UTC
Updating dev-qt libraries to 5.15.2-r10 makes qbittorrent 
(USE "-X -dbus webui") non functional, instead of opening web interface it offers to download html file.
running update-mime-database does not help.

Downgrading Qt to 5.15.2-r3 solves the problem.

qbittorrent-nox is linked to qtcore, qtnetwork and qtxml libraries

Reproducible: Always
Comment 1 Sylvia 2021-10-01 08:29:06 UTC
This error still persists, despite qt 5.15.2-r10 has been stabilized.
Comment 2 Sylvia 2021-10-01 08:44:59 UTC
when started with:

export LD_LIBRARY_PATH=/usr/local/lib/qt5:${LD_LIBRARY_PATH}
export LD_PRELOAD="/usr/local/lib/qt5/libQt5Core.so.5.15.2 /usr/local/lib/qt5/libQt5Network.so.5.15.2 /usr/local/lib/qt5/libQt5Xml.so.5.15.2"
qbittorrent-nox

it works properly, where libraries in /usr/local/lib/qt5/ are from previous build
qtcore-5.15.2-r3
qtnetwork-5.15.2-r2
qtxml-5.15.2-r1
Comment 3 Sam James archtester gentoo-dev Security 2021-10-01 12:15:43 UTC
(In reply to Sylvia from comment #1)
> This error still persists, despite qt 5.15.2-r10 has been stabilized.

This seems slightly snarky but we are allowed to miss bugs, especially if we’re not maintaining something.

What version of qbittorrent? Can you try the latest in tree (~arch)? Can we have emerge —-info?
Comment 4 Andreas Sturmlechner gentoo-dev 2021-10-02 14:36:16 UTC
See also: https://bbs.archlinux.org/viewtopic.php?id=267553
Comment 5 Sylvia 2021-10-03 13:20:31 UTC
(In reply to Sam James from comment #3)

> What version of qbittorrent? Can you try the latest in tree (~arch)? Can we
> have emerge —-info?


It is latest.


# emerge --info qbittorrent
Portage 3.0.20 (python 3.8.12-final-0, default/linux/x86/17.0, gcc-9.4.0, glibc-2.32-r8, 5.10.68-MIRIANA x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-5.10.68-MIRIANA-x86_64-Intel-R-_Celeron-R-_CPU_J1900_@_1.99GHz-with-glibc2.0
KiB Mem:     8009376 total,    751108 free
KiB Swap:    4194296 total,   4190712 free
Timestamp of repository gentoo: Fri, 01 Oct 2021 18:00:02 +0000
Head commit of repository gentoo: 6f4bc283efb20a1f4b227a8f00976f2cec443d62
sh sh
ld GNU ld (GNU Binutils) 2.34
ccache version 3.2.4 [disabled]
app-shells/bash:          5.1_p8::gentoo
dev-java/java-config:     2.3.1::gentoo
dev-lang/perl:            5.34.0-r2::gentoo
dev-lang/python:          2.7.18-r4::gentoo, 3.7.10_p3::gentoo, 3.8.12::gentoo, 3.9.6_p2::gentoo
dev-lang/rust-bin:        1.53.0::gentoo
dev-util/cmake:           3.20.5::gentoo
sys-apps/baselayout:      2.7::gentoo
sys-apps/openrc:          0.43.5::gentoo
sys-apps/sandbox:         2.24::gentoo
sys-devel/autoconf:       2.13-r1::gentoo, 2.69-r5::gentoo
sys-devel/automake:       1.11.6-r3::gentoo, 1.13.4::gentoo, 1.14.1::gentoo, 1.15.1-r2::gentoo, 1.16.4::gentoo
sys-devel/binutils:       2.40::x-portage
sys-devel/gcc:            8.3.0-r1::gentoo, 9.2.0-r2::gentoo, 9.3.0-r2::gentoo, 10.3.0-r2::gentoo
sys-devel/gcc-config:     3.9.9::x-portage
sys-devel/libtool:        2.4.6-r6::gentoo
sys-devel/make:           4.3::gentoo
sys-kernel/linux-headers: 5.10::gentoo (virtual/os-headers)
sys-libs/glibc:           2.32-r8::gentoo
Repositories:

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

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

Installed sets: @kernel
ACCEPT_KEYWORDS="x86"
ACCEPT_LICENSE="* -@EULA"
CBUILD="i686-pc-linux-gnu"
CC="gcc"
CFLAGS="-O2 -fomit-frame-pointer -m32 -mfpmath=sse -mmmx -fomit-frame-pointer -g0 -march=silvermont -mcx16 -msahf -mno-movbe -mfxsr -msse4 --param l1-cache-size=24 --param l1-cache-line-size=64 --param l2-cache-size=1024 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /var/spool/munin-async/.ssh"
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"
CXX="g++"
CXXFLAGS="-O2 -fomit-frame-pointer -m32 -mfpmath=sse -mmmx -fomit-frame-pointer -g0 -march=silvermont -mcx16 -msahf -mno-movbe -mfxsr -msse4 --param l1-cache-size=24 --param l1-cache-line-size=64 --param l2-cache-size=1024"
DISTDIR="/usr/portage/distfiles"
ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY 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"
FCFLAGS="-O2 -march=i686 -pipe"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs buildpkg cgroup config-protect-if-modified distlocks ebuild-locks fakeroot fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news nodoc noinfo noman 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 -march=i686 -pipe"
GENTOO_MIRRORS="http://mirror.yandex.ru/gentoo-distfiles/ http://mirror.netcologne.de/gentoo/"
LDFLAGS="-Wl,-s -s -Wl,-O1"
LINGUAS="en ru"
MAKEOPTS="-j4"
PKGDIR="/usr/portage/packages"
PORTAGE_BINHOST="http://darkness.wire:1616/"
PORTAGE_BUNZIP2_COMMAND="lbunzip2 -v -n4"
PORTAGE_BZIP2_COMMAND="lbzip2 -v -n4"
PORTAGE_COMPRESS="lzma"
PORTAGE_COMPRESS_FLAGS="-9e"
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="acl acpi alsa bzip2 cli crypt curl dri elogind exif expat ftp gdbm gif gmp gnutls gpm gzip iconv idn ipv6 jpeg lame libglvnd libtirpc lm-sensors lm_sensors lzma lzo mmap mmx mmxext mng mp3 ncurses nls nptl ogg openmp oss pam pcre png pulseaudio readline seccomp split-usr sql sqlite3 sse sse2 sse3 ssl svg tcpd theora truetype unicode usb vaapi vorbis wifi x86 xattr zlib" ABI_X86="32" ADA_TARGET="gnat_2019" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" 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="mmx mmxext popcnt sse sse2 sse3 ssse3 sse4_1 sse4_2" 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="evdev keyboard mouse joystick" KERNEL="linux" L10N="en ru" 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="php7-3 php7-4" POSTGRES_TARGETS="postgres12 postgres13" PYTHON_SINGLE_TARGET="python3_8" PYTHON_TARGETS="python2_7 python3_7 python3_8" RUBY_TARGETS="ruby26" SANE_BACKENDS="canon epson epson2 fujitsu genesys hp net pixma pnm xerox_mfp" USERLAND="GNU" VIDEO_CARDS="intel" 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:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, PORTAGE_RSYNC_EXTRA_OPTS, RUSTFLAGS

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

net-p2p/qbittorrent-4.3.8::gentoo was built with the following:
USE="webui -X -dbus -debug"
Comment 6 Sylvia 2021-10-03 13:26:20 UTC
(In reply to Andreas Sturmlechner from comment #4)
> See also: https://bbs.archlinux.org/viewtopic.php?id=267553


thanks for confirming and finding a clue at archlinux forum,
I ve tried their test program, however, as i mentioned above
running update-mime-database does not help

$ /tmp/qt5mimetest 
QMimeType("application/x-extension-html")

$ update-mime-database ~/.local/share/mime

$ /tmp/qt5mimetest                        
QMimeType("application/x-extension-html")

with older qt5 builds:

$ export LD_PRELOAD="/usr/local/lib/qt5/libQt5Core.so.5.15.2 /usr/local/lib/qt5/libQt5Network.so.5.15.2 /usr/local/lib/qt5/libQt5Xml.so.5.15.2"

$ /tmp/qt5mimetest            
QMimeType("text/html")
Comment 7 Sylvia 2021-10-03 13:31:46 UTC
full cleanup of ~/.local/share/mime
solved the problem, however, it should be done by hand,
update-mime-database doesnt fix it.