package/zbar: bump to version 0.23.90

Drop patches that are now upstream.

Enable python module when available as it should now work with
python3.9 as of this release.

Signed-off-by: James Hilliard <james.hilliard1@gmail.com>
Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
This commit is contained in:
James Hilliard 2021-09-20 06:02:47 -06:00 committed by Arnout Vandecappelle (Essensium/Mind)
parent 32b2a03745
commit cfc80eeeb4
4 changed files with 9 additions and 103 deletions

View File

@ -1,45 +0,0 @@
From a133aea7880bbb56d75535e534716d0e16a3b61a Mon Sep 17 00:00:00 2001
From: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
Date: Tue, 28 Jul 2020 09:47:03 +0200
Subject: [PATCH] zbarcam, zbarimg: get rid of gettext.h
This doesn't seem to be needed at all for translations to
work. Also, gettext.h uses a different license. So, let's get
rid of it.
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
[Retrieved (and updated to remove gettext.h which is not in the
tarball):
https://github.com/mchehab/zbar/commit/a133aea7880bbb56d75535e534716d0e16a3b61a]
Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
---
zbar/gettext.h | 294 ----------------------------------------------
zbarcam/zbarcam.c | 1 -
zbarimg/zbarimg.c | 1 -
3 files changed, 296 deletions(-)
delete mode 100644 zbar/gettext.h
diff --git a/zbarcam/zbarcam.c b/zbarcam/zbarcam.c
index f7ea281..ad30101 100644
--- a/zbarcam/zbarcam.c
+++ b/zbarcam/zbarcam.c
@@ -35,7 +35,6 @@
#include <zbar.h>
#ifdef ENABLE_NLS
-#include "../zbar/gettext.h"
# include <libintl.h>
# define _(string) gettext(string)
#else
diff --git a/zbarimg/zbarimg.c b/zbarimg/zbarimg.c
index 0796fd8..d05d832 100644
--- a/zbarimg/zbarimg.c
+++ b/zbarimg/zbarimg.c
@@ -40,7 +40,6 @@
#include <zbar.h>
#ifdef ENABLE_NLS
-#include "../zbar/gettext.h"
# include <libintl.h>
# define _(string) gettext(string)
#else

View File

@ -1,55 +0,0 @@
From ecf90fcff066c06eda1fb931d08fadf5989ecb36 Mon Sep 17 00:00:00 2001
From: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Date: Sat, 29 Aug 2020 14:23:04 +0200
Subject: [PATCH] zbarcam/zbar{cam,img}.c: fix build with musl
setlocale is used since version 0.23.1 and
https://git.linuxtv.org/zbar.git/commit/id=d05911f8d5fb8c1e064bd93ed9ec9f038c5da096
Include locale.h to avoid the following build failure on musl:
zbarcam/zbarcam.c:168:5: warning: implicit declaration of function 'setlocale'; did you mean 'setstate'? [-Wimplicit-function-declaration]
setlocale (LC_ALL, "");
^~~~~~~~~
setstate
zbarcam/zbarcam.c:168:16: error: 'LC_ALL' undeclared (first use in this function)
setlocale (LC_ALL, "");
^~~~~~
Fixes:
- http://autobuild.buildroot.org/results/b93ce5430bf22ddda94ee30882a883348617f5b1
Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
[Upstream status: https://github.com/mchehab/zbar/pull/115]
---
zbarcam/zbarcam.c | 1 +
zbarimg/zbarimg.c | 1 +
2 files changed, 2 insertions(+)
diff --git a/zbarcam/zbarcam.c b/zbarcam/zbarcam.c
index 6e13c8c..b8bc732 100644
--- a/zbarcam/zbarcam.c
+++ b/zbarcam/zbarcam.c
@@ -36,6 +36,7 @@
#ifdef ENABLE_NLS
# include <libintl.h>
+# include <locale.h>
# define _(string) gettext(string)
#else
# define _(string) string
diff --git a/zbarimg/zbarimg.c b/zbarimg/zbarimg.c
index d05d832..52502b2 100644
--- a/zbarimg/zbarimg.c
+++ b/zbarimg/zbarimg.c
@@ -41,6 +41,7 @@
#ifdef ENABLE_NLS
# include <libintl.h>
+# include <locale.h>
# define _(string) gettext(string)
#else
# define _(string) string
--
2.28.0

View File

@ -1,3 +1,3 @@
# Locally computed:
sha256 dad260b47ef887a639e840a89e5e6e132217b6bba2a8473565d1f459bcb97c1f zbar-0.23.1.tar.bz2
sha256 9152c8fb302b3891e1cb9cc719883d2f4ccd2483e3430783a2cf2d93bd5901ad zbar-0.23.90.tar.bz2
sha256 44260f9252c7fe38ba8dfb645330504f4a375e3a5e9dd7d5d6b9f04adb4952f1 LICENSE.md

View File

@ -4,7 +4,7 @@
#
################################################################################
ZBAR_VERSION = 0.23.1
ZBAR_VERSION = 0.23.90
ZBAR_SOURCE = zbar-$(ZBAR_VERSION).tar.bz2
ZBAR_SITE = https://www.linuxtv.org/downloads/zbar
ZBAR_LICENSE = LGPL-2.1+
@ -21,7 +21,6 @@ ZBAR_CONF_OPTS = \
--without-qt \
--without-qt5 \
--without-gtk \
--without-python \
--without-x \
--without-java
@ -32,4 +31,11 @@ else
ZBAR_CONF_OPTS += --without-dbus
endif
ifeq ($(BR2_PACKAGE_PYTHON3),y)
ZBAR_DEPENDENCIES += host-python3 python3
ZBAR_CONF_OPTS += --with-python=python3
else
ZBAR_CONF_OPTS += --with-python=no
endif
$(eval $(autotools-package))