Thank you Stuart, that clears it up! And thanks for the reminder about
RELEASEDIR permissions, I corrected it.


On Mon, 27 Oct 2025 10:03:37 -0000 (UTC)
Stuart Henderson <[email protected]> wrote:

> On 2025-10-27, requiem. <[email protected]> wrote:
> > Dear misc@,
> >
> > I am trying to compile a release for the first time and following
> > the manpage is, as ever, relatively straightforward, but I get
> > confused when it comes to xenocara:
> >
> > My environment:
> > I set up two spare partitions for building a release, I have a
> > /dest and a /rel partition mounted with NOPERM and with appropriate
> > ownership ajd permissions configured.  
> 
> only the partition holding DESTDIR should use 'noperm'.
> /rel should NOT use 'noperm'.
> 
> > So the manual for release(8) says:
> >  
> >> Xenocara uses DESTDIR and RELEASEDIR as described above. Use a
> >> different DESTDIR for the Xenocara release than for the base
> >> release, as the contents of DESTDIR will be removed.  
> >
> > So in my case, I set `/dest/base` for the OpenBSD base and and I
> > will use `/dest/xenocara` for X. I will use `/rel/78` as my
> > RELEASEDIR.
> >
> > Then the manpage tells you to build xenocara, and adds,
> >  
> >> At this point, OpenBSD base system and X Window System tarballs
> >> are in RELEASEDIR.  
> >
> > This makes sense - we used different DESTDIRS but as it all goes
> > into one release, we use a shared RELEASEDIR.  
> 
> that's all ok.
> 
> > But reading along comes the part I don't understand --
> >  
> >>The disk images install${VERSION}.img and install${VERSION}.iso are
> >>suitable for installs without network connectivity. They contain
> >>the tarballs built in the previous steps.  
> > ```
> > # export RELDIR=your-releasedir RELXDIR=your-xenocara-releasedir
> > # cd /usr/src/distrib/$(machine)/iso && make
> > # make install
> > ```  
> >> The two installer images are now stored in the local release
> >> directory.  
> >
> > Where did RELXDIR suddenly come from?!
> >
> > Do I actually have to specify a different RELDIR for Xenocara
> > during the build process, so say, store the base release in eg.
> > `/rel/78` but store xenocara files in eg. `/rel/78xenocara`?  
> 
> you don't have to, but you can. (the infrastructure is there to
> support cases used [sometimes?] in the official builds).
> 
> > Or if I used a shared directory as I understand the manpage
> > advises, do I specify the same dir for both RELDIR and RELXDIR? So
> > eg ``` # export RELDIR=/rel/78 export RELXDIR=/rel/78
> > ```
> > How am I to understand the instructions in the manual?  
> 
> I don't bother with isos when I'm building releases myself but that's
> how I'd read it.
> 
> 
> 

Reply via email to