From: Sergey Vlasov <vsu@altlinux.ru>
To: devel@lists.altlinux.org
Subject: Re: [devel] metakit update help needed
Date: Mon, 29 Jan 2007 22:16:21 +0300
Message-ID: <20070129191621.GA6862@procyon.home> (raw)
In-Reply-To: <200701292105.59848.thresh@altlinux.ru>
[-- Attachment #1: Type: text/plain, Size: 1219 bytes --]
On Mon, Jan 29, 2007 at 09:05:54PM +0300, Pavlov Konstantin wrote:
> On Monday 29 January 2007 16:36, Damir Shayhutdinov wrote:
> > Как проверить соответствие API/ABI старого пакета и нового, чтобы
> > принять решение - увеличивать ли soname или нет? Сравнивать include ?
>
> rpmsodiff из пакета qa-robot.
rpmsodiff проверяет только изменения в наборе экспортируемых символов,
чего в общем случае недостаточно (хотя в случае C++, где в имени
содержатся и типы параметров, ситуация чуть лучше, изменения в формате
каких-то структур таким образом всё равно обнаружить нельзя). Так что
дополнительно сравнивать include нужно в любом случае.
Ещё неприятная вещь - символы, которые экспортируются, но не входят в
официально поддерживаемый API библиотеки: в некоторых случаях
обнаруживается, что их тем не менее кто-то использует. Внедрение
version script или хотя бы просто списка экспортируемых символов
позволяет хоть как-то бороться с этим (программы, использующие
внутренние символы библиотеки, в этом случае просто не соберутся).
Хотя для C++ написать такой файл довольно сложно.
Кстати, текущий rpmsodiff не работает с пакетами для x86_64 - не видит
в них ни одной разделяемой библиотеки.
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 189 bytes --]
next prev parent reply other threads:[~2007-01-29 19:16 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-01-27 20:15 Michael Shigorin
2007-01-29 13:36 ` Damir Shayhutdinov
2007-01-29 18:05 ` Pavlov Konstantin
2007-01-29 19:16 ` Sergey Vlasov [this message]
2007-01-29 19:55 ` [devel] grep -Po (was: metakit update help needed) Alexey Tourbin
2007-01-29 20:17 ` Damir Shayhutdinov
2007-01-29 20:22 ` 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=20070129191621.GA6862@procyon.home \
--to=vsu@altlinux.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