ALT Linux Team development discussions
 help / color / mirror / Atom feed
From: Vitaly Lipatov <lav@altlinux.ru>
To: ALT Linux Team development discussions <devel@lists.altlinux.org>
Cc: "Dmitry V. Levin" <ldv@altlinux.org>
Subject: Re: [devel] Q: duplicate npm() self-provides
Date: Thu, 12 Nov 2020 12:38:56 +0300
Message-ID: <a99af492aa45781efa27e9af0f933992@altlinux.ru> (raw)
In-Reply-To: <20201111163039.GE9029@altlinux.org>

Dmitry V. Levin писал 11.11.20 19:30:
> Hi,
> 
> У нас в репозитории обнаружилось несколько пакетов, которые содержат 
> сразу
> две разных версии одного и того же npm(...) в Provides.
> Предполагаю, что во всех случаях это ошибки, поскольку сравнения версий 
> в
> rpm работают не так, как ожидают люди, когда у пакета больше одной 
> версии.
> Кто-нибудь знает, зачем это было сделано?
В случае npm там глобальная ошибка, из-за которой предоставляются 
модули, которые пакет не должен предоставлять (потому что пакет должен 
предоставлять только себя самого).
Исправлю.

> $ pkglist-query '[%{PROVIDENAME} %{NAME}
> %{PROVIDEFLAGS:depflags}%{PROVIDEVERSION}\n]' \
>   Sisyphus/{x86_64,noarch}/base.bloat/pkglist.classic |\
>   sed -rn -e 's/ \+$//' -e 's/^(npm\([^ ]+) ([^ ]+) ([^ ]+)$/\3 \2 
> \1/p' |\
>   sort -k2 |\
>   uniq -D -f1 |\
>   sed -rn -e 's/^([^ ]+) ([^ ]+) ([^ ]+)$/\2 \3 \1/p' |\
>   sort -k2,2 |\
>   column -t -N 'Package:,Provide Name:,Provide Version:'
А не будет ли хорошей идей вешать такие списки на счётчик?
Ну то есть при появлении таких конструкций, формирующих замечания, 
добавлять их в скрипт, который будет регулярно выполняться с публикацией 
результата (на ftp).

Таким образом мы всегда будем иметь актуальные замечания. Потому что как 
повторить это, я не знаю (где взять base.bloat), а список замечаний это 
очень круто.

-- 
С уважением,
Виталий Липатов,
ALT Linux Team


  reply	other threads:[~2020-11-12  9:38 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-11-11 16:30 Dmitry V. Levin
2020-11-12  9:38 ` Vitaly Lipatov [this message]
2020-11-12  9:56   ` Dmitry V. Levin
2020-11-12 16:30     ` Vitaly Lipatov

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=a99af492aa45781efa27e9af0f933992@altlinux.ru \
    --to=lav@altlinux.ru \
    --cc=devel@lists.altlinux.org \
    --cc=ldv@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