From 5b29057b6268cad55f3d68353e6bf19609aad096 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C4=90o=C3=A0n=20Tr=E1=BA=A7n=20C=C3=B4ng=20Danh?= Date: Fri, 18 Jan 2019 20:55:45 +0700 Subject: [PATCH] notmuch: fix broken notmuch-emacs-mua The old notmuch-emacs-mua's shebang is `/bin/sh`, but that script requires some bashisms. --- srcpkgs/notmuch/patches/bash_absolute.patch | 10 ++++++++++ srcpkgs/notmuch/template | 2 +- 2 files changed, 11 insertions(+), 1 deletion(-) create mode 100644 srcpkgs/notmuch/patches/bash_absolute.patch diff --git a/srcpkgs/notmuch/patches/bash_absolute.patch b/srcpkgs/notmuch/patches/bash_absolute.patch new file mode 100644 index 00000000000..1b9e7901fe7 --- /dev/null +++ b/srcpkgs/notmuch/patches/bash_absolute.patch @@ -0,0 +1,10 @@ +--- configure.orig ++++ configure +@@ -563,6 +563,7 @@ printf "Checking for bash... " + if command -v ${BASH} > /dev/null; then + have_bash=1 + bash_absolute=$(command -v ${BASH}) ++ bash_absolute=$(readlink -f "$bash_absolute") + printf "Yes (%s).\n" "$bash_absolute" + else + have_bash=0 diff --git a/srcpkgs/notmuch/template b/srcpkgs/notmuch/template index a6f10840eb6..b7cf8a7a884 100644 --- a/srcpkgs/notmuch/template +++ b/srcpkgs/notmuch/template @@ -1,7 +1,7 @@ # Template file for 'notmuch' pkgname=notmuch version=0.28 -revision=2 +revision=3 hostmakedepends="perl pkg-config python-Sphinx python-devel python3-Sphinx python3-devel" makedepends="bash-completion gmime3-devel talloc-devel xapian-core-devel" short_desc="Thread-based email index, search, and tagging"