[packages/qt4] - fix building with gcc 11 - do not build phonon if using system phonon - do not pull gstreamer deps

baggins baggins at pld-linux.org
Tue Aug 17 00:09:49 CEST 2021


commit f3f2072f2b70ae3ca102604454172c4386e630b0
Author: Jan Rękorajski <baggins at pld-linux.org>
Date:   Tue Aug 17 00:08:41 2021 +0200

    - fix building with gcc 11
    - do not build phonon if using system phonon
    - do not pull gstreamer deps if not building phonon (breaks webkit build)

 gcc11.patch | 11 +++++++++++
 qt4.spec    |  6 +++++-
 2 files changed, 16 insertions(+), 1 deletion(-)
---
diff --git a/qt4.spec b/qt4.spec
index 109b885..5145262 100644
--- a/qt4.spec
+++ b/qt4.spec
@@ -132,6 +132,7 @@ Patch50:	mysql-link.patch
 Patch51:	gcc9.patch
 Patch52:	gcc9-qforeach.patch
 Patch53:	cxx11.patch
+Patch54:	gcc11.patch
 URL:		http://qt-project.org/
 %{?with_ibase:BuildRequires:	Firebird-devel}
 %{?with_openvg:BuildRequires:	Mesa-libOpenVG-devel}
@@ -145,7 +146,7 @@ BuildRequires:	freetds-devel
 BuildRequires:	freetype-devel >= 2.1.3
 %{?with_pch:BuildRequires:	gcc >= 5:4.0}
 BuildRequires:	glib2-devel >= 2.0.0
-BuildRequires:	gstreamer0.10-plugins-base-devel
+%{!?with_system_phonon:BuildRequires:	gstreamer0.10-plugins-base-devel}
 %{?with_gtk:BuildRequires:	gtk+2-devel >= 2:2.10}
 # see dependency on libicu version below
 BuildRequires:	libicu-devel >= %{icu_abi}
@@ -178,6 +179,7 @@ BuildRequires:	xorg-lib-libXrender-devel
 BuildRequires:	xorg-lib-libXtst-devel
 BuildRequires:	xorg-lib-libXv-devel
 BuildRequires:	zlib-devel
+%{?with_system_phonon:BuildConflicts:	gstreamer0.10-devel}
 Obsoletes:	qt-extensions
 Obsoletes:	qt-utils
 Conflicts:	kdelibs <= 8:3.2-0.030602.1
@@ -1572,6 +1574,7 @@ Programas exemplo para o Qt versão.
 %patch51 -p1
 %patch52 -p1
 %patch53 -p1
+%patch54 -p1
 
 %{__sed} -i -e 's,usr/X11R6/,usr/g,' mkspecs/linux-g++-64/qmake.conf \
 	mkspecs/common/linux.conf
@@ -1645,6 +1648,7 @@ COMMONOPT=" \
 	%{!?with_sse41:-no-sse4.1} \
 	%{!?with_sse42:-no-sse4.2} \
 	%{!?with_avx:-no-avx} \
+	%{?with_system_phonon:-no-phonon} \
 	-qdbus \
 	-dbus-linked \
 	-reduce-relocations \
diff --git a/gcc11.patch b/gcc11.patch
new file mode 100644
index 0000000..6c22600
--- /dev/null
+++ b/gcc11.patch
@@ -0,0 +1,11 @@
+--- qt-everywhere-opensource-src-4.8.7/src/3rdparty/webkit/Source/WebCore/html/HTMLImageElement.cpp~	2015-05-07 16:14:47.000000000 +0200
++++ qt-everywhere-opensource-src-4.8.7/src/3rdparty/webkit/Source/WebCore/html/HTMLImageElement.cpp	2021-08-16 18:44:52.721008091 +0200
+@@ -74,7 +74,7 @@
+     RefPtr<HTMLImageElement> image = adoptRef(new HTMLImageElement(imgTag, document));
+     if (optionalWidth)
+         image->setWidth(*optionalWidth);
+-    if (optionalHeight > 0)
++    if (optionalHeight)
+         image->setHeight(*optionalHeight);
+     return image.release();
+ }
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/qt4.git/commitdiff/f3f2072f2b70ae3ca102604454172c4386e630b0



More information about the pld-cvs-commit mailing list