All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH 1/1] package/zbar: bump to version 0.23.90
@ 2021-09-20 12:02 James Hilliard
  2021-09-26 21:33 ` Arnout Vandecappelle
  0 siblings, 1 reply; 2+ messages in thread
From: James Hilliard @ 2021-09-20 12:02 UTC (permalink / raw)
  To: buildroot; +Cc: James Hilliard, Volkov Viacheslav

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>
---
 ...zbarcam-zbarimg-get-rid-of-gettext-h.patch | 45 ---------------
 ...-zbar-cam-img-.c-fix-build-with-musl.patch | 55 -------------------
 package/zbar/zbar.hash                        |  2 +-
 package/zbar/zbar.mk                          | 10 +++-
 4 files changed, 9 insertions(+), 103 deletions(-)
 delete mode 100644 package/zbar/0001-zbarcam-zbarimg-get-rid-of-gettext-h.patch
 delete mode 100644 package/zbar/0002-zbarcam-zbar-cam-img-.c-fix-build-with-musl.patch

diff --git a/package/zbar/0001-zbarcam-zbarimg-get-rid-of-gettext-h.patch b/package/zbar/0001-zbarcam-zbarimg-get-rid-of-gettext-h.patch
deleted file mode 100644
index 009fd5f96f..0000000000
--- a/package/zbar/0001-zbarcam-zbarimg-get-rid-of-gettext-h.patch
+++ /dev/null
@@ -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
diff --git a/package/zbar/0002-zbarcam-zbar-cam-img-.c-fix-build-with-musl.patch b/package/zbar/0002-zbarcam-zbar-cam-img-.c-fix-build-with-musl.patch
deleted file mode 100644
index fe62c1649c..0000000000
--- a/package/zbar/0002-zbarcam-zbar-cam-img-.c-fix-build-with-musl.patch
+++ /dev/null
@@ -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
-
diff --git a/package/zbar/zbar.hash b/package/zbar/zbar.hash
index 4277091892..a4303266db 100644
--- a/package/zbar/zbar.hash
+++ b/package/zbar/zbar.hash
@@ -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
diff --git a/package/zbar/zbar.mk b/package/zbar/zbar.mk
index f75741ded9..5554dca6a1 100644
--- a/package/zbar/zbar.mk
+++ b/package/zbar/zbar.mk
@@ -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))
-- 
2.25.1

_______________________________________________
buildroot mailing list
buildroot@lists.buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [Buildroot] [PATCH 1/1] package/zbar: bump to version 0.23.90
  2021-09-20 12:02 [Buildroot] [PATCH 1/1] package/zbar: bump to version 0.23.90 James Hilliard
@ 2021-09-26 21:33 ` Arnout Vandecappelle
  0 siblings, 0 replies; 2+ messages in thread
From: Arnout Vandecappelle @ 2021-09-26 21:33 UTC (permalink / raw)
  To: James Hilliard, buildroot; +Cc: Volkov Viacheslav



On 20/09/2021 14:02, James Hilliard wrote:
> 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>

  Applied to master, thanks.

  Regards,
  Arnout

> ---
>   ...zbarcam-zbarimg-get-rid-of-gettext-h.patch | 45 ---------------
>   ...-zbar-cam-img-.c-fix-build-with-musl.patch | 55 -------------------
>   package/zbar/zbar.hash                        |  2 +-
>   package/zbar/zbar.mk                          | 10 +++-
>   4 files changed, 9 insertions(+), 103 deletions(-)
>   delete mode 100644 package/zbar/0001-zbarcam-zbarimg-get-rid-of-gettext-h.patch
>   delete mode 100644 package/zbar/0002-zbarcam-zbar-cam-img-.c-fix-build-with-musl.patch
> 
> diff --git a/package/zbar/0001-zbarcam-zbarimg-get-rid-of-gettext-h.patch b/package/zbar/0001-zbarcam-zbarimg-get-rid-of-gettext-h.patch
> deleted file mode 100644
> index 009fd5f96f..0000000000
> --- a/package/zbar/0001-zbarcam-zbarimg-get-rid-of-gettext-h.patch
> +++ /dev/null
> @@ -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
> diff --git a/package/zbar/0002-zbarcam-zbar-cam-img-.c-fix-build-with-musl.patch b/package/zbar/0002-zbarcam-zbar-cam-img-.c-fix-build-with-musl.patch
> deleted file mode 100644
> index fe62c1649c..0000000000
> --- a/package/zbar/0002-zbarcam-zbar-cam-img-.c-fix-build-with-musl.patch
> +++ /dev/null
> @@ -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
> -
> diff --git a/package/zbar/zbar.hash b/package/zbar/zbar.hash
> index 4277091892..a4303266db 100644
> --- a/package/zbar/zbar.hash
> +++ b/package/zbar/zbar.hash
> @@ -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
> diff --git a/package/zbar/zbar.mk b/package/zbar/zbar.mk
> index f75741ded9..5554dca6a1 100644
> --- a/package/zbar/zbar.mk
> +++ b/package/zbar/zbar.mk
> @@ -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))
> 
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-09-26 21:33 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-09-20 12:02 [Buildroot] [PATCH 1/1] package/zbar: bump to version 0.23.90 James Hilliard
2021-09-26 21:33 ` Arnout Vandecappelle

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.