trouble while building a release

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

trouble while building a release

Etienne
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
*** Error 1 in /usr/src/sys/arch/amd64/compile/GENERIC (Makefile:970
'vers.o')
*** Error 2 in . (Makefile:20 'bsd')
*** Error 2 in . (Makefile:274 'release-sets')
*** Error 2 in . (Makefile:267 'do-release')
*** Error 2 in /usr/src/etc (Makefile:251 'release')

However, I have set the directories and permissions as requested:

# ls -ld $RELEASEDIR
drwxr-xr-x  2 build  daemon  512 Dec 31 06:51
/var/www/htdocs/pub/OpenBSD/6.2/amd64/
# ls -ld $DESTDIR
drwx------  13 build  wheel  512 Dec 31 06:58 /var/destdir/
#  mount | grep vnd1
/dev/vnd1a on /var/destdir type ffs (local, nodev, noexec, noperm)

Any idea on what I need to check?

Cheers,

--
Étienne



Reply | Threaded
Open this post in threaded view
|

Re: trouble while building a release

trondd-2
On Wed, January 3, 2018 1:07 pm, 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
> *** Error 1 in /usr/src/sys/arch/amd64/compile/GENERIC (Makefile:970
> 'vers.o')
> *** Error 2 in . (Makefile:20 'bsd')
> *** Error 2 in . (Makefile:274 'release-sets')
> *** Error 2 in . (Makefile:267 'do-release')
> *** Error 2 in /usr/src/etc (Makefile:251 'release')
>
> However, I have set the directories and permissions as requested:
>
> # ls -ld $RELEASEDIR
> drwxr-xr-x  2 build  daemon  512 Dec 31 06:51
> /var/www/htdocs/pub/OpenBSD/6.2/amd64/
> # ls -ld $DESTDIR
> drwx------  13 build  wheel  512 Dec 31 06:58 /var/destdir/
> #  mount | grep vnd1
> /dev/vnd1a on /var/destdir type ffs (local, nodev, noexec, noperm)
>
> Any idea on what I need to check?
>
> Cheers,
>
> --
> Ã*tienne
>

What are the perms on /usr/obj?  Should be build:wsrc 770 per step 3.

Tim.

Reply | Threaded
Open this post in threaded view
|

Re: trouble while building a release

Theo Buehler-3
In reply to this post by Etienne
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.

Reply | Threaded
Open this post in threaded view
|

Re: trouble while building a release

Etienne
On 03/01/18 18:54, Theo Buehler wrote:
> On Wed, Jan 03, 2018 at 06:07:36PM +0000, Etienne wrote:
>> # 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)):
>
Thank you so much, that was it, I missed that detail.

--
Étienne