From owner-freebsd-ports@freebsd.org Wed Dec 14 22:03:56 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 0A9E1C803AC for ; Wed, 14 Dec 2016 22:03:56 +0000 (UTC) (envelope-from fjwcash@gmail.com) Received: from mailman.ysv.freebsd.org (unknown [127.0.1.3]) by mx1.freebsd.org (Postfix) with ESMTP id DD8BAC70 for ; Wed, 14 Dec 2016 22:03:55 +0000 (UTC) (envelope-from fjwcash@gmail.com) Received: by mailman.ysv.freebsd.org (Postfix) id DA184C803AB; Wed, 14 Dec 2016 22:03:55 +0000 (UTC) Delivered-To: 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 D802FC803AA for ; Wed, 14 Dec 2016 22:03:55 +0000 (UTC) (envelope-from fjwcash@gmail.com) Received: from mail-qt0-x22d.google.com (mail-qt0-x22d.google.com [IPv6:2607:f8b0:400d:c0d::22d]) (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 8D88CC6F for ; Wed, 14 Dec 2016 22:03:55 +0000 (UTC) (envelope-from fjwcash@gmail.com) Received: by mail-qt0-x22d.google.com with SMTP id c47so39130699qtc.2 for ; Wed, 14 Dec 2016 14:03:55 -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=gbxefqnG2IAqgBjoGskO7gjhONXC6lmANM8pW4t3D3M=; b=I8wVBHxPXiXKczhc1Ye4JeVcu1Dn/LwGv5+jwLEMwFAfv4ADZjogoQgC9O5eAkwDqA bJL2h87Mv2K9ZaUIDr7Use0gsPtfxp8ayD5CNZKZr+XTodGnCmmwrwt/+XV6e65utDf8 ZPy2GrooarYXQQMACHK/7r2r9V9gmnCF9Ena+nM96MzSBtBBTcEJeLTvvN1Qp5yqURg8 tX0FTQG6q0ZGqHSYvwTldg7fE/zp+8P+a2vkFVRDK9zw31Csg1sjM8ifnCEYoQOureKU ilMwkIHFVpSWb5egZ832CvrXZSzFtuEqJ82ocDOSP2sEgxjaVPB8xOxtXYhv9dPANQ4i uUnQ== 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=gbxefqnG2IAqgBjoGskO7gjhONXC6lmANM8pW4t3D3M=; b=HjocwlKYCVAtOdznNbjuvEl2udoAL+FkxDn6k6FuIpd4osdFnmMMZl7xp8oDcpBjAl pwjKBpMvzlQwLhP0j8XKMmhdSkafQ/tjvKv6u4xt5iKFolmbHiLh5FE6/0NqeWy6CZYV GzqFG5GK5YRfBJJpIK+D4iWjXrKD0jdtWK/EJr+Yhfkz75HHT0VrDsPXmSlNQOj63vkk tF5LZzsKlZ1OTL5jst3EYjF7dRG0QGCQDWbT0K/lnbWrGzpcVkizLhwkirD9EXV3aZqw NrZYPTruuZttgczhd3Cz5TeGQ91me/tM+L3gcKTDOyKv0y3WVle+HF7KQtPUCgoB9Us4 ohSA== X-Gm-Message-State: AKaTC00gLSBsTtVM/d2CHWrktwopNzuCOLiduS6ag3GdG5ttVln7G/K4zIQjLvpl8tVoS+YL4K/5ZAhJQiuqLQ== X-Received: by 10.237.61.202 with SMTP id j10mr100412129qtf.121.1481753034815; Wed, 14 Dec 2016 14:03:54 -0800 (PST) MIME-Version: 1.0 Received: by 10.12.165.161 with HTTP; Wed, 14 Dec 2016 14:03:52 -0800 (PST) In-Reply-To: <86y3zinby3.knu@iDaemons.org> References: <201612132032.uBDKWaVK017178@fire.js.berklix.net> <86y3zinby3.knu@iDaemons.org> From: Freddie Cash Date: Wed, 14 Dec 2016 14:03:52 -0800 Message-ID: Subject: Re: No port should need root for make fetch To: Akinori MUSHA Cc: "Julian H. Stacey" , FreeBSD Ports Mailing List 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 22:03:56 -0000 On Wed, Dec 14, 2016 at 12:37 AM, Akinori MUSHA wrote: > Hi, > > Thanks for the info. > > On Wed, 14 Dec 2016 05:32:36 +0900, > Julian H. Stacey wrote: > > 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 =3D > > 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. > > Having the dependency as FETCH_DEPENDS [*] was not my idea, but that > was for a reason: you should not fetch a file while building a port. > > * https://svnweb.freebsd.org/ports/head/databases/mysql- > q4m/Makefile#rev297196 =E2=80=8BShouldn't this be split into two, then? =E2=80=8BFETCH_DEPENDS+=3D ${NONEXISTENT}:${PORTSDIR}/databases/mysql${MYSQL_VER}-server:fetch BUILD_DEPENDS+=3D ${NONEXISTENT}:${PORTSDIR}/databases/mysql${MYSQL_VER}-server:build =E2=80=8BThat way, only the fetch target is run on the mysql-server port wh= en running the fetch target on the mysql-q4m port. And the build target is run on the mysql-server port when the build target is run on the mysql-q4m port. Or is there no :fetch support in the _DEPENDS framework?=E2=80=8B --=20 Freddie Cash fjwcash@gmail.com