commit: bbfddc57eebddb1709289b86d7d0e89c704dbf11
Author: Kerin Millar <kfm <AT> plushkava <DOT> net>
AuthorDate: Sat Aug 23 01:25:43 2025 +0000
Commit: Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sat Aug 23 01:40:30 2025 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=bbfddc57
sys-apps/locale-gen: prefixify in a consistent way for >=3.2-r1
The 3.4 ebuild introduced a slightly more refined expression for
prefixifying the shebang in src_prepare(). Align the other ebuilds
accordingly.
Signed-off-by: Kerin Millar <kfm <AT> plushkava.net>
Signed-off-by: Sam James <sam <AT> gentoo.org>
sys-apps/locale-gen/locale-gen-3.2-r1.ebuild | 2 +-
sys-apps/locale-gen/locale-gen-3.3-r1.ebuild | 2 +-
sys-apps/locale-gen/locale-gen-9999.ebuild | 2 +-
3 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/sys-apps/locale-gen/locale-gen-3.2-r1.ebuild
b/sys-apps/locale-gen/locale-gen-3.2-r1.ebuild
index 832a9c0ffdf1..0f9eb6b9c6f4 100644
--- a/sys-apps/locale-gen/locale-gen-3.2-r1.ebuild
+++ b/sys-apps/locale-gen/locale-gen-3.2-r1.ebuild
@@ -33,7 +33,7 @@ src_prepare() {
eapply_user
- perl -pi -e '$f //= ($. == 1 && s/^#!\K\//$ENV{MY_EPREFIX}\//); END {
exit !$f }' "${PN}" \
+ perl -pi -e '$f //= ($. == 1 && s/^#!\h*\K/$ENV{MY_EPREFIX}/); END {
exit !$f }' "${PN}" \
|| die "Failed to prefixify ${PN}"
}
diff --git a/sys-apps/locale-gen/locale-gen-3.3-r1.ebuild
b/sys-apps/locale-gen/locale-gen-3.3-r1.ebuild
index 832a9c0ffdf1..0f9eb6b9c6f4 100644
--- a/sys-apps/locale-gen/locale-gen-3.3-r1.ebuild
+++ b/sys-apps/locale-gen/locale-gen-3.3-r1.ebuild
@@ -33,7 +33,7 @@ src_prepare() {
eapply_user
- perl -pi -e '$f //= ($. == 1 && s/^#!\K\//$ENV{MY_EPREFIX}\//); END {
exit !$f }' "${PN}" \
+ perl -pi -e '$f //= ($. == 1 && s/^#!\h*\K/$ENV{MY_EPREFIX}/); END {
exit !$f }' "${PN}" \
|| die "Failed to prefixify ${PN}"
}
diff --git a/sys-apps/locale-gen/locale-gen-9999.ebuild
b/sys-apps/locale-gen/locale-gen-9999.ebuild
index b3bcb3b41b7a..c380120ac933 100644
--- a/sys-apps/locale-gen/locale-gen-9999.ebuild
+++ b/sys-apps/locale-gen/locale-gen-9999.ebuild
@@ -33,7 +33,7 @@ src_prepare() {
eapply_user
- perl -pi -e '$f //= ($. == 1 && s/^#!\K\//$ENV{MY_EPREFIX}\//); END {
exit !$f }' "${PN}" \
+ perl -pi -e '$f //= ($. == 1 && s/^#!\h*\K/$ENV{MY_EPREFIX}/); END {
exit !$f }' "${PN}" \
|| die "Failed to prefixify ${PN}"
}