From: Alexey Tourbin <at@altlinux.ru>
To: devel@altlinux.ru
Subject: [devel] Re: PostgreSQL -- вопрос по организации перехода на 8.x
Date: Mon, 2 May 2005 21:21:00 +0400
Message-ID: <20050502172100.GA403@solemn.turbinal.org> (raw)
In-Reply-To: <20050502140943.GA16489@osdn.org.ua>
[-- Attachment #1: Type: text/plain, Size: 1261 bytes --]
On Mon, May 02, 2005 at 05:09:43PM +0300, Michael Shigorin wrote:
> On Sun, May 01, 2005 at 05:59:12PM +0400, Alexey Tourbin wrote:
> > А зачем знать, с какой версией был собран пакет? SONAME для
> > того и существует, что если интерфейс не изменился, то
> > пересобирать ничего не надо
>
> Вот только не все апстримы это знают (и применяют с умом).
У pg апстрим вроде вменяемый. На всякий случай можно проверить
хедеры -- посмотреть, не изменились ли структуры и прототипы.
При добавлении в библиотеку новых функций их лучше повесить на отдельный
интерфейс. Для этого в файле lib%name.def делается запись вроде
следующей (liblua.def):
LUA_5.1 {
lua_createtable;
lua_gc;
lua_getallocf;
lua_getfield;
lua_newstate;
lua_objsize;
lua_pushinteger;
lua_pushthread;
lua_setfield;
lua_status;
lua_tointeger;
};
И линковаться через gcc -Wl,--version-script=liblua.def.
Тогда если при линковке с этой библиотекой используются новые функции,
то появится характерная зависимость типа liblua.so.5(LUA_5.1).
К сожалению, это дело широко не используется, хотя есть библиотеки,
которые из версии в версию прямо-таки напрашиваются на учёт. :)
[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]
prev parent reply other threads:[~2005-05-02 17:21 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-04-30 13:31 [devel] " Денис Смирнов
2005-05-01 5:09 ` Ivan Fedorov
2005-05-01 8:20 ` Денис Смирнов
2005-05-01 13:59 ` [devel] " Alexey Tourbin
2005-05-02 12:37 ` Денис Смирнов
2005-05-02 14:09 ` Michael Shigorin
2005-05-02 17:21 ` Alexey Tourbin [this message]
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=20050502172100.GA403@solemn.turbinal.org \
--to=at@altlinux.ru \
--cc=devel@altlinux.ru \
/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