ALT Linux Team development discussions
 help / color / mirror / Atom feed
From: Andrey Savchenko <bircoph@altlinux.org>
To: ALT Linux Team development discussions <devel@lists.altlinux.org>
Subject: Re: [devel] Shell completions policy
Date: Fri, 3 Dec 2021 21:41:10 +0300
Message-ID: <20211203214110.a8c7fd9b4ad54962532a2576@altlinux.org> (raw)
In-Reply-To: <CAEdvWkRaxvqyCCLMC2GWYE8GZF4eP7PXrgfcY0v_RjUEZVJSsQ@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 3545 bytes --]

On Sat, 27 Nov 2021 00:30:54 +0300 Alexey Shabalin wrote:
> > nvme - Core nvme tools
> > * Tue Jul 13 2021 L.A. Kostis <lakostis@altlinux> 1.14-alt1
> > - Split shell completions into subpackages.
> 
> Всем привет.
> Мне кажется лишним вырезать completions файлы из основного пакета.
> - Весят они не много
> - Работают только если установлен основной пакет bash-completion.
> Другие shell, типа zsh, fish и ставят ради того, что бы completion
> работали из коробки :)
> - зависимость на bash-completion не порождают
> 
> Я предлагаю следующие правила:
> - Паковать completion файлы вместе с основным пакетом (не делать подпакетов)
> - Упаковывать в /usr/share (/etc для администратора)
> - Не указывать зависимость на bash-completion или другие shell (zsh, fish)
> - Только bash-completion должен владеть директориями
> %_datadir/bash-completion/completions и %_sysconfdir/bash_completion.d
> 
> Надо запретить, кроме bash-completion содержать
> %dir %_sysconfdir/bash_completion.d
> %_sysconfdir/bash_completion.d (%_sysconfdir/bash_completion.d/* - можно)
> %dir %_datadir/bash-completion/completions
> %_datadir/bash-completion/completions (%dir
> %_datadir/bash-completion/completions/* - можно)
> 
> В основном эти каталоги упаковывают чтобы не было предупреждения на
> сборочнице, что этот каталог никому не принадлежит. С этим
> предупреждением надо либо что-то сделать (например упаковать каталоги
> в пакет bash, а не в bash-completion), либо смириться.
> 
> Получается, что кому нужны completion, то нужно установить
> bash-completion (или другие shell - zsh, fish), и все дополнительные
> completions из других пакетов заработают автоматически. Кому не нужно
> - не устанавливают bash-completion.
> 
> Сейчас я вижу следующие проблемные пакет:
> Пакеты владеющие /etc/bash_completion.d
> freeipa-client
> hub
> ninja-build
> openscap-scanner
> ploop
> bash-completion-source-highlight
> drbd-utils-bash-completion
> python3-module-neutronclient
> rinse
> salt-master
> xen-tools
> 
> Пакеты владеющие /usr/share/bash-completion/completions
> ethtool
> flatpak
> guestfs-tools
> herbstluftwm
> libguestfs
> lxc-core
> nnn
> pcp
> powertop
> tio
> unar
> clufter-cli
> driverctl
> maven
> rpmdevtools
> 
> Подпакетов completion осталось совсем немного:
> bash-completion-cmake
> drbd-utils-bash-completion
> bash-completion-fzf
> bash-completion-gammu
> bash-completion-mercurial
> bash-completion-mpv
> bash-completion-nvme
> bash-completion-source-highlight
> bash-completion-util-linux
> bash-completion-xss-lock

Хорошая политика. Предлагаю принять её официально.

Best regards,
Andrew Savchenko

[-- Attachment #2: Type: application/pgp-signature, Size: 833 bytes --]

      parent reply	other threads:[~2021-12-03 18:41 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-11-26 21:30 ` Alexey Shabalin
2021-11-26 22:34   ` Igor Vlasenko
2021-11-28 22:01   ` Vladimir D. Seleznev
2021-12-03 18:41   ` Andrey Savchenko [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20211203214110.a8c7fd9b4ad54962532a2576@altlinux.org \
    --to=bircoph@altlinux.org \
    --cc=devel@lists.altlinux.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

ALT Linux Team development discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/devel/0 devel/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 devel devel/ http://lore.altlinux.org/devel \
		devel@altlinux.org devel@altlinux.ru devel@lists.altlinux.org devel@lists.altlinux.ru devel@linux.iplabs.ru mandrake-russian@linuxteam.iplabs.ru sisyphus@linuxteam.iplabs.ru
	public-inbox-index devel

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.devel


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git