Bug 1325666 - pocl: multilib file conflict: /etc/OpenCL/vendors/pocl.icd , /usr/bin/pocl-standalone
Summary: pocl: multilib file conflict: /etc/OpenCL/vendors/pocl.icd , /usr/bin/pocl-st...
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: pocl
Version: 24
Hardware: x86_64
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Igor Gnatenko
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
: 1355850 1366892 (view as bug list)
Depends On:
Blocks: 1317605
TreeView+ depends on / blocked
 
Reported: 2016-04-10 13:33 UTC by George R. Goffe
Modified: 2016-08-31 13:18 UTC (History)
16 users (show)

Fixed In Version: pocl-0.13-7.fc26
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-08-31 13:18:04 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
dnf update log (53.93 KB, text/plain)
2016-04-11 09:23 UTC, Marcin Juszkiewicz
no flags Details
dnf debugdata (6.79 MB, application/x-xz)
2016-04-11 09:42 UTC, Marcin Juszkiewicz
no flags Details
tar.gz file containing debugdata and debugsolver.log (12.26 MB, application/x-tar)
2016-04-11 19:01 UTC, George R. Goffe
no flags Details
gzip'd flat file showing a complete log of the attempted upgrade. (12.26 MB, application/x-tar)
2016-04-11 19:05 UTC, George R. Goffe
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Red Hat Bugzilla 1325471 0 unspecified CLOSED resolving Supplements: dependencies pull in multilib packages 2021-02-22 00:41:40 UTC

Internal Links: 1325471

Description George R. Goffe 2016-04-10 13:33:51 UTC
Description of problem:

dnf upgrade gives these messages:

Error: Transaction check error:
  file /etc/OpenCL/vendors/pocl.icd from install of pocl-0.13-4.fc25.i686 conflicts with file from package pocl-0.13-4.fc25.x86_64
  file /usr/bin/pocl-standalone from install of pocl-0.13-4.fc25.i686 conflicts with file from package pocl-0.13-4.fc25.x86_64


Version-Release number of selected component (if applicable):
pocl-0.13-4.fc25.x86_64

How reproducible:
always

Steps to Reproduce:
1.dnf upgrade
2.
3.

Actual results:


Expected results:


Additional info:

Comment 1 Igor Gnatenko 2016-04-10 14:01:27 UTC
How is it possible that you have i686 and x86_64 versions at the same time?

Comment 2 Marcin Juszkiewicz 2016-04-11 09:23:00 UTC
Created attachment 1145886 [details]
dnf update log

I got both pocl/i686 and pocl/x86-64 as well. None of them were installed before on my system.

dnf update log may be useful for someone.

Comment 3 Igor Gnatenko 2016-04-11 09:29:56 UTC
commit eafa6644010d91c4a5da3dd6d1fdf65f3c4c9596
Author: Björn Esser <me>
Date:   Fri Apr 8 17:52:40 2016 +0200

    add virtual Provides for ocl-icd (RHBZ #1317605)


I guess that commit broke it. Bjorn, ...?

Comment 4 Igor Gnatenko 2016-04-11 09:38:38 UTC
(In reply to Marcin Juszkiewicz from comment #2)
> Created attachment 1145886 [details]
> dnf update log
> 
> I got both pocl/i686 and pocl/x86-64 as well. None of them were installed
> before on my system.
> 
> dnf update log may be useful for someone.

Can you show me `dnf update --debugsolver`? It will create debugdata directory, I'm interested in it.

Comment 5 Marcin Juszkiewicz 2016-04-11 09:42:54 UTC
Created attachment 1145887 [details]
dnf debugdata

Comment 6 George R. Goffe 2016-04-11 18:56:35 UTC
Igor,

Thank you for your response to this bug report.

It is my understanding that x86_systems have some software that uses 32 bit addressing and, sometimes the same package, that uses 64 bit addressing. Further, as I think I understand it, both pkgs can co-exist without problems. Now that I think of it, I don't see how binaries compiled for 32 bit addressing can co-exist with the same binary compiled for 64 bit addressing. The NON-binary files can exist to some extent depending on the package and the files provided.

My F24 systems have a mixture of both 32 and 64 bit packages in them.

I am NOT doing anything special to install both sets of packages... Simply, dnf upgrade. I have done group installs of ALL the packages in all the groups provided by/for F24. Whatever is in them is what I get. Maybe I'm making an unreasonable assumption here in that I assume that DNF tries for the architecture upon which it is executing. Yes? No? Wrong assumption?

I don't have much trouble with these packages but there a very few that cause problems. I bring these to the "owner's" attention and usually the package is adjusted to handle the situation.

This situation with Pocl appears to have a packing anomaly. Given the command I issued, just why DNF wants to install both is somewhat perplexing.

rpm -q pocl gives this version: pocl-0.13-4.fc25.x86_64 which I installed specifically. Just why DNF tries to install both architectures is beyond me? Some other package uses/depends on Pocl? Perhaps this bug really belongs to them?

As of this moment, dnf upgrade fails in transaction testing with these messages. The only way to get the other upgrades is to add "--exclude=pocl"

What are your thoughts?

George...

Comment 7 George R. Goffe 2016-04-11 19:01:19 UTC
Created attachment 1146093 [details]
tar.gz file containing debugdata and debugsolver.log

Comment 8 George R. Goffe 2016-04-11 19:05:09 UTC
Created attachment 1146094 [details]
gzip'd flat file showing a complete log of the attempted upgrade.

Please disregard the previous file... I used the wrong command to get the data.

Comment 9 Jan Kratochvil 2016-04-14 15:04:14 UTC
In my case pocl.i686 got installed as a dependency from ocl-icd-devel.i686.
ocl-icd-devel.i686 I have installed for biarch run of GDB testsuite as GDB should be able to debug i686 binaries on x86_64 OS and so its whole testsuite is being run also built with -m32.  And one/some of the testsuite files needs ocl-icd-devel to run.

Comment 10 Rex Dieter 2016-07-01 23:07:42 UTC
Other items require pocl.i686 too, including wine, so this multilib conflict needs to be fixed.

Comment 11 Rex Dieter 2016-07-01 23:14:19 UTC
A user had reported on irc this conflict after trying 'dnf install wine' but I cannot reproduce it.  so that may be false alarm.

Anyway, adjusting summary to better describe the issue.

Comment 12 yucef sourani 2016-07-02 14:22:54 UTC
I know a person suffering from the same problem when it tries to install wine

Comment 13 Artem Astafyev 2016-07-04 06:30:30 UTC
Have the same issue while doing dnf install wine on fresh F24 installation.
Error: Transaction check error:
  file /etc/OpenCL/vendors/pocl.icd from install of pocl-0.13-4.fc24.i686 conflicts with file from package pocl-0.13-4.fc24.x86_64
  file /usr/bin/pocl-standalone from install of pocl-0.13-4.fc24.i686 conflicts with file from package pocl-0.13-4.fc24.x86_64

Comment 14 palmar 2016-07-04 20:11:17 UTC
This problem affects me too, just like others on a fresh F24 installation trying to install wine.

Comment 15 Rex Dieter 2016-07-08 15:05:21 UTC
For what it's worth, fc23 i686/x86_64 buids of pocl conflict similarly,

  file /etc/OpenCL/vendors/pocl.icd conflicts between attempted installs of pocl-0.12-1.fc23.i686 and pocl-0.12-1.fc23.x86_64
  file /usr/bin/pocl-standalone conflicts between attempted installs of pocl-0.12-1.fc23.i686 and pocl-0.12-1.fc23.x86_64

Comment 16 Rex Dieter 2016-07-08 15:22:37 UTC
Trying to figure out why pocl only *sometimes* gets pulled in when users try to install wine.... I found:

Seems due to ocl-icd.spec dep:

# Requires for virtual Provides: opencl-icd (RHBZ #1317600)
Requires:       opencl-icd%{?_isa}

and that there are 2 providers (according to repoquery):
pocl
mesa-libOpenCL

Added since,

%changelog
* Fri Apr 08 2016 Björn Esser <fedora> - 0.13-4
- add virtual Provides for ocl-icd (RHBZ #1317605)

sometimes(?) pocl gets picked over mesa-libOpenCL

Users, so one workaround to install wine:

dnf install wine --exclude=pocl



In pocl packaging, I'd suggest then, that
# Virtual Provides for ocl-icd (RHBZ #1317605)
Provides:       opencl-icd
Provides:       opencl-icd%{?_isa}

be removed at least until this multilib conflict is fixed.

Comment 17 Igor Gnatenko 2016-07-12 17:59:14 UTC
*** Bug 1355850 has been marked as a duplicate of this bug. ***

Comment 18 Christian Dersch 2016-07-13 18:08:08 UTC
Ran into the same issue @installation of wine today.

Comment 19 Bill 2016-07-17 05:21:24 UTC
I also ran into the problem installing wine on a fresh install of F24.

Comment 20 Bill 2016-07-17 14:36:54 UTC
SO I tried "dnf install wine --exclude=pocl" wich allowed Wine to install, but I seem to have no Graphics Card 3D Support now. Games come up with 3fps and my system seems to be trying to do the 3D processing cause my system fans go nuts.

Comment 21 Bill 2016-07-17 16:26:30 UTC
ok, so I tried uninstalling wine then reinstalling it without "--exclude=pocl" and it worked fine. I guess supporting the "sometimes" experiences. But My graphics still sucked. So I downloaded & Installed the latest nvida drivers moving FROM 367.27 TO 367.35 and also reinstalling wine (again without the conflict) and all seems well now.

Comment 22 Igor Gnatenko 2016-08-14 09:42:13 UTC
*** Bug 1366892 has been marked as a duplicate of this bug. ***

Comment 23 Igor Gnatenko 2016-08-14 11:05:05 UTC
I dropped virtual provides/requires.

Unfortunately I don't know solution for fixing this multilib issue. separating libs is not enough, because /etc/OpenCL/pocl* still references absolute path to libdir.

Comment 24 Rex Dieter 2016-08-14 13:13:23 UTC
Try contacting your upstream to consult on possible solutions?

Comment 25 George R. Goffe 2016-08-14 15:51:23 UTC
Rex,

Is your comment above directed to me or Igor?

THANKS for your help!

George...

Comment 26 Rex Dieter 2016-08-14 16:18:31 UTC
Any and all pocl maintainer(s) were my target audience... Or even anyone else interested in helping to solve this

Comment 27 Igor Gnatenko 2016-08-20 16:06:27 UTC
https://github.com/pocl/pocl/issues/369

Comment 28 Gwendal 2016-08-24 19:15:17 UTC
I confirm that the problem appears without explictly trying to install pocl in both archs. I encounter the exact same error simply when trying to install wine.

Comment 29 giuliobortot 2016-08-31 13:14:25 UTC
Any update on this bug?


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