]> git.pld-linux.org Git - packages/qt4.git/commitdiff
- fix building with gcc 11
authorJan Rękorajski <baggins@pld-linux.org>
Mon, 16 Aug 2021 22:08:41 +0000 (00:08 +0200)
committerJan Rękorajski <baggins@pld-linux.org>
Mon, 16 Aug 2021 22:08:41 +0000 (00:08 +0200)
- do not build phonon if using system phonon
- do not pull gstreamer deps if not building phonon (breaks webkit build)

gcc11.patch [new file with mode: 0644]
qt4.spec

diff --git a/gcc11.patch b/gcc11.patch
new file mode 100644 (file)
index 0000000..6c22600
--- /dev/null
@@ -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();
+ }
index 109b8857792b4dfbf122dfa7138eb216c70e3eff..51452625f8ee20d3b19acc0b7533e20680d949f1 100644 (file)
--- 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 \
This page took 0.165858 seconds and 4 git commands to generate.