From owner-freebsd-ports@freebsd.org Tue Dec 13 22:28:48 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 8850DC76D8D for ; Tue, 13 Dec 2016 22:28:48 +0000 (UTC) (envelope-from jhs@berklix.com) Received: from land.berklix.org (land.berklix.org [144.76.10.75]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 111461248 for ; Tue, 13 Dec 2016 22:28:46 +0000 (UTC) (envelope-from jhs@berklix.com) Received: from mart.js.berklix.net (p5B226212.dip0.t-ipconnect.de [91.34.98.18]) (authenticated bits=128) by land.berklix.org (8.15.2/8.15.2) with ESMTPA id uBDMSho4006024; Tue, 13 Dec 2016 22:28:44 GMT (envelope-from jhs@berklix.com) Received: from fire.js.berklix.net (fire.js.berklix.net [192.168.91.41]) by mart.js.berklix.net (8.14.3/8.14.3) with ESMTP id uBDMSddC003790; Tue, 13 Dec 2016 23:28:39 +0100 (CET) (envelope-from jhs@berklix.com) Received: from fire.js.berklix.net (localhost [127.0.0.1]) by fire.js.berklix.net (8.14.7/8.14.7) with ESMTP id uBDMSL1r018077; Tue, 13 Dec 2016 23:28:33 +0100 (CET) (envelope-from jhs@berklix.com) Message-Id: <201612132228.uBDMSL1r018077@fire.js.berklix.net> To: Matthias Andree cc: null Subject: Re: No port should need root for make fetch From: "Julian H. Stacey" Organization: http://berklix.eu BSD Unix Linux Consultants, Munich Germany User-agent: EXMH on FreeBSD http://berklix.eu/free/ X-From: http://www.berklix.eu/~jhs/ In-reply-to: Your message "Tue, 13 Dec 2016 23:01:13 +0100." <96f44b17-b5a3-d24e-dee4-935d55a70019@gmx.de> Date: Tue, 13 Dec 2016 23:28:21 +0100 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:28:48 -0000 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 "make > >> fetch" > > No they dont. > > Given that, then "none do". > > I'll do what what you omitted in your blind rage, Huh ? Wrong guess, I'm just tired of broken ports. > 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+= > ${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, No, wrong. I'm just building a stockpile of local distfiles for use later on a mass build. I'm quite happy to build as root. > 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. Please stop guessing & assuming wrongly, try as normal user what I reported in 3rd line of my first post cd /usr/ports; make -i fetch & you will breaking ports.. > > 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? You seem to be looking to argue. I'm not going to. Run as normal user cd /usr/ports; make -i fetch Cheers, Julian -- Julian Stacey, BSD Linux Unix Sys Eng Consultant Munich Reply below, Prefix '> '. Plain text, No .doc, base64, HTML, quoted-printable. http://berklix.eu/brexit/#stolen_votes