[pacman-dev] [PATCH] tolerate broken logpipe

Yardena Cohen yardenack at gmail.com
Wed Jul 10 03:26:48 UTC 2019


On Tue, Jul 9, 2019 at 7:52 PM Eli Schwartz <eschwartz at archlinux.org> wrote:
> As a matter of curiosity, when does this happen? I don't recall offhand
> seeing it.

I find it every so often, most recently building yuzu-git. I don't
know why and don't see any pattern. Googling the error message tells
me I'm not alone:

https://bbs.archlinux.org/viewtopic.php?pid=1789264#p1789264
https://github.com/AladW/aurutils/issues/19#issuecomment-194565520

I usually just solve it by patching $chroot/usr/bin/makepkg when it
happens, but I'm getting tired of doing that. :)

> If we just checked using [[ -p namedpipe ]] then it seems like the
> window for a TOCTOU is pretty narrow...
>
> Aside for which, if we've reached this point then we're already erroring
> out, so -f would only silence a warning, not make anything succeed. So
> this should not be what is causing the whole script to fail.

Good point. I was overzealous replacing both instances. Do you want a
new patch with only the second part?


More information about the pacman-dev mailing list