From owner-freebsd-mips@FreeBSD.ORG Fri Nov 21 05:21:31 2014 Return-Path: Delivered-To: freebsd-mips@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 4EFA01B6 for ; Fri, 21 Nov 2014 05:21:31 +0000 (UTC) Received: from mail-pd0-f169.google.com (mail-pd0-f169.google.com [209.85.192.169]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 19A496D8 for ; Fri, 21 Nov 2014 05:21:30 +0000 (UTC) Received: by mail-pd0-f169.google.com with SMTP id fp1so4521048pdb.0 for ; Thu, 20 Nov 2014 21:21:30 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:sender:content-type:mime-version:subject:from :in-reply-to:date:cc:message-id:references:to; bh=7kaBMAwIvPWFXx7PwZEEruD2YikBbbmd8OXhP6OFDXk=; b=VlOQBrsk+LtmQOq8Eq8kYotIgdWsxMZPBEFAPIR9PNS7JNgSjwWXAaA31U0Sp9drBb JOCRS12f7t7dWAIYnUYs94Eq9SPwHcVqwfmkZ78IUzhALhKOfVfGBS5YhqWyKSD0BHkQ T861Gf6ZzZlJGJgbAqbLJBeXGwzuns0KicWupO4A6d/cXCGkTJ+8mj07Z6rvZ3cgmnBe Oz9dHx0iBTbI6ON3W/xI/WfLmoOtFzwjJwTKnAALjTeIkjGyCwx1Jjin7g3+fiWyl1dT yW5pp4OXUDRXKFWwv/KLWxYo2sKH7XeM4S9CXtu1+oaTDywKK1gixnfvKqyyaugedkwf 4boQ== X-Gm-Message-State: ALoCoQlt3lI0jam5DT/0annyaylwgWp0kiHfUEP2y4E2wLERdFUHaNl6XUuMF0tnO/GAAZaLmIEP X-Received: by 10.66.160.74 with SMTP id xi10mr3592891pab.72.1416547289996; Thu, 20 Nov 2014 21:21:29 -0800 (PST) Received: from [10.64.27.119] ([69.53.236.236]) by mx.google.com with ESMTPSA id cq6sm3588856pad.30.2014.11.20.21.21.28 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 20 Nov 2014 21:21:29 -0800 (PST) Sender: Warner Losh Content-Type: multipart/signed; boundary="Apple-Mail=_49BC2E8A-7A33-4A2A-B3DF-E2A41755E8BE"; protocol="application/pgp-signature"; micalg=pgp-sha512 Mime-Version: 1.0 (Mac OS X Mail 7.3 \(1878.6\)) Subject: Re: is pkgng=no valid? From: Warner Losh In-Reply-To: <20141121034128.GA18538@anubis.morrow.me.uk> Date: Thu, 20 Nov 2014 22:21:24 -0700 Message-Id: References: <546BA46C.4050908@gmail.com> <20141118200226.GP44537@home.opsec.eu> <20141118212630.GQ44537@home.opsec.eu> <546BBB26.5050603@gmail.com> <546BC7AE.3080705@gmail.com> <20141119004236.GA95694@anubis.morrow.me.uk> <20141121034128.GA18538@anubis.morrow.me.uk> To: Ben Morrow X-Mailer: Apple Mail (2.1878.6) Cc: freebsd-mips@freebsd.org X-BeenThere: freebsd-mips@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Porting FreeBSD to MIPS List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 21 Nov 2014 05:21:31 -0000 --Apple-Mail=_49BC2E8A-7A33-4A2A-B3DF-E2A41755E8BE Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=windows-1252 On Nov 20, 2014, at 8:41 PM, Ben Morrow wrote: > 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 wrote: >>>=20 >>>> 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=3D/bin/echo install' >>>>=20 >>>=20 >>> OK, today, at least, that doesn't seem to work either. This does: >>>=20 >>> sed -i.bak 's/^old_striplib=3D/#&/' >>> $WRKDIRPREFIX/usr/ports/ports-mgmt/pkg/work/pkg-1.3.8/libtool >>>=20 >>> 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: >>>=20 >>> sed -i.bak 's/^old_striplib=3D/#&/' >>> = $WRKDIRPREFIX/usr/ports/devel/libevent2/work/libevent-2.0.21-stable/libtoo= l >>>=20 >>> Ben's strip patch is looking like the best solution for now. >>=20 >> I'm currently setting WITH_DEBUG=3Dy in make.conf for use with = poudriere + >> qemu-user. Maybe this is easier? >=20 > 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. STRIP=3D might be an option (STRIP=3D/bin/true isn=92t right since it is = flags to use). But I wonder why we=92re even doing strip on a .a anyway. That part = doesn=92t make sense to me at all. Usually you just do that on shared libraries or = binaries. You might also consider STRIPCMD=3D/tmp/strip-me which looks like: #!/bin/sh case $1 *.a) /bin/true *) strip $* esac Or replacing the real strip with the above and changing =93strip=94 to = strep.real which is the real strip binary. I=92m not 100% sure that install actually honors this or not, but it = would be one way. Looking at bsd.lib.mk, though, shows we only call install with ${STRIP} for = shared libraries. Warner --Apple-Mail=_49BC2E8A-7A33-4A2A-B3DF-E2A41755E8BE Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=signature.asc Content-Type: application/pgp-signature; name=signature.asc Content-Description: Message signed with OpenPGP using GPGMail -----BEGIN PGP SIGNATURE----- Comment: GPGTools - https://gpgtools.org iQIcBAEBCgAGBQJUbsvUAAoJEGwc0Sh9sBEAC6sQAIvsiV7vuuRaEofISJve2dxe RlEAQ/YedXG5oy3dnO4Ii3PU3Tu/0L7P+ieN41ggTM+vhUwrbG1Rx+/RPV+8OfFc nHLEwwqit6guaDSfb04oYvS+Qo50E1I+Xq4Sl4P5/1rAkjZBaBGLM3AfvuqCj1c1 inKbEIEvcrhF2yJwSak+7eWVmYwbNHNosfzfaHiwoVr1/ALAzZlTCMkPIcTKOyAm j8ZF26AHKLvmVt+Xvvoa7DrTnmuKHzcxT9FfJqA4A9Yr1yzU7KiXvGIEM72b5Sf3 tyDCrSCzzALurKHiQ1LJTnKjCOqVnBcNLC1l+YXX1FuF8SQhypQbpCGqgBXuTH7I Pnp0Po3+53jM3WsIpJ72guf7PT83lwO3gju/cpNfLbcGm0g0EpzN8P95wCfqHyMj Xla1kBERCkGNvgPlyzTJ3k8Y8c/i5PSZYUg8ZS5j8wfKbAW5NPi5M1IBskQI8vuE Y65yvN0l/B8WsEanH5Jr4pPslLPQNoaF3UrJNlvbHqHKQSjXzunTr+Ny1ZLL0u8t hRKv2e1yet2gkkT9ZkBfugB63hppCb1klWrjXmcLtRoXu7s9lBRttyZvUUZ9DC15 WH35l56zv22bRNgJJQud8MroOOxuggwS1YlvlITZKWCNV6kt9pxkcjEm4fkQO1Ud 93ObMjdYWj09iOq/rkYc =WXpE -----END PGP SIGNATURE----- --Apple-Mail=_49BC2E8A-7A33-4A2A-B3DF-E2A41755E8BE--