Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 672500 - media-gfx/zbar-0.20.1 - checking for Qt5Core >= 5 Qt5Gui >= 5 Qt5Widgets >= 5.0 Qt5X11Extras >= 5.0... no configure: error: Package requirements (Qt5Core >= 5 Qt5Gui >= 5 Qt5Widgets >= 5.0 Qt5X11Extras >= 5.0) were not met: <snip>
Summary: media-gfx/zbar-0.20.1 - checking for Qt5Core >= 5 Qt5Gui >= 5 Qt5Widgets >= 5...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-12-04 15:43 UTC by Louis Sautier (sbraz)
Modified: 2018-12-05 09:56 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Louis Sautier (sbraz) gentoo-dev 2018-12-04 15:43:26 UTC
Hi,
Currently zbar tries to enable QT support when multilib_is_native_abi is false resulting in a build failure:
/var/tmp/portage/media-gfx/zbar-0.20.1/work/zbar-0.20.1/configure: line 21578: QT_CFLAGS: command not found                                                                                                       
/var/tmp/portage/media-gfx/zbar-0.20.1/work/zbar-0.20.1/configure: line 21579: QT_LIBS: command not found
checking for Qt5Core >= 5 Qt5Gui >= 5 Qt5Widgets >= 5.0 Qt5X11Extras >= 5.0... no
configure: error: Package requirements (Qt5Core >= 5 Qt5Gui >= 5 Qt5Widgets >= 5.0 Qt5X11Extras >= 5.0) were not met:                                                                                             

QT needs to be disabled explicitly when multilib_is_native_abi is false, this can easily be worked around with:
--- /usr/portage/media-gfx/zbar/zbar-0.20.1.ebuild      2018-11-25 23:32:05.008846140 +0100
+++ zbar-0.20.1.ebuild  2018-12-04 16:13:18.364304464 +0100
@@ -125,6 +125,8 @@
                else
                        myeconfargs+=( --without-qt )
                fi
+       else
+               myeconfargs+=( --without-qt )
        fi
 
        ECONF_SOURCE=${S} \



However, even with this change, header files don't match between APIs:
 * Header files have changed between ABIs.
 * --- /var/tmp/portage/media-gfx/zbar-0.20.1/temp/.multilib_header_cksum       2018-12-04 16:14:55.534924468 +0100                                                                                               
 * +++ /var/tmp/portage/media-gfx/zbar-0.20.1/temp/.multilib_header_cksum.new   2018-12-04 16:14:56.224928872 +0100                                                                                               
 * @@ -1,4 +1,5 @@
 *  1783510836 12766 /var/tmp/portage/media-gfx/zbar-0.20.1/image/usr/include/zbar/Symbol.h
 * +226369546 2249 /var/tmp/portage/media-gfx/zbar-0.20.1/image/usr/include/zbar/QZBarImage.h
 *  2715978735 3741 /var/tmp/portage/media-gfx/zbar-0.20.1/image/usr/include/zbar/Window.h
 *  1794352534 3755 /var/tmp/portage/media-gfx/zbar-0.20.1/image/usr/include/zbar/ImageScanner.h
 *  1066609543 4197 /var/tmp/portage/media-gfx/zbar-0.20.1/image/usr/include/zbar/Scanner.h
 * @@ -6,6 +7,7 @@
 *  4167871752 56477 /var/tmp/portage/media-gfx/zbar-0.20.1/image/usr/include/zbar.h
 *  2122947260 5680 /var/tmp/portage/media-gfx/zbar-0.20.1/image/usr/include/zbar/Decoder.h
 *  3400784251 5779 /var/tmp/portage/media-gfx/zbar-0.20.1/image/usr/include/zbar/Video.h
 * +3556153219 5989 /var/tmp/portage/media-gfx/zbar-0.20.1/image/usr/include/zbar/QZBar.h
 *  3931242921 6445 /var/tmp/portage/media-gfx/zbar-0.20.1/image/usr/include/zbar/zbargtk.h
 *  1551641363 6971 /var/tmp/portage/media-gfx/zbar-0.20.1/image/usr/include/zbar/Processor.h
 *  1523134190 8853 /var/tmp/portage/media-gfx/zbar-0.20.1/image/usr/include/zbar/Image.h
 * ERROR: media-gfx/zbar-0.20.1::local failed (install phase):
 *   Header checksum mismatch, aborting.
Comment 1 PhobosK 2018-12-04 18:09:34 UTC
@Louis,

There are a couple of other problems with the ebuild except the one you list...

I've listed them in bug #672184 and I propose a new r1 ebuild: zbar-0.20.1-r1.ebuild
It should fix all problems...

Can you test it and help uploading it to portage please?
Comment 2 Larry the Git Cow gentoo-dev 2018-12-05 09:53:44 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=91433e5fca89bb5281548d29e3c13278ad295425

commit 91433e5fca89bb5281548d29e3c13278ad295425
Author:     Louis Sautier <sbraz@gentoo.org>
AuthorDate: 2018-12-05 09:49:01 +0000
Commit:     Louis Sautier <sbraz@gentoo.org>
CommitDate: 2018-12-05 09:52:47 +0000

    media-gfx/zbar: fix build failures on multilib systems
    
    * Explicitly disable QT on non-native ABIs, otherwise it is implicitly
      enabled by upstream's build system.
    * Wrap QT-related headers that are only included for native ABI builds.
    
    Closes: https://bugs.gentoo.org/672500
    Package-Manager: Portage-2.3.52, Repoman-2.3.12
    Signed-off-by: Louis Sautier <sbraz@gentoo.org>

 media-gfx/zbar/zbar-0.20.1.ebuild | 12 ++++++++++++
 1 file changed, 12 insertions(+)
Comment 3 Louis Sautier (sbraz) gentoo-dev 2018-12-05 09:56:14 UTC
(In reply to PhobosK from comment #1)
> @Louis,
> 
> There are a couple of other problems with the ebuild except the one you
> list...
> 
> I've listed them in bug #672184 and I propose a new r1 ebuild:
> zbar-0.20.1-r1.ebuild
> It should fix all problems...
> 
> Can you test it and help uploading it to portage please?

Sorry, I hadn't seen your comment, I'll look at that other bug now.