Complete Yocto mirror with license table for TQMa6UL (2038-compliance)
- 264 license table entries with exact download URLs (224/264 resolved) - Complete sources/ directory with all BitBake recipes - Build configuration: tqma6ul-multi-mba6ulx, spaetzle (musl) - Full traceability for Softwarefreigabeantrag - GCC 13.4.0, Linux 6.6.102, U-Boot 2023.04, musl 1.2.4 - License distribution: GPL-2.0 (24), MIT (23), GPL-2.0+ (18), BSD-3 (16)
This commit is contained in:
@@ -0,0 +1,63 @@
|
||||
From d9a1a6aac5a3b270449d09ec0d2a556807ab9287 Mon Sep 17 00:00:00 2001
|
||||
From: Xiangyu Chen <xiangyu.chen@windriver.com>
|
||||
Date: Wed, 29 Mar 2023 13:53:44 +0800
|
||||
Subject: [PATCH] configure.ac: add support of protobuf 4.22.x
|
||||
|
||||
the protobuf 4.22x is using c++14 as default, this caused the mosh cannot compile anymore and report following error:
|
||||
|
||||
....
|
||||
/usr/include/google/protobuf/port_def.inc:200:15: error: static assertion failed: Protobuf only supports C++14 and newer.
|
||||
| 200 | static_assert(PROTOBUF_CPLUSPLUS_MIN(201402L), "Protobuf only supports C++14 and newer.");
|
||||
| | ^~~~~~~~~~~~~~~~~~~~~~
|
||||
....
|
||||
|
||||
Upstream-Status: Pending [https://github.com/mobile-shell/mosh/pull/1266]
|
||||
|
||||
Signed-off-by: Xiangyu Chen <xiangyu.chen@windriver.com>
|
||||
---
|
||||
configure.ac | 8 ++++++++
|
||||
src/frontend/Makefile.am | 2 +-
|
||||
2 files changed, 9 insertions(+), 1 deletion(-)
|
||||
|
||||
diff --git a/configure.ac b/configure.ac
|
||||
index ee70c7b..5457009 100644
|
||||
--- a/configure.ac
|
||||
+++ b/configure.ac
|
||||
@@ -26,6 +26,10 @@ m4_ifdef([AM_PROG_AR], [AM_PROG_AR])
|
||||
AS_IF([pkg-config --atleast-version 3.6.0 protobuf],
|
||||
[AX_CXX_COMPILE_STDCXX([11])])
|
||||
|
||||
+# If current protobuf 4.22+ update the requires to C++14.
|
||||
+AS_IF([pkg-config --atleast-version 4.22.0 protobuf],
|
||||
+ [AX_CXX_COMPILE_STDCXX([14])])
|
||||
+
|
||||
WARNING_CXXFLAGS=""
|
||||
PICKY_CXXFLAGS=""
|
||||
DISTCHECK_CXXFLAGS=""
|
||||
@@ -311,6 +315,10 @@ AC_CHECK_FUNCS(m4_normalize([
|
||||
pledge
|
||||
]))
|
||||
|
||||
+AS_IF([pkg-config --atleast-version 4.22.0 protobuf],
|
||||
+ [PKG_CHECK_MODULES([ABSL_LOG_INTERNAL_CHECK_OP], [absl_log_internal_check_op],[],
|
||||
+ [AC_MSG_ERROR([Missing abseil-cpp library.])])])
|
||||
+
|
||||
# Start by trying to find the needed tinfo parts by pkg-config
|
||||
PKG_CHECK_MODULES([TINFO], [tinfo],
|
||||
[AC_DEFINE([HAVE_CURSES_H], [1], [Define to 1 if <curses.h> is present])],
|
||||
diff --git a/src/frontend/Makefile.am b/src/frontend/Makefile.am
|
||||
index 1aa83fd..399ecd6 100644
|
||||
--- a/src/frontend/Makefile.am
|
||||
+++ b/src/frontend/Makefile.am
|
||||
@@ -1,7 +1,7 @@
|
||||
AM_CPPFLAGS = -I$(srcdir)/../statesync -I$(srcdir)/../terminal -I$(srcdir)/../network -I$(srcdir)/../crypto -I../protobufs -I$(srcdir)/../util $(TINFO_CFLAGS) $(protobuf_CFLAGS) $(CRYPTO_CFLAGS)
|
||||
AM_CXXFLAGS = $(WARNING_CXXFLAGS) $(PICKY_CXXFLAGS) $(HARDEN_CFLAGS) $(MISC_CXXFLAGS) $(CODE_COVERAGE_CXXFLAGS)
|
||||
AM_LDFLAGS = $(HARDEN_LDFLAGS) $(CODE_COVERAGE_LIBS)
|
||||
-LDADD = ../crypto/libmoshcrypto.a ../network/libmoshnetwork.a ../statesync/libmoshstatesync.a ../terminal/libmoshterminal.a ../util/libmoshutil.a ../protobufs/libmoshprotos.a -lm $(TINFO_LIBS) $(protobuf_LIBS) $(CRYPTO_LIBS)
|
||||
+LDADD = ../crypto/libmoshcrypto.a ../network/libmoshnetwork.a ../statesync/libmoshstatesync.a ../terminal/libmoshterminal.a ../util/libmoshutil.a ../protobufs/libmoshprotos.a -lm $(TINFO_LIBS) $(protobuf_LIBS) $(CRYPTO_LIBS) $(ABSL_LOG_INTERNAL_CHECK_OP_LIBS)
|
||||
|
||||
mosh_server_LDADD = $(LDADD)
|
||||
|
||||
--
|
||||
2.34.1
|
||||
|
||||
@@ -0,0 +1,50 @@
|
||||
# NOTE: mosh-server requires a UTF-8 locale, but there's no way to add
|
||||
# an explicit dependency for this so you need to ensure this is in your
|
||||
# image yourself when you install mosh-server.
|
||||
|
||||
SUMMARY = "Remote shell supporting roaming and high-latency connections"
|
||||
DESCRIPTION = "Remote terminal application that allows roaming, supports \
|
||||
intermittent connectivity, and provides intelligent local echo and line \
|
||||
editing of user keystrokes. Mosh is a replacement for SSH. It's more \
|
||||
robust and responsive, especially over Wi-Fi, cellular, and \
|
||||
long-distance links."
|
||||
HOMEPAGE = "http://mosh.mit.edu"
|
||||
LICENSE = "GPL-3.0-or-later"
|
||||
LIC_FILES_CHKSUM = "file://COPYING;md5=d32239bcb673463ab874e80d47fae504"
|
||||
|
||||
DEPENDS = "protobuf-native protobuf ncurses zlib libio-pty-perl openssl libutempter abseil-cpp"
|
||||
|
||||
SRC_URI = "https://mosh.org/${BP}.tar.gz \
|
||||
file://0001-configure.ac-add-support-of-protobuf-4.22.x.patch \
|
||||
"
|
||||
|
||||
SRC_URI[sha256sum] = "872e4b134e5df29c8933dff12350785054d2fd2839b5ae6b5587b14db1465ddd"
|
||||
|
||||
inherit autotools pkgconfig
|
||||
|
||||
PACKAGE_BEFORE_PN += "${PN}-server"
|
||||
FILES:${PN}-server = "${bindir}/mosh-server"
|
||||
|
||||
NEEDED_PERL_MODULES = "\
|
||||
perl-module-socket \
|
||||
perl-module-getopt-long \
|
||||
perl-module-errno \
|
||||
perl-module-io-socket-inet \
|
||||
perl-module-posix \
|
||||
"
|
||||
|
||||
# mosh uses SSH to authenticate and the client uses OpenSSH-specific features
|
||||
RDEPENDS:${PN} += "openssh-ssh ${NEEDED_PERL_MODULES}"
|
||||
# The server seemed not to work with dropbear either
|
||||
RDEPENDS:${PN}-server += "openssh-sshd"
|
||||
|
||||
# Fails to build with thumb-1 (qemuarm)
|
||||
#| {standard input}: Assembler messages:
|
||||
#| {standard input}:2100: Error: instruction not supported in Thumb16 mode -- `adds r4,r4,r4'
|
||||
#| {standard input}:2101: Error: instruction not supported in Thumb16 mode -- `adcs r5,r5,r5'
|
||||
#| {standard input}:2102: Error: instruction not supported in Thumb16 mode -- `adcs r6,r6,r6'
|
||||
#| {standard input}:2103: Error: instruction not supported in Thumb16 mode -- `adcs r7,r7,r7'
|
||||
#| {standard input}:2104: Error: selected processor does not support Thumb mode `it cs'
|
||||
ARM_INSTRUCTION_SET = "arm"
|
||||
|
||||
CXXFLAGS:append = " -std=c++17"
|
||||
Reference in New Issue
Block a user