On Thu, Sep 28, 2017 at 07:35:20PM +0000, Mike Gilbert wrote:
> On Wed, Sep 20, 2017 at 10:01 PM, Marty E. Plummer
> <[email protected]> wrote:
> > arfrever suggests I send a mail here, as there are other packages which
> > may be affected by this issue and perhaps a more generalized fix is
> > required instead of an explicit fix in sys-libs/ncurses and other ebuilds
> > that may require it.
> 
> I think the solution here is to remove those overly broad "find
> -delete" statements and replace them with something safer.
> 
> Ideally the build system(s) would be patched to not compile static
> libs in the first place.
> 
> If that's not possible, perhaps an eclass function could be created to
> safely remove static libs.
> 
Honestly I already have a pr up that fixes this particular package's
issue, fairly simple fix https://github.com/gentoo/gentoo/pull/5734

--- a/sys-libs/ncurses/ncurses-6.0-r1.ebuild
+++ b/sys-libs/ncurses/ncurses-6.0-r1.ebuild
@@ -241,7 +241,8 @@ multilib_src_install() {
                # Provide a link for -lcurses.
                ln -sf libncurses$(get_libname) 
"${ED}"/usr/$(get_libdir)/libcurses$(get_libname) || die
        fi
-       use static-libs || find "${ED}"/usr/ -name '*.a' -delete
+       # don't delete '*.dll.a', needed for linking #631468
+       use static-libs || find "${ED}"/usr/ -name '*.a' ! -name '*.dll.a' 
-delete
 
        # Build fails to create this ...
        dosym ../share/terminfo /usr/$(get_libdir)/terminfo

and done as far as that goes.

Only other issue is the bad symlinking in the original bug report.

Reply via email to