Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 11 May 2017 12:56:28 -0700
From:      Bryan Drewery <bdrewery@FreeBSD.org>
To:        "O. Hartmann" <ohartmann@walstatt.org>, freebsd-current <freebsd-current@freebsd.org>
Subject:   Re: make release: how utilise filemon?
Message-ID:  <0cf1254d-4c01-333f-6df3-f8755794b339@FreeBSD.org>
In-Reply-To: <20170510101231.374cc22a@freyja.zeit4.iv.bundesimmobilien.de>
References:  <20170510101231.374cc22a@freyja.zeit4.iv.bundesimmobilien.de>

next in thread | previous in thread | raw e-mail | index | archive | help
This is an OpenPGP/MIME signed message (RFC 4880 and 3156)
--w6O4McFGh31stM7ihGBOgjqHKb5heLjej
Content-Type: multipart/mixed; boundary="uhVgWAXLMDF91RMgpX5CBm1UMkMdCo4NT";
 protected-headers="v1"
From: Bryan Drewery <bdrewery@FreeBSD.org>
To: "O. Hartmann" <ohartmann@walstatt.org>,
 freebsd-current <freebsd-current@freebsd.org>
Message-ID: <0cf1254d-4c01-333f-6df3-f8755794b339@FreeBSD.org>
Subject: Re: make release: how utilise filemon?
References: <20170510101231.374cc22a@freyja.zeit4.iv.bundesimmobilien.de>
In-Reply-To: <20170510101231.374cc22a@freyja.zeit4.iv.bundesimmobilien.de>

--uhVgWAXLMDF91RMgpX5CBm1UMkMdCo4NT
Content-Type: text/plain; charset=windows-1252
Content-Transfer-Encoding: quoted-printable

On 5/10/17 1:12 AM, O. Hartmann wrote:
> hello,
>=20
> building a release of most recent 12-CURRENT seems to be at some point =
very
> annoying. When building the main host's system out of /usr/src
> using /etc/src-env.conf set with WITH_META_MODE=3Dyes, build time decre=
ases
> significantly. Now I perform some tasks building release. The source tr=
ee is
> 11-STABLE.
>=20
> In release.conf, I tried setting
>=20
> ## Set to use world- and kernel-specific make(1) flags.
> WORLD_FLAGS=3D"-DNO_CLEAN -j $(sysctl -n hw.ncpu)"
> KERNEL_FLAGS=3D"-DNO_CLEAN -j $(( $(( $(sysctl -n hw.ncpu) + 1 )) / 2 )=
)"
>=20
> without any noticable effect - make release always build release fully,=
 no
> matter wether there has been new sources checked out or not. It takes a=
 lot of
> time compiling llvm/clang. Using 11-stable on a NanoBSD installation,
> -DNO_CLEAN seems to take effect on the very same source revision, while=
 it
> doesn't on "make release". The target (obj-directory) is always properl=
y set,
> the same and not deleted by a run of "make release", so I'm quite sure =
this
> portion of the setting is correct.
>=20
> release(7) does have some tags setting src.conf, but I miss src-env.con=
f
> settings as this can be customised in the "ordinary" /usr/src world.
>=20
> What am I doing or thinking wrong in this matter?
>=20
> Kind regards,
>=20
> Oliver
> _______________________________________________


META_MODE is only allowed in a whitelist of targets (see
META_TGT_WHITELIST in Makefile).  I wanted to avoid META MODE ever being
enabled for an 'install' target or utility target like 'check-old' or
'delete-old', etc.  META MODE has the potential to skip doing things
that are actually needed, like copying a file to /.  So I decided to
whitelist to known-safe targets.  The 'make release' target, and all of
release/, is something I've never ran and am not very familiar with, so
I didn't list it.  Thus WITH_META_MODE=3Dyes and 'make release' has no
effect, it will build without META MODE.

In summary, support needs to be added for release/ in safe and useful way=
s.


--=20
Regards,
Bryan Drewery


--uhVgWAXLMDF91RMgpX5CBm1UMkMdCo4NT--

--w6O4McFGh31stM7ihGBOgjqHKb5heLjej
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"

-----BEGIN PGP SIGNATURE-----
Comment: GPGTools - https://gpgtools.org

iQEcBAEBCgAGBQJZFMHtAAoJEDXXcbtuRpfPZVUIANNhCYLCmY5/biAGhZzmOAVq
f8jtU0Q5am/qfHIUmlaHclyGvGorws/96fBVHl/U5nFZ/siNyhMKAdL9jjRtLOgf
/4pO/kI784l/pkgrOhQ+bi9Rr2cph5kSvdUOnvh0Jr0vvXhEax5brs6KbDcT7gMl
A5MtTfZN0BuFd/NkscB3wU6eW5ztwAJ+cWYDqo2S6689pv7XUU5qez8asFYr6sU5
8NKgH02gzGFauULy+rCI66/FX80DYxb3bzhfl/YTdAISxq3HSI9KnWwfqKbrMuKL
aMXGzgI12cXkGwsqxcgtmQJahyJydvovqGheZo6KkZPcgcWypBKvLZ+XMv7eYlg=
=F/va
-----END PGP SIGNATURE-----

--w6O4McFGh31stM7ihGBOgjqHKb5heLjej--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?0cf1254d-4c01-333f-6df3-f8755794b339>