Downstream-only patch to make mc use /var/tmp for large temporary files (RHBZ#895444).
This commit is contained in:
parent
ed94f65899
commit
73dee41e80
11
mc-tmpdir.patch
Normal file
11
mc-tmpdir.patch
Normal file
@ -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
|
12
mc.spec
12
mc.spec
@ -1,7 +1,7 @@
|
|||||||
Summary: User-friendly text console file manager and visual shell
|
Summary: User-friendly text console file manager and visual shell
|
||||||
Name: mc
|
Name: mc
|
||||||
Version: 4.8.18
|
Version: 4.8.18
|
||||||
Release: 2%{?dist}
|
Release: 3%{?dist}
|
||||||
Epoch: 1
|
Epoch: 1
|
||||||
License: GPLv3+
|
License: GPLv3+
|
||||||
Group: System Environment/Shells
|
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: glib2-devel e2fsprogs-devel perl-generators slang-devel gpm-devel groff
|
||||||
BuildRequires: aspell-devel libssh2-devel >= 1.2.5
|
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
|
%description
|
||||||
Midnight Commander is a visual shell much like a file manager, only
|
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
|
with many more features. It is a text mode application, but it also
|
||||||
@ -21,6 +25,8 @@ specific files.
|
|||||||
%prep
|
%prep
|
||||||
%setup -q
|
%setup -q
|
||||||
|
|
||||||
|
%patch1 -p0
|
||||||
|
|
||||||
%build
|
%build
|
||||||
export CFLAGS="-D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE $RPM_OPT_FLAGS -Wno-strict-aliasing"
|
export CFLAGS="-D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE $RPM_OPT_FLAGS -Wno-strict-aliasing"
|
||||||
%configure --with-screen=slang \
|
%configure --with-screen=slang \
|
||||||
@ -75,6 +81,10 @@ rm -rf $RPM_BUILD_ROOT
|
|||||||
%dir %{_libexecdir}/mc/ext.d
|
%dir %{_libexecdir}/mc/ext.d
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Fri Dec 09 2016 Richard W.M. Jones <rjones@redhat.com> - 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 <limburgher@gmail.com> - 1:4.8.18-1
|
* Wed Nov 09 2016 Jon Ciesla <limburgher@gmail.com> - 1:4.8.18-1
|
||||||
- 4.8.18
|
- 4.8.18
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user