Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 28 Jun 2011 11:38:28 GMT
From:      Greg Becker <greg@codeconcepts.com>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   docs/158388: Incorrect documentation of LOCAL_SCRIPT in release(7) man page...
Message-ID:  <201106281138.p5SBcSj7049331@red.freebsd.org>
Resent-Message-ID: <201106281140.p5SBe6UV067593@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         158388
>Category:       docs
>Synopsis:       Incorrect documentation of LOCAL_SCRIPT in release(7) man page...
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-doc
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          doc-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Jun 28 11:40:06 UTC 2011
>Closed-Date:
>Last-Modified:
>Originator:     Greg Becker
>Release:        8.2
>Organization:
CodeConcepts
>Environment:
FreeBSD gromit.codeconcepts.com 8.2-STABLE FreeBSD 8.2-STABLE #0: Sun Jun  5 05:09:04 CDT 2011     root@gromit.codeconcepts.com:/build/obj/usr/src/sys/GROMIT  amd64

>Description:
The description of the LOCAL_SCRIPT variable in the release(7) man page says that the script is run in the chroot(8) environment.  I don't believe this is accurate.  What actually happens is that the make cd's to the top-level directory of the chroot tree and then runs LOCAL_SCRIPT.  A small, but important distinction for those trying to understand the release process.

>From /usr/src/release/Makefile:

.if defined(LOCAL_SCRIPT)
    cd ${CHROOTDIR} && env CHROOTDIR=${CHROOTDIR} BUILDNAME=${BUILDNAME} \
        RELEASETAG=${RELEASETAG} ${LOCAL_SCRIPT}

>How-To-Repeat:

>Fix:


>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201106281138.p5SBcSj7049331>