From: Alexey Tourbin <at@altlinux.ru>
To: ALT Devel discussion list <devel@lists.altlinux.org>
Subject: Re: [devel] how to treat "shell.req ... (skip)" warnings?
Date: Mon, 31 Mar 2008 15:56:36 +0400
Message-ID: <20080331115636.GJ8461@solemn.turbinal> (raw)
In-Reply-To: <20080331114117.GA1352@imap.altlinux.org>
[-- Attachment #1: Type: text/plain, Size: 2833 bytes --]
On Mon, Mar 31, 2008 at 03:41:17PM +0400, Kirill Maslinsky wrote:
> On Mon, Mar 31, 2008 at 03:16:04PM +0400, Alexey Tourbin wrote:
> > On Mon, Mar 31, 2008 at 01:08:52PM +0400, Kirill Maslinsky wrote:
> > > Подскажите, пожалуйста, как правильно реагировать на предупреждения
> > > от shell.req с пометкой "X not found (skip)"?
> >
> > В данном случае это стоит воспринимать как информацию о "грязной
> > сборке". Грязная сборка может привести к недостающим зависимостям
> > у пакета. Сборка является грязной, если она проходит либо в урезанной
> > хост-системе (в которой некоторые пактеты, нужные для разрешения
> > зависимостей, не установлены), либо в хешере без contents_index_bin.
> > Последнее случается, когда хеш репозитария не синхронизируется, а хешер
> > по отдельности выкачивает недостающие пакеты через apt-get.
>
> Мой случай явно последний (hasher), только пока непонятно, что необходимо
> сделать, чтобы "хэш репозитория синхронизировался". Простите за
> несообразительность, можно поподробнее об этом?
Хеш репозитария это то, что находится в каталогах
Sisyphus/{$arch,noarch}/base/.
Это значит, что нужно (хотя бы частично) синхронизировать сизиф
локально, и в sources.list, который используется для сборки, должны
быть пути к репозитариям через file://.
rpm [alt] file:/ALT/Sisyphus i586 classic
rpm [alt] file:/ALT/Sisyphus noarch classic
Тогда будет задействован код из /usr/bin/hsh-sh-cache-contents-functions,
который формирует $HASHER_BUILD_DIR/cache/contents/contents_index_bin
на основе Sisyphus/{$arch,noarch}/base/contents_index.
# Find contents_index files corresponding to sources.list repositories.
contents_index_list=
init_contents_index_list()
{
contents_index_list="$(awk '
(NF==4 && $1=="rpm"){printf("%s/%s/base/contents_index\n",$2,$3)}
(NF==5 && $1=="rpm"){printf("%s/%s/base/contents_index\n",$3,$4)}
' <aptbox/etc/apt/sources.list |
while IFS=: read uri_scheme f; do
[ -r "$f" ] || continue
printf %s\\n "$f"
done)"
if [ -n "$contents_index_list" ]; then
verbose 'Initialized contents index list.'
else
verbose "No contents indices available, nothing to do."
contents_index_bin=
contents_index_all=
fi
}
То есть для чистовой сборки нужно синхронизировать Sisyphus/$arch/
и Sisyphus/noarch/ каталоги, и далее недостающие для сборки
Sisyphus/files/{$arch,noarch}/RPMS/ файлы.
> Вопрос уточняющий: будут ли недостающие зависимости, вызванные грязной
> сборкой на стороне мантейнера, восполнены при пересборке пакета при
> прохождении в Sisyphus?
Да.
[-- Attachment #2: Type: application/pgp-signature, Size: 197 bytes --]
prev parent reply other threads:[~2008-03-31 11:56 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-03-31 9:08 Kirill Maslinsky
2008-03-31 10:02 ` Damir Shayhutdinov
2008-03-31 10:32 ` Kirill Maslinsky
2008-03-31 11:16 ` Alexey Tourbin
2008-03-31 11:41 ` Kirill Maslinsky
2008-03-31 11:56 ` 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=20080331115636.GJ8461@solemn.turbinal \
--to=at@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