Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 14 May 2014 17:51:10 +0200
From:      Baptiste Daroussin <bapt@FreeBSD.org>
To:        Anton Shterenlikht <mexas@bris.ac.uk>
Cc:        matthias.andree@gmx.de, freebsd-ports@freebsd.org
Subject:   Re: staging without root privileges
Message-ID:  <20140514155110.GA16089@ivaldir.etoilebsd.net>
In-Reply-To: <201405141148.s4EBmSJx020629@mech-cluster241.men.bris.ac.uk>
References:  <53727AA1.8050201@gmx.de> <201405141148.s4EBmSJx020629@mech-cluster241.men.bris.ac.uk>

next in thread | previous in thread | raw e-mail | index | archive | help

--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--



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