mirror of
https://github.com/moparisthebest/pacman
synced 2025-03-03 10:51:47 -05:00
makepkg: Use mkfifo instead of GNU-only 'mknod <file> p'
'mknod <file> p' is apparently GNU-only. Looking at coreutils' source code, It just calls mkfifo. This one line patch should fix makepkg logging in non-GNU systems. Signed-off-by: Nezmer <git@nezmer.info> Signed-off-by: Dan McGee <dan@archlinux.org>
This commit is contained in:
parent
46ffd342a4
commit
fb79d58109
@ -767,7 +767,7 @@ run_function() {
|
|||||||
|
|
||||||
# ensure overridden package variables survive tee with split packages
|
# ensure overridden package variables survive tee with split packages
|
||||||
logpipe=$(mktemp -u "$startdir/logpipe.XXXXXXXX")
|
logpipe=$(mktemp -u "$startdir/logpipe.XXXXXXXX")
|
||||||
mknod "$logpipe" p
|
mkfifo "$logpipe"
|
||||||
exec 3>&1
|
exec 3>&1
|
||||||
tee "$BUILDLOG" < "$logpipe" &
|
tee "$BUILDLOG" < "$logpipe" &
|
||||||
exec 1>"$logpipe" 2>"$logpipe"
|
exec 1>"$logpipe" 2>"$logpipe"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user