commit:     0a4cdd3089d1152a58428ce7f4f8b9f710c0c4f4
Author:     Michael Orlitzky <mjo <AT> gentoo <DOT> org>
AuthorDate: Tue Nov  9 02:57:38 2021 +0000
Commit:     Michael Orlitzky <mjo <AT> gentoo <DOT> org>
CommitDate: Tue Nov  9 03:37:21 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0a4cdd30

dev-libs/ntl: support LIBTOOL="slibtool-shared".

When using slibtool-shared, no static archives (*.a) are created. To
tolerate their absence, we add an "-f" to the "rm" that tries to
remove them.

Package-Manager: Portage-3.0.28, Repoman-3.0.3
Signed-off-by: Michael Orlitzky <mjo <AT> gentoo.org>

 dev-libs/ntl/ntl-11.4.4-r1.ebuild | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/dev-libs/ntl/ntl-11.4.4-r1.ebuild 
b/dev-libs/ntl/ntl-11.4.4-r1.ebuild
index 1b184a8a48c..05f9388f8c5 100644
--- a/dev-libs/ntl/ntl-11.4.4-r1.ebuild
+++ b/dev-libs/ntl/ntl-11.4.4-r1.ebuild
@@ -64,7 +64,10 @@ src_install() {
        if ! use static-libs; then
                # bug #775884
                find "${ED}" -name '*.la' -delete || die
-               rm "${ED}/usr/$(get_libdir)"/libntl.a || die
+
+               # Use rm -f because the static archive may not be created when
+               # using (for example) slibtool-shared.
+               rm -f "${ED}/usr/$(get_libdir)"/libntl.a || die
        fi
 
        rm -r "${ED}"/usr/share/doc/NTL || die

Reply via email to