From owner-freebsd-hackers@FreeBSD.ORG Wed Apr 22 20:58:17 2009 Return-Path: Delivered-To: freebsd-hackers@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 30FA6106567F for ; Wed, 22 Apr 2009 20:58:17 +0000 (UTC) (envelope-from manolis@FreeBSD.org) Received: from rosebud.otenet.gr (rosebud.otenet.gr [83.235.67.32]) by mx1.freebsd.org (Postfix) with ESMTP id 8FB3B8FC0A for ; Wed, 22 Apr 2009 20:58:16 +0000 (UTC) (envelope-from manolis@FreeBSD.org) Received: from atlantis.dyndns.org (athedsl-4489043.home.otenet.gr [94.71.75.91]) by rosebud.otenet.gr (8.13.8/8.13.8/Debian-3) with ESMTP id n3MKwE6d025365 for ; Wed, 22 Apr 2009 23:58:15 +0300 Message-ID: <49EF84E6.5060205@FreeBSD.org> Date: Wed, 22 Apr 2009 23:58:14 +0300 From: Manolis Kiagias User-Agent: Thunderbird 2.0.0.21 (X11/20090414) MIME-Version: 1.0 To: freebsd-hackers@FreeBSD.org References: <49EA549E.2060001@FreeBSD.org> <200904200950.16371.jhb@freebsd.org> <49ED8131.40603@FreeBSD.org> <200904220957.43717.jhb@freebsd.org> In-Reply-To: <200904220957.43717.jhb@freebsd.org> X-Enigmail-Version: 0.95.7 Content-Type: text/plain; charset=ISO-8859-7 Content-Transfer-Encoding: 7bit Cc: Subject: Re: Some questions on 'make release' X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 22 Apr 2009 20:58:18 -0000 John Baldwin wrote: > On Tuesday 21 April 2009 4:17:53 am Manolis Kiagias wrote: > >> in the iso.1 target to print the values of CD and CD_DISC1_PKGS variables: >> >> echo "CD is ${CD}" >> echo "CD_DISC1_PKGS is ${CD_DISC1_PKGS}" >> >> Running the make release I can see the "Creating iso images..." but not >> any of my messages. It is as if another copy of the Makefile is executed >> (without the changes). >> (Note I switched from EXTSRCDIR to a real CVSROOT, so it is not my >> /usr/src that is copied to the release work area) >> > > Right, the release process chroot's into your release area and then uses > that /usr/src/release/Makefile for the extra targets. You can build the > release once and then just update the release Makefile in the chroot area and > use 'make rerelease' for testing. > > Thank you John. You were right of course, the Makefile that continues to execute is the one inside the CHROOTDIR. And in fact my original problem is exactly that: I was not thinking in terms of the chroot. Reading the Makefile, CD_DISC1_PKGS = ${CD_PACKAGE_TREE}/disc1 but CD_PACKAGE_TREE refers to a chroot directory, just like every other CD_* variable in there. I was using CD_PACKAGE_TREE=/usr/area/packages, a completely unrelated path. As for make rerelease, I tried it with the RELEASENOUPDATE option, but apparently the CD_DISC*_PKGS do not get defined. It would be trivial to hack a solution though.