diff --git a/srcpkgs/bash-completion/patches/openbsd-man.patch b/srcpkgs/bash-completion/patches/openbsd-man.patch new file mode 100644 index 00000000000..148d875ed26 --- /dev/null +++ b/srcpkgs/bash-completion/patches/openbsd-man.patch @@ -0,0 +1,14 @@ +--- completions/man.orig ++++ completions/man +@@ -57,7 +57,10 @@ _man() + fi + + local manpath +- if [[ $OSTYPE == *@(darwin|linux|freebsd|cygwin)* ]] || _userland GNU; then ++ if [[ -r /etc/man.conf ]]; then ++ manpath=$(eval echo $(awk '/_default/ { print $2 }' /etc/man.conf)) ++ manpath=${manpath// /:} ++ elif [[ $OSTYPE == *@(darwin|linux|freebsd|cygwin)* ]] || _userland GNU; then + manpath=$( manpath 2>/dev/null || command man --path ) + else + manpath=$MANPATH diff --git a/srcpkgs/bash-completion/template b/srcpkgs/bash-completion/template index 3d4f022f741..8445ac806c2 100644 --- a/srcpkgs/bash-completion/template +++ b/srcpkgs/bash-completion/template @@ -1,7 +1,7 @@ # Template file for 'bash-completion' pkgname=bash-completion version=2.1 -revision=4 +revision=5 noarch="yes" build_style=gnu-configure makedepends="bash"