From 7bd7223753c766f79f80e46c828ddbc02b16fa20 Mon Sep 17 00:00:00 2001 From: Mike Gilbert Date: Sun, 13 Nov 2016 15:37:02 -0500 Subject: [PATCH] apache-2.eclass: fix pcre-config wrapper script MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Thanks Robert Förster for noticing the error. Bug: https://bugs.gentoo.org/598808 --- eclass/apache-2.eclass | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/eclass/apache-2.eclass b/eclass/apache-2.eclass index a8d5804af61c..919f82faeb46 100644 --- a/eclass/apache-2.eclass +++ b/eclass/apache-2.eclass @@ -485,9 +485,16 @@ apache-2_src_prepare() { # This package really should upgrade to using pcre's .pc file. cat <<-\EOF >"${T}"/pcre-config - #!/bin/sh - [ "${flag}" = "--version" ] && set -- --modversion - exec ${PKG_CONFIG} libpcre "$@" + #!/bin/bash + flags=() + for flag; do + if [[ ${flag} == "--version" ]]; then + flags+=( --modversion ) + else + flags+=( "${flag}" ) + fi + done + exec ${PKG_CONFIG} libpcre "${flags[@]}" EOF chmod a+x "${T}"/pcre-config } -- 2.26.2