From owner-freebsd-ports@FreeBSD.ORG Sun Jan 18 12:01:31 2015 Return-Path: Delivered-To: ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 98C33D20 for ; Sun, 18 Jan 2015 12:01:31 +0000 (UTC) Received: from mailrelay010.isp.belgacom.be (mailrelay010.isp.belgacom.be [195.238.6.177]) by mx1.freebsd.org (Postfix) with ESMTP id 335AF144 for ; Sun, 18 Jan 2015 12:01:30 +0000 (UTC) X-Belgacom-Dynamic: yes X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Ao0GABufu1RbsIcT/2dsb2JhbABagwZSWMYtghWDZAKBDEQBAQEBAX2EDQEFOhwjEAsYCSUPKh4GE4gwAc9SAQEBAQEFAQEBAR6PeQeEKQEEkhOFR4FAiESIByKDbz0xgkMBAQE Received: from 19.135-176-91.adsl-dyn.isp.belgacom.be (HELO kalimero.tijl.coosemans.org) ([91.176.135.19]) by relay.skynet.be with ESMTP; 18 Jan 2015 13:01:29 +0100 Received: from kalimero.tijl.coosemans.org (kalimero.tijl.coosemans.org [127.0.0.1]) by kalimero.tijl.coosemans.org (8.14.9/8.14.9) with ESMTP id t0IC1RZR000985; Sun, 18 Jan 2015 13:01:28 +0100 (CET) (envelope-from tijl@FreeBSD.org) Date: Sun, 18 Jan 2015 13:01:27 +0100 From: Tijl Coosemans To: Gerald Pfeifer Subject: Re: INSTALL_TARGET=install-strip runs into "permission denied" Message-ID: <20150118130127.71b8cba9@kalimero.tijl.coosemans.org> In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: ports@FreeBSD.org X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 18 Jan 2015 12:01:31 -0000 On Sun, 18 Jan 2015 12:18:27 +0100 (CET) Gerald Pfeifer wrote: > The ports q/a framework has been suggesting this for a while, so > I added INSTALL_TARGET=install-strip to lang/gcc5/Makefile. > > Using install-strip for vanilla GCC builds (from source, outside > the FreeBSD Ports framework) works just fine. > > In the context of Ports this runs into a permission problem since > install sets binaries to r-x, at which point strip then fails. > > Here is the build log: > > install -m 555 fixinc.sh .../prefix/gcc5/libexec/gcc5/gcc/i386-portbld-freebsd10.1/5.0.0/install-tools/fixinc.sh > install -s -m 555 fixincl .../prefix/gcc5/libexec/gcc5/gcc/i386-portbld-freebsd10.1/5.0.0/install-tools/fixincl > install -m 555 mkheaders .../prefix/gcc5/libexec/gcc5/gcc/i386-portbld-freebsd10.1/5.0.0/install-tools/mkheaders > test -z 'strip' || strip .../prefix/gcc5/libexec/gcc5/gcc/i386-portbld-freebsd10.1/5.0.0/install-tools/fixincl > strip: unable to copy file '.../prefix/gcc5/libexec/gcc5/gcc/i386-portbld-freebsd10.1/5.0.0/install-tools/fixincl'; reason: Permission denied > Makefile:191: recipe for target 'install-strip' failed > gmake[3]: *** [install-strip] Error 1 This strip command seems redundant. Isn't fixincl already stripped by the "install -s" command above? What does this piece of the log look like outside the ports framework?