summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKerin Millar <kfm@plushkava.net>2022-12-04 10:36:08 +0000
committerSam James <sam@gentoo.org>2022-12-06 09:11:27 +0000
commit82e42fc71fbb1be48d44533ad636a144c4e451a1 (patch)
tree861e6b1e458865525534eccb0fc497adb414ed3d /app-dicts
parentnet-vpn/networkmanager-strongswan: Apply patsub_replacement defences (diff)
downloadgentoo-82e42fc71fbb1be48d44533ad636a144c4e451a1.tar.gz
gentoo-82e42fc71fbb1be48d44533ad636a144c4e451a1.tar.bz2
gentoo-82e42fc71fbb1be48d44533ad636a144c4e451a1.zip
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>
Diffstat (limited to 'app-dicts')
-rw-r--r--app-dicts/aspell-ast/aspell-ast-0.01-r1.ebuild2
-rw-r--r--app-dicts/aspell-be/aspell-be-0.01-r2.ebuild2
-rw-r--r--app-dicts/aspell-ca/aspell-ca-2.5.0-r1.ebuild2
-rw-r--r--app-dicts/aspell-de/aspell-de-20161207.7.0-r1.ebuild2
-rw-r--r--app-dicts/aspell-eo/aspell-eo-2.1.20000225.2-r1.ebuild2
-rw-r--r--app-dicts/aspell-ga/aspell-ga-5.1.0-r1.ebuild2
-rw-r--r--app-dicts/aspell-gl/aspell-gl-0.5.2-r1.ebuild2
-rw-r--r--app-dicts/aspell-it/aspell-it-2.4.20070901.0-r1.ebuild2
-rw-r--r--app-dicts/aspell-lt/aspell-lt-1.3.2-r1.ebuild2
-rw-r--r--app-dicts/aspell-ml/aspell-ml-0.04.1-r1.ebuild2
-rw-r--r--app-dicts/aspell-pt/aspell-pt-20220621.ebuild4
-rw-r--r--app-dicts/aspell-ro/aspell-ro-3.3.10-r1.ebuild2
-rw-r--r--app-dicts/aspell-ru/aspell-ru-0.99.1-r2.ebuild2
-rw-r--r--app-dicts/aspell-sc/aspell-sc-1.0-r1.ebuild2
-rw-r--r--app-dicts/aspell-sk/aspell-sk-2.02.0-r1.ebuild2
-rw-r--r--app-dicts/aspell-sr/aspell-sr-0.02-r1.ebuild2
-rw-r--r--app-dicts/aspell-tet/aspell-tet-0.1.1-r1.ebuild2
-rw-r--r--app-dicts/aspell-tl/aspell-tl-0.4.0-r1.ebuild2
18 files changed, 19 insertions, 19 deletions
diff --git a/app-dicts/aspell-ast/aspell-ast-0.01-r1.ebuild b/app-dicts/aspell-ast/aspell-ast-0.01-r1.ebuild
index b28405cdf9bc..abbd1a71dfa3 100644
--- a/app-dicts/aspell-ast/aspell-ast-0.01-r1.ebuild
+++ b/app-dicts/aspell-ast/aspell-ast-0.01-r1.ebuild
@@ -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
diff --git a/app-dicts/aspell-be/aspell-be-0.01-r2.ebuild b/app-dicts/aspell-be/aspell-be-0.01-r2.ebuild
index eddcca64a570..c0ce4d1b7155 100644
--- a/app-dicts/aspell-be/aspell-be-0.01-r2.ebuild
+++ b/app-dicts/aspell-be/aspell-be-0.01-r2.ebuild
@@ -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
diff --git a/app-dicts/aspell-ca/aspell-ca-2.5.0-r1.ebuild b/app-dicts/aspell-ca/aspell-ca-2.5.0-r1.ebuild
index 27380d30535f..17358f8b0468 100644
--- a/app-dicts/aspell-ca/aspell-ca-2.5.0-r1.ebuild
+++ b/app-dicts/aspell-ca/aspell-ca-2.5.0-r1.ebuild
@@ -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
diff --git a/app-dicts/aspell-de/aspell-de-20161207.7.0-r1.ebuild b/app-dicts/aspell-de/aspell-de-20161207.7.0-r1.ebuild
index c726dd55fd8a..5243f41e9775 100644
--- a/app-dicts/aspell-de/aspell-de-20161207.7.0-r1.ebuild
+++ b/app-dicts/aspell-de/aspell-de-20161207.7.0-r1.ebuild
@@ -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
diff --git a/app-dicts/aspell-eo/aspell-eo-2.1.20000225.2-r1.ebuild b/app-dicts/aspell-eo/aspell-eo-2.1.20000225.2-r1.ebuild
index 3e2223358d12..f7bdc02252a4 100644
--- a/app-dicts/aspell-eo/aspell-eo-2.1.20000225.2-r1.ebuild
+++ b/app-dicts/aspell-eo/aspell-eo-2.1.20000225.2-r1.ebuild
@@ -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
diff --git a/app-dicts/aspell-ga/aspell-ga-5.1.0-r1.ebuild b/app-dicts/aspell-ga/aspell-ga-5.1.0-r1.ebuild
index d02c50cedb9b..738ebd03c7a3 100644
--- a/app-dicts/aspell-ga/aspell-ga-5.1.0-r1.ebuild
+++ b/app-dicts/aspell-ga/aspell-ga-5.1.0-r1.ebuild
@@ -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
diff --git a/app-dicts/aspell-gl/aspell-gl-0.5.2-r1.ebuild b/app-dicts/aspell-gl/aspell-gl-0.5.2-r1.ebuild
index 1e31ec0ee6d0..ba5c7ee1f17c 100644
--- a/app-dicts/aspell-gl/aspell-gl-0.5.2-r1.ebuild
+++ b/app-dicts/aspell-gl/aspell-gl-0.5.2-r1.ebuild
@@ -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
diff --git a/app-dicts/aspell-it/aspell-it-2.4.20070901.0-r1.ebuild b/app-dicts/aspell-it/aspell-it-2.4.20070901.0-r1.ebuild
index 5ca016b0ddc8..737d13283005 100644
--- a/app-dicts/aspell-it/aspell-it-2.4.20070901.0-r1.ebuild
+++ b/app-dicts/aspell-it/aspell-it-2.4.20070901.0-r1.ebuild
@@ -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
diff --git a/app-dicts/aspell-lt/aspell-lt-1.3.2-r1.ebuild b/app-dicts/aspell-lt/aspell-lt-1.3.2-r1.ebuild
index 6f3d9ed429ec..717b03ec818d 100644
--- a/app-dicts/aspell-lt/aspell-lt-1.3.2-r1.ebuild
+++ b/app-dicts/aspell-lt/aspell-lt-1.3.2-r1.ebuild
@@ -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
diff --git a/app-dicts/aspell-ml/aspell-ml-0.04.1-r1.ebuild b/app-dicts/aspell-ml/aspell-ml-0.04.1-r1.ebuild
index 87b2c9d3ff47..07f56c3b6b9f 100644
--- a/app-dicts/aspell-ml/aspell-ml-0.04.1-r1.ebuild
+++ b/app-dicts/aspell-ml/aspell-ml-0.04.1-r1.ebuild
@@ -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
diff --git a/app-dicts/aspell-pt/aspell-pt-20220621.ebuild b/app-dicts/aspell-pt/aspell-pt-20220621.ebuild
index 71972c1b634b..59b1833c30eb 100644
--- a/app-dicts/aspell-pt/aspell-pt-20220621.ebuild
+++ b/app-dicts/aspell-pt/aspell-pt-20220621.ebuild
@@ -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
diff --git a/app-dicts/aspell-ro/aspell-ro-3.3.10-r1.ebuild b/app-dicts/aspell-ro/aspell-ro-3.3.10-r1.ebuild
index fe0dad58877b..d92599c11f7c 100644
--- a/app-dicts/aspell-ro/aspell-ro-3.3.10-r1.ebuild
+++ b/app-dicts/aspell-ro/aspell-ro-3.3.10-r1.ebuild
@@ -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
diff --git a/app-dicts/aspell-ru/aspell-ru-0.99.1-r2.ebuild b/app-dicts/aspell-ru/aspell-ru-0.99.1-r2.ebuild
index c235b67bba95..663473a7a423 100644
--- a/app-dicts/aspell-ru/aspell-ru-0.99.1-r2.ebuild
+++ b/app-dicts/aspell-ru/aspell-ru-0.99.1-r2.ebuild
@@ -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
diff --git a/app-dicts/aspell-sc/aspell-sc-1.0-r1.ebuild b/app-dicts/aspell-sc/aspell-sc-1.0-r1.ebuild
index 1ee14685ec03..de48f0755f84 100644
--- a/app-dicts/aspell-sc/aspell-sc-1.0-r1.ebuild
+++ b/app-dicts/aspell-sc/aspell-sc-1.0-r1.ebuild
@@ -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
diff --git a/app-dicts/aspell-sk/aspell-sk-2.02.0-r1.ebuild b/app-dicts/aspell-sk/aspell-sk-2.02.0-r1.ebuild
index 311b782b8a7b..c52ffaf9f09a 100644
--- a/app-dicts/aspell-sk/aspell-sk-2.02.0-r1.ebuild
+++ b/app-dicts/aspell-sk/aspell-sk-2.02.0-r1.ebuild
@@ -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
diff --git a/app-dicts/aspell-sr/aspell-sr-0.02-r1.ebuild b/app-dicts/aspell-sr/aspell-sr-0.02-r1.ebuild
index e730744bf8f7..5223b4b3f4fc 100644
--- a/app-dicts/aspell-sr/aspell-sr-0.02-r1.ebuild
+++ b/app-dicts/aspell-sr/aspell-sr-0.02-r1.ebuild
@@ -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
diff --git a/app-dicts/aspell-tet/aspell-tet-0.1.1-r1.ebuild b/app-dicts/aspell-tet/aspell-tet-0.1.1-r1.ebuild
index 1d3c81aa5749..019d8238a49b 100644
--- a/app-dicts/aspell-tet/aspell-tet-0.1.1-r1.ebuild
+++ b/app-dicts/aspell-tet/aspell-tet-0.1.1-r1.ebuild
@@ -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
diff --git a/app-dicts/aspell-tl/aspell-tl-0.4.0-r1.ebuild b/app-dicts/aspell-tl/aspell-tl-0.4.0-r1.ebuild
index 1d4a4b365a73..b911a2ad86cb 100644
--- a/app-dicts/aspell-tl/aspell-tl-0.4.0-r1.ebuild
+++ b/app-dicts/aspell-tl/aspell-tl-0.4.0-r1.ebuild
@@ -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