[icedtea-web/f15] Added npapi-fix patch so that the plug-in compiles with xulrunner 8

Deepak Bhole dbhole at fedoraproject.org
Tue Nov 8 23:01:35 UTC 2011


commit e11c301ced9c9f0220f18f87c18a9125cdb3a08e
Author: Deepak Bhole <dbhole at redhat.com>
Date:   Tue Nov 8 18:01:26 2011 -0500

    Added npapi-fix patch so that the plug-in compiles with xulrunner 8

 icedtea-web-1.0.6-npapi-fix.patch |   12 ++++++++++++
 icedtea-web.spec                  |    4 ++++
 2 files changed, 16 insertions(+), 0 deletions(-)
---
diff --git a/icedtea-web-1.0.6-npapi-fix.patch b/icedtea-web-1.0.6-npapi-fix.patch
new file mode 100644
index 0000000..79ca0a6
--- /dev/null
+++ b/icedtea-web-1.0.6-npapi-fix.patch
@@ -0,0 +1,12 @@
+diff -up ./plugin/icedteanp/IcedTeaNPPlugin.cc.sav ./plugin/icedteanp/IcedTeaNPPlugin.cc
+--- ./plugin/icedteanp/IcedTeaNPPlugin.cc.sav	2011-11-08 17:27:29.046520865 -0500
++++ ./plugin/icedteanp/IcedTeaNPPlugin.cc	2011-11-08 17:27:40.469611421 -0500
+@@ -2262,7 +2262,7 @@ NP_Initialize (NPNetscapeFuncs* browserT
+ 
+ // Returns a string describing the MIME type that this plugin
+ // handles.
+-char*
++const char*
+ NP_GetMIMEDescription ()
+ {
+   PLUGIN_DEBUG ("NP_GetMIMEDescription\n");
diff --git a/icedtea-web.spec b/icedtea-web.spec
index d70969d..64fee94 100644
--- a/icedtea-web.spec
+++ b/icedtea-web.spec
@@ -44,6 +44,7 @@ Group:      Applications/Internet
 License:    LGPLv2+ and GPLv2 with exceptions
 URL:        http://icedtea.classpath.org/wiki/IcedTea-Web
 Source0:    http://icedtea.classpath.org/download/source/%{name}-%{version}.tar.gz
+Patch0:     %{name}-%{version}-npapi-fix.patch
 
 BuildRequires:  java-1.6.0-openjdk-devel
 BuildRequires:  desktop-file-utils
@@ -91,6 +92,8 @@ This package contains Javadocs for the IcedTea-Web project.
 %prep
 %setup -q
 
+%patch0
+
 %build
 ./configure \
     --with-pkgversion=fedora-%{release}-%{_arch} \
@@ -154,6 +157,7 @@ exit 0
 %changelog
 * Tue Nov 08 2011 Deepak Bhole <dbhole at redhat.com> 1.0.6-1
 - Updated to 1.0.6
+- Added npapi-fix patch so that the plug-in compiles with xulrunner 8
 
 * Wed Sep 28 2011 Deepak Bhole <dbhole at redhat.com> 1.0.5-1
 - Updated to 1.0.5


More information about the scm-commits mailing list