[pacman-dev] [PATCH 4/4] makepkg: Use mkfifo instead of GNU-only 'mknod <file> p'

Dan McGee dpmcgee at gmail.com
Mon Oct 11 15:44:02 EDT 2010


On Mon, Oct 11, 2010 at 2:16 PM, Nezmer <git at nezmer.info> wrote:
> '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 at nezmer.info>
> ---
Looks good, thanks.

>  scripts/makepkg.sh.in |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/scripts/makepkg.sh.in b/scripts/makepkg.sh.in
> index baabf26..afedc31 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"
> --
> 1.7.3.1
>
>
>


More information about the pacman-dev mailing list