summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDiego Elio Pettenò <flameeyes@gentoo.org>2006-07-30 21:02:00 +0000
committerDiego Elio Pettenò <flameeyes@gentoo.org>2006-07-30 21:02:00 +0000
commit63f829e6271a0b6d6fb76059058b6f2b8d0e6fa8 (patch)
tree05bb1042d5bb134b23aba36fea56e185e10c9666 /kde-base/kdebase
parentStable on hppa, ppc. (diff)
downloadgentoo-2-63f829e6271a0b6d6fb76059058b6f2b8d0e6fa8.tar.gz
gentoo-2-63f829e6271a0b6d6fb76059058b6f2b8d0e6fa8.tar.bz2
gentoo-2-63f829e6271a0b6d6fb76059058b6f2b8d0e6fa8.zip
Add patch to fix redirects on embedded plugins, see KDE BUG #121964.
(Portage version: 2.1.1_pre4)
Diffstat (limited to 'kde-base/kdebase')
-rw-r--r--kde-base/kdebase/ChangeLog6
-rw-r--r--kde-base/kdebase/files/nsplugins-3.5.3-applet-redirects.patch67
-rw-r--r--kde-base/kdebase/kdebase-3.5.4.ebuild29
3 files changed, 87 insertions, 15 deletions
diff --git a/kde-base/kdebase/ChangeLog b/kde-base/kdebase/ChangeLog
index 90a14d8fa5b0..c868a7926096 100644
--- a/kde-base/kdebase/ChangeLog
+++ b/kde-base/kdebase/ChangeLog
@@ -1,6 +1,10 @@
# ChangeLog for kde-base/kdebase
# Copyright 2002-2006 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/kde-base/kdebase/ChangeLog,v 1.303 2006/07/26 08:17:53 flameeyes Exp $
+# $Header: /var/cvsroot/gentoo-x86/kde-base/kdebase/ChangeLog,v 1.304 2006/07/30 21:02:00 flameeyes Exp $
+
+ 30 Jul 2006; Diego Pettenò <flameeyes@gentoo.org>
+ +files/nsplugins-3.5.3-applet-redirects.patch, kdebase-3.5.4.ebuild:
+ Add patch to fix redirects on embedded plugins, see KDE BUG #121964.
*kdebase-3.5.4 (26 Jul 2006)
diff --git a/kde-base/kdebase/files/nsplugins-3.5.3-applet-redirects.patch b/kde-base/kdebase/files/nsplugins-3.5.3-applet-redirects.patch
new file mode 100644
index 000000000000..5f8ded2292e0
--- /dev/null
+++ b/kde-base/kdebase/files/nsplugins-3.5.3-applet-redirects.patch
@@ -0,0 +1,67 @@
+Index: nsplugins/viewer/nsplugin.cpp
+===================================================================
+--- nsplugins/viewer/nsplugin.cpp (revision 565997)
++++ nsplugins/viewer/nsplugin.cpp (revision 565998)
+@@ -1602,6 +1602,12 @@
+ return true;
+ }
+
++void NSPluginStreamBase::updateURL( const KURL& newURL )
++{
++ _url = newURL;
++ free(const_cast<char*>(_stream->url));
++ _stream->url = strdup(_url.url().ascii());
++}
+
+ int NSPluginStreamBase::process( const QByteArray &data, int start )
+ {
+@@ -1824,6 +1830,8 @@
+ SLOT(totalSize(KIO::Job *, KIO::filesize_t)));
+ connect(_job, SIGNAL(mimetype(KIO::Job *, const QString &)),
+ SLOT(mimetype(KIO::Job *, const QString &)));
++ connect(_job, SIGNAL(redirection(KIO::Job *, const KURL&)),
++ SLOT(redirection(KIO::Job *, const KURL&)));
+ }
+
+ return false;
+@@ -1847,6 +1855,8 @@
+ SLOT(totalSize(KIO::Job *, KIO::filesize_t)));
+ connect(_job, SIGNAL(mimetype(KIO::Job *, const QString &)),
+ SLOT(mimetype(KIO::Job *, const QString &)));
++ connect(_job, SIGNAL(redirection(KIO::Job *, const KURL&)),
++ SLOT(redirection(KIO::Job *, const KURL&)));
+ }
+
+ return false;
+@@ -1863,6 +1873,11 @@
+ }
+ }
+
++void NSPluginStream::redirection(KIO::Job * /*job*/, const KURL& url)
++{
++ updateURL( url );
++}
++
+ void NSPluginStream::totalSize(KIO::Job * job, KIO::filesize_t size)
+ {
+ kdDebug(1431) << "NSPluginStream::totalSize - job=" << (void*)job << " size=" << KIO::number(size) << endl;
+Index: nsplugins/viewer/nsplugin.h
+===================================================================
+--- nsplugins/viewer/nsplugin.h (revision 565997)
++++ nsplugins/viewer/nsplugin.h (revision 565998)
+@@ -85,6 +85,7 @@
+ bool create( const QString& url, const QString& mimeType, void *notify, bool forceNotify = false );
+ int tries() { return _tries; }
+ void inform( );
++ void updateURL( const KURL& newURL );
+
+ class NSPluginInstance *_instance;
+ uint16 _streamType;
+@@ -126,6 +127,7 @@
+ void totalSize(KIO::Job *job, KIO::filesize_t size);
+ void mimetype(KIO::Job * job, const QString &mimeType);
+ void result(KIO::Job *job);
++ void redirection(KIO::Job *job, const KURL& url);
+ void resume();
+
+ protected:
diff --git a/kde-base/kdebase/kdebase-3.5.4.ebuild b/kde-base/kdebase/kdebase-3.5.4.ebuild
index 84005bb2ef7d..f23902c784b4 100644
--- a/kde-base/kdebase/kdebase-3.5.4.ebuild
+++ b/kde-base/kdebase/kdebase-3.5.4.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/kde-base/kdebase/kdebase-3.5.4.ebuild,v 1.1 2006/07/26 08:17:53 flameeyes Exp $
+# $Header: /var/cvsroot/gentoo-x86/kde-base/kdebase/kdebase-3.5.4.ebuild,v 1.2 2006/07/30 21:02:00 flameeyes Exp $
inherit kde-dist eutils flag-o-matic
@@ -76,7 +76,8 @@ DEPEND="${DEPEND}
) <virtual/x11-7 )
dev-util/pkgconfig"
-PATCHES="${FILESDIR}/kdebase-startkde-3.5.3-xinitrcd.patch"
+PATCHES="${FILESDIR}/kdebase-startkde-3.5.3-xinitrcd.patch
+ ${FILESDIR}/nsplugins-3.5.3-applet-redirects.patch"
pkg_setup() {
kde_pkg_setup
@@ -93,7 +94,7 @@ src_unpack() {
# Avoid using imake (kde bug 114466).
epatch "${WORKDIR}/patches/kdebase-3.5.0_beta2-noimake.patch"
- rm -f ${S}/configure
+ rm -f "${S}/configure"
epatch "${FILESDIR}/kdm-3.5.4-strict-aliasing.patch"
}
@@ -133,38 +134,38 @@ src_install() {
# startup and shutdown scripts
insinto ${KDEDIR}/env
- doins ${FILESDIR}/agent-startup.sh
+ doins "${FILESDIR}/agent-startup.sh"
exeinto ${KDEDIR}/shutdown
- doexe ${FILESDIR}/agent-shutdown.sh
+ doexe "${FILESDIR}/agent-shutdown.sh"
# freedesktop environment variables
- cat <<EOF > ${T}/xdg.sh
+ cat <<EOF > "${T}/xdg.sh"
export XDG_DATA_DIRS="${KDEDIR}/share:/usr/share"
export XDG_CONFIG_DIRS="${KDEDIR}/etc/xdg"
EOF
insinto ${KDEDIR}/env
- doins ${T}/xdg.sh
+ doins "${T}/xdg.sh"
# x11 session script
- cat <<EOF > ${T}/kde-${SLOT}
+ cat <<EOF > "${T}/kde-${SLOT}"
#!/bin/sh
exec ${KDEDIR}/bin/startkde
EOF
exeinto /etc/X11/Sessions
- doexe ${T}/kde-${SLOT}
+ doexe "${T}/kde-${SLOT}"
# freedesktop compliant session script
sed -e "s:@KDE_BINDIR@:${KDEDIR}/bin:g;s:Name=KDE:Name=KDE ${SLOT}:" \
- ${S}/kdm/kfrontend/sessions/kde.desktop.in > ${T}/kde-${SLOT}.desktop
+ "${S}/kdm/kfrontend/sessions/kde.desktop.in" > "${T}/kde-${SLOT}.desktop"
insinto /usr/share/xsessions
- doins ${T}/kde-${SLOT}.desktop
+ doins "${T}/kde-${SLOT}.desktop"
# Customize the kdmrc configuration
sed -i -e "s:#SessionsDirs=:SessionsDirs=/usr/share/xsessions\n#SessionsDirs=:" \
- ${D}/${KDEDIR}/share/config/kdm/kdmrc || die
+ "${D}/${KDEDIR}/share/config/kdm/kdmrc" || die
- rmdir ${D}/${KDEDIR}/share/templates/.source/emptydir
+ rmdir "${D}/${KDEDIR}/share/templates/.source/emptydir"
}
pkg_postinst() {
@@ -180,7 +181,7 @@ pkg_postinst() {
"${ROOT}${KDEDIR}/share/apps/kdm/faces/root.face.icon"
fi
- mkdir -p ${ROOT}${KDEDIR}/share/templates/.source/emptydir
+ mkdir -p "${ROOT}${KDEDIR}/share/templates/.source/emptydir"
echo
einfo "To enable gpg-agent and/or ssh-agent in KDE sessions,"