From owner-freebsd-ports@FreeBSD.ORG Wed May 14 15:51:15 2014 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id A3235DDA for ; Wed, 14 May 2014 15:51:15 +0000 (UTC) Received: from mail-wi0-x236.google.com (mail-wi0-x236.google.com [IPv6:2a00:1450:400c:c05::236]) (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 370152D6B for ; Wed, 14 May 2014 15:51:15 +0000 (UTC) Received: by mail-wi0-f182.google.com with SMTP id r20so2658562wiv.9 for ; Wed, 14 May 2014 08:51:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:date:from:to:cc:subject:message-id:references:mime-version :content-type:content-disposition:in-reply-to:user-agent; bh=ttCeOn9jNVC1NTIZgtS87kgBYKt5Kt45he0/PIZeK3Q=; b=xMq+WtcZGRW2K7mt1By/ggODSfiCZLSK6gcSLF88qWNEZrGBxc1cnqHJLMFUzRp4FH kcQ8Meh9Ie5IpnssP7WagpZ5YBQXAybbSYk6Bj59A2YN98SzZ5oPXPvC2th0txg91yD2 B0mzUyx6XAAB/46L+dgzAE+SPfr94+n/2xcn2oCXHHrkVH0Xn4WL3TNC1oPZ9xi1kxZM hCDXZ+Uo+/h47rfTJfAOpvs8lyKYA3CvIQZsD1vhGi1TcWkszF4nQZSG8AKakjWCxYfJ tr3arrcYDXWsANvhw4OZ9lINBQCXEAnl8SE/2lB7eyjmlpXjHq+YeFVPBpuo/ZIs7eU4 rhGg== X-Received: by 10.180.187.111 with SMTP id fr15mr26734279wic.57.1400082673606; Wed, 14 May 2014 08:51:13 -0700 (PDT) Received: from ivaldir.etoilebsd.net ([2001:41d0:8:db4c::1]) by mx.google.com with ESMTPSA id fi2sm28425774wic.15.2014.05.14.08.51.12 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 14 May 2014 08:51:12 -0700 (PDT) Sender: Baptiste Daroussin Date: Wed, 14 May 2014 17:51:10 +0200 From: Baptiste Daroussin To: Anton Shterenlikht Subject: Re: staging without root privileges Message-ID: <20140514155110.GA16089@ivaldir.etoilebsd.net> References: <53727AA1.8050201@gmx.de> <201405141148.s4EBmSJx020629@mech-cluster241.men.bris.ac.uk> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="7AUc2qLy4jB3hD7Z" Content-Disposition: inline In-Reply-To: <201405141148.s4EBmSJx020629@mech-cluster241.men.bris.ac.uk> User-Agent: Mutt/1.5.23 (2014-03-12) Cc: matthias.andree@gmx.de, freebsd-ports@freebsd.org X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 14 May 2014 15:51:15 -0000 --7AUc2qLy4jB3hD7Z Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, May 14, 2014 at 12:48:28PM +0100, Anton Shterenlikht wrote: > >Am 13.05.2014 19:18, schrieb Anton Shterenlikht: > >> https://wiki.freebsd.org/ports/StageDir > >> says=20 > >>=20 > >> Make sure you tested make package as a normal user (not root). > >>=20 > >> Does this refer specifically to the package target? > > > >build targets ("make all", "make stage", "make check-plist") and > >packaging ("make package"). > > > >> Or to all targets up to and including package? > >>=20 > >> I'm asked for root passwd on make config, > >> and then I get an error on build: > >>=20 > >> mkdir: /usr/ports/devel/robodoc/work: Permission denied > >>=20 > >> which makes sense. > > > >Setting WRKDIRPREFIX to a directory you can write to can fix that, and > >PACKAGES specifies where the package should end up. PORT_DBDIR can be > >diverted to a directory so you can run even "make config" without root > >privileges. > > > >With that, and the distfiles already downloaded ("make checksum"), you > >should be able to build most ports without privileges. A few set > >NEED_ROOT, those won't do without... >=20 > Ok, thanks, so I'm building with: >=20 > make WRKDIRPREFIX=3D/tmp PACKAGES=3D/tmp all check-stage package >=20 > and get to: >=20 > =3D=3D=3D> Staging for slatec-4.1_2 > =3D=3D=3D> slatec-4.1_2 depends on executable: gfortran47 - found > =3D=3D=3D> Generating temporary packing list > install -C -o root -g wheel -m 444 libslatec.a /tmp/usr/ports/math/slat= ec/work/stage/usr/local/lib > install: /tmp/usr/ports/math/slatec/work/stage/usr/local/lib/libslatec.a:= chown/chgrp: Operation not permitted > *** Error code 71 >=20 > I guess I need to refer to this point of the staging wiki: >=20 Add USES=3Duidfix it should do the magic :) regards, Bapt --7AUc2qLy4jB3hD7Z Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.22 (FreeBSD) iEYEARECAAYFAlNzkO4ACgkQ8kTtMUmk6ExVEwCdGoRbJvyrFaohCkiMO7ZbJaVs UxUAni38r4CSch2hcoQCczX5NAdAl4xK =q3Uf -----END PGP SIGNATURE----- --7AUc2qLy4jB3hD7Z--