From 73dee41e8081872ca4deef14ff92b1a67c424262 Mon Sep 17 00:00:00 2001 From: Richard W.M. Jones Date: Dec 09 2016 11:14:09 +0000 Subject: Downstream-only patch to make mc use /var/tmp for large temporary files (RHBZ#895444). --- diff --git a/mc-tmpdir.patch b/mc-tmpdir.patch new file mode 100644 index 0000000..abfeef8 --- /dev/null +++ b/mc-tmpdir.patch @@ -0,0 +1,11 @@ +--- lib/global.h~ 2016-09-22 20:24:12.000000000 +0200 ++++ lib/global.h 2016-12-09 11:34:47.376367101 +0100 +@@ -125,7 +125,7 @@ + #define PATH_SEP_STR "/" + #define IS_PATH_SEP(c) ((c) == PATH_SEP) + #define PATH_ENV_SEP ':' +-#define TMPDIR_DEFAULT "/tmp" ++#define TMPDIR_DEFAULT "/var/tmp" + #define SCRIPT_SUFFIX "" + #define get_default_editor() "vi" + #define OS_SORT_CASE_SENSITIVE_DEFAULT 1 diff --git a/mc.spec b/mc.spec index cc51115..eaf990a 100644 --- a/mc.spec +++ b/mc.spec @@ -1,7 +1,7 @@ Summary: User-friendly text console file manager and visual shell Name: mc Version: 4.8.18 -Release: 2%{?dist} +Release: 3%{?dist} Epoch: 1 License: GPLv3+ Group: System Environment/Shells @@ -11,6 +11,10 @@ BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: glib2-devel e2fsprogs-devel perl-generators slang-devel gpm-devel groff BuildRequires: aspell-devel libssh2-devel >= 1.2.5 +# Downstream-only patch to make mc use /var/tmp for large temporary +# files. See also: https://bugzilla.redhat.com/show_bug.cgi?id=895444 +Patch1: mc-tmpdir.patch + %description Midnight Commander is a visual shell much like a file manager, only with many more features. It is a text mode application, but it also @@ -21,6 +25,8 @@ specific files. %prep %setup -q +%patch1 -p0 + %build export CFLAGS="-D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE $RPM_OPT_FLAGS -Wno-strict-aliasing" %configure --with-screen=slang \ @@ -75,6 +81,10 @@ rm -rf $RPM_BUILD_ROOT %dir %{_libexecdir}/mc/ext.d %changelog +* Fri Dec 09 2016 Richard W.M. Jones - 1:4.8.18-3 +- Downstream-only patch to make mc use /var/tmp for large temporary files + (RHBZ#895444). + * Wed Nov 09 2016 Jon Ciesla - 1:4.8.18-1 - 4.8.18