Bug 1292093 - Packages of qjson for both Qt4 and Qt5 can not co-exist in the same system
Summary: Packages of qjson for both Qt4 and Qt5 can not co-exist in the same system
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: qjson
Version: rawhide
Hardware: All
OS: Linux
high
medium
Target Milestone: ---
Assignee: Rex Dieter
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: psi+cmake
TreeView+ depends on / blocked
 
Reported: 2015-12-16 13:08 UTC by Raphael Groner
Modified: 2015-12-19 12:48 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
: 1292106 (view as bug list)
Environment:
Last Closed: 2015-12-19 12:48:14 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Raphael Groner 2015-12-16 13:08:16 UTC
Description of problem:
> dnf repoquery --list qjson-devel |grep .pc
/usr/lib/pkgconfig/QJson.pc
/usr/lib64/pkgconfig/QJson.pc
> rpmls qjson-qt5-devel |grep pc
-rw-r--r--  /usr/lib64/pkgconfig/QJson.pc

Version-Release number of selected component (if applicable):
qjson-qt5-0-0.1.20150318.d0f62e6git.fc23.x86_64

How reproducible:
yes

Steps to Reproduce:
1. dnf install qjson-devel qjson-qt5-devel
2.
3.

Actual results:
# env LC_ALL=C dnf install qjson-devel qjson-qt5-devel
Last metadata expiration check performed 0:00:18 ago on Wed Dec 16 14:02:31 2015.
Package qjson-qt5-devel-0-0.1.20150318.d0f62e6git.fc23.x86_64 is already installed, skipping.
Error: package qjson-devel-0.8.1-10.fc23.i686 requires libqjson.so.0, but none of the providers can be installed
(try to add '--allowerasing' to command line to replace conflicting packages)

# grep Name /usr/lib64/pkgconfig/QJson.pc 
Name: QJson

# env LC_ALL=C dnf install 'pkgconfig(QJson)'
Last metadata expiration check performed 0:03:49 ago on Wed Dec 16 14:02:31 2015.
Package qjson-qt5-devel-0-0.1.20150318.d0f62e6git.fc23.x86_64 is already installed, skipping.
Dependencies resolved.
Nothing to do.
Complete!
INFO:dnf:Complete!
DDEBUG:dnf:Cleaning up.


Expected results:
No error, both packages can co-exist.

Additional info:
How to install qjson-devel if qjson-qt5-devel is already installed?

Comment 1 Raphael Groner 2015-12-16 13:14:34 UTC
Please also remove wrong path with /usr/lib/ in x86_64 package:
/usr/lib/pkgconfig/QJson.pc

> rpm -q qjson-qt5-devel
qjson-qt5-devel-0-0.1.20150318.d0f62e6git.fc23.x86_64
> dnf repoquery --list qjson-devel |grep .pc
/usr/lib/pkgconfig/QJson.pc
/usr/lib64/pkgconfig/QJson.pc
> rpmls qjson-qt5-devel |grep pc
-rw-r--r--  /usr/lib64/pkgconfig/QJson.pc

Comment 2 Raphael Groner 2015-12-17 08:49:52 UTC
Comment #1 is invalid cause dnf does not know about correct arch to choose in --list execution.

Comment 3 Rex Dieter 2015-12-17 23:56:00 UTC
qjson package is fine, it's this mysterious qjson-qt5 you're trying to use here that is arguably broken.  Where is that coming from?

Comment 4 Rex Dieter 2015-12-17 23:57:55 UTC
I can turn on support here in qjson, but you said before it wasn't needed in bug #1234207

Has the situation changed?

Comment 5 Raphael Groner 2015-12-18 09:15:16 UTC
That's totally confusing. What are you talking about?

http://pkgs.fedoraproject.org/cgit/qjson.git/tree/qjson.spec#n48

Comment 6 Rex Dieter 2015-12-18 12:06:04 UTC
qt5 isn't actually enabled... yet.  See top of qjson.spec:

http://pkgs.fedoraproject.org/cgit/qjson.git/tree/qjson.spec#n7

So:
1.  Are you asking again that qt5 support be enabled again (contrary to bug #1234207) ?

2.  Can you rephrase exactly what is wrong?  As far as I can tell "Qt4 and Qt5" versions *can* co-exist just fine.

Comment 7 Raphael Groner 2015-12-18 21:17:22 UTC
1 yes

2 
# env LC_ALL=C dnf install qjson-devel qjson-qt5-devel
Last metadata expiration check performed 0:00:18 ago on Wed Dec 16 14:02:31 2015.
Package qjson-qt5-devel-0-0.1.20150318.d0f62e6git.fc23.x86_64 is already installed, skipping.
Error: package qjson-devel-0.8.1-10.fc23.i686 requires libqjson.so.0, but none of the providers can be installed
(try to add '--allowerasing' to command line to replace conflicting packages)

Comment 8 Rex Dieter 2015-12-19 12:23:47 UTC
ok 2.  the qjson-qt5-devel you have installed is broken, and it's not from fedora.  I don't know where you got it, but *that* is the source of your the problem


As for 1, ok, I'll go ahead and (re)enable qt5 support in fedora's qjson package.

Comment 9 Rex Dieter 2015-12-19 12:48:14 UTC
%changelog
* Thu Dec 17 2015 Rex Dieter <rdieter> 0.8.1-14
- pull in another Qt5-related upstream fix, enable -qt5 (#1292093)


https://koji.fedoraproject.org/koji/taskinfo?taskID=12252252


This one should be less broken. :)


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