From owner-freebsd-ports@freebsd.org Wed Dec 14 21:58:13 2016 Return-Path: Delivered-To: freebsd-ports@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 03781C800E8 for ; Wed, 14 Dec 2016 21:58:13 +0000 (UTC) (envelope-from fjwcash@gmail.com) Received: from mail-qk0-x234.google.com (mail-qk0-x234.google.com [IPv6:2607:f8b0:400d:c09::234]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id A99DF75F for ; Wed, 14 Dec 2016 21:58:12 +0000 (UTC) (envelope-from fjwcash@gmail.com) Received: by mail-qk0-x234.google.com with SMTP id n21so36738601qka.3 for ; Wed, 14 Dec 2016 13:58:12 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=jHty6pRFACTfOrOHZ772hQU8hCpryln99kmumudpulk=; b=BuLUeH9vwPUUHn3Z7Ne8txMSmYmmHoHP3jwwzvRrNSED1MSjsz5RpxajvPHvMta9nD 297cgf5yv3kK0yweTTaJUVfGmpeDNbBBDnAhYccYER3UtFtUrXqsG0xXNDql8fqSRhD5 zMmld1laLpBStTANEhDSRWxKe1sGmvWGFvS+qbidNbqe8jm+wYT0bYHnxqdk/7EkKSvT 6LdzoTtdPjpoYCh+wDmGNgD2MclHmjemrZxM9uVWLepc/4nEKCh+3pgHNuqXSp6fGQje vmQ8fXVj5+3iOCT/mCbqzqOENWT3PJgiOt60bv6avjW99DagOKedKnNYMVpd9v7Bq7Lt fgeA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=jHty6pRFACTfOrOHZ772hQU8hCpryln99kmumudpulk=; b=kxccLZgc4+PpLON40euwWnQO7ilwg7rxvgrnATzeB+o5BvVOhxtqhZTgFaO4M0BQoi MqihFvkUkYNymmlDaquo7C2hPlOFk7Z6jclJAIifnRv6xBGzzQrFdTKALgFv4wQ9dwm5 UytUSAayxC6ZZXsMsdm6qWEO4QJPT9VAUe3elZvLxaHEk8B7sdnNGSdkdztzy0SfRJoJ z6KJ0CbVFtLGkiTWCah2knr1b3thGElfqTO0JlUmPM8TLWCSMFSoXx0ePaVEAsehAwfd 49zAqGOs5Tt5yMZ28fvNGiVqVzk+k9LaCuKFZQYaK6nm3Gt3BpaDeDAer3zurB4KazGf MmLg== X-Gm-Message-State: AKaTC01OmvOn4g6A+yjhO1uZA31zFpf5E9q1xlHcynBPSsDSo50QTNZ5dtcrZkx96O5Nkn5ePGlqazD+65N9VA== X-Received: by 10.55.112.65 with SMTP id l62mr42412977qkc.76.1481752691858; Wed, 14 Dec 2016 13:58:11 -0800 (PST) MIME-Version: 1.0 Received: by 10.12.165.161 with HTTP; Wed, 14 Dec 2016 13:58:11 -0800 (PST) In-Reply-To: <96f44b17-b5a3-d24e-dee4-935d55a70019@gmx.de> References: <201612132135.uBDLZPVp017655@fire.js.berklix.net> <96f44b17-b5a3-d24e-dee4-935d55a70019@gmx.de> From: Freddie Cash Date: Wed, 14 Dec 2016 13:58:11 -0800 Message-ID: Subject: Re: No port should need root for make fetch To: Matthias Andree Cc: null Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.23 X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 14 Dec 2016 21:58:13 -0000 On Tue, Dec 13, 2016 at 2:01 PM, Matthias Andree wrote: > Am 13.12.2016 um 22:35 schrieb Julian H. Stacey: > > > >> How is that a problem of "some" ports? All ports require root for "mak= e > >> fetch" > > No they dont. > > Given that, then "none do". > > I'll do what what you omitted in your blind rage, I've dug the important > detail up for you, which was the first guess: > > $ grep _DEPENDS Makefile /dev/null > /usr/ports/databases/mysql-q4m/Makefile:FETCH_DEPENDS+=3D > ${NONEXISTENT}:${_MYSQL_SERVER}:build > > This doesn't say "give me root". It needs to be able to build the > requisite port. > Obviously the fix is to make sure that if you want to fetch as > unprivileged user, that you can also *build*. > I assume that if you want *fetch* as unprivileged user, that you also > want to *build* as unprivileged user, so I'd take that for granted, but > it's not the case on your system. > > On my system, which has a WRKDIRPREFIX that I am permitted to write to > with the unprivileged user account doing the builds, "make fetch" for > mysql-q4m passes without a hitch. > > > Thanks for the well intentioned & good advice Matthias, > > But some few ports are truly Badly Behaved with make fetch. > > Can you cite chapter and verse of the rule that makes such a port "truly > Badly Behaved", for reference in this list's archives? =E2=80=8B =E2=80=8BI guess the =E2=80=8Bbetter question would be, why does one need to BUILD a port when just downloading the sources for another port? Shouldn't the fetch process be just that ... downloading the sources into the DISTDIR?=E2=80=8B =E2=80=8B =E2=80=8BRegardless of which user you do things as, it just seems bizarre t= hat you would need to compile port X in order to fetch the sources for port Y. Not saying there's never a situation where that would be needed, it just seems non-intuitive.=E2=80=8B I can see situations where you'd want to fetch dis= tfiles ahead of time as a different user from the one used to build the ports, where this behaviour could break things (like Julian discovered). What does the a compiled mysql-server port provide that's needed to download the sources for mysql-q4m? That can't be put off until the build phase? --=20 Freddie Cash fjwcash@gmail.com