ALT Linux Team development discussions
 help / color / mirror / Atom feed
From: "Kharitonov A. Dmitry" <kharpost@rambler.ru>
To: ALT Linux Team development discussions <devel@lists.altlinux.org>
Subject: Re: [devel] Переключение хашера между бранчами
Date: Mon, 05 Oct 2009 18:35:21 +0400
Message-ID: <4ACA0429.3060909@rambler.ru> (raw)
In-Reply-To: <20091005105119.GD27857@altlinux.org>

Alexey Tourbin wrote:
> On Mon, Oct 05, 2009 at 02:47:58PM +0400, Kharitonov A. Dmitry wrote:
>   
>> Денис Смирнов wrote:
>>     
>>> On Mon, Oct 05, 2009 at 09:26:56AM +0400, Alexey Rusakov wrote:
>>>
>>> AR> Какие-то наработки на эту тему есть в 
>>> etersoft-build-utils. Там есть
>>> AR> недокументированная, кажется, 
>>> возможность - если спек-файл лежит в
>>> AR> каталоге(!) вида M40/M41/M50, то сборочница 
>>> формируется из
>>> AR> соответствующего бранча. Я в итоге 
>>> пришёл к набору алиасов, отличающихся
>>> AR> на --apt-config=... и --repo=...
>>>
>>> Когда я собирал в разные репо -- я 
>>> использовал скрипт, который смотрит на
>>> релиз пакета.
>>>  
>>>       
>> на сколько я понял --repo*= -- это куда 
>> поместить готовый пакет -- это мне не 
>> интересно
>>
>> --apt-config= -- пока не получилось прикрутить 
>> локальный репозиторий с dir:etc как-то 
>> подружиться не удалось. Может я смотрю не 
>> туда? Есть пример?
>>     
>
> 	~/.hasher/config
> workdir=$TMPDIR/build
> mkdir -p "$workdir"
> known_mountpoints=/proc
> packager="$(rpm --eval %packager)"
> apt_config=~/.hasher/apt.conf
> sed "s|@HOME@|$HOME|g" <"$apt_config".in >"$apt_config"
>
> 	~/.hasher/apt.conf.in
> Dir::Etc::SourceList "@HOME@/.hasher/sources.list";
> Dir::Etc::SourceParts "/var/empty/";
> Dir::State::lists "@HOME@/.hasher/lists/";
> Dir::Cache::archives "@HOME@/.hasher/archives/";
>
> Последние две строчки включают кеширование скоченых пакетов,
> если в sources.list используется удаленный репозитарий.
>   
Теперь понятно, почему у меня не работает
Финальный конфиг:
Dir::Etc::SourceList "/etc/apt/40/";
Dir::Etc::SourceList "/home/user/tmp/hasher/aptbox/etc/apt/sources.list";
RPM::RootDir "/home/user/tmp/hasher/aptbox";
APT::Install::Virtual "true";
APT::Install::VirtualVersion "true";

Здесь видно, что моё значение перекрывается значением по умолчанию

[user@eeedima git&gear]$ which mkaptbox
/usr/bin/mkaptbox
[user@eeedima git&gear]$ rpm -qf /usr/bin/mkaptbox
hasher-1.3.6-alt1



  reply	other threads:[~2009-10-05 14:35 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-10-05  4:22 Kharitonov A. Dmitry
2009-10-05  5:04 ` Eugene Prokopiev
2009-10-05  5:19 ` Денис Смирнов
2009-10-05 16:04   ` Michael Shigorin
2009-10-05  5:26 ` Alexey Rusakov
2009-10-05  7:51   ` Денис Смирнов
2009-10-05 10:47     ` Kharitonov A. Dmitry
2009-10-05 10:51       ` Alexey Tourbin
2009-10-05 14:35         ` Kharitonov A. Dmitry [this message]
2009-10-05 15:02           ` Kharitonov A. Dmitry
2009-10-05 17:17             ` Aleksey Avdeev
2009-10-05 10:52       ` Aleksey Avdeev
2009-10-06 19:42   ` Vitaly Lipatov

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=4ACA0429.3060909@rambler.ru \
    --to=kharpost@rambler.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