devel@ where you _can_ ask
 help / color / mirror / Atom feed
From: Ildar Mulyukov <ildar@altlinux.ru>
To: devel-newbies@lists.altlinux.org
Subject: Re: [newbies] hasher и локальный репозиторий
Date: Thu, 06 Sep 2012 10:29:03 +0600
Message-ID: <1346905743.2178.15@ildar.innovations.kz> (raw)
In-Reply-To: <50472D18.9090206@altlinux.ru> (from cas@altlinux.ru on Wed Sep 5 16:44:40 2012)

On 05.09.2012 16:44:40, Андрей Черепанов wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> 05.09.2012 14:40, gBopHuk_alt пишет:
> > Здравствуйте! Тут у меня возник такой вопрос:
> >
> > Каждый раз когда я собираю новый пакет , Hasher качает какие-то
> > базовые 120 пакетов, видимо необходимых для любой сборки, а уже
> > потом качает зависимости buildre - что занимает огромное кол-во
> > времени, которое не связанно непосредственно со сборкой. Вот я и
> > задумался , а не проще ли будет закачать их один раз в локальный
> > репозиторий, и раз в месяц или полмесяца синхронизировать его с
> > бранчем ? Как результат: - Уменьшаем энтропию и качаем пакеты
> > только buildreq. - Появляется больше времени на отладку сборки
> > пакета.
> Так все и делают: держат локальную копию репозитория и синхронизируют  
> её.

Бррр! Ужасно.

Лучше так: настроить hasher на локальный репозитарий, который  
формируется из содержимого /var/cache/apt/archives/ (этот репозитарий  
прописан в /etc/apt/sources.list.d/local.list)
В настройках будет так:
	$ cat ~/.hasher/config
	workdir=$TMP/hasher
	apt_config=~/.hasher/apt.conf.hasher
	$ cat ~/.hasher/apt.conf.hasher
	Dir::State "/tmp/.private/ildar/hasher/aptbox/var/lib/apt/";
	Dir::Cache "/tmp/.private/ildar/hasher/aptbox/var/cache/apt/";

	Dir::Etc::SourceList "/etc/apt/sources.list.d/local.list";
	Dir::Etc::SourceParts "";
	RPM::RootDir "/tmp/.private/ildar/hasher/aptbox";
	APT::Install::Virtual "true";
	APT::Install::VirtualVersion "true";
(надо всё подправить под Ваш workdir)

Удачи!
-- 
Ildar Mulyukov,
   free SW designer/programmer/packager
======================================
email: ildar@altlinux.ru
Jabber: ildar.mulyukov@gmail.com
ICQ: 4334029
ALT Linux http://packages.altlinux.org/ru/Sisyphus/maintainers/ildar/
======================================

  parent reply	other threads:[~2012-09-06  4:29 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-09-05 10:40 gBopHuk_alt
2012-09-05 10:44 ` Андрей Черепанов
2012-09-05 11:22   ` gBopHuk_alt
2012-09-05 11:27     ` Андрей Черепанов
2012-09-05 14:02       ` gBopHuk_alt
2012-09-05 11:33     ` Ivan A. Melnikov
2012-09-06  4:29   ` Ildar Mulyukov [this message]
2012-09-06  4:33     ` Ildar Mulyukov
2012-09-06  7:09     ` Lenar Shakirov
2012-09-06  7:19       ` Michael Shigorin

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=1346905743.2178.15@ildar.innovations.kz \
    --to=ildar@altlinux.ru \
    --cc=devel-newbies@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

devel@ where you _can_ ask

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/devel-newbies/0 devel-newbies/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-newbies devel-newbies/ http://lore.altlinux.org/devel-newbies \
		devel-newbies@lists.altlinux.org devel-newbies@lists.altlinux.ru devel-newbies@lists.altlinux.com
	public-inbox-index devel-newbies

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


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