[Slackbuilds-users] Multiple SBo packages broken after upgrading qt5
Dave Woodfall
dave at slackbuilds.org
Mon Apr 20 09:48:06 UTC 2020
On 2020-04-20 09:04,
Slackbuilds Users <slackbuilds-users at slackbuilds.org> put forth the proposition:
> ‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐
> On Monday, April 20, 2020 8:59 AM, Dave Woodfall <dave at slackbuilds.org> wrote:
>
> > I have some results.
> >
> > qt5-styleplugins
> >
> > This is now relegated to qt5-legacy I'm afraid. They only made one
> > release in 2014, plus one commit since then in 2017.
>
> I saw the other email, but I'll reply in this one for consistency
>
> >
> > qbittorrent-qt5
> >
> > I had no errors testing this.
> >
> > qt5ct
> >
> > There was one warning when I tested this, but on a second run it
> > didn't reoccur.
> >
>
> > retroshare
> >
> > Did you set the RETROTOR option with this?
> >
>
> Yes, as I wrote above. I also saw you figured it out from the log.
>
>
> But back to qt5 first - I'll have to do it one thing at a time, othwerwise I feel overwhelmed.
>
> As I understand, in context of mentioned packages, the dependency chain works like this:
>
> / qt5ct -----------\
> qt5 qbittorrent-qt5
> \ qt5-styleplugins /
>
> and
>
> / qt5ct -----------\
> qt5 retroshare
> \ qt5-styleplugins /
>
> qt5 is the basic library, qt5ct + qt5-styleplugins are additional helpers (optional dependencies) to achieve consistent theming, as I wrote above, qbittorrent-qt5 and retroshare are end-user qt5 apps.
>
> As I understand, we both upgraded qt5 to 5.12.8 from qt5-5.9.9 (this one became qt5-legacy).
>
> qt5ct works fine for you, but doesn't work for me. Full stop. Just to clear the things up - it builds fine for me with the new qt5 version. The error I'm getting:
>
> $ qt5ct
> QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-shadow'
> QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-shadow'
> Cannot mix incompatible Qt library (version 0x50909) with this library (version 0x50c08)
> Aborted
>
> is a runtime error.
>
> What am I supposed to do next, to get a working qt5ct? I'm willing to fiddle a bit more with this before I give up.
This is what I've found is a good order to upgrade Qt5 for large
version jumps, like 5.7 to 5.9, or 5.9 to 5.12:
1 Uninstall the old Qt5 package
2 Log out of root
3 Log back in as root
4 Build and install the new package
5 Log out of root
6 Log back in as root
7 Upgrade all other packages that depend on Qt5
The reasoning behind all the log outs/ins, is because Qt5 installs
/etc/profile.d/qt5.sh that sets QT5DIR and adds QT5DIR/bin to your
$PATH when you log in (there's a similar file for csh.) Even though
the old Qt5 is removepkg'd, those settings are *still there* until
you log out.
You can see with a test (assuming bash or a zsh type shell):
env | grep -i qt5
If that command is used before step 4, you shouldn't see anything qt5
related in PATH and QT5DIR shouldn't exist.
Hope that helps.
--
Dave
The antibloat squad!
For those interested in no bloat, minimal desktop Linux
gopher://tty1.uk/1/?minimal-linux
http://tty1.uk/minimal-linux
#minimallinux @ chat.freenode.net
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 801 bytes
Desc: not available
URL: <http://lists.slackbuilds.org/pipermail/slackbuilds-users/attachments/20200420/7fbf14df/attachment.asc>
More information about the SlackBuilds-users
mailing list