[pacman-dev] makepkg, su and output - Was: [PATCH 1/3] makepkg: simplify su/sudo calling logic

Allan McRae allan at archlinux.org
Sat Jun 19 04:54:33 EDT 2010

On 19/06/10 18:33, Andres P wrote:
> On Sat, Jun 19, 2010 at 3:24 AM, Allan McRae<allan at archlinux.org>  wrote:
>> No...  I do not know what you mean by this.  Can you post some output or a
>> screenshot?
> It'd be kind of difficult since the problem is mostly about what doesn't show
> up.
> It's like when you turn on flow control with ^S, type 'ls; echo foo' and press
> enter, then press ^Q.
> Except that I'm free to press enter and see the feedback on my scrollback
> buffer from the commands that I press, whithout seeing a "preview" of it to the
> right of my $PS1.
> I've now isolated the problem and it does not happen with every su
> operation, only
> when cancelling the su password prompt.
> Here's what I'm doing:
> 1. I uninstall asciidoc
> 2. curl http://aur.archlinux.org/packages/pacman-git/pacman-git.tar.gz | tar xz
> 3. cd pacman-git; makepkg -s
> 4. When it shows the su password prompt, I hit ^C
> What I type is now invisible until I `reset`. Does not happen with sudo nor
> from regular calls like `su -c ls` from my shell.

ah...  I can replicate.  This is weird. Perhaps some sort of pipe is 
still capturing the output?

> btw, I cannot get master nor latest tag to pipe files named after versioned
> deps to $startdir; e.g. $startdir/4. makepkg falling back to su still calls
> pacman -T correctly.

1. update ABS
2. cp /var/abs/community-testing/pacman-contrib/* .
3. adjust dependencies to be  depends=('pacman>4')
4. makepkg -s, type in your password.  It will reinstall pacman from the 
repos and then bail because on missing deps
5. notice file named "4" in you directory containing pacman output...

More information about the pacman-dev mailing list