commit:     a9dfcd0754e2988c0cc78b996238c2d7d429d8a1
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Tue Mar 16 15:06:32 2021 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Tue Mar 16 15:06:49 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a9dfcd07

media-gfx/zbar: add autoconf 2.70 patch

Closes: https://bugs.gentoo.org/775656
Signed-off-by: Sam James <sam <AT> gentoo.org>

 .../zbar/files/zbar-0.23.1-autoconf-2.70.patch     | 38 ++++++++++++++++++++++
 media-gfx/zbar/zbar-0.23.1.ebuild                  |  5 +--
 2 files changed, 41 insertions(+), 2 deletions(-)

diff --git a/media-gfx/zbar/files/zbar-0.23.1-autoconf-2.70.patch 
b/media-gfx/zbar/files/zbar-0.23.1-autoconf-2.70.patch
new file mode 100644
index 00000000000..be9547ead11
--- /dev/null
+++ b/media-gfx/zbar/files/zbar-0.23.1-autoconf-2.70.patch
@@ -0,0 +1,38 @@
+https://github.com/mchehab/zbar/commit/89e7900d85dd54ef351a7ed582aec6a5a5d7fa37
+https://bugs.gentoo.org/775656
+
+From 89e7900d85dd54ef351a7ed582aec6a5a5d7fa37 Mon Sep 17 00:00:00 2001
+From: Boyuan Yang <by...@debian.org>
+Date: Thu, 31 Dec 2020 12:56:26 -0500
+Subject: [PATCH] configure.ac: Fix quote issue (autoconf 2.70 compat)
+
+One of the AS_IF() macro was not properly quoted. This commit
+fixes that issue.
+
+This patch closes: #132 (fixes this bug report).
+---
+ configure.ac | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/configure.ac b/configure.ac
+index df0220a8..db4bc902 100644
+--- a/configure.ac
++++ b/configure.ac
+@@ -656,7 +656,7 @@ AS_IF([test "x$with_qt" != "xno"],
+                                           [with_qt="no"])])])
+ 
+ AS_IF([test "x$with_qt" != "xno"],
+-   AS_IF([test "x$with_qt5" != "xno"],
++   [AS_IF([test "x$with_qt5" != "xno"],
+     [AC_CHECK_PROGS(MOC, [moc-qt5 moc])
+      AC_MSG_NOTICE([using moc from $MOC])
+      QT_VERSION=`$PKG_CONFIG Qt5Gui --modversion`
+@@ -672,7 +672,7 @@ dnl -fPIC has no effect on Windows and breaks windres
+      QT_VERSION=`$PKG_CONFIG QtGui --modversion`
+      AC_MSG_NOTICE([using Qt version $QT_VERSION])
+      qt_pkgconfig_file="zbar-qt.pc"
+-     ]))
++     ])])
+ 
+ AM_CONDITIONAL([HAVE_QT], [test "x$with_qt" = "xyes"])
+ 

diff --git a/media-gfx/zbar/zbar-0.23.1.ebuild 
b/media-gfx/zbar/zbar-0.23.1.ebuild
index 2f529efbe04..d74a878a969 100644
--- a/media-gfx/zbar/zbar-0.23.1.ebuild
+++ b/media-gfx/zbar/zbar-0.23.1.ebuild
@@ -84,8 +84,9 @@ PATCHES=(
        "${FILESDIR}/${P}_fix_leftover_on_shell_compatibility.patch"
        "${FILESDIR}/${P}_fix_unittest.patch"
        "${FILESDIR}/${P}_musl_include_locale_h.patch"
-       "${FILESDIR}/zbar-0.23_fix_Qt5X11Extras_detect.patch"
-       "${FILESDIR}/zbar-0.23_fix_python_detect.patch"
+       "${FILESDIR}/${PN}-0.23_fix_Qt5X11Extras_detect.patch"
+       "${FILESDIR}/${PN}-0.23_fix_python_detect.patch"
+       "${FILESDIR}/${P}-autoconf-2.70.patch"
 )
 
 DOCS=( README.md NEWS.md TODO.md HACKING.md TODO.md ChangeLog )

Reply via email to