summaryrefslogtreecommitdiff
path: root/bareos
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2020-09-08 11:16:59 +0200
committerErich Eckner <git@eckner.net>2020-09-08 11:16:59 +0200
commitd5637e59be1d916b211aef409bbaaa6fb9ca963d (patch)
tree6f9745ca49d7b2fe1134fcd05ff0fd4d52ff8fd9 /bareos
parent00c344528de5f9c5282839899614ab865ffd2520 (diff)
downloadarchlinuxewe-d5637e59be1d916b211aef409bbaaa6fb9ca963d.tar.xz
bareos: fix _pinned_dependency parsing
Diffstat (limited to 'bareos')
-rw-r--r--bareos/PKGBUILD21
1 files changed, 12 insertions, 9 deletions
diff --git a/bareos/PKGBUILD b/bareos/PKGBUILD
index 332ea77fb..ac34aca62 100644
--- a/bareos/PKGBUILD
+++ b/bareos/PKGBUILD
@@ -234,6 +234,7 @@ package_bareos-database-mysql() {
local _pinned_dependencies_ibig
local _pinned_dependencies_soprov
local _pinned_dependencies_nsoprov
+ [ "${CARCH}" != 'i486' ] || return 0
_pinned_dependencies_ibig=(
'gcc-libs=10.2.0'
'glibc>=2.31'
@@ -249,7 +250,6 @@ package_bareos-database-mysql() {
eval 'depends_'"${_a}"'=("${_pinned_dependencies[@]}" "${_pinned_dependencies_'"${_a}"'[@]}")'
done
depends=("bareos-common=$pkgver" "bareos-database-common=$pkgver")
- [ "${CARCH}" != 'i486' ] || return 0
install=bareos-database-mysql.install
install -Dm755 \
@@ -740,14 +740,17 @@ package_bareos-storage-python-plugin() {
makedepends+=(
$(
for _pn in "${pkgname[@]}"; do
- declare -f "package_${_pn}" \
- | sed -n '
- s/^\s*_pinned_dependencies=(//
- T
- s/);\?$//
- T
- p
- ' \
+ (
+ eval "$(
+ declare -f "package_${_pn}" \
+ | sed '
+ s/^\s*_pinned_dependencies=(\(.*\));\?$/echo \1/
+ t
+ /\[ "${CARCH}" /!d
+ s/return/exit/
+ '
+ )"
+ ) \
| tr ' ' '\n' \
| tr -d '"'"'"
done \