ALT Linux Team development discussions
 help / color / mirror / Atom feed
From: Anton Farygin <rider@basealt.ru>
To: devel@lists.altlinux.org
Subject: Re: [devel] renoarch: noarch.rpm -> src.rpm
Date: Sun, 14 Nov 2021 01:37:39 +0300
Message-ID: <ca43c9ef-54ce-f412-3ad6-94e44319a990@basealt.ru> (raw)
In-Reply-To: <20211113212653.GT26441@imap.altlinux.org>

On 14.11.2021 00:26, Michael Shigorin wrote:
> Если у кого есть что готовое для задачи "упорядочить список
> взаимозависимых пакетов для_добавления_  в репозиторий,

Для копирования из другого репозитория:

curl 'https://rdb.altlinux.org/api/package/what_depends_src?packages=ruby&branch=sisyphus&depth=1&dptype=source&finite_package=false&oneandhalf=false'|jq -r .

Для имен пакетов:

curl 'https://rdb.altlinux.org/api/package/what_depends_src?packages=ruby&branch=sisyphus&depth=1&dptype=source&finite_package=false&oneandhalf=false'|jq -r '.dependencies[].name'


Список сортируется по зависимостям, но solver не умеет разрывать циклические зависимости и отсюда иногда вылезают грабли. ПЛюс, как известно, зависимости src.rpm формируются во время сборки и могут устаревать.

Иногда более лучший результат получается с depth=2 или dptype=binary

Поиграться в удобной форме можно тут:
https://rdb.altlinux.org/api/


Этот запрос помог со сборкой вот этого задания:
http://git.altlinux.org/tasks/archive/done/_281/288339/
но т.к. там много циклических зависимостей, то пришлось довольно заметно помогать.



  parent reply	other threads:[~2021-11-13 22:37 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-11-13 21:26 Michael Shigorin
2021-11-13 21:38 ` Dmitry V. Levin
2022-07-19 11:26   ` Michael Shigorin
2021-11-13 22:37 ` Anton Farygin [this message]
2021-11-16 10:09   ` Michael Shigorin
2021-11-15 11:14 ` [devel] [devel-ports] " Ivan A. Melnikov
2021-11-15 12:15   ` Anton Farygin
2021-11-15 13:21     ` Ivan A. Melnikov
2021-11-15 15:02       ` Anton Farygin
2021-11-16 10:29       ` Michael Shigorin
2021-11-16  9:50 ` [devel] renoarch: noarch.rpm -> src.rpm (собственно скрипт) Michael Shigorin

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=ca43c9ef-54ce-f412-3ad6-94e44319a990@basealt.ru \
    --to=rider@basealt.ru \
    --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