ClickHouse/debian
Azat Khuzhin 6d8706e692
clickhouse-client: fix --help without tty
stdin_is_not_tty is detected too late when the --help message is
printed, so fix this and do not call ioctl if stdin is not tty.

Before this patch:
  $ clickhouse-client --help < /dev/null

debug build:
  $ dbms/programs/clickhouse-client --help < /dev/null
  Main options:
    --help
  clickhouse-client: ../contrib/boost/libs/program_options/src/options_description.cpp:542:
  void boost::program_options::{anonymous}::format_description(std::ostream&, const string&, unsigned int, unsigned int): Assertion `line_length > first_column_width' failed.
  Aborted (core dumped)

release build:
  $ dbms/programs/clickhouse-client --help < /dev/null
  .... print lots of empty lines and so forth ...

v2: add a test and bsdutils into image for tests
v3: adjust minimal cols to the length of one of the longest arguments,
since with line_length=3 boost will bail anyway (under script(1)
ioctl(TIOCGWINSZ) returnes ws_col=0)
2019-03-23 02:01:32 +03:00
..
pbuilder-hooks Wrong folder "preprocessed" link #3892 2019-01-31 16:03:17 +03:00
source Build fixes (#4471) 2019-02-21 23:11:21 +03:00
.gitignore .gitignore: Move debian/ specific entries to debian/.gitignore 2019-01-21 01:26:50 +03:00
.pbuilderrc Build fixes (#4471) 2019-02-21 23:11:21 +03:00
changelog Auto version update to [19.5.1.1] [54417] 2019-03-09 10:45:08 +03:00
changelog.in Remove debian epoch from changelog 2019-03-06 19:00:07 +03:00
clickhouse-client.install Build fixes 2018-05-29 20:54:48 +03:00
clickhouse-client.postinst Do not write preprocessed configs to /etc/ (#2443) 2018-11-27 19:11:46 +03:00
clickhouse-common-static.install Move odbc-brigde to clickhouse-common-static 2019-02-12 17:08:05 +03:00
clickhouse-server-base.install odbc-bridge fixes (#2993) 2018-08-30 00:32:46 +03:00
clickhouse-server-base.postinst Debian: temporary keep packages with old names (#2186) 2018-04-06 13:49:42 -07:00
clickhouse-server-base.preinst Debian: temporary keep packages with old names (#2186) 2018-04-06 13:49:42 -07:00
clickhouse-server-base.prerm Debian: temporary keep packages with old names (#2186) 2018-04-06 13:49:42 -07:00
clickhouse-server-base.service Debian: temporary keep packages with old names (#2186) 2018-04-06 13:49:42 -07:00
clickhouse-server-common.install Debian: temporary keep packages with old names (#2186) 2018-04-06 13:49:42 -07:00
clickhouse-server-metrika.links Debian: Rename packages (#678) 2018-04-01 15:33:39 +03:00
clickhouse-server.cron.d Do not write preprocessed configs to /etc/ (#2443) 2018-11-27 19:11:46 +03:00
clickhouse-server.docs Debian: Rename packages (#678) 2018-04-01 15:33:39 +03:00
clickhouse-server.init CLICKHOUSE-4284 debian init: wait for server startup on 'clickhouse-server start' 2019-02-05 20:05:23 +03:00
clickhouse-server.install Move odbc-brigde to clickhouse-common-static 2019-02-12 17:08:05 +03:00
clickhouse-server.postinst Wrong folder "preprocessed" link #3892 - bugfix 2019-02-15 14:43:47 +03:00
clickhouse-server.preinst Do not write preprocessed configs to /etc/ (#2443) 2018-11-27 19:11:46 +03:00
clickhouse-server.prerm Do not write preprocessed configs to /etc/ (#2443) 2018-11-27 19:11:46 +03:00
clickhouse-server.service Do not write preprocessed configs to /etc/ (#2443) 2018-11-27 19:11:46 +03:00
clickhouse-test.install Test and build fixes (#1822) 2018-01-26 12:03:38 +03:00
clickhouse.limits Debian: simpler package (#662) 2017-04-10 20:43:30 +03:00
compat CLICKHOUSE-3586 debian/compat : use version 8 to support old gdb version less 7.9.1 (old gdb have no support of compressed symbols) 2018-03-06 23:04:54 +03:00
control clickhouse-client: fix --help without tty 2019-03-23 02:01:32 +03:00
daemons Debian: simpler package (#662) 2017-04-10 20:43:30 +03:00
dupload.conf.in Removed sensitive data. 2016-02-08 00:58:58 +03:00
rules Build fixes (#4076) 2019-01-18 18:19:53 +03:00
watch Debian: simpler package (#662) 2017-04-10 20:43:30 +03:00