add ss390/s390x support in kjs

This commit is contained in:
Than Ngo 2011-12-06 17:42:41 +01:00
parent cf7d07b596
commit 1b7f933f1a
2 changed files with 30 additions and 1 deletions

View File

@ -0,0 +1,22 @@
diff -up kdelibs-4.7.2/kjs/wtf/Platform.h.me kdelibs-4.7.2/kjs/wtf/Platform.h
--- kdelibs-4.7.2/kjs/wtf/Platform.h.me 2011-12-06 10:10:08.372356038 -0500
+++ kdelibs-4.7.2/kjs/wtf/Platform.h 2011-12-06 10:48:51.962357831 -0500
@@ -97,6 +97,18 @@
/* CPU */
+/* PLATFORM(S390X) - S390X 64-bit */
+#if defined(__s390x__)
+#define WTF_PLATFORM_S390X 1
+#define WTF_PLATFORM_BIG_ENDIAN 1
+#endif
+
+/* PLATFORM(S390) - S390 32-bit */
+#if defined(__s390__)
+#define WTF_PLATFORM_S390 1
+#define WTF_PLATFORM_BIG_ENDIAN 1
+#endif
+
/* PLATFORM(PPC) */
#if defined(__ppc__) \
|| defined(__PPC__) \

View File

@ -20,7 +20,7 @@
Summary: KDE Libraries
Version: 4.7.90
Release: 1%{?dist}
Release: 2%{?dist}
Name: kdelibs
Epoch: 6
@ -130,6 +130,9 @@ Patch51: kdelibs-4.6.2-uri_mimetypes.patch
# Toggle solid upnp support at runtime via env var SOLID_UPNP=1 (disabled by default)
Patch52: kdelibs-4.7.4-SOLID_UPNP.patch
# add s390/s390x support in kjs
Patch53: kdelibs-4.7.2-kjs-s390.patch
## upstream
## security fix
@ -322,6 +325,7 @@ sed -i -e "s|@@VERSION_RELEASE@@|%{version}-%{release}|" kio/kio/kprotocolmanage
%patch50 -p1 -b .knewstuff2_gpg2
%patch51 -p1 -b .uri_mimetypes
%patch52 -p1 -b .SOLID_UPNP
%patch53 -p1 -b .kjs-s390
# upstream patches
@ -576,6 +580,9 @@ rm -rf %{buildroot}
%changelog
* Tue Dec 06 2011 Than Ngo <than@redhat.com> - 4.7.90-2
- add ss390/s390x support in kjs
* Sat Dec 03 2011 Rex Dieter <rdieter@fedoraproject.org> 4.7.90-1
- 4.7.90