-
Notifications
You must be signed in to change notification settings - Fork 209
Regression: Broken configure.ac in zbar 0.23.93 release (Qt5 related) #277
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
It appears you have already patches ready at https://salsa.debian.org/debian/zbar/-/tree/master/debian/patches |
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. |
Bug: #277 Signed-off-by: Mauro Carvalho Chehab <[email protected]>
Ok, tested applying both patches from Debian: no breakages on Fedora. I'll apply them both. |
zbar/configure.ac
Lines 664 to 683 in 6ea7392
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.The text was updated successfully, but these errors were encountered: