* [gentoo-commits] proj/pkgcore/pkgcore:master commit in: data/lib/pkgcore/ebd/eapi/9/
@ 2025-03-21 19:52 Arthur Zamarin
0 siblings, 0 replies; 4+ messages in thread
From: Arthur Zamarin @ 2025-03-21 19:52 UTC (permalink / raw
To: gentoo-commits
commit: b8a2cd690c871c96d9e240a0da29d83df1a36426
Author: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
AuthorDate: Fri Mar 21 17:34:16 2025 +0000
Commit: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
CommitDate: Fri Mar 21 17:36:01 2025 +0000
URL: https://gitweb.gentoo.org/proj/pkgcore/pkgcore.git/commit/?id=b8a2cd69
EAPI=9: ban assert and introduce pipestatus instead
Bug: https://bugs.gentoo.org/566342
Signed-off-by: Arthur Zamarin <arthurzam <AT> gentoo.org>
data/lib/pkgcore/ebd/eapi/9/global.bash | 21 +++++++++++++++++++++
data/lib/pkgcore/ebd/eapi/9/phase.bash | 1 +
2 files changed, 22 insertions(+)
diff --git a/data/lib/pkgcore/ebd/eapi/9/global.bash b/data/lib/pkgcore/ebd/eapi/9/global.bash
new file mode 100644
index 00000000..60ff0acd
--- /dev/null
+++ b/data/lib/pkgcore/ebd/eapi/9/global.bash
@@ -0,0 +1,21 @@
+# (c) 2024-2025 Gentoo Authors
+# SPDX-License-Identifier: GPL-2.0-or-later
+
+pipestatus() {
+ # copied from eapi9-pipestatus.eclass
+ local status=( "${PIPESTATUS[@]}" )
+ local s ret=0 verbose=""
+
+ [[ ${1} == -v ]] && { verbose=1; shift; }
+ [[ $# -ne 0 ]] && die "usage: ${FUNCNAME} [-v]"
+
+ for s in "${status[@]}"; do
+ [[ ${s} -ne 0 ]] && ret=${s}
+ done
+
+ [[ ${verbose} ]] && echo "${status[@]}"
+
+ return "${ret}"
+}
+
+:
diff --git a/data/lib/pkgcore/ebd/eapi/9/phase.bash b/data/lib/pkgcore/ebd/eapi/9/phase.bash
new file mode 100644
index 00000000..881a4882
--- /dev/null
+++ b/data/lib/pkgcore/ebd/eapi/9/phase.bash
@@ -0,0 +1 @@
+PKGCORE_BANNED_FUNCS=( assert )
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [gentoo-commits] proj/pkgcore/pkgcore:master commit in: data/lib/pkgcore/ebd/eapi/9/
@ 2025-06-01 7:23 Arthur Zamarin
0 siblings, 0 replies; 4+ messages in thread
From: Arthur Zamarin @ 2025-06-01 7:23 UTC (permalink / raw
To: gentoo-commits
commit: fffe9c287c74ed88c4419344e0b7e75a635ebfd2
Author: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
AuthorDate: Sun Jun 1 07:15:40 2025 +0000
Commit: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
CommitDate: Sun Jun 1 07:15:40 2025 +0000
URL: https://gitweb.gentoo.org/proj/pkgcore/pkgcore.git/commit/?id=fffe9c28
EAPI=9: ban domo
Bug: https://bugs.gentoo.org/951502
Signed-off-by: Arthur Zamarin <arthurzam <AT> gentoo.org>
data/lib/pkgcore/ebd/eapi/9/src_install.bash | 1 +
1 file changed, 1 insertion(+)
diff --git a/data/lib/pkgcore/ebd/eapi/9/src_install.bash b/data/lib/pkgcore/ebd/eapi/9/src_install.bash
new file mode 100644
index 00000000..9338afed
--- /dev/null
+++ b/data/lib/pkgcore/ebd/eapi/9/src_install.bash
@@ -0,0 +1 @@
+PKGCORE_BANNED_FUNCS=( domo )
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [gentoo-commits] proj/pkgcore/pkgcore:master commit in: data/lib/pkgcore/ebd/eapi/9/
@ 2025-06-01 7:23 Arthur Zamarin
0 siblings, 0 replies; 4+ messages in thread
From: Arthur Zamarin @ 2025-06-01 7:23 UTC (permalink / raw
To: gentoo-commits
commit: 587d14256d2515ffa63c1236781697606b29efd1
Author: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
AuthorDate: Sun Jun 1 07:22:12 2025 +0000
Commit: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
CommitDate: Sun Jun 1 07:22:12 2025 +0000
URL: https://gitweb.gentoo.org/proj/pkgcore/pkgcore.git/commit/?id=587d1425
EAPI=9: introduce edo
Bug: https://bugs.gentoo.org/744880
Signed-off-by: Arthur Zamarin <arthurzam <AT> gentoo.org>
data/lib/pkgcore/ebd/eapi/9/global.bash | 18 +++++++++++++++++-
1 file changed, 17 insertions(+), 1 deletion(-)
diff --git a/data/lib/pkgcore/ebd/eapi/9/global.bash b/data/lib/pkgcore/ebd/eapi/9/global.bash
index 60ff0acd..3e067a0c 100644
--- a/data/lib/pkgcore/ebd/eapi/9/global.bash
+++ b/data/lib/pkgcore/ebd/eapi/9/global.bash
@@ -1,4 +1,4 @@
-# (c) 2024-2025 Gentoo Authors
+# (c) 2022-2025 Gentoo Authors
# SPDX-License-Identifier: GPL-2.0-or-later
pipestatus() {
@@ -18,4 +18,20 @@ pipestatus() {
return "${ret}"
}
+edo() {
+ # copied from edo.eclass
+ local a out regex='[] '\''"\|&;()<>!{}*[?^$`]|^[#~]|[=:]~'
+
+ [[ $# -ge 1 ]] || die "edo: at least one argument needed"
+
+ for a; do
+ [[ ${a} =~ ${regex} || ! ${a} =~ ^[[:print:]]+$ ]] && a=${a@Q}
+ out+=" ${a}"
+ done
+
+ einfon
+ printf '%s\n' "${out:1}" >&2
+ "$@" || die -n "Failed to run command: ${1}"
+}
+
:
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [gentoo-commits] proj/pkgcore/pkgcore:master commit in: data/lib/pkgcore/ebd/eapi/9/
@ 2025-06-02 5:48 Arthur Zamarin
0 siblings, 0 replies; 4+ messages in thread
From: Arthur Zamarin @ 2025-06-02 5:48 UTC (permalink / raw
To: gentoo-commits
commit: 99c365cfd43ac4eee86538d70de017b5baa7cc2e
Author: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
AuthorDate: Sun Jun 1 09:04:55 2025 +0000
Commit: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
CommitDate: Sun Jun 1 09:04:55 2025 +0000
URL: https://gitweb.gentoo.org/proj/pkgcore/pkgcore.git/commit/?id=99c365cf
EAPI=9/edo: fix indets and add comment
Signed-off-by: Arthur Zamarin <arthurzam <AT> gentoo.org>
data/lib/pkgcore/ebd/eapi/9/global.bash | 10 ++++++----
1 file changed, 6 insertions(+), 4 deletions(-)
diff --git a/data/lib/pkgcore/ebd/eapi/9/global.bash b/data/lib/pkgcore/ebd/eapi/9/global.bash
index 3e067a0c..6578c833 100644
--- a/data/lib/pkgcore/ebd/eapi/9/global.bash
+++ b/data/lib/pkgcore/ebd/eapi/9/global.bash
@@ -19,15 +19,17 @@ pipestatus() {
}
edo() {
- # copied from edo.eclass
+ # list of special characters taken from sh_contains_shell_metas
+ # in shquote.c (bash-5.2)
local a out regex='[] '\''"\|&;()<>!{}*[?^$`]|^[#~]|[=:]~'
[[ $# -ge 1 ]] || die "edo: at least one argument needed"
for a; do
- [[ ${a} =~ ${regex} || ! ${a} =~ ^[[:print:]]+$ ]] && a=${a@Q}
- out+=" ${a}"
- done
+ # quote if (and only if) necessary
+ [[ ${a} =~ ${regex} || ! ${a} =~ ^[[:print:]]+$ ]] && a=${a@Q}
+ out+=" ${a}"
+ done
einfon
printf '%s\n' "${out:1}" >&2
^ permalink raw reply related [flat|nested] 4+ messages in thread
end of thread, other threads:[~2025-06-02 5:49 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-06-01 7:23 [gentoo-commits] proj/pkgcore/pkgcore:master commit in: data/lib/pkgcore/ebd/eapi/9/ Arthur Zamarin
-- strict thread matches above, loose matches on Subject: below --
2025-06-02 5:48 Arthur Zamarin
2025-06-01 7:23 Arthur Zamarin
2025-03-21 19:52 Arthur Zamarin
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox