From owner-freebsd-ports@FreeBSD.ORG Mon Mar 30 22:56:13 2015 Return-Path: Delivered-To: ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id B2817BF2 for ; Mon, 30 Mar 2015 22:56:13 +0000 (UTC) Received: from be-well.ilk.org (be-well.ilk.org [23.30.133.173]) by mx1.freebsd.org (Postfix) with ESMTP id 8A3DA6EE for ; Mon, 30 Mar 2015 22:56:13 +0000 (UTC) Received: from lowell-desk.lan (lowell-desk.lan [172.30.250.41]) by be-well.ilk.org (Postfix) with ESMTP id EA29D33C46; Mon, 30 Mar 2015 18:56:01 -0400 (EDT) Received: by lowell-desk.lan (Postfix, from userid 1147) id B413D3983C; Mon, 30 Mar 2015 18:56:00 -0400 (EDT) From: Lowell Gilbert To: Yuri Subject: Re: Why pkg-install is run during port build? References: <5519BE2F.50407@rawbw.com> <5519C520.6080004@rawbw.com> Reply-To: ports@freebsd.org Date: Mon, 30 Mar 2015 18:56:00 -0400 In-Reply-To: <5519C520.6080004@rawbw.com> (yuri@rawbw.com's message of "Mon, 30 Mar 2015 14:50:24 -0700") Message-ID: <44bnjaaydb.fsf@lowell-desk.lan> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain Cc: ports@freebsd.org X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 30 Mar 2015 22:56:13 -0000 Yuri writes: > On 03/30/2015 14:42, Matthew Donovan wrote: >> With FreeBSD packages and ports are the same. As it is tje same database > > No, package and port are different things. > Ports are the recipes to build packages or install directly, they are > in file system under /usr/ports, and packages are the collection of > binaries that can be installed, located in the repository, like one > that is being pointed to by /etc/pkg/FreeBSD.conf > >From your first message I wasn't sure you were actually running the current ports/package tools (pkg(8)), but mentioning FreeBSD.conf tells us that you are. > My question is why pkg-install is run during the stage phase? Isn't > this the wrong thing to do? I think only make install should run it. The whole point of the stage phase is to install the port into a transitional area (STAGEDIR), from which a package is built. That package is what is actually installed into the real system. This is the "new" way of doing things, meaning it's been around in mainstream use for "only" a couple of years or so.