public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Gwyn Ciesla <gwync@protonmail.com>
To: git-commits@fedoraproject.org
Subject: [rpms/zbar] f44: Use upstream snapshot to fix build and qt segault issues.
Date: Fri, 09 Oct 2026 19:39:36 GMT	[thread overview]
Message-ID: <179157477643.1.9137061340646748193.rpms-zbar-66236f809ff3@fedoraproject.org> (raw)

A new commit has been pushed.

Repo   : rpms/zbar
Branch : f44
Commit : 66236f809ff33b95d269b71b95b2f069b3df701c
Author : Gwyn Ciesla <gwync@protonmail.com>
Date   : 2026-10-09T14:36:53-05:00
Stats  : +15/-37 in 4 file(s)
URL    : https://src.fedoraproject.org/rpms/zbar/c/66236f809ff33b95d269b71b95b2f069b3df701c?branch=f44

Log:
Use upstream snapshot to fix build and qt segault issues.

---
diff --git a/.gitignore b/.gitignore
index 5a6ac22..8b0df74 100644
--- a/.gitignore
+++ b/.gitignore
@@ -12,3 +12,4 @@ zbar-0.10.tar.bz2
 /zbar-0.23.tar.bz2
 /zbar-0.23.90.tar.bz2
 /zbar-0.23.93.tar.bz2
+/zbar-2d7bada.tar.gz

diff --git a/fix_qt_overlinking.patch b/fix_qt_overlinking.patch
deleted file mode 100644
index 727a57e..0000000
--- a/fix_qt_overlinking.patch
+++ /dev/null
@@ -1,16 +0,0 @@
-This was causing Qt5 to be linked into every binary in zbar, where it is only
-needed for the Qt bindings (which already specify QT_CFLAGS, QT_LIBS, etc).
-
-diff --git a/configure.ac b/configure.ac
-index f0f9723..2a26973 100644
---- a/configure.ac
-+++ b/configure.ac
-@@ -689,8 +689,6 @@ AM_CONDITIONAL([HAVE_QT], [test "x$with_qt" = "xyes"])
- AM_COND_IF([HAVE_QT],
-            [AC_MSG_NOTICE([using Qt version $QT_VERSION])
-             AC_MSG_NOTICE([using moc from $MOC])
--            CPPFLAGS="$CPPFLAGS $QT_CPPFLAGS"
--            LIBS="$LIBS $QT_LIBS"
-             AC_CONFIG_FILES([zbar-qt.pc:"${qt_pkgconfig_file}.in"])
-             #dnl -fPIC has no effect on Windows and breaks windres
-             AS_IF([test "x$win32" = "xno"], [CPPFLAGS="$CPPFLAGS -fPIC"])])

diff --git a/sources b/sources
index 4eacb18..a272cac 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-SHA512 (zbar-0.23.93.tar.bz2) = 8b1d57557cb1c425109b709f0cbe94830939cb4cd9a0cb505d44ba3c7cfb3522560c3bbf2a8b37985da4577b677ad675491f6ef0e9796749382079c0e844e21e
+SHA512 (zbar-2d7bada.tar.gz) = 9994243ca11b65b173eb65d11369ba5aafc91b5b63979acfc6cb7e7878bd5a92d5f8f299883f4fbc795134cb05c8887a1ebd30e85306485b20ae6eb7ef0b2bbc

diff --git a/zbar.spec b/zbar.spec
index 255f4e8..e4eafd6 100644
--- a/zbar.spec
+++ b/zbar.spec
@@ -6,17 +6,14 @@
 
 Name:		zbar
 Version:	0.23.93
-Release:	13%{?dist}
+Release:	14.2d7bada%{?dist}
 Summary:	Bar code reader
 
 License:	LGPL-2.1-or-later
-URL:		http://zbar.sourceforge.net/
-Source0:	https://linuxtv.org/downloads/%{name}/%{name}-%{version}.tar.bz2
+URL:		https://github.com/mchehab/zbar
+Source0:        zbar-2d7bada.tar.gz
 Patch0:		use_python3_on_python_script.patch
-Patch1:		fix_qt_overlinking.patch
 
-BuildRequires:	autoconf
-BuildRequires:	automake
 BuildRequires:	dbus-devel
 BuildRequires:	gettext-devel
 BuildRequires:	GraphicsMagick-devel
@@ -25,7 +22,6 @@ BuildRequires:	libSM-devel
 BuildRequires:	libtool
 BuildRequires:	libv4l-devel
 BuildRequires:	libXv-devel
-BuildRequires:	make
 BuildRequires:	python3-gobject-devel
 BuildRequires:	qt5-qtbase-devel
 BuildRequires:	qt5-qtx11extras-devel
@@ -36,6 +32,7 @@ BuildRequires:	python3-devel
 BuildRequires:  python3-setuptools
 BuildRequires:  xmlto
 BuildRequires:  gobject-introspection-devel
+BuildRequires:  meson
 
 %description
 ZBar Bar Code Reader is an open source software suite for reading bar
@@ -118,22 +115,15 @@ on Java Native Interface (JNI) applications using ZBar.
 %endif
 
 %prep
-%setup -q
+%setup -qn %{name}-2d7bada
 %patch 0 -p1
-%patch 1 -p1
 
 %build
-autoreconf -fiv
-%configure --with-python=python3 --with-gtk=auto --with-dbusconfdir=%{_sysconfdir} --docdir=%{_docdir}/%{name}-%{version} --with-graphicsmagick --without-xshm --without-xv --enable-codes=ean,databar,code128,code93,code39,codabar,i25,qrcode,sqcode,pdf417
-
-# rpath
-sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool
-sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool
-
-%make_build
+%meson -Dlibrary_type=shared -Dcodes=ean,databar,code128,code93,code39,codabar,i25,qrcode,sqcode,pdf417 -Dpython=python3 -Dstatic_qt=false
+%meson_build
 
 %install
-%make_install
+%meson_install
 %if %{JAVA}
 install -d %{buildroot}%{_jnidir}
 mv %{buildroot}%{_datadir}/zbar/lib/zbar.jar %{buildroot}%{_jnidir}
@@ -145,7 +135,7 @@ cp test/test_python.py %{buildroot}%{_docdir}
 find ${RPM_BUILD_ROOT} -name '*.la' -or -name '*.a' | xargs rm -f
 
 # Remove installed doc
-rm -rf $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version}/
+rm -rf $RPM_BUILD_ROOT%{_docdir}/%{name}/
 
 %ldconfig_scriptlets
 
@@ -211,10 +201,13 @@ rm -rf $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version}/
 %endif
 
 %files -n python3-zbar
-%{python3_sitearch}/zbar.so
+%{python3_sitearch}/zbar*so
 %{_docdir}/test_python.py
 
 %changelog
+* Fri Oct 09 2026 Gwyn Ciesla <gwync@protonmail.com> - 0.23.93-14
+- Upstream patch for qt wayland segfault
+
 * Tue Aug 04 2026 Gwyn Ciesla <gwync@protonmail.com> - 0.23.93-13
 - Rebuild for Python 3.15.0b4
 

                 reply	other threads:[~2026-10-09 19:39 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=179157477643.1.9137061340646748193.rpms-zbar-66236f809ff3@fedoraproject.org \
    --to=gwync@protonmail.com \
    --cc=git-commits@fedoraproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox