ALT Linux Sisyphus discussions
 help / color / mirror / Atom feed
From: "Dmitry V. Levin" <ldv@altlinux.org>
To: ALT Linux Sisyphus mailing list <sisyphus@altlinux.ru>
Subject: Re: [sisyphus] Странности apt и genbasedir?
Date: Mon, 25 Oct 2004 14:45:42 +0400
Message-ID: <20041025104542.GA4725@basalt.office.altlinux.org> (raw)
In-Reply-To: <200410251420.22310.serpiph@nikiet.ru>

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

On Mon, Oct 25, 2004 at 02:20:16PM +0400, Epiphanov Sergei wrote:
> В сообщении от 25 Октябрь 2004 13:17 Dmitry V. Levin написал:
> > On Mon, Oct 25, 2004 at 10:52:24AM +0400, Epiphanov Sergei wrote:
> > > Начал пересобирать Сизиф в hasher для платформы i686 (для себя) и
> > > наткнулся на ряд вопросов:
> > >
> > > 1. Один раз получил ситуацию, когда прерывал программу hsh через
> > > Ctrl+C и после чего любая попытка выдать genbasedir на репозиторий
> > > hasher получал CachedMD5::CachedMD5 assertion failed. Только когда
> > > обнаружил файл в /var/cache/apt/genpkgdir файл, связанный с
> > > репозиторием и не удалил, ничего не мог сделать. Хотя ожидал, что этот
> > > файл должне был быть в chroot-окружении. Или я неправ?
> >
> > Извините, я не понял вопрос.
> 
> Здесь на самом деле 2 подвопроса (только один вышел коряво):
> 
> 1. hasher спроектирован таким образом, что собирает всё в chroot окружении. 
> И, естественно, я ождаю увидеть всё, что связано со сборкой, в одном 
> месте: в каталоге, где всё происходит, где chroot-окружение, где 
> репозиторий hasher, ... . 
> 
> Пример:
> для
> 
> hsh /home/vasya/hasher file.src.rpm
> 
> я имею в виду каталог /home/vasya/hasher
> 
> Однако, обнаружил, что genbasedir при обработке репозитария hasher 
> выкладывает свой кэш _home_vasya_hasher__repo_i686hasher.md5cache не 
> внутри этого каталога, а в системный каталог /var/cache/apt/genpkglist. До 
> этого без поллитры не дойдёшь. Такая ситуация и должна быть?

Да, но вы это можете изменить, поскольку
$ apt-config shell val Dir::Cache
val='var/cache/apt/

Возможно, genbasedir по умолчанию следует создавать и использовать свой Dir::Cache.

> 2. Никакой информации о том, что произошло с genbasedir, кроме сообщения об 
> ошибке. Сначала мне надо было дойти до того, что что-то не так с каким-то 
> файлом. Я этот ошибочный файл искал непрерывно около двух часов из-за 
> первого вопроса. В "документации" ничего нет. Можно ли при возникновении 
> ошибок в этом кэше командой типа
> 
> genbasedir --nocache
> 
> удалить ошибочный файл или его не использовать?

Все файлы в Dir::Cache/gen{pkg,src}list можно удалять.


-- 
ldv

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

  reply	other threads:[~2004-10-25 10:45 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-10-25  6:52 Epiphanov Sergei
2004-10-25  9:17 ` Dmitry V. Levin
2004-10-25 10:20   ` Epiphanov Sergei
2004-10-25 10:45     ` Dmitry V. Levin [this message]
2004-10-25 10:47 ` Dmitry V. Levin
2004-10-25 11:19   ` Epiphanov Sergei

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=20041025104542.GA4725@basalt.office.altlinux.org \
    --to=ldv@altlinux.org \
    --cc=sisyphus@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 Sisyphus discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/sisyphus/0 sisyphus/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 sisyphus sisyphus/ http://lore.altlinux.org/sisyphus \
		sisyphus@altlinux.ru sisyphus@altlinux.org sisyphus@lists.altlinux.org sisyphus@lists.altlinux.ru sisyphus@lists.altlinux.com sisyphus@linuxteam.iplabs.ru sisyphus@list.linux-os.ru
	public-inbox-index sisyphus

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.sisyphus


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git