Bug#316547: Acknowledgement (please invoke "B" hooks on pbuilder execute)

2005-07-01 Thread Stefano Zacchiroli
Actually: my observation on "B" hooks executed by login is wrong. Thus
I'm changing my question: is it possible to have hooks executed after
invoking chroot _both_ for login _and_ execute pbuilder commands?

Cheers.

-- 
Stefano Zacchiroli -*- Computer Science PhD student @ Uny Bologna, Italy
[EMAIL PROTECTED],debian.org,bononia.it} -%- http://www.bononia.it/zack/
If there's any real truth it's that the entire multidimensional infinity
of the Universe is almost certainly being run by a bunch of maniacs. -!-


signature.asc
Description: Digital signature


Bug#316547: Acknowledgement (please invoke "B" hooks on pbuilder execute)

2005-07-03 Thread Junichi Uekawa
Hi,

> Actually: my observation on "B" hooks executed by login is wrong. Thus
> I'm changing my question: is it possible to have hooks executed after
> invoking chroot _both_ for login _and_ execute pbuilder commands?

What kind of use do you have in mind?
It's trivial to add, but I would like to know that there 
are legitimate uses for it.

regards,
junichi
-- 
Junichi Uekawa, Debian Developer   http://www.netfort.gr.jp/~dancer/
183A 70FC 4732 1B87 57A5  CE82 D837 7D4E E81E 55C1 


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Bug#316547: Acknowledgement (please invoke "B" hooks on pbuilder execute)

2005-07-03 Thread Stefano Zacchiroli
On Sun, Jul 03, 2005 at 08:13:34PM +0900, Junichi Uekawa wrote:
> > I'm changing my question: is it possible to have hooks executed after
> > invoking chroot _both_ for login _and_ execute pbuilder commands?
> What kind of use do you have in mind?
> It's trivial to add, but I would like to know that there 
> are legitimate uses for it.

I'm writing a script which uses pbuilder to build a sequence of debian
packages from source installing them as soon as they've been built. A
need of mine, which I think is quite common for people using "pbuilder
execute/login" is to copy stuff inside the chroot before executing the
script (or the sell) and to copy stuff outside the chroot after script
execution (of course before removal of the build place).

"F" hooks could be used for copying stuff in, but hooks for copying
stuff out are not available. "B" hooks seem to be the right ones but are
simply not invoked.

Cheers.

-- 
Stefano Zacchiroli  --  Master in Computer Science @ Uni. Bologna, Italy
[EMAIL PROTECTED],debian.org,bononia.it}  -  http://www.bononia.it/zack/
"  I know you believe you understood what you think I said, but I am not
sure you realize that what you heard is not what I meant!  " -- G.Romney


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Bug#316547: Acknowledgement (please invoke "B" hooks on pbuilder execute)

2005-07-03 Thread Junichi Uekawa
Hi,

> > > I'm changing my question: is it possible to have hooks executed after
> > > invoking chroot _both_ for login _and_ execute pbuilder commands?
> > What kind of use do you have in mind?
> > It's trivial to add, but I would like to know that there 
> > are legitimate uses for it.
> 
> I'm writing a script which uses pbuilder to build a sequence of debian
> packages from source installing them as soon as they've been built. A
> need of mine, which I think is quite common for people using "pbuilder
> execute/login" is to copy stuff inside the chroot before executing the
> script (or the sell) and to copy stuff outside the chroot after script
> execution (of course before removal of the build place).
> 
> "F" hooks could be used for copying stuff in, but hooks for copying
> stuff out are not available. "B" hooks seem to be the right ones but are
> simply not invoked.

Most of that need is satisfied through use of 
--bindmounts option.

By the way, the hook scripts are executed inside the 
chroot, I don't think it's very much useful to 
try to copy outside of chroot when you are only looking
at inside the chroot from hook scripts.



regards,
junichi
-- 
Junichi Uekawa, Debian Developer   http://www.netfort.gr.jp/~dancer/
183A 70FC 4732 1B87 57A5  CE82 D837 7D4E E81E 55C1 


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Bug#316547: Acknowledgement (please invoke "B" hooks on pbuilder execute)

2005-07-04 Thread Stefano Zacchiroli
On Mon, Jul 04, 2005 at 07:15:48AM +0900, Junichi Uekawa wrote:
> Most of that need is satisfied through use of 
> --bindmounts option.

Yes, but the more general need of executing hooks after script or shell
is not addressed by it.

> By the way, the hook scripts are executed inside the 
> chroot, I don't think it's very much useful to 

Yes, I discovered it indeed. Next whishlist bugreport would be for hooks
which are executed outside chroot ;)

-- 
Stefano Zacchiroli  --  Master in Computer Science @ Uni. Bologna, Italy
[EMAIL PROTECTED],debian.org,bononia.it}  -  http://www.bononia.it/zack/
"  I know you believe you understood what you think I said, but I am not
sure you realize that what you heard is not what I meant!  " -- G.Romney


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Bug#316547: Acknowledgement (please invoke "B" hooks on pbuilder execute)

2005-07-08 Thread Stefano Zacchiroli
On Mon, Jul 04, 2005 at 08:51:36AM +0200, Stefano Zacchiroli wrote:
> > Most of that need is satisfied through use of 
> > --bindmounts option.
> Yes, but the more general need of executing hooks after script or shell
> is not addressed by it.

In the end I managed to complete my script without the need of
additional hooks. I still believe that they might be useful, but if
there is no further evidence of that feel free to close this bug report.

Many thanks for your feedback and for pbuilder.

Cheers.

-- 
Stefano Zacchiroli -*- Computer Science PhD student @ Uny Bologna, Italy
[EMAIL PROTECTED],debian.org,bononia.it} -%- http://www.bononia.it/zack/
If there's any real truth it's that the entire multidimensional infinity
of the Universe is almost certainly being run by a bunch of maniacs. -!-


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Bug#316547: Acknowledgement (please invoke "B" hooks on pbuilder execute)

2005-07-10 Thread Junichi Uekawa
Hi,

> In the end I managed to complete my script without the need of
> additional hooks. I still believe that they might be useful, but if
> there is no further evidence of that feel free to close this bug report.
> 
> Many thanks for your feedback and for pbuilder.

Thanks

At this point of  pbuilder history and time, 
I am reluctant to add yet another feature to pbuilder without
assessing the necessities.

Adding hooks to access outside of the chroot makes
debugging harder and will restrict where the chroot 
resides; and it makes it more difficult to be shared 
with user-mode-linux port, which I am planning on
resurrecting.


regards,
junichi.


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]