kumquat-buildroot/package/mosh/0001-remove-system-locale-calls.patch
Christian Stewart 6406d41e60 mosh: new package
Adding mosh, the mobile shell. Mosh uses ssh or dropbear as an initial
transport to start mosh-server which uses UDP to communicate with the
client.  Supports a predictive model to enhance performance on weak
connections and compensate for general lag. Also supports
disconnections and reconnections seamlessly.

[Thomas:
  - Add missing dependency on host-pkgconf, as noticed by Yann
    E. Morin.
  - Indicate that openssh/dropbear is a runtime dependency.
  - Pass some variables in the configure environment to tell that SSP
    support is not available when it isn't. Otherwise, it misdetects
    the SSP support as being available, causing a build failure.]

Signed-off-by: Christian Stewart <christian@paral.in>
Tested-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Reviewed-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
2015-07-26 19:30:22 +02:00

47 lines
2.0 KiB
Diff

The locale command is not available on many systems. As this variable
is unused and appears to have been written with the intent of
displaying the locale settings to the user, it's not really necessary.
As this breaks Mosh on a lot of systems, it's best to remove the calls.
Upstream status: refused, see: https://github.com/keithw/mosh/issues/650
Signed-off-by: Christian Stewart <christian@paral.in>
---
src/frontend/mosh-server.cc | 4 +++-
src/frontend/stmclient.cc | 4 +++-
2 files changed, 6 insertions(+), 2 deletions(-)
diff --git a/src/frontend/mosh-server.cc b/src/frontend/mosh-server.cc
index 76ed2ed..0d2f222 100644
--- a/src/frontend/mosh-server.cc
+++ b/src/frontend/mosh-server.cc
@@ -313,7 +313,9 @@ int main( int argc, char *argv[] )
fprintf( stderr, "mosh-server needs a UTF-8 native locale to run.\n\n" );
fprintf( stderr, "Unfortunately, the local environment (%s) specifies\nthe character set \"%s\",\n\n", native_ctype.str().c_str(), native_charset.c_str() );
fprintf( stderr, "The client-supplied environment (%s) specifies\nthe character set \"%s\".\n\n", client_ctype.str().c_str(), client_charset.c_str() );
- int unused __attribute((unused)) = system( "locale" );
+
+ fprintf( stderr, "This is a buildroot system, 'locale' debug output has been removed." );
+
exit( 1 );
}
}
diff --git a/src/frontend/stmclient.cc b/src/frontend/stmclient.cc
index 9e4d916..06fac8b 100644
--- a/src/frontend/stmclient.cc
+++ b/src/frontend/stmclient.cc
@@ -85,7 +85,9 @@ void STMClient::init( void )
fprintf( stderr, "mosh-client needs a UTF-8 native locale to run.\n\n" );
fprintf( stderr, "Unfortunately, the client's environment (%s) specifies\nthe character set \"%s\".\n\n", native_ctype.str().c_str(), native_charset.c_str() );
- int unused __attribute((unused)) = system( "locale" );
+
+ fprintf( stderr, "This is a buildroot system, 'locale' debug output has been removed." );
+
exit( 1 );
}
--
2.1.4