Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 21 Nov 2014 03:41:30 +0000
From:      Ben Morrow <ben@morrow.me.uk>
To:        sbruno@freebsd.org, freebsd-mips@freebsd.org
Subject:   Re: is pkgng=no valid?
Message-ID:  <20141121034128.GA18538@anubis.morrow.me.uk>
In-Reply-To: <1416527072.7423.40.camel@bruno>
References:  <546BA46C.4050908@gmail.com> <20141118200226.GP44537@home.opsec.eu> <CAKE2PDsjL_Cr=5s7wpE107sB=oEPcekpjDq7GJNK3hqv3KNdeQ@mail.gmail.com> <20141118212630.GQ44537@home.opsec.eu> <546BBB26.5050603@gmail.com> <CADgEyUtk7E3e%2BYowu2sECi5RhHB9S_YBm23w0NZEep9-WnvPiA@mail.gmail.com> <546BC7AE.3080705@gmail.com> <20141119004236.GA95694@anubis.morrow.me.uk> <CADgEyUt%2BSiveYBQ=i2bVdVkpLFb1cr7dkxuk2MA%2B8eZ_ynr7wA@mail.gmail.com> <CADgEyUv0-=1H4XBcNiLq9gJa8cu-fM0A%2BNrK7w86QYSUsBDNTw@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Quoth sbruno@freebsd.org:
> On Thu, 2014-11-20 at 18:33 -0500, Nathan Dorfman wrote:
> > On Tue, Nov 18, 2014 at 9:03 PM, Nathan Dorfman <na@rtfm.net> wrote:
> > 
> > > D'oh, my memory seems to be failing me. What Ben is saying does sound
> > > familiar now. I might have just worked around it by using something
> > > like 'cd /usr/ports/*/pkgng && make STRIP=/bin/echo install'
> > >
> > 
> > OK, today, at least, that doesn't seem to work either. This does:
> > 
> >     sed -i.bak 's/^old_striplib=/#&/'
> > $WRKDIRPREFIX/usr/ports/ports-mgmt/pkg/work/pkg-1.3.8/libtool
> > 
> > It's enough to build a bunch of ports, but of course any that make their
> > own static libraries will still break. E.g. if you want to build tmux, you
> > have to do the same thing to libevent2, which bundles its own libtool:
> > 
> >     sed -i.bak 's/^old_striplib=/#&/'
> > $WRKDIRPREFIX/usr/ports/devel/libevent2/work/libevent-2.0.21-stable/libtool
> > 
> > Ben's strip patch is looking like the best solution for now.
> 
> I'm currently setting WITH_DEBUG=y in make.conf for use with poudriere +
> qemu-user.  Maybe this is easier?

It's easier, but you end up with unstripped and unoptimised binaries,
which seems like a Bad Plan to me on a machine as small as the ERL. Not
stripping static libraries doesn't make any difference to any code that
will actually run, since any binaries they are linked from will be
stripped again before being installed.

Ben




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20141121034128.GA18538>