ALT Linux Team development discussions
 help / color / mirror / Atom feed
From: "Dmitry V. Levin" <ldv@altlinux.org>
To: ALT Linux Team development discussions <devel@lists.altlinux.org>
Subject: Re: [devel] Проблемы при обновлении
Date: Wed, 14 Nov 2012 00:31:11 +0400
Message-ID: <20121113203111.GD1435@altlinux.org> (raw)
In-Reply-To: <201211132134.34108.led@altlinux.ru>

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

On Tue, Nov 13, 2012 at 09:34:34PM +0200, Led 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) может быть 
> неоднозначным. По крайней мере, когда-то синтетические тесты мне показывали 
> такие "неоднозначности".

Все эти неоднозначности можно однозначно предсказать, поскольку поведение
rtld известно, и отличается оно существенным образом до и после ldconfig в
следующих ситуациях:
- выполнение ldconfig приводит к появлению/изменению ссылок, не
  упакованных или упакованных с другими значениями (т.е. ошибка упаковки).
- выполнение ldconfig приводит к появлению в /etc/ld.so.cache библиотек,
  которые rtld сам по себе не находит либо находит в других местах (т.е.
  добавление/удаление/изменение файлов /etc/ld.so.conf.d/*.conf).


-- 
ldv

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

  parent reply	other threads:[~2012-11-13 20:31 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
2012-11-13 21:35         ` Led
2012-11-13 20:31       ` Dmitry V. Levin [this message]
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=20121113203111.GD1435@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