From f93e859330122db044538f752d97f7fb95166228 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stefan=20M=C3=BChlinghaus?= Date: Tue, 21 Feb 2017 20:41:59 +0100 Subject: [PATCH] run-mailcap: replaced tempfile tool --- srcpkgs/run-mailcap/patches/tempfile.patch | 16 ++++++++++++++++ srcpkgs/run-mailcap/template | 2 +- 2 files changed, 17 insertions(+), 1 deletion(-) create mode 100644 srcpkgs/run-mailcap/patches/tempfile.patch diff --git a/srcpkgs/run-mailcap/patches/tempfile.patch b/srcpkgs/run-mailcap/patches/tempfile.patch new file mode 100644 index 0000000000..d8fca4e83a --- /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 68318d30cc..921c87d672 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"