From owner-freebsd-current@FreeBSD.ORG Thu Feb 14 13:02:34 2013 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id BF061166; Thu, 14 Feb 2013 13:02:34 +0000 (UTC) (envelope-from tevans.uk@googlemail.com) Received: from mail-ve0-f172.google.com (mail-ve0-f172.google.com [209.85.128.172]) by mx1.freebsd.org (Postfix) with ESMTP id 6EDC29B; Thu, 14 Feb 2013 13:02:33 +0000 (UTC) Received: by mail-ve0-f172.google.com with SMTP id cz11so2000655veb.31 for ; Thu, 14 Feb 2013 05:02:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20120113; h=mime-version:x-received:in-reply-to:references:date:message-id :subject:from:to:cc:content-type:content-transfer-encoding; bh=MLwvSdbdEXlXFAuoLrjKwU+hcmxiLTn3aYr5VQJvAX8=; b=hoqmxjeiDe5Jhmy0zb2BZB2Xeu+m9Qeoem/teNSHTvZwNFqTGtT0sXeIO/Mtz9XU1W HjTQ2qwXcTQHMjgWit9f3ZlVNxfI9JbX/igm7hHBqab3fuBPTc8Q6H8iuAEFEfKmQupG 6sLFU4jNEJqJFkKJfAyMc9iONbNbsPgWKTwMGSHek0OyDmEJrxb70lmWQrAYVzj8NFzu qnvV/3bx4FQnFWy5tEl4y9ywBbOFh6odTyCOEBMAuymzN7SMKHmVeufa/uw62wldHez4 f5VvL/cy/PEj9r+or3lBFeIQMAmxanYwdRGjWwGM2Jv/zWCTPIZVV4BZk2RjwY+WiEg2 THNA== MIME-Version: 1.0 X-Received: by 10.220.228.74 with SMTP id jd10mr34723729vcb.65.1360846947297; Thu, 14 Feb 2013 05:02:27 -0800 (PST) Received: by 10.58.100.147 with HTTP; Thu, 14 Feb 2013 05:02:27 -0800 (PST) In-Reply-To: <511CD83C.107@aldan.algebra.com> References: <511B662C.7030602@zedat.fu-berlin.de> <511B874A.7080901@kbh.biglobe.ne.jp> <511BBDAD.1080806@zedat.fu-berlin.de> <511CD83C.107@aldan.algebra.com> Date: Thu, 14 Feb 2013 13:02:27 +0000 Message-ID: Subject: Re: Re: ports include /etc/src.conf? i.e. graphics/libfpx From: Tom Evans To: "Mikhail T." Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Cc: Kimmo Paasiala , "free >> Current FreeBSD" , "O. Hartmann" , Ports FreeBSD , Yamaya Takashi X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 14 Feb 2013 13:02:34 -0000 On Thu, Feb 14, 2013 at 12:27 PM, Mikhail T. wr= ote: > 13.02.2013 11:22, O. Hartmann =D0=BD=D0=B0=D0=BF=D0=B8=D1=81=D0=B0=D0=B2(= =D0=BB=D0=B0): >>> > If this is taken literally then could it be said that ports that use >>> > bsd.lib.mk are broken because they are using makefile includes from >>> > the source tree? >>> > >>> > -Kimmo > For one, the particular port (its Makefile.bsd) was created in 2001, > five years before src.conf appeared. The intent of creating a separate > src.conf, I believe, was to shield a world-build from "crazy" options > someone could've put into their make.conf for the benefit of building a > port or two... But I may be mistaken. I think src.conf is meant only to be included when building src. For example, bsd.port.mk sets _WITHOUT_SRCCONF before including bsd.own.mk (which is the makefile that includes src.conf). It's done this since src.conf was added in 2006, so evidently ports are, by design, not supposed to include src.conf. >> I would consider them broken! > On the contrary. I wish, more ports were using the system's bsd.*.mk > collection -- instead of the godawful autoconf, for example. Er? What port uses autoconf for driving the building the port? A lot of ports have build systems that use autoconf, but determining how to build is always driven by *.mk. I don't think part of porting to FreeBSD should be rewriting how the package builds itself. The intent in bsd.port.mk is clearly to not include src.conf in port builds= . > What does > the port's Makefile.bsd say? It says: "These are the sources, this is > the name of the library I want. Please, create it." That's all... It is > how things are supposed to be, in my opinion. If the bsd.*.mk collection > was not meant to be used outside of /usr/src, then it wouldn't be > installed (under /usr/share/mk) for the decades, that BSD exists. > > Maybe, the bsd.*.mk collection should be smarter -- and not include > src.conf -- when .CURDIR is outside of /usr/src. I'm not sure... This is the intent of bsd.port.mk, which is not applied when building this = port. >> How could I track down problems if they are results of intermixed config >> files when the manpage explicitely tells me, that the /etc/src.conf is >> only for the build of the operating system? > If the manual says that, it is incorrect -- if only because it does not > reflect (as you've experienced) the practice, that existed long before > the manual was written. As for your tracking down problems, I'd say, it > should be very easy for you to recognize the flags you've added by hand > -- even if you've added them to where you believed, they would not > affect a port. > Either the documentation is wrong, and should be changed, or this singular port is not behaving as it should. Cheers Tom