-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
ZBar 0.10 update #2029
ZBar 0.10 update #2029
Conversation
The original config.guess and config.sub are outdated and do not support crosscompilation to aarch64. The patch just replace those files with the ones found here http://git.savannah.gnu.org/cgit/config.git/tree/
5k lines of patch?! This not a patch, it's an entire new project 😅 What's the source of that patch? |
All green in build 1 (
|
I believe I left the link to the source in the commit message |
Isn't this the result of a more recent autoconf? |
I'm not really sure. I googled the error I was having and I saw that it is pretty common to get this files outdated and they have to be manually updated using the sources I used. |
@ericriff
with tools.chdir(self._source_subfolder):
self.run("autoreconf -fiv", run_environment=tools.os_info.is_windows) |
I did a quick test and I've got a bunch of errors
Using my system tools instead of build requirements I also get errors
|
I'll look into it. |
@ericriff
|
For using conan's automake, I've opened #2038 to let recipes add include paths for m4 files. But I'm unsure how to add these to the recipe because they look overkill for reconfiguration only. Using the patch in my previous comment, the automake package created by #2038, and adding the following lines to with tools.chdir(self._source_subfolder):
with tools.environment_append({"AUTOMAKE_CONAN_INCLUDES": ["/usr/share/aclocal"]}):
self.run("autoreconf -fiv") |
OK, I'll try tomorrow.
Conan tries to pull libtool for armv7 instead of x86 and the build fails. If you use the newer approach with a build and a host profile this works as intended. |
I disagree. A patch with 5k lines of code is unacceptable complex for package maintainers. |
I also considered putting those files in |
Ideal would be to have a release. Is the project (temporarilly) dead? |
I believe the project is dead. There is also a mirror in github. On that one the latest release is also 0.10 but they continued developing for android and iOS. But it is weird because if you compare the sources of github and the official ones (sourceforge), on the same release (0.10) they're not the same. Specifically, |
This patch works using libtool from system. I'm able to crosscompile for aarch64 without the gigapatch. |
Check this list: https://git.linuxtv.org/zbar.git/refs/
It looks like the tagged commits are not the releases. The releases are probably the commits + running autoreconf on the repo.
Nevertheless, we will need to run autoreconf on the sources, irrespective it is a release or a tagged release. |
OK so do you want to switch to this unofficial fork? |
This is not up to me. |
The company where I work has a internal mirror of conan-index and we're sticking with the latest official sources there, at least for now. |
@ericriff see https://src.fedoraproject.org/rpms/zimg/blob/master/f/zimg.spec#_6 |
This is ZBAR not ZIMG. |
Oops! |
I'll move to that sources then. That was enough to tilt the balance haha |
Btw, it looks like fedora is adding |
* Bump version to 0.23.1 * Ditch gigantic patch and use autoreconf instead * Update test_package. zbar_version() takes 3 arguments now. * Use gettext and libtool as build_requirements
The build fails without it now so we definitely need it. Regardless the build keeps failing on my PC and complains about a missing file in EDIT: In the CI fails with the same error:
|
Some configurations of 'zbar/0.23.1' failed in build 2 (
|
Some configurations of 'zbar/0.23.1' failed in build 3 (
|
Some configurations of 'zbar/0.23.1' failed in build 4 (
|
@madebr I've been doing some tests and:
This files are also present in the
EDIT: This still results in undefined macros
|
I've completely forgotten about this PR since we stuck with version 0.10. |
Some configurations of 'zbar/0.23.1' failed in build 5 (
|
This is what I would do: |
This pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
This pull request has been automatically closed because it has not had recent activity. Thank you for your contributions. |
Specify library name and version: ZBar/0.10
The main change introduced by this PR is a patch that updates
config.guess
andconfig.sub
since the ones present in the source code are from 2009 and do not support (among others)aarch64
.There is also some cleanup in the test package and I changed the name of the findPkg.cmake to ZBar. Online you can find it as
findZBAR.cmake
orfindZBar.cmake
.conan-center hook activated.