[arch-commits] Commit in synapse/trunk (PKGBUILD fix-build.patch)
Balló György
bgyorgy at archlinux.org
Tue Jan 30 20:38:16 UTC 2018
Date: Tuesday, January 30, 2018 @ 20:38:15
Author: bgyorgy
Revision: 288337
upgpkg: synapse 0.2.99.2-3
Fix build, remove unavailable/unneeded optional dependencies
Added:
synapse/trunk/fix-build.patch
Modified:
synapse/trunk/PKGBUILD
-----------------+
PKGBUILD | 18 ++++++++++++------
fix-build.patch | 52 ++++++++++++++++++++++++++++++++++++++++++++++++++++
2 files changed, 64 insertions(+), 6 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2018-01-30 19:24:35 UTC (rev 288336)
+++ PKGBUILD 2018-01-30 20:38:15 UTC (rev 288337)
@@ -4,7 +4,7 @@
pkgname=synapse
pkgver=0.2.99.2
-pkgrel=2
+pkgrel=3
pkgdesc="A semantic file launcher"
arch=('x86_64')
url="https://launchpad.net/synapse-project"
@@ -12,18 +12,24 @@
depends=('libkeybinder3' 'hicolor-icon-theme' 'json-glib' 'libgee' 'libnotify' \
'zeitgeist' 'rest' 'xdg-utils')
makedepends=('intltool' 'vala')
-optdepends=('banshee: banshee plugin'
- 'bc: calculator plugin'
+optdepends=('bc: calculator plugin'
'devhelp: documentation plugin'
- 'gnome-screensaver: screensaver plugin'
'gnome-dictionary: dictionary plugin'
'openssh: ssh plugin'
'pastebinit: pastebin plugin'
'rhythmbox: rhythmbox plugin'
'xnoise: xnoise plugin')
-source=("https://launchpad.net/$pkgname-project/0.3/$pkgver/+download/$pkgname-$pkgver.tar.xz")
-sha1sums=('6720537a239419833fc5b4e521b25935e30a3274')
+source=("https://launchpad.net/$pkgname-project/0.3/$pkgver/+download/$pkgname-$pkgver.tar.xz"
+ fix-build.patch)
+sha1sums=('6720537a239419833fc5b4e521b25935e30a3274'
+ '0ddb104dd7ec2d8de663c48f9d4f3614d17ee824')
+prepare() {
+ cd "$srcdir/$pkgname-$pkgver"
+
+ patch -Np1 -i ../fix-build.patch
+}
+
build() {
cd "$srcdir/$pkgname-$pkgver"
Added: fix-build.patch
===================================================================
--- fix-build.patch (rev 0)
+++ fix-build.patch 2018-01-30 20:38:15 UTC (rev 288337)
@@ -0,0 +1,52 @@
+From: Tomasz Buchert <tomasz at debian.org>
+Date: Tue, 19 Sep 2017 01:00:01 +0200
+Subject: revisions-652-and-653
+
+Fixes build problems on vala 0.36.
+---
+ src/core/result-set.vala | 2 +-
+ src/plugins/desktop-file-plugin.vala | 4 ++--
+ src/plugins/hybrid-search-plugin.vala | 2 +-
+ 3 files changed, 4 insertions(+), 4 deletions(-)
+
+diff --git a/src/core/result-set.vala b/src/core/result-set.vala
+index 6c4059d..10f9f92 100644
+--- a/src/core/result-set.vala
++++ b/src/core/result-set.vala
+@@ -57,7 +57,7 @@ namespace Synapse
+ owned get { return matches.entries; }
+ }
+
+- public Gee.Iterator<Gee.Map.Entry <Match, int>?> iterator ()
++ public Gee.Iterator<Gee.Map.Entry <Match, int>> iterator ()
+ {
+ return matches.iterator ();
+ }
+diff --git a/src/plugins/desktop-file-plugin.vala b/src/plugins/desktop-file-plugin.vala
+index 346ae40..e18725c 100644
+--- a/src/plugins/desktop-file-plugin.vala
++++ b/src/plugins/desktop-file-plugin.vala
+@@ -83,8 +83,8 @@ namespace Synapse
+ construct
+ {
+ desktop_files = new Gee.ArrayList<DesktopFileMatch> ();
+- mimetype_map = new Gee.HashMap<string, OpenWithAction> ();
+- actions_map = new Gee.HashMap<string, OpenAppAction> ();
++ mimetype_map = new Gee.HashMap<string, Gee.List<OpenWithAction>> ();
++ actions_map = new Gee.HashMap<string, Gee.List<OpenAppAction>> ();
+
+ var dfs = DesktopFileService.get_default ();
+ dfs.reload_started.connect (() => {
+diff --git a/src/plugins/hybrid-search-plugin.vala b/src/plugins/hybrid-search-plugin.vala
+index dfdb614..c9e1010 100644
+--- a/src/plugins/hybrid-search-plugin.vala
++++ b/src/plugins/hybrid-search-plugin.vala
+@@ -74,7 +74,7 @@ namespace Synapse
+ construct
+ {
+ directory_hits = new Gee.HashMap<string, int> ();
+- directory_contents = new Gee.HashMap<string, Utils.FileInfo?> ();
++ directory_contents = new Gee.HashMap<string, DirectoryInfo> ();
+
+ analyze_recent_documents.begin ();
+ }
More information about the arch-commits
mailing list