commit:     9d4cd3b12cec5ef754121d7b0afa20d2845eee9b
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Thu Aug 15 23:34:03 2024 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Thu Aug 15 23:34:20 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9d4cd3b1

sys-devel/bpf-toolchain: add shadowman calls from mingw64-toolchain

Signed-off-by: Sam James <sam <AT> gentoo.org>

 ...-toolchain-14.2.0-r1.ebuild => bpf-toolchain-14.2.0-r2.ebuild} | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/sys-devel/bpf-toolchain/bpf-toolchain-14.2.0-r1.ebuild 
b/sys-devel/bpf-toolchain/bpf-toolchain-14.2.0-r2.ebuild
similarity index 95%
rename from sys-devel/bpf-toolchain/bpf-toolchain-14.2.0-r1.ebuild
rename to sys-devel/bpf-toolchain/bpf-toolchain-14.2.0-r2.ebuild
index 0c5a58f41988..093dcc4f54dd 100644
--- a/sys-devel/bpf-toolchain/bpf-toolchain-14.2.0-r1.ebuild
+++ b/sys-devel/bpf-toolchain/bpf-toolchain-14.2.0-r2.ebuild
@@ -203,6 +203,9 @@ src_install() {
 }
 
 pkg_postinst() {
+       use bin-symlinks && has_version dev-util/shadowman && [[ ! ${ROOT} ]] &&
+               eselect compiler-shadow update all
+
        if [[ ! ${REPLACING_VERSIONS} ]]; then
                elog "Note that this package is primarily intended for DTrace, 
systemd, and related"
                elog "packages to depend on without needing a manual crossdev 
setup."
@@ -212,3 +215,8 @@ pkg_postinst() {
                elog "    https://wiki.gentoo.org/wiki/Crossdev";
        fi
 }
+
+pkg_postrm() {
+       use bin-symlinks && has_version dev-util/shadowman && [[ ! ${ROOT} ]] &&
+               eselect compiler-shadow clean all
+}

Reply via email to