From owner-freebsd-hackers@FreeBSD.ORG Sat Apr 18 22:54:12 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 4B96B106564A for ; Sat, 18 Apr 2009 22:54:12 +0000 (UTC) (envelope-from manolis@FreeBSD.org) Received: from kane.otenet.gr (kane.otenet.gr [83.235.67.31]) by mx1.freebsd.org (Postfix) with ESMTP id C9ADF8FC13 for ; Sat, 18 Apr 2009 22:54:11 +0000 (UTC) (envelope-from manolis@FreeBSD.org) Received: from joshua.freebsdgr.org (athedsl-4555640.home.otenet.gr [94.70.79.128]) (authenticated bits=0) by kane.otenet.gr (8.13.8/8.13.8/Debian-3) with ESMTP id n3IMUsYN019080 for ; Sun, 19 Apr 2009 01:30:54 +0300 Message-ID: <49EA549E.2060001@FreeBSD.org> Date: Sun, 19 Apr 2009 01:30:54 +0300 From: Manolis Kiagias User-Agent: Thunderbird 2.0.0.21 (X11/20090411) MIME-Version: 1.0 To: freebsd-hackers@FreeBSD.org Content-Type: text/plain; charset=ISO-8859-7; format=flowed Content-Transfer-Encoding: 7bit Cc: Subject: 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: Sat, 18 Apr 2009 22:54:12 -0000 Hey all, I've been experimenting recently with 'make release' and I have a couple of questions. A little background first: - I've read the releng, releng-packages articles (probably out of date) and the release man page - I've been able to successfully run a make release without packages using the following: # make release CHROOTDIR=/data/release BUILDNAME=7.2-PRERELEASE CVSROOT=/data/ncvs EXTSRCDIR=/usr/src -DNODOC -DNOPORTS -DNO_FLOPPIES -DMAKE_ISOS Currently /data/ncvs does not exist, I am using EXTSRCDIR to build the sources of my current system. This all works fine. Lately, I've been running builds of packages using ports-mgmt/tinderbox and I thought it would be nice to create complete customs CDs. But I can't seem to be able to convince make release to include these packages in the final ISOs. Now, according to the release man page, I have to set CD_PACKAGE_TREE to a directory with the packages, and I have to create this using make package-split. I have edited /usr/src/release/scripts/package-split.py to contain my list of packages. I have copied the ready packages from the build server to /data/allpackages and also copied the INDEX file (in sync with the packages). It also seems one has to run the mkpkgindex.sh which will trim the INDEX to only include the present packages. (Not sure whether I need to run mkpkghier - I already have the directories with the symbolic links). I would then run make package-split as follows: make package-split PKG_TREE=/data/allpackages PKG_DEST=/data/packages which works fine (BTW, PKG_TREE and PKG_DEST are not documented in man release). Packages are split according to spec. I tried with three discs and a single disc. I am currently trying a build with few packages that all fit on disc1. I would then run the build: # make release CHROOTDIR=/data/release BUILDNAME=7.2-PRERELEASE CVSROOT=/data/ncvs EXTSRCDIR=/usr/src CD_PACKAGE_TREE=/data/packages -DNODOC -DNOPORTS -DNO_FLOPPIES -DMAKE_ISOS which completes, without errors but without adding the packages to any CD or the DVD. I found out that I can add the packages after the build by running manually /usr/src/release/i386/mkisoimage.sh with appropriate arguments (and the resulting CD seems to work fine). But I can't seem to convince make release to do this. What am I doing wrong? Any pointers would be greatly appreciated. FWIW, I will also attempt to patch the releng or releng-packages article if I can get the right steps for this. Thanks for your time and apologies for the long post!