* [devel] Сборка сервера из профиля.
@ 2007-05-07 9:12 Dmitriy L. Kruglikov
2007-05-07 9:31 ` Michael Shigorin
2007-05-07 10:18 ` Yuriy Kashirin
0 siblings, 2 replies; 9+ messages in thread
From: Dmitriy L. Kruglikov @ 2007-05-07 9:12 UTC (permalink / raw)
To: ALT Devel discussion list
Доброго времени суток.
Пытаюсь собрать сервер, прочитав:
> Этот снапшот собран из бранча Сизифа от 20070504
> с помощью spt по профилю /etc/spt/profiles/server/installer
> из пакета spt-profiles-server-0.4.5-alt1.
Имеем:
-> rpm -qa spt
spt-0.6.0-alt2
-> rpm -qa spt-profiles-server
spt-profiles-server-0.4.5-alt1
-> rpm -qa apt
apt-0.5.15lorg2-alt11
Копируем:
/etc/spt/profiles/server/installer
в ~/spt/server/profile
Запускаем:
spt -v ~/spt/server/
Видим много интересного, а в конце:
/usr/bin/spt-sh-functions: line 209: /apt-get: No such file or directory
spt: Fatal calculated package file list is not local and apt-get does not support APT::Get::PrintLocalFile option.
spt: Fatal Failed to generate package file list.
Вопрос:
Что я делаю неправильно?
P.S.
Логи, конфиги и пр. - по требованию...
Хоть тут, хоть лично...
P.P.S
Из строки с ошибкой меня смутило:
line 209: /apt-get:
Хотя в /usr/bin/spt-sh-functions
написано:
if ! out="$("$aptbox/apt-get" -y -d install -- "$@" 2>&1)"; then
Куда подевалось $aptbox перед /apt-get ?
--
Best regards,
Dmitriy L. Kruglikov .--.
Dmitriy.Kruglikov_at_gmail_dot_com |@_@ |
DKR6-RIPE |!_/ |
XMPP:dkr6@jabber.ru // \ \
(| | )
/'\_ _/`\
Powered by Linux \___)=(___/
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [devel] Сборка сервера из профиля. 2007-05-07 9:12 [devel] Сборка сервера из профиля Dmitriy L. Kruglikov @ 2007-05-07 9:31 ` Michael Shigorin 2007-05-07 9:36 ` Dmitriy L. Kruglikov 2007-05-07 10:18 ` Yuriy Kashirin 1 sibling, 1 reply; 9+ messages in thread From: Michael Shigorin @ 2007-05-07 9:31 UTC (permalink / raw) To: ALT Devel discussion list On Mon, May 07, 2007 at 12:12:41PM +0300, Dmitriy L. Kruglikov wrote: > spt -v ~/spt/server/ > Видим много интересного, а в конце: > /usr/bin/spt-sh-functions: line 209: /apt-get: No such file or directory > spt: Fatal calculated package file list is not local and apt-get does not support APT::Get::PrintLocalFile option. > spt: Fatal Failed to generate package file list. > > Логи, конфиги и пр. - по требованию... grep -rvh ^# /etc/apt/sources.list /etc/apt/sources.list.d/*.list | grep -v ^$ (у тебя где-то ftp/http/rsync, лучше сделай по NFS и file) -- ---- WBR, Michael Shigorin <mike@altlinux.ru> ------ Linux.Kiev http://www.linux.kiev.ua/ ^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [devel] Сборка сервера из профиля. 2007-05-07 9:31 ` Michael Shigorin @ 2007-05-07 9:36 ` Dmitriy L. Kruglikov 2007-05-07 9:45 ` Michael Shigorin 0 siblings, 1 reply; 9+ messages in thread From: Dmitriy L. Kruglikov @ 2007-05-07 9:36 UTC (permalink / raw) To: ALT Devel discussion list На календаре было: Понедельник, 07 Май 2007 года, Michael Shigorin писал(а) в сообщении: MS == Michael Shigorin MS> MS> grep -rvh ^# /etc/apt/sources.list /etc/apt/sources.list.d/*.list | grep -v ^$ MS> MS> (у тебя где-то ftp/http/rsync, лучше сделай по NFS и file) MS> -> grep -rvh ^# /etc/apt/sources.list /etc/apt/sources.list.d/*.list | grep -v ^$ rpm ftp://shadow.orionagro.com.ua/pub/Repository/ i586 hunter rpm-src ftp://shadow.orionagro.com.ua/pub/Repository/ i586 hunter rpm ftp://ftp.altlinux.com/pub/distributions/ALTLinux/Sisyphus/ noarch classic rpm ftp://ftp.altlinux.com/pub/distributions/ALTLinux/Sisyphus/ i386 classic rpm ftp://ftp.altlinux.com/pub/distributions/ALTLinux/Sisyphus/ i586 classic rpm-src ftp://ftp.altlinux.com/pub/distributions/ALTLinux/Sisyphus/ noarch classic rpm-src ftp://ftp.altlinux.com/pub/distributions/ALTLinux/Sisyphus/ i386 classic rpm-src ftp://ftp.altlinux.com/pub/distributions/ALTLinux/Sisyphus/ i586 classic ftp://shadow. - это на моем ноуте.... Если в нем нет нужных пакетов, они будут взяты с ftp://ftp.altlinux.com Если я пропишу только локальный, то у меня не пойдет сборка из-за отсутсвия пакетов... Когда пакеты уже закачались и наличествуют в $aptbox, и индекс построен, логично обращаться к ним как к file, но сделать это "в процессе" нет возможности... -- Best regards, Dmitriy L. Kruglikov .--. Dmitriy.Kruglikov_at_gmail_dot_com |@_@ | DKR6-RIPE |!_/ | XMPP:dkr6@jabber.ru // \ \ (| | ) /'\_ _/`\ Powered by Linux \___)=(___/ -- Мысль -- One of the most striking differences between a cat and a lie is that a cat has only nine lives. -- Mark Twain, "Pudd'nhead Wilson's Calendar" ^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [devel] Сборка сервера из профиля. 2007-05-07 9:36 ` Dmitriy L. Kruglikov @ 2007-05-07 9:45 ` Michael Shigorin 2007-05-07 9:55 ` Dmitriy L. Kruglikov 0 siblings, 1 reply; 9+ messages in thread From: Michael Shigorin @ 2007-05-07 9:45 UTC (permalink / raw) To: ALT Devel discussion list On Mon, May 07, 2007 at 12:36:47PM +0300, Dmitriy L. Kruglikov wrote: > Если я пропишу только локальный, то у меня не пойдет сборка > из-за отсутсвия пакетов... Когда пакеты уже закачались и > наличествуют в $aptbox, и индекс построен, логично обращаться к > ним как к file, но сделать это "в процессе" нет возможности... Забутстрапить получается? Бишь после облома переложить локально? -- ---- WBR, Michael Shigorin <mike@altlinux.ru> ------ Linux.Kiev http://www.linux.kiev.ua/ ^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [devel] Сборка сервера из профиля. 2007-05-07 9:45 ` Michael Shigorin @ 2007-05-07 9:55 ` Dmitriy L. Kruglikov 2007-05-07 9:58 ` Michael Shigorin 0 siblings, 1 reply; 9+ messages in thread From: Dmitriy L. Kruglikov @ 2007-05-07 9:55 UTC (permalink / raw) To: ALT Devel discussion list На календаре было: Понедельник, 07 Май 2007 года, Michael Shigorin писал(а) в сообщении: MS == Michael Shigorin MS> Забутстрапить получается? Бишь после облома переложить локально? Сорри, в буржуйском языке не силен .... "Забутстрапить" - это выпить пива с горя? Я, конечно, запустил с --no-cleanup... Слил новые файлы в репо, перегенерил ... Теоретически, могу написать сорцлист на свой же ноут, но через file ... Но это ж шаманство... Может быть прямее будет на некоторой стадии работы spt самостоятельно сгенерить правильный сорцлист и скормить его ? Файлы-то по сети уже получены, в $aptbox/... они есть... И потом каждому не объяснять, как нужно приседать с этим бубном ... Мне не горит... Я бы и сам попытался исправить... Но мозгов не хватает :) -- Best regards, Dmitriy L. Kruglikov .--. Dmitriy.Kruglikov_at_gmail_dot_com |@_@ | DKR6-RIPE |!_/ | XMPP:dkr6@jabber.ru // \ \ (| | ) /'\_ _/`\ Powered by Linux \___)=(___/ -- Мысль -- Science is to computer science as hydrodynamics is to plumbing. ^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [devel] Сборка сервера из профиля. 2007-05-07 9:55 ` Dmitriy L. Kruglikov @ 2007-05-07 9:58 ` Michael Shigorin 2007-05-07 10:03 ` Dmitriy L. Kruglikov 0 siblings, 1 reply; 9+ messages in thread From: Michael Shigorin @ 2007-05-07 9:58 UTC (permalink / raw) To: ALT Devel discussion list On Mon, May 07, 2007 at 12:55:00PM +0300, Dmitriy L. Kruglikov wrote: > MS> Забутстрапить получается? Бишь после облома переложить локально? > Сорри, в буржуйском языке не силен .... > "Забутстрапить" - это выпить пива с горя? :)))) > Я, конечно, запустил с --no-cleanup... Слил новые файлы в > репо, перегенерил ... Теоретически, могу написать сорцлист на > свой же ноут, но через file ... Но это ж шаманство... Попробуй. > Может быть прямее будет на некоторой стадии работы spt > самостоятельно сгенерить правильный сорцлист и скормить его ? > Файлы-то по сети уже получены, в $aptbox/... они есть... > И потом каждому не объяснять, как нужно приседать с этим бубном > ... Мне не горит... Я бы и сам попытался исправить... Но > мозгов не хватает :) Хватит-хватит, поспрошай Костика, куда смотреть. hasher-то отучили бояться нелокальных источников вон. -- ---- WBR, Michael Shigorin <mike@altlinux.ru> ------ Linux.Kiev http://www.linux.kiev.ua/ ^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [devel] Сборка сервера из профиля. 2007-05-07 9:58 ` Michael Shigorin @ 2007-05-07 10:03 ` Dmitriy L. Kruglikov 0 siblings, 0 replies; 9+ messages in thread From: Dmitriy L. Kruglikov @ 2007-05-07 10:03 UTC (permalink / raw) To: ALT Devel discussion list На календаре было: Понедельник, 07 Май 2007 года, Michael Shigorin писал(а) в сообщении: MS == Michael Shigorin MS> > "Забутстрапить" - это выпить пива с горя? MS> MS> :)))) Да уж .... Не шибко удачное сравнение получилось .... (~)-> dict bootstrap 2 definitions found From The Open English-Russian Dictionary of Computer Terms [engcom]: bootstrap пересборка уже собранного (с помощью собранного); например при сборке компилятора GCC сначала надо собрать его, потом им же собрать его ещё раз Если в разрезе пива, то совсем не удачное ;) С локальным репом сейчас попробую... -- Best regards, Dmitriy L. Kruglikov .--. Dmitriy.Kruglikov_at_gmail_dot_com |@_@ | DKR6-RIPE |!_/ | XMPP:dkr6@jabber.ru // \ \ (| | ) /'\_ _/`\ Powered by Linux \___)=(___/ -- Мысль -- Можно быть неправым, но нельзя быть невежливым. -- Н.Бор ^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [devel] Сборка сервера из профиля. 2007-05-07 9:12 [devel] Сборка сервера из профиля Dmitriy L. Kruglikov 2007-05-07 9:31 ` Michael Shigorin @ 2007-05-07 10:18 ` Yuriy Kashirin 2007-05-07 15:00 ` Dmitriy L. Kruglikov 1 sibling, 1 reply; 9+ messages in thread From: Yuriy Kashirin @ 2007-05-07 10:18 UTC (permalink / raw) To: ALT Devel discussion list On Понедельник 07 мая 2007, Dmitriy L. Kruglikov wrote: > Доброго времени суток. > > Пытаюсь собрать сервер, прочитав: [....] > Запускаем: > spt -v ~/spt/server/ > Видим много интересного, а в конце: > /usr/bin/spt-sh-functions: line 209: /apt-get: No such file or > directory spt: Fatal calculated package file list is not local and > apt-get does not support APT::Get::PrintLocalFile option. spt: > Fatal Failed to generate package file list. [....] > Из строки с ошибкой меня смутило: > line 209: /apt-get: > Хотя в /usr/bin/spt-sh-functions > написано: > if ! out="$("$aptbox/apt-get" -y -d install -- "$@" 2>&1)"; then > Куда подевалось $aptbox перед /apt-get ? Сталкивался и я с таким пару недель назад (spt-0.6.0-alt1): http://lists.altlinux.org/pipermail/devel/2007-April/044512.html С тех пор, правда, переключился на другие здачи, доразбираться руки не дошли... -- Best regards Yuriy Kashirin ^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [devel] Сборка сервера из профиля. 2007-05-07 10:18 ` Yuriy Kashirin @ 2007-05-07 15:00 ` Dmitriy L. Kruglikov 0 siblings, 0 replies; 9+ messages in thread From: Dmitriy L. Kruglikov @ 2007-05-07 15:00 UTC (permalink / raw) To: ALT Devel discussion list На календаре было: Понедельник, 07 Май 2007 года, Yuriy Kashirin писал(а) в сообщении: YK == Yuriy Kashirin YK> > Куда подевалось $aptbox перед /apt-get ? YK> YK> Сталкивался и я с таким пару недель назад (spt-0.6.0-alt1): YK> http://lists.altlinux.org/pipermail/devel/2007-April/044512.html YK> YK> С тех пор, правда, переключился на другие здачи, доразбираться руки не YK> дошли... Ну, как бы день потерял, теперь за 20 минут быстро долетаю... Для начала, провел сборку из сетевого репо и ключиком --no-cleanup После чего перегенерил локальный репо и прописал его как file ... Мысль по ходу дела: Почему бы в /etc/apt не положить отдельный sources.list.SPT, и все действия SPT ориентировать на него, а не на sources.list ? Проблема в том, что при использовании сетевого репозитория можно нарваться на обновление репозитория во время сборки, на обрыв соединения и т.д. ... Отдельный sources.list.SPT поставлять в составе пакета spt, поставлять пустым, с примерами и пояснениями, акаждый собирающий заполнит его сам, по примерам. После этого внес некоторые изменения в /usr/bin/spt cat spt.diff *** spt.orig 2007-04-23 01:35:29 +0300 --- spt 2007-05-07 17:44:52 +0300 *************** *** 159,160 **** --- 159,161 ---- IDENT="packages" VENDOR="ALTLinux" COPYONLY= INSTALLDIR= NOIMAGE= EXTRAOPTS= FILES= OUT= + echo "==> Stage: $cmd. Component: $comp. Building..." *************** *** 175,176 **** --- 176,178 ---- done + echo "===> In stage $cmd all components builded." } *************** *** 292,293 **** --- 294,297 ---- outdir="$workdir/out" + ## Added DKR + aptbox="$workdir/aptbox" Собственно, тут добавлено несколько информационных выхлопов, а вся проблема была в aptbox="$workdir/aptbox" После этого все заработало ... Теперь у меня из данного профиля собирается свой образ... Завтра еще с другими профилями проверю ... -- Best regards, Dmitriy L. Kruglikov .--. Dmitriy.Kruglikov_at_gmail_dot_com |@_@ | DKR6-RIPE |!_/ | XMPP:dkr6@jabber.ru // \ \ (| | ) /'\_ _/`\ Powered by Linux \___)=(___/ -- Мысль -- Everything that you know is wrong, but you can be straightened out. ^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~2007-05-07 15:00 UTC | newest] Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2007-05-07 9:12 [devel] Сборка сервера из профиля Dmitriy L. Kruglikov 2007-05-07 9:31 ` Michael Shigorin 2007-05-07 9:36 ` Dmitriy L. Kruglikov 2007-05-07 9:45 ` Michael Shigorin 2007-05-07 9:55 ` Dmitriy L. Kruglikov 2007-05-07 9:58 ` Michael Shigorin 2007-05-07 10:03 ` Dmitriy L. Kruglikov 2007-05-07 10:18 ` Yuriy Kashirin 2007-05-07 15:00 ` Dmitriy L. Kruglikov
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