Package: bash
Version: 3.0-17
Severity: serious
Tags: patch

bash fails to build because "test -c /dev/stdin" fails if /dev/stdin
is a symbolic link (as it is in my fresh pbuilder chroot):

> : # see #327477, needed to have HAVE_DEV_STDIN defined
> test -c /dev/stdin
> make: *** [before-build] Error 1

The attached patch makes this test use the same commands as configure,
which handles this case correctly.

-- 
Matt
diff -u bash-3.0/debian/rules bash-3.0/debian/rules
--- bash-3.0/debian/rules
+++ bash-3.0/debian/rules
@@ -78,7 +78,8 @@
 
 before-build:
        : # see #327477, needed to have HAVE_DEV_STDIN defined
-       test -c /dev/stdin
+       (test -d /dev/fd && test -r /dev/stdin < /dev/null) \
+           || (test -d /proc/self/fd && test -r /dev/stdin < /dev/null)
 
 # ---------------------------------------------------------------------------
 # build standard bash

Attachment: signature.asc
Description: Digital signature

Reply via email to