rpms/kdelibs/devel kdelibs-4.0.80-khtml-stylesheet.patch, NONE, 1.1 kdelibs.spec, 1.328, 1.329 kdelibs-4.0.4-kstandarddirs.patch, 1.1, NONE
Than Ngo (than)
fedora-extras-commits at redhat.com
Fri May 30 17:18:38 UTC 2008
- Previous message: rpms/kdelibs/F-9 kdelibs-4.0.4-khtml-stylesheet.patch, NONE, 1.1 kdelibs-4.0.4-kstandarddirs.patch, 1.1, 1.2 kdelibs.spec, 1.321, 1.322
- Next message: rpms/selinux-policy/F-9 policy-20071130.patch, 1.164, 1.165 selinux-policy.spec, 1.679, 1.680
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Author: than
Update of /cvs/extras/rpms/kdelibs/devel
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv31390
Modified Files:
kdelibs.spec
Added Files:
kdelibs-4.0.80-khtml-stylesheet.patch
Removed Files:
kdelibs-4.0.4-kstandarddirs.patch
Log Message:
- fix #447965, order issue in kde path, thanks to Kevin
- backport patch to check html style version
kdelibs-4.0.80-khtml-stylesheet.patch:
--- NEW FILE kdelibs-4.0.80-khtml-stylesheet.patch ---
--- kdelibs-4.0.80/khtml/css/html4.css (Revision 813565)
+++ kdelibs-4.0.80/khtml/css/html4.css (Revision 813566)
@@ -5,6 +5,8 @@
* Konqueror/khtml relies on the existence of this style sheet for
* rendering. Do not remove or modify this file unless you know
* what you are doing.
+ *
+ * KHTML_STYLE_VERSION: 1
*/
@namespace "http://www.w3.org/1999/xhtml";
--- kdelibs-4.0.80/khtml/css/cssstyleselector.cpp (Revision 813565)
+++ kdelibs-4.0.80/khtml/css/cssstyleselector.cpp (Revision 813566)
@@ -62,12 +62,16 @@
#include <kconfig.h>
#include <QtCore/QFile>
#include <QtCore/QString>
+#include <QtCore/QFileInfo>
#include <kdebug.h>
#include <kurl.h>
#include <assert.h>
#include <stdlib.h>
+// keep in sync with html4.css'
+#define KHTML_STYLE_VERSION 1
+
#undef RELATIVE
#undef ABSOLUTE
@@ -386,6 +390,14 @@
file[readbytes] = '\0';
QString style = QLatin1String( file.data() );
+
+ QRegExp checkVersion( "KHTML_STYLE_VERSION:\\s*(\\d+)" );
+ checkVersion.setMinimal( true );
+ if (checkVersion.indexIn( style ) == -1 || checkVersion.cap(1).toInt() != KHTML_STYLE_VERSION) {
+ qFatal( "!!!!!!! ERROR !!!!!!! - KHTML default stylesheet version mismatch. Aborting. Check your installation. File used was: %s. Expected STYLE_VERSION %d\n",
+ QFileInfo( f ).absoluteFilePath().toLatin1().data(), KHTML_STYLE_VERSION );
+ }
+
if(s)
style += s->settingsToCSS();
DOMString str(style);
Index: kdelibs.spec
===================================================================
RCS file: /cvs/extras/rpms/kdelibs/devel/kdelibs.spec,v
retrieving revision 1.328
retrieving revision 1.329
diff -u -r1.328 -r1.329
--- kdelibs.spec 26 May 2008 14:50:46 -0000 1.328
+++ kdelibs.spec 30 May 2008 17:17:51 -0000 1.329
@@ -1,7 +1,7 @@
Summary: K Desktop Environment 4 - Libraries
Version: 4.0.80
-Release: 1%{?dist}
+Release: 2%{?dist}
%if 0%{?fedora} > 8
Name: kdelibs
@@ -77,9 +77,10 @@
# patch by Sergey Saukh: http://bugs.kde.org/show_bug.cgi?id=155707#c46
Patch15: kdelibs-4.0.4-proxy.patch
# forward port kstandarddirs hack to search /etc/kde
-Patch18: kdelibs-4.0.4-kstandarddirs.patch
+Patch18: kdelibs-4.0.80-kstandarddirs.patch
## upstream patches
+Patch100: kdelibs-4.0.80-khtml-stylesheet.patch
BuildRequires: qt4-devel >= 4.4.0
Requires: qt4 >= %{_qt4_version}
@@ -198,6 +199,8 @@
%patch15 -p0 -b .proxy
%patch18 -p1 -b .kstandarddirs
+# upstream patches
+%patch100 -p1 -b .khtml-stylesheet
%build
@@ -363,6 +366,10 @@
%changelog
+* Fri May 30 2008 Than Ngo <than at redhat.com> 4.0.80-2
+- fix #447965, order issue in kde path, thanks to Kevin
+- backport patch to check html style version
+
* Mon May 26 2008 Than Ngo <than at redhat.com> 4.0.80-1
- 4.1 beta1
--- kdelibs-4.0.4-kstandarddirs.patch DELETED ---
- Previous message: rpms/kdelibs/F-9 kdelibs-4.0.4-khtml-stylesheet.patch, NONE, 1.1 kdelibs-4.0.4-kstandarddirs.patch, 1.1, 1.2 kdelibs.spec, 1.321, 1.322
- Next message: rpms/selinux-policy/F-9 policy-20071130.patch, 1.164, 1.165 selinux-policy.spec, 1.679, 1.680
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the scm-commits
mailing list