Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Устанавливая cbsd из github невозможно узнать версию cbsd #173

Closed
click0 opened this issue Jul 8, 2017 · 11 comments
Assignees

Comments

@click0
Copy link

@click0 click0 commented Jul 8, 2017

Устанавливая cbsd из github невозможно узнать версию cbsd. В портах и пакетах - более-менее отображается версия. И не мешало бы показывать help до инициализации (установки переменных окружения) cbsd.

[19:59]core:root-> /root# /usr/local/bin/cbsd -v
cbsd: No workdir defined
[19:59]core:root-> /root# /usr/local/bin/cbsd -V
cbsd: No workdir defined
[19:59]core:root-> /root# /usr/local/bin/cbsd -h
cbsd: No workdir defined
[19:59]core:root-> /root# file /usr/local/bin/cbsd
/usr/local/bin/cbsd: ELF 64-bit LSB executable, x86-64, version 1 (FreeBSD), dynamically linked, interpreter /libexec/ld-elf.so.1, for FreeBSD 11.0 (1100513), FreeBSD-style, stripped
[19:59]core:root-> /root# /usr/local/bin/cbsd --version
cbsd: No workdir defined
[19:59]core:root-> /root# /usr/local/bin/cbsd -version
cbsd: No workdir defined
[20:00]core:root-> /root# /usr/local/bin/cbsd --help
cbsd: No workdir defined

@olevole olevole self-assigned this Jul 8, 2017
@olevole

This comment has been minimized.

Copy link
Collaborator

@olevole olevole commented Jul 8, 2017

Да, согласен.
Нотес для себя: обработать аргумент до проверки наличия https://github.com/cbsd/cbsd/blob/master/bin/cbsdsh/main.c#L181

@olevole

This comment has been minimized.

Copy link
Collaborator

@olevole olevole commented Jul 8, 2017

Должна показывать по
cbsd -c version

olevole added a commit that referenced this issue Jul 10, 2017
…s to Vladislav V. Prodan aka click0;

jail: add support for aarch64 aka ARMv8 and arm-64 via qemu-aarch64-static emulator type;
update kmem patch for FreeBSD 12.0 and next-drm branch
re-generate base filelists for FreeBSD 11,12 and upcoming 13
bumb CBSD version, 11.1.0-beta
@olevole

This comment has been minimized.

Copy link
Collaborator

@olevole olevole commented Jul 10, 2017

Поправлено в рамках коммита: 26c9e6f

@olevole olevole closed this Jul 10, 2017
@click0

This comment has been minimized.

Copy link
Author

@click0 click0 commented Jul 12, 2017

Все по-прежнему

ll /usr/local/bin/cbsd

-r-x------ 1 root wheel 174288 13 июля 00:46 /usr/local/bin/cbsd*

/usr/local/bin/cbsd -c version

cbsd: no workdir defined

/usr/local/bin/cbsd --help

cbsd: no workdir defined

@olevole

This comment has been minimized.

Copy link
Collaborator

@olevole olevole commented Jul 12, 2017

Эти изменения сейчас только в GIT (в develop ветке и смержено в master), релиза на базе этих правок еще небыло - будут в CBSD 11.1.0 (планирую в течении месяца отрелизить).

Соотв, увидеть можно только в GIT версии:

root@gizmo:~ # git clone https://github.com/cbsd/cbsd.git /tmp/cbsd
Cloning into '/tmp/cbsd'...

root@gizmo:~ # cd /tmp/cbsd
root@gizmo:/tmp/cbsd # make
cc bin/cbsdsftp.c -o bin/cbsdsftp -lssh2 -L/usr/local/lib -I/usr/local/include && "/usr/bin/strip" bin/cbsdsftp
...

root@gizmo:/tmp/cbsd # bin/cbsdsh/cbsd version
11.1.0a
@click0

This comment has been minimized.

Copy link
Author

@click0 click0 commented Jul 12, 2017

Я качал ветку master - https://github.com/olevole/cbsd/archive/master.zip

@olevole

This comment has been minimized.

Copy link
Collaborator

@olevole olevole commented Jul 12, 2017

Пардон, теперь стало:

cbsd version

вместо cbsd -c.

Надо будет в доку внести.

PS: по cbsd help также выводится версия, спасибо за наводку, you are welcome ;-)

@click0

This comment has been minimized.

Copy link
Author

@click0 click0 commented Jul 12, 2017

Тогда работает :)

/usr/local/bin/cbsd version

11.1.0a

@click0

This comment has been minimized.

Copy link
Author

@click0 click0 commented Jul 12, 2017

Но вывод help подправьте.

/usr/local/bin/cbsd --help

cbsd: no workdir defined

/usr/local/bin/cbsd help

cbsd: no workdir defined

/usr/local/bin/cbsd -c help

cbsd: no workdir defined

@olevole

This comment has been minimized.

Copy link
Collaborator

@olevole olevole commented Jul 12, 2017

тут сложнее, но я подумаю, пока оставлю открытым таску.

@olevole olevole reopened this Jul 12, 2017
@olevole

This comment has been minimized.

Copy link
Collaborator

@olevole olevole commented Jul 13, 2017

Посмотрел, сейчас пока никак, поскольку help является командой cbsd, а все команды работают уже после успешной инициализации/setup-а.

@olevole olevole closed this Jul 13, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants
You can’t perform that action at this time.