app-dicts/*: Apply patsub_replacement defences

Per bug #881383, string replacing forms of parameter expansion must take care
to quote - or appropriately escape - any nested parameter expansions, assuming
that their values are intended to be taken literally (as is almost invariably
the case). This has long been the case, but the introduction of the new
patsub_replacement option in bash >=5.2 has brought the issue to the fore.

In the case of the app-dicts package category, the improper quoting is not yet
causing any issues. Still, it is better to write the code properly to begin
with, especially considering the demonstrative value of robust code.

Signed-off-by: Kerin Millar <kfm@plushkava.net>
Bug: https://bugs.gentoo.org/881383
Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
Kerin Millar
2022-12-04 10:36:08 +00:00
committed by Sam James
parent 68a4203699
commit 82e42fc71f
18 changed files with 19 additions and 19 deletions

View File

@@ -5,7 +5,7 @@ EAPI=8
ASPELL_LANG="Asturian"
ASPELL_VERSION=6
MY_P="${PN/aspell/aspell${ASPELL_VERSION}}-${PV}"
MY_P="${PN/aspell/aspell"${ASPELL_VERSION}"}-${PV}"
inherit aspell-dict-r1

View File

@@ -5,7 +5,7 @@ EAPI=8
ASPELL_LANG="Belarusian"
ASPELL_VERSION=5
MY_P="${PN/aspell/aspell${ASPELL_VERSION}}-${PV}"
MY_P="${PN/aspell/aspell"${ASPELL_VERSION}"}-${PV}"
inherit aspell-dict-r1

View File

@@ -5,7 +5,7 @@ EAPI=8
ASPELL_LANG="Catalan"
ASPELL_VERSION=6
MY_PN="${PN/aspell/aspell${ASPELL_VERSION}}"
MY_PN="${PN/aspell/aspell"${ASPELL_VERSION}"}"
MY_P="${MY_PN}-${PV}"
inherit aspell-dict-r1

View File

@@ -5,7 +5,7 @@ EAPI=8
ASPELL_LANG="German, Austria-German and Swiss-German"
ASPELL_VERSION=6
MY_P="${PN/aspell/aspell${ASPELL_VERSION}}-${PV//./-}"
MY_P="${PN/aspell/aspell"${ASPELL_VERSION}"}-${PV//./-}"
inherit aspell-dict-r1

View File

@@ -6,7 +6,7 @@ EAPI=8
ASPELL_LANG="Esperanto"
ASPELL_VERSION=6
MY_PV="$(ver_cut 1-3)a-$(ver_cut 4)"
MY_P="${PN/aspell/aspell${ASPELL_VERSION}}-${MY_PV}"
MY_P="${PN/aspell/aspell"${ASPELL_VERSION}"}-${MY_PV}"
inherit aspell-dict-r1

View File

@@ -5,7 +5,7 @@ EAPI=8
ASPELL_LANG="Irish"
ASPELL_VERSION=5
MY_P="${PN/aspell/aspell${ASPELL_VERSION}}-${PV%.*}-${PV##*.}"
MY_P="${PN/aspell/aspell"${ASPELL_VERSION}"}-${PV%.*}-${PV##*.}"
inherit aspell-dict-r1

View File

@@ -6,7 +6,7 @@ EAPI=8
ASPELL_LANG="Galician"
ASPELL_VERSION=6
MY_PV="$(ver_cut 1-2)a-$(ver_cut 3)"
MY_P="${PN/aspell/aspell${ASPELL_VERSION}}-${MY_PV}"
MY_P="${PN/aspell/aspell"${ASPELL_VERSION}"}-${MY_PV}"
inherit aspell-dict-r1

View File

@@ -6,7 +6,7 @@ EAPI=8
ASPELL_LANG="Italian"
ASPELL_VERSION=6
MY_PV="${PV#*.}"
MY_P="${PN/aspell/aspell${ASPELL_VERSION}}-${PV%%.*}.${MY_PV//./-}"
MY_P="${PN/aspell/aspell"${ASPELL_VERSION}"}-${PV%%.*}.${MY_PV//./-}"
inherit aspell-dict-r1

View File

@@ -5,7 +5,7 @@ EAPI=8
ASPELL_LANG="Lithuanian"
ASPELL_VERSION=6
MY_P="${PN/aspell/aspell${ASPELL_VERSION}}-${PV}"
MY_P="${PN/aspell/aspell"${ASPELL_VERSION}"}-${PV}"
inherit aspell-dict-r1

View File

@@ -5,7 +5,7 @@ EAPI=8
ASPELL_LANG="Malayalam"
ASPELL_VERSION=6
MY_P="${PN/aspell/aspell${ASPELL_VERSION}}-${PV%.*}-${PV##*.}"
MY_P="${PN/aspell/aspell"${ASPELL_VERSION}"}-${PV%.*}-${PV##*.}"
inherit aspell-dict-r1

View File

@@ -6,8 +6,8 @@ EAPI=8
ASPELL_LANG="Portuguese"
ASPELL_VERSION=6
MY_PN="${PN/-/.}"
MY_P="${MY_PN/aspell/aspell${ASPELL_VERSION}}-${PV}"
MY_S="${PN/aspell/aspell${ASPELL_VERSION}}-${PV}"
MY_P="${MY_PN/aspell/aspell"${ASPELL_VERSION}"}-${PV}"
MY_S="${PN/aspell/aspell"${ASPELL_VERSION}"}-${PV}"
inherit aspell-dict-r1

View File

@@ -5,7 +5,7 @@ EAPI=8
ASPELL_LANG="Romanian"
ASPELL_VERSION=5
MY_P="${PN/aspell/aspell${ASPELL_VERSION}}-${PV}"
MY_P="${PN/aspell/aspell"${ASPELL_VERSION}"}-${PV}"
inherit aspell-dict-r1

View File

@@ -6,7 +6,7 @@ EAPI=8
ASPELL_LANG="Russian"
ASPELL_VERSION=6
MY_PV="$(ver_cut 1-2)f7-$(ver_cut 3)"
MY_P="${PN/aspell/aspell${ASPELL_VERSION}}-${MY_PV}"
MY_P="${PN/aspell/aspell"${ASPELL_VERSION}"}-${MY_PV}"
inherit aspell-dict-r1

View File

@@ -5,7 +5,7 @@ EAPI=8
ASPELL_LANG="Sardinian"
ASPELL_VERSION=5
MY_P="${PN/aspell/aspell${ASPELL_VERSION}}-${PV}"
MY_P="${PN/aspell/aspell"${ASPELL_VERSION}"}-${PV}"
inherit aspell-dict-r1

View File

@@ -5,7 +5,7 @@ EAPI=8
ASPELL_LANG="Slovak"
ASPELL_VERSION=6
MY_P="${PN/aspell/aspell${ASPELL_VERSION}}-${PV%.*}-${PV##*.}"
MY_P="${PN/aspell/aspell"${ASPELL_VERSION}"}-${PV%.*}-${PV##*.}"
inherit aspell-dict-r1

View File

@@ -5,7 +5,7 @@ EAPI=8
ASPELL_LANG="Serbian"
ASPELL_VERSION=6
MY_P="${PN/aspell/aspell${ASPELL_VERSION}}-${PV}"
MY_P="${PN/aspell/aspell"${ASPELL_VERSION}"}-${PV}"
inherit aspell-dict-r1

View File

@@ -5,7 +5,7 @@ EAPI=8
ASPELL_LANG="Tetum"
ASPELL_VERSION=5
MY_P="${PN/aspell/aspell${ASPELL_VERSION}}-${PV}"
MY_P="${PN/aspell/aspell"${ASPELL_VERSION}"}-${PV}"
inherit aspell-dict-r1

View File

@@ -5,7 +5,7 @@ EAPI=8
ASPELL_LANG="Tagalog"
ASPELL_VERSION=6
MY_P="${PN/aspell/aspell${ASPELL_VERSION}}-${PV%.*}-${PV##*.}"
MY_P="${PN/aspell/aspell"${ASPELL_VERSION}"}-${PV%.*}-${PV##*.}"
inherit aspell-dict-r1