diff options
author | David E. O'Brien <obrien@FreeBSD.org> | 2004-08-10 01:43:53 +0800 |
---|---|---|
committer | David E. O'Brien <obrien@FreeBSD.org> | 2004-08-10 01:43:53 +0800 |
commit | fedc890b9ef5cfbf7b98760a7a9610f6e882cffe (patch) | |
tree | 3425779f68f394c73caf3e8018402d4ecc3bf7a9 /shells | |
parent | 2a415f767229115b12a29e44a706337a32f1f03b (diff) | |
download | freebsd-ports-gnome-fedc890b9ef5cfbf7b98760a7a9610f6e882cffe.tar.gz freebsd-ports-gnome-fedc890b9ef5cfbf7b98760a7a9610f6e882cffe.tar.zst freebsd-ports-gnome-fedc890b9ef5cfbf7b98760a7a9610f6e882cffe.zip |
Ignore /dev/fd/ on FreeBSD 5.x -- devfs doesn't provide a full /dev/fd/
and so Bash's process substitution feature doesn't work when 'configure'
finds we do have /dev/fd/ and tries to use it vs. named pipes.
PR: 48434
Submitted by: naddy
Diffstat (limited to 'shells')
-rw-r--r-- | shells/bash2/Makefile | 2 | ||||
-rw-r--r-- | shells/bash2/files/patch-ac | 16 |
2 files changed, 17 insertions, 1 deletions
diff --git a/shells/bash2/Makefile b/shells/bash2/Makefile index 0f3fe1dcbf51..79af5cf99606 100644 --- a/shells/bash2/Makefile +++ b/shells/bash2/Makefile @@ -8,7 +8,7 @@ PORTNAME= bash PORTVERSION= 2.05b.007 -PORTREVISION?= 1 +PORTREVISION?= 2 CATEGORIES= shells MASTER_SITES= ${MASTER_SITE_GNU} \ ftp://ftp.cwru.edu/pub/bash/ diff --git a/shells/bash2/files/patch-ac b/shells/bash2/files/patch-ac index 40f7df40b148..56117d592f64 100644 --- a/shells/bash2/files/patch-ac +++ b/shells/bash2/files/patch-ac @@ -12,3 +12,19 @@ $FreeBSD$ *-openbsd*) opt_bash_malloc=no ;; # they claim it needs eight-bit alignment *-aix*) opt_bash_malloc=no ;; # AIX machines *-nextstep*) opt_bash_malloc=no ;; # NeXT machines running NeXTstep +@@ -15218,7 +15218,14 @@ + echo $ECHO_N "(cached) $ECHO_C" >&6 + else + if test -d /dev/fd && test -r /dev/fd/0; then +- bash_cv_dev_fd=standard ++ # FreeBSD's devfs only provides /dev/fd/[0-2] ++ exec 3<&0 ++ if test -r /dev/fd/3; then ++ bash_cv_dev_fd=standard ++ else ++ bash_cv_dev_fd=absent ++ fi ++ exec 3<&- + elif test -d /proc/self/fd && test -r /proc/self/fd/0; then + bash_cv_dev_fd=whacky + else |