From owner-freebsd-ports@freebsd.org Tue Dec 13 21:35:52 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 13B4AC76068 for ; Tue, 13 Dec 2016 21:35:52 +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 A87D31693 for ; Tue, 13 Dec 2016 21:35:51 +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 uBDLZmmj004227; Tue, 13 Dec 2016 21:35:49 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 uBDLZh6c003500; Tue, 13 Dec 2016 22:35:43 +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 uBDLZPVp017655; Tue, 13 Dec 2016 22:35:37 +0100 (CET) (envelope-from jhs@berklix.com) Message-Id: <201612132135.uBDLZPVp017655@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 22:09:14 +0100." Date: Tue, 13 Dec 2016 22:35:25 +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 21:35:52 -0000 Hi, Reference: > From: Matthias Andree > Date: Tue, 13 Dec 2016 22:09:14 +0100 Matthias Andree wrote: > Am 13.12.2016 um 21:32 schrieb Julian H. Stacey: > > Hi ports@ > > IMO No port should need root for > > cd /usr/ports; make -i fetch > > The first one that broke for me was databases/mysql-q4m > > (OK might be others before, but I have DUDS = > > arabic biology chinese hebrew hungarian japanese korean > > polish portuguese russian ukrainian vietnamese games demime > > majordomo acroreadwrapper acroread9 chimera dosbox emil > > firefox freerdp gimp-app gv libcue mp3splt-gtk nut opera > > ripit vlc xorg xsane > > ) > > (MAINTAINER CC'd) but there's more ports beyond, usually because > > some ports also go berserk & install, or mabe install dependents. > > Julian, > > How is that a problem of "some" ports? All ports require root for "make > fetch" No they dont. > because the normal distfiles/ directory is underneath /usr/ports/ > and thus only writable by root. No its not cd /usr/ports/distfiles ; ls -la | head total 73937104 drwxr-xr-x 406 jhs staff 893440 Dec 13 22:29 ./ drwxr-xr-x 23 jhs staff 1536 Dec 1 00:22 ../ pwd /.amd_mnt/fire/0s4/ftp/pub/FreeBSD/dists/current > Make the /usr/ports/distfiles/ directory > writable to a certain group of users, make the DIRECTORY setgid (chmod > g+s ...), add the users to that group, and you're set, alternatively, > redirect that storage to a user-writable directory by setting the > DISTDIR environment variable (this can happen on the make command-line, > too). > > > # DISTDIR - Where to search for and store copies of original sources > > # Default: ${PORTSDIR}/distfiles > (source: /usr/ports/Mk/bsd.port.mk) Thanks for the well intentioned & good advice Matthias, But some few ports are truly Badly Behaved with make 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