Closed hosiet closed 8 months ago
It appears you have already patches ready at https://salsa.debian.org/debian/zbar/-/tree/master/debian/patches Would you mind creating a PR?
This is due to Qt5 (at least in Linux distributions) never shipped a
Qt5.pc
anywhere. As a result, the invocation of$PKG_CONFIG Qt5
will never succeed. Please revert to the old logic of detection$MOC
and$QT_VERSION
or seek other methods that correctly uses Qt5 pkg-config files.
On Fedora, we have:
Perhaps the logic needs to be changed to try first Qt5.pc, then Qt.pc. If not found, fail back to the old way.
The upstream changes are there to better cope with installs were both Qt5 and Qt6 devel libs are installed. So, a simple solution like https://salsa.debian.org/debian/zbar/-/blob/master/debian/patches/0003-configure.ac-Use-old-way-to-detect-Qt5.patch may not be doing the right thing.
Ok, tested applying both patches from Debian: no breakages on Fedora. I'll apply them both.
https://github.com/mchehab/zbar/blob/6ea7392beecac015f64ceea1ac11d33b83288e5f/configure.ac#L664-L683
The following issues (actually regressions) exist in this code block:
pkg-config
reappears. We should use$PKG_CONFIG
whenever possible, as seen in zbar <= 0.23.92.AS_IF()
macro needs the[
and]
guarding for each of its parameter. In this code, the second parameter ofAS_IF()
has missing[]
around thePKG_CHECK_MODULES()
invocation.This is due to Qt5 (at least in Linux distributions) never shipped a
Qt5.pc
anywhere. As a result, the invocation of$PKG_CONFIG Qt5
will never succeed. Please revert to the old logic of detection$MOC
and$QT_VERSION
or seek other methods that correctly uses Qt5 pkg-config files.