Summary: | media-gfx/zbar-0.20.1 with USE="qt5 v4l" - moc: Cannot create zbarcam/moc_zbarcam_qt.h | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Juergen Rose <rose> |
Component: | Current packages | Assignee: | No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it <maintainer-needed> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | phobosk, sbraz |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
See Also: | https://bugs.gentoo.org/show_bug.cgi?id=672500 | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: |
build.log
zbar-0.20.1-r1.ebuild.diff |
Description
Juergen Rose
2018-11-28 15:41:47 UTC
Created attachment 556792 [details, diff]
zbar-0.20.1-r1.ebuild.diff
This error is because this is a multilib enabled ebuild and the sources doesn't handle well an out of source builds (as multilib eclass does out of source builds).
Another problem with the ebuild is that if your system is x64 and you have enabled multilib, you'll end up with an error at src configure stage at x86 ABI because QT on Gentoo is not multilib.
Additionally the default QT configure options of the sources are "-with-qt" and "-with-qt5"
Anyway considering that multilib stays, there are some fixes needed to be applied to the ebuild:
1. Add to the prepare phase a "multilib_copy_sources"
2. Consider turning off QT when not in native ABI
3. Always install QT zbar's headers from the sources "include" folder, so multilib doesn't complain about header changed between the ABIs
I am uploading the necessary changes.
I've tested it and works ok.
If anyone from the Gentoo Devs wants, he/she may update the ebuild....
Thanks
@Jeroen Roovers, have you tried my zbar-0.20.1-r1.ebuild ebuild? It should fix your problem... The QT "Cannot create zbarcam/moc_zbarcam_qt.h" is because the sources do not handle well out of source builds, so an extra step is needed- the usage of "multilib_copy_sources" as I described above... The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ca3a5c1bc65bfb8b8456a8ab16a83efeec973e82 commit ca3a5c1bc65bfb8b8456a8ab16a83efeec973e82 Author: Louis Sautier <sbraz@gentoo.org> AuthorDate: 2018-12-05 12:28:13 +0000 Commit: Louis Sautier <sbraz@gentoo.org> CommitDate: 2018-12-05 12:43:32 +0000 media-gfx/zbar: fix multilib build with USE="v4l qt5" Closes: https://bugs.gentoo.org/672184 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 | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) |