devel@ where you _can_ ask
 help / color / mirror / Atom feed
From: "Kharitonov A. Dmitry" <kharpost@rambler.ru>
To: "devel@ where you _can_ ask" <devel-newbies@lists.altlinux.org>
Subject: Re: [newbies] откуда ошибка?
Date: Tue, 06 Oct 2009 07:59:48 +0400
Message-ID: <4ACAC0B4.9020209@rambler.ru> (raw)
In-Reply-To: <4ACA49A2.20807@solin.spb.ru>

Aleksey Avdeev wrote:
> 05.10.2009 23:29, Kharitonov A. Dmitry пишет:
>   
>> Aleksey Avdeev wrote:
>>     
>>> 05.10.2009 22:46, Kharitonov A. Dmitry пишет:
>>>  
>>>       
>>>> Grigory Batalov wrote:
>>>>    
>>>>         
>>>>> On Mon, 05 Oct 2009 22:26:27 +0400
>>>>> Kharitonov A. Dmitry wrote:
>>>>>
>>>>>  
>>>>>      
>>>>>           
>>>>>>>> На кого вешать багу? Того кто видит или кто не видит?
>>>>>>>>                     
>>>>>>>>                 
>>>>>>>   Всё верно: сломана не сборка, а устонавливаемость в минимальный
>>>>>>> chroot
>>>>>>> -- локальный hasher её не выполняет. (Т. е. всё взрывается уже после
>>>>>>> сборки).
>>>>>>>
>>>>>>>   Пакету надо требовать shadow-groups, раз он использует его
>>>>>>> компоненты.
>>>>>>>                   
>>>>>>>               
>>>>>> Значит багу вешать на хашер. В моём понимании если ошибка есть, то её
>>>>>> должна отслеживать все, и, наоборот.
>>>>>>             
>>>>>>             
>>>>> Вовсе нет. Устанавливаемость (в чрут) собранного в хэшере пакета
>>>>> должен проверять мэйнтейнер.
>>>>>         
>>>>>           
>>>> У меня-то устанавливается. И устанавливается на 3 серверах на бранче 4.0
>>>>     
>>>>         
>>>   Не показатель: там shadow-groups уже установлен.
>>>   
>>>       
>> А нафига он тогда в хашере устанавливается? Я его об этом не прошу.
>>     
>
>   То-ли я тебя не понимаю, то-ли мы говорим о разном. Попробуй выполнить
> следующее:
>
> $ hsh --initroot-only <chroot>
> $ hsh-install <chroot> <руть к файлу пакета>
>   
[user@eeedima lightsquid-admin]$ boxhasher=~/tmp/test; sudo apt-get 
update; sudo rm -fr "$boxhasher"; mkdir -p "$boxhasher"; hsh 
--initroot-only --apt-config=/etc/apt/40/apt.conf "$boxhasher"; 
hsh-install "$boxhasher" 
/home/user/tmp/hasher/repo/noarch/RPMS.hasher/lightsquid-admin-1.8.0.1-alt2.2.M40.1.noarch.rpm 
/home/user/tmp/hasher/repo/noarch/RPMS.hasher/lightsquid-admin-apache-1.8.0.1-alt2.2.M40.1.noarch.rpm
Reading Package Lists... Done
Building Dependency Tree... Done
DEBUG: apt_config=/etc/apt/40/apt.conf
DEBUG:create initial apt.conf file cat "/etc/apt/40/apt.conf"
---8<---8<---
<13>Oct  6 07:33:25 rpmi: mod_auth_pam-1.1.1-alt1 installed
<86>Oct  6 07:33:25 usermod[9504]: add `apache' to group `shadow'
<86>Oct  6 07:33:25 usermod[9504]: add `apache' to group `auth'
<86>Oct  6 07:33:25 usermod[9504]: add `apache' to group `apache'
<86>Oct  6 07:33:25 usermod[9504]: add `apache' to shadow group `shadow'
<86>Oct  6 07:33:25 usermod[9504]: add `apache' to shadow group `auth'
<86>Oct  6 07:33:25 usermod[9504]: add `apache' to shadow group `apache'
/root/tmp/rpm-tmp.60430: line 2: gpasswd: command not found
/root/tmp/rpm-tmp.60430: line 3: gpasswd: command not found
/root/tmp/rpm-tmp.60430: line 4: gpasswd: command not found
error: execution of %pre scriptlet from 
lightsquid-admin-apache-1.8.0.1-alt2.2.M40.1 failed, exit status 127
error:   install: %pre scriptlet failed (2), skipping 
lightsquid-admin-apache-1.8.0.1-alt2.2.M40.1
hsh-install: Packages installation failed.
*********************************
Те хашер способен поймать ошибку и это приятно
И установку надо инициировать вручную.
Спасибо


  reply	other threads:[~2009-10-06  3:59 UTC|newest]

Thread overview: 30+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-10-05 18:06 Kharitonov A. Dmitry
2009-10-05 18:05 ` Aleksey Avdeev
2009-10-05 18:26   ` Kharitonov A. Dmitry
2009-10-05 18:35     ` Grigory Batalov
2009-10-05 18:46       ` Kharitonov A. Dmitry
2009-10-05 18:39         ` Aleksey Avdeev
2009-10-05 19:29           ` Kharitonov A. Dmitry
2009-10-05 19:31             ` Aleksey Avdeev
2009-10-06  3:59               ` Kharitonov A. Dmitry [this message]
2009-10-05 19:56             ` Grigory Batalov
2009-10-05 20:21               ` Kharitonov A. Dmitry
2009-10-05 21:31                 ` Grigory Batalov
2009-10-05 21:45                   ` Alexey I. Froloff
2009-10-06  3:20                     ` Kharitonov A. Dmitry
2009-10-06  9:07                       ` Alexey I. Froloff
2009-10-06 11:19                         ` Kharitonov A. Dmitry
2009-10-06 11:27                           ` Alexey I. Froloff
2009-10-06 11:54                             ` Kharitonov A. Dmitry
2009-10-06 12:01                               ` Alexey I. Froloff
2009-10-06 12:17                                 ` Kharitonov A. Dmitry
2009-10-06 12:19                                   ` Alexey I. Froloff
2009-10-06 11:36                           ` Aleksey Avdeev
2009-10-07  4:12                             ` Kharitonov A. Dmitry
2009-10-07  4:07                               ` Aleksey Avdeev
2009-10-07  4:23                                 ` Kharitonov A. Dmitry
2009-10-07  4:22                                   ` Aleksey Avdeev
2009-10-07  7:29                                     ` Kharitonov A. Dmitry
2009-10-07 13:28                               ` Kharitonov A. Dmitry
2009-10-06  9:21                     ` Timur Batyrshin
2009-10-05 18:38     ` Aleksey Avdeev

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