Bill Sommerfeld
2024-02-01 3f22b3c7c40da7c3998dc398026cf37efc8a694a
mosh: Current protobuf and abseil require C++17

2 files modified
1 files renamed
12 ■■■■ changed files
components/shell/mosh/Makefile 2 ●●● patch | view | raw | blame | history
components/shell/mosh/patches/cxx17.patch 4 ●●●● patch | view | raw | blame | history
components/shell/mosh/pkg5 6 ●●●● patch | view | raw | blame | history
components/shell/mosh/Makefile
@@ -26,7 +26,7 @@
COMPONENT_NAME=        mosh
COMPONENT_VERSION=    1.4.0
COMPONENT_REVISION= 2
COMPONENT_REVISION= 3
COMPONENT_SUMMARY=    Mosh (mobile shell) - Remote terminal application that allows roaming, supports intermittent connectivity, and provides intelligent local echo and line editing of user keystrokes (replacement for SSH).
COMPONENT_PROJECT_URL=    https://mosh.org
COMPONENT_SRC=        $(COMPONENT_NAME)-$(COMPONENT_VERSION)
components/shell/mosh/patches/cxx17.patch
File was renamed from components/shell/mosh/patches/cxx14.patch
@@ -6,10 +6,10 @@
 m4_ifdef([AM_PROG_AR], [AM_PROG_AR])
 
-# Protobuf 3.6+ requires C++11.
+# Protobuf 3.6+ requires C++14.
+# Protobuf 24.4+ (and perhaps earlier) requires C++17.
 AS_IF([pkg-config --atleast-version 3.6.0 protobuf],
-  [AX_CXX_COMPILE_STDCXX([11])])
+  [AX_CXX_COMPILE_STDCXX([14])])
+  [AX_CXX_COMPILE_STDCXX([17])])
 
 WARNING_CXXFLAGS=""
 PICKY_CXXFLAGS=""
components/shell/mosh/pkg5
@@ -7,8 +7,8 @@
        "library/security/openssl-31",
        "library/zlib",
        "system/library",
        "system/library/g++-10-runtime",
        "system/library/gcc-10-runtime",
        "system/library/g++-13-runtime",
        "system/library/gcc-13-runtime",
        "system/library/libutempter",
        "system/library/math",
        "utility/bash-completion"
@@ -17,4 +17,4 @@
        "service/network/mosh"
    ],
    "name": "mosh"
}
}