Gentoo Archives: gentoo-dev

From: Michael Haubenwallner <haubi@g.o>
To: gentoo-dev@l.g.o
Cc: "Marty E. Plummer" <hanetzer@×××××××××.com>
Subject: [gentoo-dev] Re: sys-libs/ncurses: erronious deletion of *.dll.a files; possibly other packages affected
Date: Fri, 29 Sep 2017 08:29:15
Message-Id: 9ffbcbe2-fc70-aff9-4a9f-1bcaead3f035@gentoo.org
In Reply to: Re: [gentoo-dev] sys-libs/ncurses: erronious deletion of *.dll.a files; possibly other packages affected by "Marty E. Plummer"
1 On 09/29/2017 03:36 AM, Marty E. Plummer wrote:
2 > On Thu, Sep 28, 2017 at 07:35:20PM +0000, Mike Gilbert wrote:
3 >> On Wed, Sep 20, 2017 at 10:01 PM, Marty E. Plummer
4 >> <hanetzer@×××××××××.com> wrote:
5 >>> arfrever suggests I send a mail here, as there are other packages which
6 >>> may be affected by this issue and perhaps a more generalized fix is
7 >>> required instead of an explicit fix in sys-libs/ncurses and other ebuilds
8 >>> that may require it.
9 >>
10 >> I think the solution here is to remove those overly broad "find
11 >> -delete" statements and replace them with something safer.
12 >>
13 >> Ideally the build system(s) would be patched to not compile static
14 >> libs in the first place.
15 >>
16 >> If that's not possible, perhaps an eclass function could be created to
17 >> safely remove static libs.
18 >>
19 > Honestly I already have a pr up that fixes this particular package's
20 > issue, fairly simple fix https://github.com/gentoo/gentoo/pull/5734
21 >
22 > --- a/sys-libs/ncurses/ncurses-6.0-r1.ebuild
23 > +++ b/sys-libs/ncurses/ncurses-6.0-r1.ebuild
24 > @@ -241,7 +241,8 @@ multilib_src_install() {
25 > # Provide a link for -lcurses.
26 > ln -sf libncurses$(get_libname) "${ED}"/usr/$(get_libdir)/libcurses$(get_libname) || die
27 > fi
28 > - use static-libs || find "${ED}"/usr/ -name '*.a' -delete
29 > + # don't delete '*.dll.a', needed for linking #631468
30 > + use static-libs || find "${ED}"/usr/ -name '*.a' ! -name '*.dll.a' -delete
31
32 In prefix overlay we have this version:
33
34 use static-libs || find "${ED}"/usr/ -name '*.a' -not -name "*$(get_libname)" -delete
35
36 /haubi/

Replies

Subject Author
[gentoo-dev] Re: sys-libs/ncurses: erronious deletion of *.dll.a files; possibly other packages affected "Marty E. Plummer" <hanetzer@×××××××××.com>