ALT Linux Team development discussions
 help / color / mirror / Atom feed
From: "Dmitry V. Levin" <ldv@altlinux.org>
To: ALT Devel discussion list <devel@lists.altlinux.org>
Subject: Re: [devel] Q: debuginfo strip controls & deps
Date: Mon, 7 Feb 2011 00:29:01 +0300
Message-ID: <20110206212900.GF26014@altlinux.org> (raw)
In-Reply-To: <20110206212209.GD26014@altlinux.org>

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

On Mon, Feb 07, 2011 at 12:22:09AM +0300, Dmitry V. Levin wrote:
> On Sun, Feb 06, 2011 at 05:05:00AM +0300, Alexey Tourbin wrote:
> > On Sat, Feb 05, 2011 at 08:41:03AM +0300, Alexey Tourbin wrote:
> > > Насчет оптимизации зависимостей между подпакетами.  Мне совсем недавно
> > > пришло в голову, что зависимости можно оптимизировать ещё сильнее:
> > > а именно, оптимизировать можно не только зависимости, удовлетворённые
> > > через Provides, но и зависимости, удовлетворенные через Requires! Ж-)
> > > 
> > > Пусть например пакет rpm требует две зависимости
> > > librpm = 4.0.4-alt16
> > > libc.so.6()(64bit)
> > > а пакет librpm в свою очередь требует среди прочих зависимость
> > > libc.so.6()(64bit)
> > > 
> > > Тогда из пакета rpm можно удалить зависимость на libc.so.6()(64bit).
> > > То есть некоторые зависимости подпакетов иногда "отоваривать", как говорит
> > > лидер нации, через базовый подпакет.  Что в принципе имеет смысл.
> > > 
> > > Но там сложнее сделать, поскольку две Requires зависимости нельзя
> > > сравнивать напрямую.  И это не будет хорошо работать с set-версиями,
> > > потому что обычно будут разные/несравнимые подможества.  А оптимизация
> > > зависимостей делается прежде всего, чтобы снизить нагрузку на
> > > pkglist/pkgcache и apt, которая подскочила из-за set-версий.
> > > 
> > > В общем пока не решил, делать ещё одну оптимизацию зависимостей или нет.
> > > Предлагаю дождаться окончания i586-пересборки, чтобы оценить степень
> > > разлома.  Потом можно решить, что нужно будет достаточно быстро доделать
> > > или переделать.  Впрочем, glibc вроде бы можно собирать в любом случае.
> > 
> > Выложил предварительную реализацию (в ней есть что исправить, но она уже
> > работает).  Вот пример оптимизации.
> > 
> > $ compare_packages -i -a --requires /home/at/RPM/RPMS/x86_64/xz-5.0.0-alt2.x86_64.rpm
> > --- /tmp/.private/at/compare_packages.g3rVQA50Yd/1      2011-02-06 04:58:51.643607248 +0300
> > +++ /tmp/.private/at/compare_packages.g3rVQA50Yd/2      2011-02-06 04:58:51.627608733 +0300
> > @@ -1,13 +1,8 @@
> >  /lib64/ld-linux-x86-64.so.2
> > -libc.so.6(GLIBC_2.2.5)(64bit)
> >  libc.so.6(GLIBC_2.3)(64bit)
> >  libc.so.6(GLIBC_2.3.4)(64bit)
> > -libc.so.6(GLIBC_2.4)(64bit)
> >  libc.so.6(GLIBC_2.6)(64bit)
> >  libc.so.6(GLIBC_2.7)(64bit)
> >  liblzma = 5.0.0-alt2
> > -liblzma.so.5()(64bit) >= set:keZ91URZaAr4qmA33KZiAIxjIAjEn7NatiLJUn4TV4uFJQi2NM3bXAi8wGbUJG9kZz4dcZuysjASmPqbf13FsMl0
> >  libpthread.so.0(GLIBC_2.2.5)(64bit)
> >  rpmlib(PayloadIsLzma)
> > -rpmlib(SetVersions)
> > -rtld(GNU_HASH)
> > $
> > 
> > Здесь по первому правилу, которое уже реализовано, удаляется зависимость
> > на liblzma.so.5()(64bit) - т.к. пакет liblzma УДОВЛЕТВОРЯЕТ эту зависимость.
> > 
> > А остальные зависимости удалены по новому правилу - подпакет liblzma
> > УЖЕ ТРЕБУЕТ эти зависимости. Интересно, что rpmlib(PayloadIsLzma) не
> > удаляется - эта зависимость добавляется в самом конце (прямо перед записью
> > пакета на диск).
> 
> Важно отметить для тех, кто читает тред по диагонали, что такая оптимизация
> легальна только потому, что пакеты liblzma и xz собираются из одного
> исходного пакета.

Хотя на самом деле она легальна потому, что у пакета xz есть _жесткая_
зависимость liblzma = 5.0.0-alt2.


-- 
ldv

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

  reply	other threads:[~2011-02-06 21:29 UTC|newest]

Thread overview: 30+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-01-31 15:23 Alexey Tourbin
2011-01-31 15:46 ` Dmitry V. Levin
2011-02-03  9:20   ` Alexey Tourbin
2011-02-03  9:55     ` REAL
2011-02-03 10:16       ` Alexey Tourbin
2011-02-03 10:45         ` REAL
2011-02-04 17:40     ` Dmitry V. Levin
2011-02-04 19:24       ` Dmitry V. Levin
2011-02-04 20:38       ` Alexey Tourbin
2011-02-04 22:21         ` Dmitry V. Levin
2011-02-04 23:00           ` Alexey Tourbin
2011-02-05  5:41             ` Alexey Tourbin
2011-02-05 14:00               ` Dmitry V. Levin
2011-02-05 14:52                 ` Alexey Tourbin
2011-02-06 10:01                 ` Alexey Tourbin
2011-02-06 21:19                   ` Dmitry V. Levin
2011-02-05 21:11               ` Alexey Tourbin
2011-02-06  2:05               ` Alexey Tourbin
2011-02-06 21:22                 ` Dmitry V. Levin
2011-02-06 21:29                   ` Dmitry V. Levin [this message]
2011-01-31 15:58 ` REAL
2011-01-31 15:42   ` Alexey Tourbin
2011-01-31 16:17     ` REAL
2011-01-31 16:33 ` Afanasov Dmitry
2011-01-31 17:25   ` Alexey Tourbin
2011-01-31 21:46 ` Dmitry V. Levin
2011-01-31 23:33   ` Dmitry V. Levin
2011-02-01  4:02     ` Alexey Tourbin
2011-02-01  9:29       ` Dmitry V. Levin
2011-02-01 17:00         ` Alexey Tourbin

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=20110206212900.GF26014@altlinux.org \
    --to=ldv@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