Gentoo Archives: gentoo-dev

From: Mike Gilbert <floppym@g.o>
To: Gentoo Dev <gentoo-dev@l.g.o>
Subject: Re: [gentoo-dev] sys-libs/ncurses: erronious deletion of *.dll.a files; possibly other packages affected
Date: Thu, 28 Sep 2017 15:43:52
Message-Id: CAJ0EP43PYodaDcub9dK4AuS2Ki-dp12b3wMDDZ+bzmHwZOeJQg@mail.gmail.com
In Reply to: Re: [gentoo-dev] sys-libs/ncurses: erronious deletion of *.dll.a files; possibly other packages affected by Ian Stakenvicius
1 On Thu, Sep 28, 2017 at 10:43 AM, Ian Stakenvicius <axs@g.o> wrote:
2 > On 28/09/17 10:23 AM, Thomas Deutschmann wrote:
3 >> Hi,
4 >>
5 >> sounds like we should convert to prune_libtool_files usage from
6 >> ltprune.eclass.
7 >>
8 >> However, the eclass says
9 >>
10 >>> # Discouraged. Whenever possible, please use much simpler:
11 >>> # find "${D}" -name '*.la' -delete || die
12 >>
13 >> So this would need clarification.
14 >>
15 >>
16 >
17 > *.la shouldn't be matching *.dll.a , this seems like a globbing error
18 > if that find command is what's being used. Maybe we've just been
19 > erroneously not escaping the '.' in the find command??
20
21 *.la doesn't match *.dll.a.
22
23 The ncurses ebuild has this dubious line of code:
24
25 use static-libs || find "${ED}"/usr/ -name '*.a' -delete