ALT Linux Team development discussions
 help / color / mirror / Atom feed
From: "Vladimir D. Seleznev" <vseleznv@altlinux.org>
To: ALT Linux Team development discussions <devel@lists.altlinux.org>
Subject: Re: [devel] disttag и rebuild
Date: Tue, 26 Mar 2019 13:45:46 +0300
Message-ID: <20190326104546.GA13770@portlab> (raw)
In-Reply-To: <alpine.LFD.2.20.1903251608140.1228@imap.altlinux.org>

On Mon, Mar 25, 2019 at 04:10:52PM +0300, Ivan Zakharyaschev wrote:
> On Mon, 25 Mar 2019, Anton Farygin wrote:
> 
> > Вопрос в первую очередь к тем, кто придумывал disttag.
> > 
> > Хотелось бы понять, что будет с пакетом после того, как у нас появится p9 (на
> > базе sisyphus) и этому пакету сделаем rebuild в task'е.
> > 
> > Ведь sisyphus-<таск> будет точно больше, чем p9-<таск>.
> > 
> > Соответственно у нас отломается обновление этого пакета ?
> > 
> > Или я ошибаюсь ?
> 
> Я сконцентрировался на rpm-4.0.4 и пока реализовал такую штуку.
> 
> Пердполагаю перенести на rpm-4.13 и собирать в p9 rpm с %def_enable 
> default_priority_distbranch

Зачем rpm'у default_priority_distbranch? Мне кажется, эти лишнее
усложнение. Ведь для того, чтобы это работало, надо научить ещё apt
понимать default_priority_distbranch. Иначе они не договорятся. И это
также потребует ручного переключения distbranch при dist-upgrade.

Это похоже на перенос логики apt_preferences в rpm. Лучше отдать решение
про приоритет бранчей на откуп apt'у, и, например, научить
apt-repo-tools, альтератор переключать default branch в preferences при
переключении репозиториев. Или даже лучше устанавливать вот такой
конфиг:

$ cat /etc/apt/preferences.d/origin_priority
Explanation: Always prefer packages from repository
Package: *
Pin: release o=ALT Linux Team
Pin-Priority: 1001

Тогда всегда будут в приоритете пакеты из подключенных бранчей. Что
решит проблему установки пересборанного в бранче пакета, который при
бранчевании был в Сизифе. Локально собранные пакеты можно поставить на
холд или написать для них другие приоритеты.

> $ rpm -qp /ALT/c7.1/x86_64/RPMS.classic/rpm-4.0.4-alt100.77.M70P.3.M70C.2.x86_64.rpm --lastchange
> * Чт мар 14 2019 Ivan Zakharyaschev <imz@altlinux.org> 4.0.4-alt100.77.M70P.3.M70C.2
> Merged 4.0.4-alt101.M80P.5.2 into c7.1:
> [rpm]
> - Changes in what is considered "newer" by rpm -U  pertaining to disttag
>   comparison. (On the whole, to determine which package is "newer", first,
>   the EVRs are compared, then the branch prefixes of the disttags if the
>   disttags are present, and then the buildtimes.) The comparison of the disttags:
>   + (new!) If a disttag contains no + separator (old format), the branch prefix is
>     assumed to be empty (and hence "older" than any other branch prefix).
>   + (new!) If the branch prefix of a disttag is equal to %_priority_distbranch
>     (and it is not empty), then it is "newer" than any other ones.
>   + (as before, since 4.0.4-alt101.M80P.5) The branch prefixes of disttags are
>     ordered lexicographically.
> - (disabled in this release; %if_enabled default_priority_distbranch)
>   Give a default value to %_priority_distbranch based on the disttag
>   when this package is built (the prefix before +).

-- 
   С уважением,
   Владимир Селезнев


  parent reply	other threads:[~2019-03-26 10:45 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-03-25 11:34 Anton Farygin
2019-03-25 11:46 ` Vladimir D. Seleznev
2019-03-25 11:51   ` Anton Farygin
2019-03-25 11:57     ` Vladimir D. Seleznev
2019-03-25 18:21       ` Anton Farygin
2019-03-25 18:32         ` Dmitry V. Levin
2019-03-25 18:35           ` Anton Farygin
2019-03-25 18:51             ` Vladimir D. Seleznev
2019-03-25 18:52             ` Dmitry V. Levin
2019-03-25 20:38             ` Ivan Zakharyaschev
2019-03-25 21:20               ` Ivan Zakharyaschev
2019-03-25 12:24   ` Dmitry V. Levin
2019-03-25 15:45   ` Anton V. Boyarshinov
2019-03-25 13:10 ` Ivan Zakharyaschev
2019-03-25 18:30   ` Anton Farygin
2019-03-25 21:23     ` Ivan Zakharyaschev
2019-03-26 10:45   ` Vladimir D. Seleznev [this message]
2019-03-26 11:08     ` Dmitry V. Levin
2019-03-26 11:26       ` Vladimir D. Seleznev
2019-03-26 11:32         ` Ivan Zakharyaschev
2019-03-26 11:40           ` Anton Farygin
2019-03-26 11:49             ` Vladimir D. Seleznev

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=20190326104546.GA13770@portlab \
    --to=vseleznv@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