commit ef73dda4a53a23f00159a3427164d7d9d29cee0d
Author: Simone Caronni <negativo17(a)gmail.com>
Date: Thu Nov 12 14:07:51 2020 +0100
Raise file descriptor limit again for Proton
01-steam.conf | 16 +++++++++-------
steam.spec | 19 ++++++++-----------
2 files changed, 17 insertions(+), 18 deletions(-)
---
diff --git a/01-steam.conf b/01-steam.conf
index 4ede9f5..1aa3ddf 100644
--- a/01-steam.conf
+++ b/01-steam.conf
@@ -2,10 +2,12 @@
# This belongs into /usr/lib/systemd/{system,user}.conf.d/
[Manager]
-# Increase the file descriptor limit to make Steam Proton/Wine esync work
-# out of the box. The same limit is increased by default in systemd 240, and
-# this patch is no longer needed.
-# More info:
-#
https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.o...
-#
https://github.com/systemd/systemd/pull/10244
-DefaultLimitNOFILE=1024:524288
+# Increase the file descriptor limit to make Steam Proton/Wine esync work out of
+# the box. The same limit is increased by default in systemd 240 to 524288:
+#
+# cat /etc/systemd/system.conf | grep DefaultLimitNOFILE
+# DefaultLimitNOFILE=1024:524288
+#
+# As of Proton 5, the limit should be 1048576:
+#
https://github.com/zfigura/wine/blob/esync/README.esync#L26
+DefaultLimitNOFILE=1024:1048576
diff --git a/steam.spec b/steam.spec
index b18002b..813c3e2 100644
--- a/steam.spec
+++ b/steam.spec
@@ -3,7 +3,7 @@
Name: steam
Version: 1.0.0.66
-Release: 2%{?dist}
+Release: 3%{?dist}
Summary: Installer for the Steam software distribution service
# Redistribution and repackaging for Linux is allowed, see license file. udev rules are
MIT.
License: Steam License Agreement and MIT
@@ -24,7 +24,7 @@ Source5: README.Fedora
# Input devices seen as joysticks:
Source6:
https://raw.githubusercontent.com/denilsonsa/udev-joystick-blacklist/mast...
-# Configure limits in systemd < 240
+# Configure limits in systemd
Source7: 01-steam.conf
# Newer UDEV rules
@@ -151,13 +151,11 @@ install -pm 644 %{SOURCE1} %{SOURCE2}
%{buildroot}%{_sysconfdir}/profile.d
mkdir -p %{buildroot}%{_metainfodir}
install -p -m 0644 %{SOURCE4} %{buildroot}%{_metainfodir}/
-# Since systemd 240 we don't need to raise NOFILE limit
-%if 0%{?rhel} >= 7
+# Raise file descriptor limit
mkdir -p %{buildroot}%{_prefix}/lib/systemd/system.conf.d/
mkdir -p %{buildroot}%{_prefix}/lib/systemd/user.conf.d/
install -m 644 -p %{SOURCE7} %{buildroot}%{_prefix}/lib/systemd/system.conf.d/
install -m 644 -p %{SOURCE7} %{buildroot}%{_prefix}/lib/systemd/user.conf.d/
-%endif
%check
desktop-file-validate %{buildroot}%{_datadir}/applications/%{name}.desktop
@@ -193,16 +191,15 @@ fi
%{_metainfodir}/%{name}.appdata.xml
%config(noreplace) %{_sysconfdir}/profile.d/%{name}.*sh
%{_udevrulesdir}/*
-
-# Since systemd 240 we don't need to raise NOFILE limit
-%if 0%{?rhel} >= 7
-%{_prefix}/lib/systemd/system.conf.d/
+%dir %{_prefix}/lib/systemd/system.conf.d/
%{_prefix}/lib/systemd/system.conf.d/01-steam.conf
-%{_prefix}/lib/systemd/user.conf.d/
+%dir %{_prefix}/lib/systemd/user.conf.d/
%{_prefix}/lib/systemd/user.conf.d/01-steam.conf
-%endif
%changelog
+* Thu Nov 12 2020 Simone Caronni <negativo17(a)gmail.com> - 1.0.0.66-3
+- Raise file descriptor limit again for Proton (#5834).
+
* Mon Sep 14 2020 Simone Caronni <negativo17(a)gmail.com> - 1.0.0.66-2
- Add missing libxcrypt-compat dependency (#5752).