Bug 25394 - 32-bit apps fail to run with Primus in a 64bit install because of missing libprimus.
Summary: 32-bit apps fail to run with Primus in a 64bit install because of missing lib...
Status: RESOLVED FIXED
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: 7
Hardware: All Linux
Priority: Normal normal
Target Milestone: ---
Assignee: QA Team
QA Contact: Rémi Verschelde
URL:
Whiteboard: MGA7-64-OK
Keywords: advisory, validated_update
Depends on:
Blocks:
 
Reported: 2019-09-01 23:13 CEST by Jérôme Hénin
Modified: 2019-12-13 19:26 CET (History)
5 users (show)

See Also:
Source RPM: primus
CVE:
Status comment:


Attachments

Description Jérôme Hénin 2019-09-01 23:13:05 CEST
Description of problem:
32-bit apps fail to run with Primus in a 64bit install of mga7.
It gives the error:

X Error of failed request:  BadValue (integer parameter out of range for operation)
  Major opcode of failed request:  151 (GLX)
  Minor opcode of failed request:  3 (X_GLXCreateContext)
  Value in failed request:  0x0
  Serial number of failed request:  23
  Current serial number in output stream:  24

Running "optirun -vv" gives the info:
[ 7786.517116] [DEBUG] Primus LD Path: /usr/lib64/primus:/usr/lib/primus
but /usr/lib/primus does not exist.
Mga6 had a libprimus package. Mga7 only has lib64primus.
Comment 1 Jérôme Hénin 2019-09-02 23:34:29 CEST
Workaround: installing libprimus-0.2-1.mga6.nonfree.i586.rpm on the mga7 system fixes the issue - so that package can be imported as is.
Comment 2 Marja Van Waes 2019-09-04 10:53:50 CEST
Assigning to the registered maintainer, CC'ing the last submitter.

primus recommends the 32bit library on x86_64 since Nov 28 2015, it would be nice if it gets packaged again :-)

Whiteboard: (none) => MGA7TOO
Summary: Missing 32-bit libprimus in mga7? => 32-bit apps fail to run with Primus in a 64bit install because of missing libprimus.
Source RPM: lib64primus => primus
CC: (none) => geiger.david68210, marja11
Version: 7 => Cauldron
Assignee: bugsquad => rverschelde

Comment 3 Rémi Verschelde 2019-09-08 12:37:32 CEST
That's due to this incorrect change: http://svnweb.mageia.org/packages/cauldron/primus/current/SPECS/primus.spec?revision=1395690&view=markup

I'm not sure how this should be handled, but the 32bit version of the library is still needed to play 32bit games on 64bit systems. The 64bit Nvidia driver contains the 32bit libraries too: http://sophie.zarb.org/rpms/a31445f67e3279a9553a79ff0dcc5423/files

So maybe it shouldn't have been made ExclusiveArch in the first place (CC tmb)?

QA Contact: (none) => rverschelde
CC: (none) => tmb
Assignee: rverschelde => geiger.david68210

Comment 4 David GEIGER 2019-12-05 19:15:49 CET
So ok the 32bit library is again provided and only the "library" to run 32bits games on 64bits system, please try upcoming primus-0.2-4.1.mga7 in Nonfree/Updates_testing repo!
Comment 5 David GEIGER 2019-12-07 08:29:17 CET
Assigning to QA,


Advisory:
========================

Our current primus lack of 32bit support but if you run 32bits games on 64bits system this is needed. So this update added back the 32bit library.

========================

Packages in 7/nonfree/updates_testing:
========================
primus-0.2-4.1.mga7.nonfree.x86_64.rpm
lib64primus-0.2-4.1.mga7.nonfree.x86_64.rpm
primus-nvidia-0.2-4.1.mga7.nonfree.x86_64.rpm

libprimus-0.2-4.1.mga7.nonfree.i586.rpm

Source RPM: 
========================
primus-0.2-4.1.mga7.nonfree.src.rpm

Assignee: geiger.david68210 => qa-bugs

Thomas Backlund 2019-12-07 20:09:51 CET

Whiteboard: MGA7TOO => (none)
Version: Cauldron => 7

Comment 6 Thomas Andrews 2019-12-12 23:39:58 CET
Installed primus and dependencies on a 64-bit system. The 32-bit libprimus was not there. Used qarepo to get the above packages for both arches, then went for updates. The 32-bit library was not listed as an update, but when I looked for it using MCC it was now available. All packages installed cleanly. 

I did not try to use primus, as this test was only to see if the 32-bit library is now available and will install.

Validating. Advisory in Comment 5.

CC: (none) => andrewsfarm, sysadmin-bugs
Keywords: (none) => validated_update
Whiteboard: (none) => MGA7-64-OK

Comment 7 Rémi Verschelde 2019-12-13 16:48:46 CET
Validated update.

Keywords: (none) => advisory

Comment 8 Mageia Robot 2019-12-13 19:26:45 CET
An update for this issue has been pushed to the Mageia Updates repository.

https://advisories.mageia.org/MGAA-2019-0223.html

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


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