From 0f7d6cfc45c4773d5c8ef9b4e5e97ce6431c84cd Mon Sep 17 00:00:00 2001 From: Bernd Kuhls Date: Sun, 18 Jan 2026 12:47:34 +0100 Subject: [PATCH] package/screen: fix usage with readonly rootfs Buildroot commit 4769724ee2bebd671f6a9372fb8922a8c22c5079 bumped the package from 4.9.1 to 5.0.0 which includes a major rewrite of the configure script https://cgit.git.savannah.gnu.org/cgit/screen.git/log/src/configure.ac?h=v.4.9.1 https://cgit.git.savannah.gnu.org/cgit/screen.git/log/src/configure.ac?h=v.5.0.0 By default, screen puts the socket directory in $HOME/.screen, which is not writable when the rootfs is readonly: # screen Cannot access /root/.screen: No such file or directory The --enable-socket-dir option added in upstream commit https://cgit.git.savannah.gnu.org/cgit/screen.git/commit/?id=78a961188f7da528c7cefcc63e07f35f04e69a93 allows to configure this, and actually its default value of /run/screen is sensible, so we fix the problem by simply passing --enable-socket-dir, and rely on its default setting. Fixes: https://gitlab.com/buildroot.org/buildroot/-/issues/123 Signed-off-by: Bernd Kuhls Signed-off-by: Thomas Petazzoni (cherry picked from commit 21311f79c61050bbb289fba1328bd4df1abdd52d) Signed-off-by: Thomas Perale --- package/screen/screen.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package/screen/screen.mk b/package/screen/screen.mk index 74453faff8..c85abaf411 100644 --- a/package/screen/screen.mk +++ b/package/screen/screen.mk @@ -13,7 +13,7 @@ SCREEN_SELINUX_MODULES = screen SCREEN_DEPENDENCIES = ncurses SCREEN_AUTORECONF = YES SCREEN_CONF_ENV = CFLAGS="$(TARGET_CFLAGS)" -SCREEN_CONF_OPTS = --enable-colors256 +SCREEN_CONF_OPTS = --enable-colors256 --enable-socket-dir SCREEN_INSTALL_TARGET_OPTS = DESTDIR=$(TARGET_DIR) SCREEN=screen install_bin ifeq ($(BR2_PACKAGE_LIBXCRYPT),y)