Bug 27122 - [Mageia 8b1] drakhardware from drakxtools requires to install deprecated libs like qt3 and qt4
Summary: [Mageia 8b1] drakhardware from drakxtools requires to install deprecated libs...
Status: RESOLVED FIXED
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: Cauldron
Hardware: All Linux
Priority: High normal
Target Milestone: Mageia 8
Assignee: Mageia tools maintainers
QA Contact:
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2020-08-15 21:51 CEST by Aurelien Oudelet
Modified: 2020-12-14 14:43 CET (History)
2 users (show)

See Also:
Source RPM: lsb-4.1-24.mga8.src.rpm, drakxtools-18.32-1.mga8.src.rpm
CVE:
Status comment: fixed in git


Attachments
patch to fix hardware support package detection (665 bytes, text/plain)
2020-09-23 12:33 CEST, Martin Whitaker
Details

Description Aurelien Oudelet 2020-08-15 21:51:10 CEST
in Mageia Cauldron (current 8 Beta 1) drakhardware in MCC from drakxtools requires lsb-lib64 and lsb-core-lib64 to install deprecated libs like qt4:

urpmq --requires lsb-lib64
--requires behaviour changed, use --requires-recursive to get the old behaviour
config(lsb-lib64)[== 4.1-24.mga8]
lib64alsa2
lib64cairo2
lib64cups2
lib64fontconfig1
lib64freetype6
lib64gtk+2.0_0
lib64jpeg62
lib64mesagl1
lib64mesaglu1
lib64nspr4
lib64nss3
lib64pango1.0_0
lib64png12_0
lib64qt3
lib64qtnetwork4[>= 4.2.3]
lib64qtopengl4[>= 4.2.3]
lib64qtsql4[>= 4.2.3]
lib64qtsvg4[>= 4.2.3]
lib64qtxml4[>= 4.2.3]
lib64x11_6
lib64xext6
lib64xft2
lib64xi6
lib64xml2_2
lib64xrender1
lib64xt6
lib64xtst6
libstdc++6
lsb-core-lib64
lsb-noarch
qt4-common[>= 4.2.3]

This comes from a command executed automatically in the program (see this in "journalctl -f" while runing the tool):
running: /bin/rpm -q --qf %{name}
iw pulseaudio-module-bluetooth iwlwifi-firmware wireless-regdb lsb-core-lib64 wpa_supplicant wireless-tools aoss lib64alsa-plugins bluedevil alsa-utils lsb-lib64 iwlwifi-firmware iwlwifi-firmware

Unexperimented user will click to install at first run, resulting to cumbersome his system.

Workaround:
Not installing these packages at each launch of drakhardware, programs seems to run fine therefore.


Assigning to Mageia Tools maintainers.
Comment 1 Nicolas Lécureuil 2020-08-15 21:53:06 CEST
i think that this is for LSB.

Need to see why this is needed btw

CC: (none) => mageia

Comment 2 Aurelien Oudelet 2020-08-15 22:00:27 CEST
urpmq --whatrequires-recursive lsb-lib64
lsb-lib64
lsb-test

What package does require lsb today?
Comment 3 David Walser 2020-08-15 23:31:44 CEST
Yeah it's just because of what version of the LSB that our package is based on.  Older LSB required older Qt.  That requirement has been dropped in newer LSB versions, we just need to update our lsb package to comply with a newer version of the LSB.

It looks like the newest is LSB 5.0 and it still requires Qt4, but no longer Qt3:
https://refspecs.linuxfoundation.org/LSB_5.0.0/allspecs.shtml
Comment 4 David Walser 2020-08-15 23:34:37 CEST
I wonder what distros have upgraded to LSB 5.0.  Fedora has not, they are also on 4.1 like we are.
Comment 5 Aurelien Oudelet 2020-09-19 18:08:48 CEST
Hi,
This is High priority bug for a good reason.

Making Mageia even better than ever is best direction.
In order to do right thing, this bug should be examined and fixed as soon as possible.

Packagers, please make the status to Assigned when you are working on this.
Feel free to reassign the bug if bad-triaged. Also, if bug is old, please close it.

On October 1st 2020, we will drop priority to normal.
Comment 6 David Walser 2020-09-23 00:26:25 CEST
The LSB update is Bug 19684.  Is there a reason for drakhardware to require lsb?
Comment 7 Martin Whitaker 2020-09-23 12:27:01 CEST
(In reply to David Walser from comment #6)
> Is there a reason for drakhardware to require lsb?

I believe this is a bug caused by the introduction of TYPE"64bit" in rpmsrate. The code in pkgs::read_rpmsrate() marks any package flagged as TYPE"some type" as being a hardware support package. drakhardware checks and ensures that all hardware support packages are installed.

CC: (none) => mageia

Comment 8 Martin Whitaker 2020-09-23 12:33:27 CEST
Created attachment 11888 [details]
patch to fix hardware support package detection

This should fix it. Tested locally.
Martin Whitaker 2020-09-23 12:33:48 CEST

Keywords: (none) => PATCH

Martin Whitaker 2020-10-15 18:11:18 CEST

Status comment: (none) => fixed in git

Comment 9 Aurelien Oudelet 2020-10-17 16:38:00 CEST
gurpmi dialog to install lsb packages still appears with drakxtools-18.34-1.mga8.
Comment 10 Martin Whitaker 2020-10-17 18:22:47 CEST
(In reply to Aurelien Oudelet from comment #9)
> gurpmi dialog to install lsb packages still appears with
> drakxtools-18.34-1.mga8.

That's expected, because 18.34 doesn't include the fix. That's why I left this bug report open.
Comment 11 Aurelien Oudelet 2020-12-14 14:43:09 CET
Fixed in Mageia Beta 2.

Drakhardware launches itself well.

Status: NEW => RESOLVED
Resolution: (none) => FIXED


Note You need to log in before you can comment on or make changes to this bug.