From dc98a3cf02627e4ea4fe9ea9a2b4354c7a983b5f Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Sun, 15 Jul 2018 22:54:06 +0100 Subject: app-text/calibre : import from gentoo tree, fix ebuild to avoid sandbox violations --- app-text/calibre/files/calibre-disable_plugins.patch | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 app-text/calibre/files/calibre-disable_plugins.patch (limited to 'app-text/calibre/files/calibre-disable_plugins.patch') diff --git a/app-text/calibre/files/calibre-disable_plugins.patch b/app-text/calibre/files/calibre-disable_plugins.patch new file mode 100644 index 00000000..9ef1dd04 --- /dev/null +++ b/app-text/calibre/files/calibre-disable_plugins.patch @@ -0,0 +1,17 @@ +Description: Disable plugin dialog. It uses a totally non-authenticated and non-trusted way of installing arbitrary code. +Author: Martin Pitt +Bug-Debian: http://bugs.debian.org/640026 + +Index: calibre-0.8.29+dfsg/src/calibre/gui2/actions/preferences.py +=================================================================== +--- calibre-0.8.29+dfsg.orig/src/calibre/gui2/actions/preferences.py 2011-12-16 05:49:14.000000000 +0100 ++++ calibre-0.8.29+dfsg/src/calibre/gui2/actions/preferences.py 2011-12-20 19:29:04.798468930 +0100 +@@ -28,8 +28,6 @@ + pm.addAction(QIcon(I('config.png')), _('Preferences'), self.do_config) + cm('welcome wizard', _('Run welcome wizard'), + icon='wizard.png', triggered=self.gui.run_wizard) +- cm('plugin updater', _('Get plugins to enhance calibre'), +- icon='plugins/plugin_updater.png', triggered=self.get_plugins) + if not DEBUG: + pm.addSeparator() + cm('restart', _('Restart in debug mode'), icon='debug.png', -- cgit v1.2.3