Page MenuHomeFreeBSD

Makefile.vm: Split error condition
ClosedPublic

Authored by emaste on Tue, May 5, 9:14 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, May 16, 10:44 PM
Unknown Object (File)
Fri, May 15, 9:34 AM
Unknown Object (File)
Fri, May 15, 12:52 AM
Unknown Object (File)
Thu, May 14, 9:18 AM
Unknown Object (File)
Thu, May 14, 9:17 AM
Unknown Object (File)
Thu, May 14, 6:42 AM
Unknown Object (File)
Thu, May 14, 2:47 AM
Unknown Object (File)
Tue, May 12, 2:59 PM

Details

Summary

Make it clear which of two possible cases applies.

PR: 295028

Test Plan

Minsoo can you apply this patch and test PR295028?

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

emaste requested review of this revision.Tue, May 5, 9:14 PM

@emaste I get

make[7]: /usr/src/freebsd/main/release/Makefile.vm:105: NO_ROOT requires WITHOUT_QEMU
        in /usr/src/freebsd/main/release/Makefile:479
        in make[7] in directory "/usr/src/freebsd/main/release"

Not sure why this happens since I did make vm-image with sudo. I did buildworld and buildkernel with no root though.

I did buildworld and buildkernel with no root though.

If you're explicitly passing NO_ROOT to the build you have to add WITHOUT_QEMU as well

I did buildworld and buildkernel with no root though.

If you're explicitly passing NO_ROOT to the build you have to add WITHOUT_QEMU as well

For clarification, I didn't pass NO_ROOT=yes explicitly. I did buildworld and buildkernel without root privilege and I wonder if the build system automatically sets NO_ROOT to yes when it detects no root privilege?

Also, what is WITHOUT_QEMU exactly? It's not documented under src.conf(5).

cperciva added a subscriber: cperciva.

This should be going away at some point when WITHOUT_QEMU and NO_ROOT become unconditionally true, but this is certainly a useful change for now.

This revision is now accepted and ready to land.Wed, May 6, 5:44 PM

fwiw NO_ROOT is not in src.conf(5) either.

NO_ROOT means do not perform root-only operations during install (i.e., setting flags or ownership). WITHOUT_QEMU avoids using qemu for image building, using pkg's built-in METALOG writing infrastructure.

This revision was automatically updated to reflect the committed changes.