summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNezmer <git@nezmer.info>2010-10-11 21:16:49 +0200
committerDan McGee <dan@archlinux.org>2010-10-12 00:01:55 +0200
commitfb79d58109ff5a55ac3cea83607eb41e70456b17 (patch)
treea14a03dfa07b98fd3d020e449b624b9442541445
parent46ffd342a4255916a9599692b5969ae4cd85a156 (diff)
downloadpacman-fb79d58109ff5a55ac3cea83607eb41e70456b17.tar.gz
pacman-fb79d58109ff5a55ac3cea83607eb41e70456b17.tar.xz
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>
-rw-r--r--scripts/makepkg.sh.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/makepkg.sh.in b/scripts/makepkg.sh.in
index 3a7a4d1c..8f06a86d 100644
--- a/scripts/makepkg.sh.in
+++ b/scripts/makepkg.sh.in
@@ -767,7 +767,7 @@ run_function() {
# ensure overridden package variables survive tee with split packages
logpipe=$(mktemp -u "$startdir/logpipe.XXXXXXXX")
- mknod "$logpipe" p
+ mkfifo "$logpipe"
exec 3>&1
tee "$BUILDLOG" < "$logpipe" &
exec 1>"$logpipe" 2>"$logpipe"