Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix www/wml configure to always use posix mode #256

Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions www/wml/distinfo
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ SHA1 (patch-ak) = 3b81025819f259d7ebb185de4d4890c9892aba87
SHA1 (patch-al) = 9bdf732aad8520b89bc5925ae6eb0e2cce937f6b
SHA1 (patch-am) = 5e597fed00ee56fbaf54d6725e36f9c9e5292c0e
SHA1 (patch-wml__aux_freetable_freetable.src) = 938f2b380147476a8e959e15ccf6e2887191448d
SHA1 (patch-wml__backend_p2__mp4h_configure) = c13341a29edfae929bf930ae7b8ed337b5c04d4b
SHA1 (patch-wml__backend_p2__mp4h_doc_mp4h.mp4h) = 3ab650e57012ad85f89156fdd639df0c695c21af
SHA1 (patch-wml__backend_p3__eperl_eperl__perl5.c) = e80878ccdd6d58efa42b987b3951897c1c8df32b
SHA1 (patch-wml__backend_p3__eperl_eperl__perl5.h) = 0e4534ce4171472b5c26eb9def7dfa4067bc6fe8
Expand Down
19 changes: 19 additions & 0 deletions www/wml/patches/patch-wml__backend_p2__mp4h_configure
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
$NetBSD$

This ensures the current shell is in posix compatibility mode. Modern
versions of autoconf can do this now, but this configure script has
not been regenerated in a long time...

--- wml_backend/p2_mp4h/configure.orig 2006-08-19 06:09:49.000000000 +0000
+++ wml_backend/p2_mp4h/configure
@@ -16,8 +16,8 @@ if test -n "${ZSH_VERSION+set}" && (emul
# Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
# is contrary to our usage. Disable this feature.
alias -g '${1+"$@"}'='"$@"'
-elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
- set -o posix
+else
+ case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
fi
DUALCASE=1; export DUALCASE # for MKS sh