Bug 1292107 - Packages of qjdns for both Qt4 and Qt5 can not co-exist in the same system
Packages of qjdns for both Qt4 and Qt5 can not co-exist in the same system
Status: CLOSED NOTABUG
Product: Fedora
Classification: Fedora
Component: jdns (Show other bugs)
rawhide
All Linux
unspecified Severity high
: ---
: ---
Assigned To: Ivan Romanov
Fedora Extras Quality Assurance
:
Depends On:
Blocks: psi+cmake
  Show dependency treegraph
 
Reported: 2015-12-16 08:48 EST by Raphael Groner
Modified: 2015-12-17 03:51 EST (History)
5 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: 1292106
Environment:
Last Closed: 2015-12-17 03:38:53 EST
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Raphael Groner 2015-12-16 08:48:12 EST
Description of problem:
# grep Name /usr/lib64/pkgconfig/qjdns-qt5.pc 
Name: qjdns
# grep Name /usr/lib64/pkgconfig/qjdns.pc 
Name: qjdns
# rpm -qf /usr/lib64/pkgconfig/qjdns-qt5.pc 
qjdns-qt5-devel-2.0.3-1.fc23.x86_64
# rpm -qf /usr/lib64/pkgconfig/qjdns.pc 
qjdns-qt4-devel-2.0.3-1.fc23.x86_64

Version-Release number of selected component (if applicable):
see above

How reproducible:
yes

Steps to Reproduce:
1. dnf install qjdns-qt4-devel qjdns-qt5-devel
2. do cmake pkg_search_module(qjdns qjdns)
3.

Actual results:
no idea if it collects Qt4 or Qt5 packages and is it randomly.

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

Additional info:
Comment 1 Raphael Groner 2015-12-16 08:53:15 EST
Sorry for reassign, this happened accidently cause of bug clone.
Comment 2 Ivan Romanov 2015-12-17 03:33:57 EST
Do you mean that you doesn't know what version of qjdns (Qt4 or Qt5) you use?
You can always do ldd /usr/lib64/libqjdns.so.2 to check it.
Also in CMake world you shouldn't use pkg-config. Use CMake module always when it is possible. For qjdns you can do 
find_package(QJDns).

Full CMakeLists.txt example

project(test)
cmake_minimum_required(VERSION 2.8.11)
find_package(Qt5Core REQUIRED)
find_package(QJDns REQUIRED)

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