Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 12 Nov 2007 19:58:25 +0100
From:      Stefan Sperling <stsp@stsp.name>
To:        ports@freebsd.org
Subject:   Re: [PATCH] portmaster with SU_CMD
Message-ID:  <20071112185825.GA639@jack.stsp.lan>
In-Reply-To: <20071112153142.a5166671.rnsanchez@wait4.org>
References:  <20071111155343.GC1567@ted.stsp.lan> <alpine.BSF.0.99999.0711111451130.20729@ync.qbhto.arg> <op.t1otmt1b9aq2h7@mezz.mezzweb.com> <20071112153142.a5166671.rnsanchez@wait4.org>

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

--RnlQjJ0d97Da+TV1
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

Hi all,

I haven't got all the mails in this thread so far because I
haven't been subscribed to ports@ in a while.
I'll try to reply to what I've read in the archives so far.

I'm subscribed again now so I will get followups from here on
without people having to Cc me.

On Mon, Nov 12, 2007 at 03:31:42PM -0200, Ricardo Nabinger Sanchez wrote:
> On Mon, 12 Nov 2007 10:33:55 -0600
> "Jeremy Messenger" <mezz7@cox.net> wrote:
>=20
> > I agree, because you can't build any ports in /usr/ports as in normal
> > user anyway.

Nonesense. I described one particular way of doing it in the
mail that started this thread.

> > I don't see any good reason to do it either.
=20
There's tons of good reasons for doing it. For example, my reason
is that I don't see a point in running something as root that does not
need root, especially if execution of arbitrary commands is involved.

This can always lead to problems. I'd rather not have some bug
in some build or configure script mess with arbitrary stuff in
my filesystems.

> Yes you can.
> You just need to set WRKDIRPREFIX in your /etc/make.conf,
> to "/tmp" for instance.  I've been doing that happily for some years now.

There's literally tons of ways of doing it.

> > No, not by default and I have pointed 'in /usr/ports'.

Arguing that building ports as root is the default behaviour
in FreeBSD is no argument at all against the patch, because
the patch does not change this default behaviour.

It just adds an option that makes portmaster work nicely with
another option that is already provided by FreeBSD, namely
setting SU_CMD in /etc/make.conf.

The same option is provided in NetBSD's pkgsrc and OpenBSD's
ports, by the way. It's not that exotic.

But:

I respect Doug's caution, because the patch isn't small.
It took me a while to get it working right on my system.

It could have side effects no one knows about -- AFAIK it's only
been tested on a single system yet (mine), with only a single
way of "building ports as non-root" while there's many more
systems out there that are all set up differently.

So I guess it would help if people who want this feature simply
test the patch for a while and then report whether it works for
them or not.

And people who don't want the patch test it with their standard
procedure to see if it messes things up for them or not.

Just saying that you want it or don't want it without testing
whether it actually works or breaks anything for you won't help
Doug make the decision whether to adopt this patch or not.

He needs proper feedback to make an informed decision.

I need proper feedback to fix any issues that might come up
for other people using this patch.

So if you have the time, please test it, no matter if you
want to use the -S flag or not.

Here's my own take again:

I have been using the patch in its current form for 2 or 3 weeks
during which I updated ports about three or four times.
I haven't noticed any regressions so far. In my already described
setup it even made it through the big gnome-2.18->2.20 update
without any issues, except for one issue unrelated to portmaster
which has already been filed.
See http://www.freebsd.org/cgi/query-pr.cgi?pr=3Dports/117976

I also found an issue in devel/ncurses while testing the patch,
not related to portmaster either, but to the port not heeding
WRKDIRPREFIX correctly. This bug has since been fixed:
http://www.freebsd.org/cgi/query-pr.cgi?pr=3Dports/117643

--=20
stefan
http://stsp.name                                         PGP Key: 0xF59D25F0

--RnlQjJ0d97Da+TV1
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (OpenBSD)

iD8DBQFHOKJR5dMCc/WdJfARAnv/AJ4g/eSVN9dg+6aCrf785+YMMAcffgCcDQMg
Qr7xHnYFEjRA7DzkkEpALdg=
=LvSM
-----END PGP SIGNATURE-----

--RnlQjJ0d97Da+TV1--



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