ALT Linux Team development discussions
 help / color / mirror / Atom feed
From: "Ivan A. Melnikov" <iv@altlinux.org>
To: devel@lists.altlinux.org
Subject: Re: [devel] Проблемы при обновлении
Date: Wed, 14 Nov 2012 00:15:30 +0400
Message-ID: <20121114001530.27f2ed30@deimos.localdomain> (raw)
In-Reply-To: <201211132134.34108.led@altlinux.ru>

On Tue, 13 Nov 2012 21:34:34 +0200
Led <led@altlinux.ru> wrote:

> On Tuesday 13 November 2012 21:05:18 Dmitry V. Levin wrote:
> > On Tue, Nov 13, 2012 at 08:20:23PM +0200, Led wrote:
> > > On Tuesday 13 November 2012 20:06:45 Ivan A. Melnikov wrote:
> > > > Сегодня обновлял систему до свежего Сизифа, впервые за
> > > > несколько дней, 204 пакета. Поймал вот такую ошибку:
> > > >
> > > >  97: libgtk+3
> > > > #######################################################################
> > > >#### ########################
> > > >[ 45%] /usr/bin/gtk-query-immodules-3.0:
> > > > error while loading shared libraries: libicule.so.48: cannot
> > > > open shared object file: No such file or directory error:
> > > > execution of %post scriptlet from libgtk+3-3.6.2-alt1 failed,
> > > > exit status 127
> > > >
> > > > И в конце транзакции соответственно:
> > > >
> > > > E: Some errors occurred while running transaction
> > > > [root@deimos ~]#
> > > >
> > > > Теперь у меня в системе две libgtk+3.
> > > >
> > > > Это точно баг. Но в каком пакете?
> > >
> > > Это похоже на следствие отказа от ldconfig в %post пакета.
> >
> > Каким образом отказ от ldconfig в %post мог бы сломать установку
> > правильно собранных пакетов?
> 
> Мне кажется, что выполнение в %post утилиты, слинкованной с вновь 
> установленной библиотекой (но с ещё неотработавшим ldconfig) может
> быть неоднозначным. По крайней мере, когда-то синтетические тесты мне
> показывали такие "неоднозначности".
> 

Наблюдение: gtk-query-immodules-3.0 из %post для libgtk+3
требует 65 разделяемых библиотек из 47 различных пакетов, а PreReq
только glib2, libpango и libatk. Так что даже ldconfig не спасёт от
некоторой лотереи при установке. И вряд ли имеет смысл заставлять
майнтейнера все эти зависимости отслеживать.

Я бы предположил, что подобные "тяжёлые" утилиты вообще нельзя
использовать в %post, а надо переносить куда-нибудь на-после-транзакции,
например через pdeath-execute или файлтриггер.


-- 
WBR,
Ivan A. Melnikov


  reply	other threads:[~2012-11-13 20:15 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-11-13 18:06 Ivan A. Melnikov
2012-11-13 18:20 ` Led
2012-11-13 19:05   ` Dmitry V. Levin
2012-11-13 19:34     ` Led
2012-11-13 20:15       ` Ivan A. Melnikov [this message]
2012-11-13 21:35         ` Led
2012-11-13 20:31       ` Dmitry V. Levin
2012-11-13 18:36 ` Dmitry V. Levin
2012-11-13 19:02   ` Ivan A. Melnikov
2012-11-13 19:21     ` [devel] Проблемы при обновлении libicu Dmitry V. Levin
2012-11-13 19:48       ` Ivan A. Melnikov
2012-11-13 20:21         ` Dmitry V. Levin
2012-11-14  3:55     ` [devel] Проблемы при обновлении REAL
2012-11-14  7:14       ` Viacheslav Dubrovskyi
2012-11-14  7:27         ` Yuri N. Sedunov
2012-11-14  7:36           ` Viacheslav Dubrovskyi
2012-11-14 11:06             ` Dmitry V. Levin
2012-11-14  8:19         ` REAL
2012-11-13 19:19 ` Ivan A. Melnikov

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=20121114001530.27f2ed30@deimos.localdomain \
    --to=iv@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