Date: Mon, 21 Sep 2020 17:23:12 -0700 From: Ravi Pokala <rpokala@freebsd.org> To: Ed Maste <emaste@FreeBSD.org>, <src-committers@freebsd.org>, <svn-src-all@freebsd.org>, <svn-src-head@freebsd.org> Subject: Re: svn commit: r365846 - head Message-ID: <F9E063CD-A822-481F-81B5-80DB48FE695A@panasas.com> In-Reply-To: <202009171847.08HIlNXa015641@repo.freebsd.org> References: <202009171847.08HIlNXa015641@repo.freebsd.org>
index | next in thread | previous in thread | raw e-mail
-----Original Message-----
From: <owner-src-committers@freebsd.org> on behalf of Ed Maste <emaste@FreeBSD.org>
Date: 2020-09-17, Thursday at 11:47
To: <src-committers@freebsd.org>, <svn-src-all@freebsd.org>, <svn-src-head@freebsd.org>
Subject: svn commit: r365846 - head
Author: emaste
Date: Thu Sep 17 18:47:23 2020
New Revision: 365846
URL: https://svnweb.freebsd.org/changeset/base/365846
Log:
Cirrus-CI: build as an unprivileged user
The Cirrus-CI-provided working tree is owned by root. Leave that as is
for simplicity but build as an unprivileged user; this tests building
with an unmodifiable source tree as a side effect.
Hi Ed,
We're still generating the LINT kernconfs into the src tree though, right? Moving that to allow for universe/tinderboxing a r/o src tree seems like an obvious idea. The fact that we don't already do that implies that there's a non-obvious complication with that idea; does anyone know why that is?
Thanks,
Ravi (rpokala@)
Continue running the smoke test as root for now, as it failed when run
as an unprivileged user - pkg reported "Fail to chmod
/usr/bin/.pkgtemp.lpq.dUHpEqPGJ9pq:Operation not permitted"
Sponsored by: The FreeBSD Foundation
Modified:
head/.cirrus.yml
Modified: head/.cirrus.yml
==============================================================================
--- head/.cirrus.yml Thu Sep 17 18:24:51 2020 (r365845)
+++ head/.cirrus.yml Thu Sep 17 18:47:23 2020 (r365846)
@@ -12,9 +12,13 @@ task:
timeout_in: 120m
install_script:
- pkg install -y qemu-devel uefi-edk2-qemu-x86_64
+ setup_user_script:
+ - pw useradd user
+ - mkdir -p /usr/obj/$(pwd -P)
+ - chown user:user /usr/obj/$(pwd -P)
script:
- - make -j$(sysctl -n hw.ncpu) WITHOUT_TOOLCHAIN=yes buildworld buildkernel
+ - su user -c "make -j$(sysctl -n hw.ncpu) WITHOUT_TOOLCHAIN=yes buildworld buildkernel"
package_script:
- - make WITHOUT_TOOLCHAIN=yes PKG_FORMAT=tar packages
+ - su user -c "make WITHOUT_TOOLCHAIN=yes PKG_FORMAT=tar packages"
test_script:
- sh tools/boot/ci-qemu-test.sh
help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?F9E063CD-A822-481F-81B5-80DB48FE695A>
