diff --git a/srcpkgs/run-mailcap/patches/tempfile.patch b/srcpkgs/run-mailcap/patches/tempfile.patch new file mode 100644 index 00000000000..d8fca4e83aa --- /dev/null +++ b/srcpkgs/run-mailcap/patches/tempfile.patch @@ -0,0 +1,16 @@ +Replace unknown "tempfile" tool with "mktemp" from coreutils + +--- run-mailcap.orig 2017-02-21 20:26:27.367144678 +0100 ++++ run-mailcap 2017-02-21 20:25:51.576143081 +0100 +@@ -141,9 +141,9 @@ + # $tmpfile = POSIX::tmpnam($name); + # unlink($tmpfile); + +- $cmd = "tempfile --mode=600"; +- $cmd .= " --prefix $head" if $head; ++ $cmd = "mktemp"; + $cmd .= " --suffix $tail" if $tail; ++ $cmd .= " $head" if $head; + + $tmpfile = `$cmd`; + chomp($tmpfile); diff --git a/srcpkgs/run-mailcap/template b/srcpkgs/run-mailcap/template index 68318d30ccf..921c87d672f 100644 --- a/srcpkgs/run-mailcap/template +++ b/srcpkgs/run-mailcap/template @@ -1,7 +1,7 @@ # Template file for 'run-mailcap' pkgname="run-mailcap" version="3.60" -revision=1 +revision=2 short_desc="Execute programs via entries in the mailcap file" maintainer="Stefan Mühlinghaus " license="Public Domain"