ALT Linux Team development discussions
 help / color / mirror / Atom feed
* [devel] Q: duplicate gir/typelib self-provides
@ 2020-11-11 16:00 Dmitry V. Levin
  2020-11-11 16:45 ` Yuri Sedunov
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Dmitry V. Levin @ 2020-11-11 16:00 UTC (permalink / raw)
  To: ALT Devel discussion list

Hi,

У нас в репозитории обнаружилось несколько пакетов, которые содержат
сразу 2 разные версии одного и того же gir(...)/typelib(...) в Provides.
Предполагаю, что во всех случаях это ошибки, поскольку сравнения версий в rpm
работают не так, как ожидают люди, когда у пакета больше одной версии.
Кто-нибудь знает, зачем это было сделано?

$ pkglist-query '[%{PROVIDENAME} %{NAME} %|PROVIDEFLAGS?{%{PROVIDEFLAGS:depflags}%{PROVIDEVERSION}}:{}|\n]' \
  Sisyphus/{x86_64,noarch}/base.bloat/pkglist.classic |\
  sed -rn -e 's/ \+$//' -e 's/^((gir|typelib)\(([^ ]+)) ([^ ]+) ([^ ]+)$/\5 \4 \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:'

Package:           Provide Name:       Provide Version:
libcogl-gir-devel  gir(Cogl)           =1.0
libcogl-gir-devel  gir(Cogl)           =2.0
libcogl-gir-devel  gir(CoglPango)      =1.0
libcogl-gir-devel  gir(CoglPango)      =2.0
libcogl-gir        typelib(Cogl)       =1.0
libcogl-gir        typelib(Cogl)       =2.0
libcogl-gir        typelib(CoglPango)  =1.0
libcogl-gir        typelib(CoglPango)  =2.0
libfolks-gir       typelib(Folks)      =0.14
libfolks-gir       typelib(Folks)      =0.6


-- 
ldv


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2020-11-23 18:22 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-11-11 16:00 [devel] Q: duplicate gir/typelib self-provides Dmitry V. Levin
2020-11-11 16:45 ` Yuri Sedunov
2020-11-11 16:57   ` Alexey Gladkov
2020-11-11 17:20     ` Yuri Sedunov
2020-11-12  7:57 ` Sergey V Turchin
2020-11-23 17:01 ` [devel] Q: duplicate versioned typelib provides Dmitry V. Levin
2020-11-23 18:22   ` Vladimir Didenko

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