Bug 158388 - Incorrect documentation of LOCAL_SCRIPT in release(7) man page...
Summary: Incorrect documentation of LOCAL_SCRIPT in release(7) man page...
Status: Open
Alias: None
Product: Documentation
Classification: Unclassified
Component: Manual Pages (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: freebsd-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-06-28 12:40 UTC by Greg Becker
Modified: 2023-07-30 16:11 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Greg Becker 2011-06-28 12:40:06 UTC
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}
Comment 1 Eitan Adler freebsd_committer freebsd_triage 2017-12-31 07:59:03 UTC
For bugs matching the following criteria:

Status: In Progress Changed: (is less than) 2014-06-01

Reset to default assignee and clear in-progress tags.

Mail being skipped
Comment 2 Greg Becker 2023-07-30 16:11:42 UTC
This ticket can be probably just be closed, I don't see LOCAL_SCRIPT anywhere in the 13.2 nor 14.0 source.