From 2fce9071cb38d1e54d4242c214f773c3d47962a6 Mon Sep 17 00:00:00 2001 From: George Sapkin Date: Sun, 10 May 2026 02:48:37 +0300 Subject: [PATCH] mosh: fix compilation with new Protobuf Switch mosh to -std=c++17 to fix compilation with newer Protobuf. Link with libatomic necessary for MIPS and PowerPC. Signed-off-by: George Sapkin --- net/mosh/Makefile | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/net/mosh/Makefile b/net/mosh/Makefile index 32b100d114..f2c8575a61 100644 --- a/net/mosh/Makefile +++ b/net/mosh/Makefile @@ -1,15 +1,14 @@ # # Copyright (C) 2011-2013 Entware # Copyright (C) 2018 Jakub Tymejczyk -# This is free software, licensed under the GNU General Public License v2. -# See /LICENSE for more information. # +# SPDX-License-Identifier: GPL-2.0-only include $(TOPDIR)/rules.mk PKG_NAME:=mosh PKG_VERSION:=1.4.0 -PKG_RELEASE:=1 +PKG_RELEASE:=2 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz PKG_SOURCE_URL:=https://mosh.org/ @@ -31,7 +30,11 @@ define Package/mosh/Default CATEGORY:=Network SUBMENU:=SSH TITLE:=Mosh mobile shell - DEPENDS:=+libncursesw +libopenssl +protobuf + DEPENDS:= \ + +libatomic \ + +libncursesw \ + +libopenssl \ + +protobuf URL:=https://mosh.org/ endef @@ -67,7 +70,6 @@ $(call Package/mosh/Default) +perlbase-xsloader endef - define Package/mosh/Default/description Mosh is a remote terminal application that allows roaming, supports intermittent connectivity, and provides intelligent local echo and line @@ -97,8 +99,8 @@ CONFIGURE_ARGS += \ CONFIGURE_VARS += \ ac_cv_have_decl_ffs=yes -TARGET_CXXFLAGS += -std=c++11 -TARGET_LDFLAGS += -lncurses +TARGET_CXXFLAGS += -std=c++17 +TARGET_LDFLAGS += -latomic -lncurses define Package/mosh-client/install $(INSTALL_DIR) $(1)/usr/bin