On Wed, Jan 03, 2018 at 06:07:36PM +0000, Etienne wrote:
> Hello list,
>
> I'm a bit confused. I believe I have correctly applied the instructions in
> release(8), but I hit this error when running "make release" in paragraph 4,
> on unmodified sources:
>
> # cd /usr/src/etc && make release
> […]
> sh /usr/src/sys/conf/newvers.sh
> touch: version: Permission denied
> /usr/src/sys/conf/newvers.sh[84]: cannot create version: Permission denied
You probably didn't do 'rm -rf /usr/obj/*' after building and installing
the kernel (first sentence in second paragraph of step 3 in release(8)):
3. Build a new base system
The build process will place the object files in a tree under /usr/obj.
This directory must be owned by build:wobj with mode 770.
The first time, the /usr/obj directory must be cleaned out completely
before proceeding to avoid permission issues. After a successful release
build, this is no longer needed.
The /usr/src/sys/arch/amd64/compile/GENERIC{,.MP}/obj/vers* files must
be readable and writable by the 'build' user for a release to build
successfully. If you don't want to start over, you should be able to set
their permissions manually to build:wobj 660 and issue 'make release'
again.