From owner-freebsd-ports@freebsd.org Tue Dec 13 22:01:25 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 C342BC764C4 for ; Tue, 13 Dec 2016 22:01:25 +0000 (UTC) (envelope-from matthias.andree@gmx.de) Received: from mout.gmx.net (mout.gmx.net [212.227.15.15]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mout.gmx.net", Issuer "TeleSec ServerPass DE-2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 267341EC for ; Tue, 13 Dec 2016 22:01:24 +0000 (UTC) (envelope-from matthias.andree@gmx.de) Received: from mandree.no-ip.org ([77.181.21.39]) by mail.gmx.com (mrgmx003 [212.227.17.190]) with ESMTPSA (Nemesis) id 0Lcjgd-1d0wBf4331-00k779 for ; Tue, 13 Dec 2016 23:01:17 +0100 Received: from [IPv6:::1] (localhost6.localdomain6 [IPv6:::1]) by apollo.emma.line.org (Postfix) with ESMTP id 2357523CF5A for ; Tue, 13 Dec 2016 23:01:14 +0100 (CET) Subject: Re: No port should need root for make fetch To: null References: <201612132135.uBDLZPVp017655@fire.js.berklix.net> From: Matthias Andree Message-ID: <96f44b17-b5a3-d24e-dee4-935d55a70019@gmx.de> Date: Tue, 13 Dec 2016 23:01:13 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.5.1 MIME-Version: 1.0 In-Reply-To: <201612132135.uBDLZPVp017655@fire.js.berklix.net> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable X-Provags-ID: V03:K0:u4zBnc5uQQsay8HeggxtGppamurRCnbxR6QxFgBGxJN4zAs71G6 VCHSxhPzUT0XqI8vhub72dt5caS/TlVpQaVWCA1BIXtlc3dfszU2valo6649qtGnzX0qivg rfpZhZzVnJv7nDORy0Wwe/7hASAQZCZCicVAc+TFbawtCGcBnNtUXibevIscJenOrMeB4dm pc+zOwbpqt09+iqIzKu3w== X-UI-Out-Filterresults: notjunk:1;V01:K0:8SjUFf7pfxA=:qrH+SBLFoqmRRL1DdCWjnY aSgJRg7qQBYuQVRT2x+oz2uH5RUaBgWUbAjfuNZ8A51tvf4Sw5iYPusDpyk2wztaTXQImYYLK MevpMt9W0yupyMHRiIDDpiX2Tz1cPQuDQF5UaWFxJa2TUaZK4PNpzfabskoSm6vUHwKhmtK6x TaTIjHuZ/F3qRTIG8AfmgK+HDxIFtB+IAy70JZiCuQoFBR4pxsgXjDH4VLFQBCV0bAaKdxUIa Mc04FP0yVEtK3kDvkGLdOq4H8JQAyhYfvjBNIzxll5P6K+C5B3RP8ED0tJUBJ+ONLagh4u5uh DGhYAtokt0SbWXDk+3zMCCxB55OZnQ3IQRg9lmygukf/TrdChzb8fi5e7Kt4cjAeRkIsU1VSl 6v9Bk5bpUSSg9AlDZ7jtAwDtKJq0IR6g55wIuhxmbFV0mbW9sGQVbSdYrLHFWElXELJbqUeUH 6Qk0rtMBw8wtAvZ8bRTuGFKRKkNYdiAb22Voj9Rq/DNWPBKEjJJXX551C56UeoALdjYfnb+x/ T0lBD/WwBksjInvSBsJyChT/aaxsO41lE6/XcOoQWhxpA+kz14sH/Ufi6kXzhV/Hn3GfEIiiu zRWjnow4JlJEqNw/UT7mI0wevP/MDux8YuDqJixE59fsmQawzfp2cRt797sveSqE0nJ5wRixe vn+8Ca5p07cHbw3n7eN6nY4TetZJTA8bgG4mFHaYZm9aYMs9oNHxXzsS4psobjJVnkhA6cMt1 pw4CSdQuhBCniYcDVcGuq9cm//G7iiN86ReBwy5pp5L3+5yzHGus9klsXlz5YK2dwumwtuLMq mmRqVTt 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: Tue, 13 Dec 2016 22:01:25 -0000 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".=20 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 =20 ${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?