docs/158388: Incorrect documentation of LOCAL_SCRIPT in release(7) man page...

Greg Becker greg at codeconcepts.com
Tue Jun 28 11:40:10 UTC 2011


>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 at 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:



More information about the freebsd-doc mailing list