- fix build on x32 auto/th/qt-creator-4.8.2-1
authorJan Rękorajski <baggins@pld-linux.org>
Sat, 11 May 2019 11:33:18 +0000 (13:33 +0200)
committerJan Rękorajski <baggins@pld-linux.org>
Sat, 11 May 2019 11:33:18 +0000 (13:33 +0200)
qt-creator.spec
x32.patch [new file with mode: 0644]

index e8900cc5514998426e7f7c430e498551631f744c..21079aebcd050f72bdb6055ccf7ad06ba0cf5712 100644 (file)
@@ -8,6 +8,7 @@ License:        LGPL v2.1
 Group:         X11/Development/Tools
 Source0:       http://download.qt.io/official_releases/qtcreator/4.8/%{version}/%{name}-opensource-src-%{version}.tar.xz
 # Source0-md5: bf5b9953cfec44aa2504e30cb81768e6
+Patch0:                x32.patch
 URL:           http://doc.qt.io/qt-5/topics-app-development.html
 BuildRequires: Qt5Concurrent-devel >= 5.9.0
 BuildRequires: Qt5Designer-devel >= 5.9.0
@@ -52,6 +53,9 @@ Qt.
 
 %prep
 %setup -q -n %{name}-opensource-src-%{version}
+%ifarch x32
+%patch0 -p1
+%endif
 
 # fix unresolved symbols in libQtcSsh
 echo >> src/libs/ssh/ssh_dependencies.pri
diff --git a/x32.patch b/x32.patch
new file mode 100644 (file)
index 0000000..beb70b2
--- /dev/null
+++ b/x32.patch
@@ -0,0 +1,12 @@
+--- qt-creator-opensource-src-4.8.2/src/libs/botan/botan.pro~  2019-05-11 12:45:09.000000000 +0200
++++ qt-creator-opensource-src-4.8.2/src/libs/botan/botan.pro   2019-05-11 12:45:26.217492890 +0200
+@@ -16,8 +16,7 @@
+ msvc: BOTAN_CC_TYPE = msvc
+ else: clang: BOTAN_CC_TYPE = clang
+ else: BOTAN_CC_TYPE = gcc
+-contains(QT_ARCH, i386): BOTAN_ARCH_SWITCH = "--cpu=x86"
+-else: contains(QT_ARCH, x86_64): BOTAN_ARCH_SWITCH = "--cpu=x86_64"
++BOTAN_ARCH_SWITCH = "--cpu=x32"
+ BOTAN_MODULES = aes aes_ssse3 auto_rng bigint block cbc ctr des dh dsa ec_group ecdh ecdsa entropy \
+                 filters hmac mode_pad pubkey rsa sha1 sha1_sse2 sha1_x86 sha2_32 sha2_32_x86 \
+                 sha2_64 simd system_rng,emsa_pkcs1,pbes2,pbkdf2
This page took 0.069139 seconds and 4 git commands to generate.