From owner-freebsd-ports@FreeBSD.ORG Tue Oct 20 17:31:57 2009 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 12E82106566C for ; Tue, 20 Oct 2009 17:31:57 +0000 (UTC) (envelope-from m.seaman@infracaninophile.co.uk) Received: from smtp.infracaninophile.co.uk (gate6.infracaninophile.co.uk [IPv6:2001:8b0:151:1::1]) by mx1.freebsd.org (Postfix) with ESMTP id A06148FC1A for ; Tue, 20 Oct 2009 17:31:56 +0000 (UTC) Received: from happy-idiot-talk.infracaninophile.co.uk (localhost [IPv6:::1]) (authenticated bits=0) by smtp.infracaninophile.co.uk (8.14.3/8.14.3) with ESMTP id n9KHVnIs013471; Tue, 20 Oct 2009 18:31:50 +0100 (BST) (envelope-from m.seaman@infracaninophile.co.uk) X-DKIM: Sendmail DKIM Filter v2.8.3 smtp.infracaninophile.co.uk n9KHVnIs013471 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=infracaninophile.co.uk; s=200708; t=1256059910; bh=1jXgKApzpnMRIVp9JwvuID8Q7RWocjeEcdTQ7cg9Ujo=; h=Message-ID:Date:From:MIME-Version:To:CC:Subject:References: In-Reply-To:Content-Type:Cc:Content-Type:Date:From:In-Reply-To: Message-ID:Mime-Version:References:To; z=Message-ID:=20<4ADDF3FF.1080705@infracaninophile.co.uk>|Date:=20T ue,=2020=20Oct=202009=2018:31:43=20+0100|From:=20Matthew=20Seaman= 20|Organization:=20Infracaninophi le|User-Agent:=20Thunderbird=202.0.0.23=20(X11/20090823)|MIME-Vers ion:=201.0|To:=20Paul=20Schmehl=20|CC:=2 0FreeBSD=20Ports=20|Subject:=20Re:=20in stall-sh=20-=20permission=20denied|References:=20<7D877649A63342CB 6EBBF48E@utd65257.utdallas.edu>|In-Reply-To:=20<7D877649A63342CB6E BBF48E@utd65257.utdallas.edu>|X-Enigmail-Version:=200.95.6|Content -Type:=20multipart/signed=3B=20micalg=3Dpgp-sha256=3B=0D=0A=20prot ocol=3D"application/pgp-signature"=3B=0D=0A=20boundary=3D"-------- ----enigB7C4C6084D8A730B98EFB75C"; b=sIImwV/0OaB8y0d8IL1C1fmMDFOG1EeJAkuOJyqR5RXNL92fvHpqkHUKeoJyIibPK 3MeJv4mGekE86+c0rd2TKYZbnvfKt0jQd5CnEZxgH9O4lIq6PfOO8nxwVttbn/qtI0 o7Ckz+fjb1vW1ar1g7G+ovByvvW/eLPvKOtJ4bEQ= X-Authentication-Warning: happy-idiot-talk.infracaninophile.co.uk: Host localhost [IPv6:::1] claimed to be happy-idiot-talk.infracaninophile.co.uk Message-ID: <4ADDF3FF.1080705@infracaninophile.co.uk> Date: Tue, 20 Oct 2009 18:31:43 +0100 From: Matthew Seaman Organization: Infracaninophile User-Agent: Thunderbird 2.0.0.23 (X11/20090823) MIME-Version: 1.0 To: Paul Schmehl References: <7D877649A63342CB6EBBF48E@utd65257.utdallas.edu> In-Reply-To: <7D877649A63342CB6EBBF48E@utd65257.utdallas.edu> X-Enigmail-Version: 0.95.6 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="------------enigB7C4C6084D8A730B98EFB75C" X-Virus-Scanned: clamav-milter 0.95.2 at happy-idiot-talk.infracaninophile.co.uk X-Virus-Status: Clean X-Spam-Status: No, score=-3.0 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED, DKIM_VERIFIED,NO_RELAYS autolearn=ham version=3.2.5 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on happy-idiot-talk.infracaninophile.co.uk Cc: FreeBSD Ports Subject: Re: install-sh - permission denied X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 20 Oct 2009 17:31:57 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enigB7C4C6084D8A730B98EFB75C Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable Paul Schmehl wrote: > I'm working on a new port, and I'm getting this error during make insta= ll: >=20 > test -z "/usr/local/bin" || .././install-sh -c -d "/usr/local/bin" > .././install-sh: Permission denied >=20 > Can anyone tell me why I'm getting this? >=20 > My system is 7.2 STABLE > 7.2-STABLE FreeBSD 7.2-STABLE #13: Thu Sep 24 09:02:53 CDT 2009 >=20 > Ports are csuped daily. >=20 At a guess, it's because you don't have sufficient permissions to run =2E././install-sh with the arguments shown. Now, one fairly obvious reas= on why this wouldn't work is that .././install-sh isn't marked executable fo= r your UID. Judging by the file name, this is a shell script, so also chec= k that your UID has sufficient permissions to run the shell on the #! line of the script too. I can't really tell just by looking at the command names, but I'm guessin= g that this command creates /usr/local/bin as a directory if it doesn't alr= eady exist. Basically an obscurantist and over-engineered way of running a si= mple: # mkdir -p /usr/local/bin This is entirely unnecessary when dealing with the ports. You may take i= t as read that the basic layout of directories under /usr/local will have b= een created for you by using mtree(8) and /etc/mtree/BSD.local.dist Cheers, Matthew --=20 Dr Matthew J Seaman MA, D.Phil. 7 Priory Courtyard Flat 3 PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate Kent, CT11 9PW --------------enigB7C4C6084D8A730B98EFB75C Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.13 (FreeBSD) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEAREIAAYFAkrd9AUACgkQ8Mjk52CukIxeQgCfQszd5A1or/NjitKiUltvncx5 BvoAoIat7xHElvKttQNptNGav31gPJ5A =rVPf -----END PGP SIGNATURE----- --------------enigB7C4C6084D8A730B98EFB75C--