public inbox for gentoo-dev@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Marty E. Plummer" <hanetzer@startmail.com>
To: Michael Haubenwallner <haubi@gentoo.org>
Cc: gentoo-dev@lists.gentoo.org
Subject: [gentoo-dev] Re: sys-libs/ncurses: erronious deletion of *.dll.a files; possibly other packages affected
Date: Fri, 29 Sep 2017 03:33:53 -0500	[thread overview]
Message-ID: <20170929083346.hmhvulf5oul4daet@proprietary-killer.fossland> (raw)
In-Reply-To: <9ffbcbe2-fc70-aff9-4a9f-1bcaead3f035@gentoo.org>

On Fri, Sep 29, 2017 at 08:29:07AM +0000, Michael Haubenwallner wrote:
> On 09/29/2017 03:36 AM, Marty E. Plummer wrote:
> > 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
> >> <hanetzer@startmail.com> 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
> 
> In prefix overlay we have this version:
> 
>   use static-libs || find "${ED}"/usr/ -name '*.a' -not -name "*$(get_libname)" -delete
> 
> /haubi/
Won't work here, as $(get_libname) returns .dll in this case, which is
why the symlinking is busted


  reply	other threads:[~2017-09-29  8:36 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-09-21  2:01 [gentoo-dev] sys-libs/ncurses: erronious deletion of *.dll.a files; possibly other packages affected Marty E. Plummer
2017-09-28 14:23 ` Thomas Deutschmann
2017-09-28 14:43   ` Ian Stakenvicius
2017-09-28 15:43     ` Mike Gilbert
2017-09-28 15:08   ` Mike Gilbert
2017-09-28 19:35 ` Mike Gilbert
2017-09-29  1:36   ` Marty E. Plummer
2017-09-29  8:29     ` [gentoo-dev] " Michael Haubenwallner
2017-09-29  8:33       ` Marty E. Plummer [this message]
2017-09-29  9:29         ` Michael Haubenwallner
2017-09-29 10:51           ` Michał Górny

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20170929083346.hmhvulf5oul4daet@proprietary-killer.fossland \
    --to=hanetzer@startmail.com \
    --cc=gentoo-dev@lists.gentoo.org \
    --cc=haubi@gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox