From: Andrey Rahmatullin <wrar-alt@mail.ru>
To: devel@lists.altlinux.org
Subject: Re: [devel] Mono: мысли по зависимостям
Date: Mon, 5 Nov 2007 02:16:44 +0500
Message-ID: <20071104211644.GA22138@wrars-comp.wrarsdomain> (raw)
In-Reply-To: <20071104205052.GB24160@solemn.turbinal>
[-- Attachment #1: Type: text/plain, Size: 1917 bytes --]
On Sun, Nov 04, 2007 at 11:50:52PM +0300, Alexey Tourbin wrote:
> > 2. Provides генерируются следующими источниками: метаданные публичных
> > сборок и их publisher policy. Если у сборки нет publisher policy,
> > используется её версия, иначе - версия, на которую перенаправляет policy.
> > Кроме того, надо учитывать publicKeyToken и вроде бы culture.
> Я не силён в моновской терминологии. Что такое publisher policy?
Это вот то policy.*.config, где написано, что наша foo.dll, 1.2.3.4
прикидывается foo.dll, 1.2.0.0.
> > 3. Ссылки без publicKeyToken могут быть разрешены приватными сборками и
> > поэтому не должны создавать Requires с версией.
> Это я тоже не понимаю. Давай пример пакетов в сизифе.
Ну это про приватные сборки. Если у нас ссылка на приватную сборку, то
может быть загружена как приватная (любой версии), так и сборка из GAC.
При этом версия при загрузке проверяться не будет.
Надо ли в этом случае вообще Requires? Не знаю.
> > 4. Ссылки с publicKeyToken должны генерировать Requires, содержащий имя,
> > версию, publicKeyToken и culture сборки, при этом версия берётся из
> > ссылки либо из .config, если он есть и содержит перенаправление.
> Пример пакетов в сизифе.
/usr/lib/mono/gac/Nemerle.CSharp/0.9.3.29994__5291d186334f6101/Nemerle.CSharp.dll
Чтобы загрузить эту сборку, в программе должен быть блок
.assembly extern Nemerle.CSharp
{
.ver 0:9:3:29994
.publickeytoken = (52 91 D1 86 33 4F 61 01 )
}
Поэтому зависимость, по-хорошему, должна включать и имя, и версию, и хэш
ключа.
--
WBR, wRAR (ALT Linux Team)
Powered by the ALT Linux fortune(8):
> Скорее всего, достаточно будет одного взмаха напильником: убрать из
> созданной buildreq'ом строки BuildRequires сам ImageMagick.
Беда в том, что когда мне приходится заниматься чем-то типа пакета
ImageMagick, после первого взмаха напильник уже трудно остановить.
-- ldv in devel@
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 189 bytes --]
next prev parent reply other threads:[~2007-11-04 21:16 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-11-04 20:25 Andrey Rahmatullin
2007-11-04 20:50 ` Alexey Tourbin
2007-11-04 21:16 ` Andrey Rahmatullin [this message]
2007-11-04 21:32 ` Alexey Tourbin
2007-11-05 10:48 ` Andrey Rahmatullin
2007-11-05 11:04 ` 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=20071104211644.GA22138@wrars-comp.wrarsdomain \
--to=wrar-alt@mail.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