Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 2 Jul 2021 17:38:12 -0700
From:      Mark Millard via freebsd-ports <freebsd-ports@freebsd.org>
To:        bob prohaska <fbsd@www.zefox.net>, freebsd-ports@freebsd.org
Subject:   Re: Restarting a failed poudriere session
Message-ID:  <841656A2-789C-4F4A-A5C4-109899CCBF2F@yahoo.com>
References:  <841656A2-789C-4F4A-A5C4-109899CCBF2F.ref@yahoo.com>

next in thread | previous in thread | raw e-mail | index | archive | help
From: bob prohaska <fbsd_at_www.zefox.net> wrote on
Date: Fri, 2 Jul 2021 14:08:12 -0700 :

> There's an option to=20
> SAVE_WRKDIR=3Dyes
> in /usr/local/etc/poudriere.conf
>=20
> What is its intended use?

It avoids having to remember to type -w on the
poudriere bulk command line.

Both cause a crash in the jail to produce a .txz
(or other tar format) of the /wrkdirs/ directory
tree that it was using when the crash happened.

The can later be extracted and the contents examined
for getting evidence about the problem.

> In particular,
> can it be used to pick up a failed build
> close to the point where it stopped?

No.

Individual builders (jobs) never restart in the
middle: always at the beginning. But prior
completed builders/jobs are not rerun unless
something changed to cause such.

> There's no obvious reference to SAVE_WRKDIR
> in the man page and a web search came up
> empty in terms of what it's good for.

=46rom man poudriere-bulk :

     -w       Save WRKDIR on build failure.  The WRKDIR will be tarred =
up into
              ${POUDRIERE_DATA}/wrkdirs.

I will note that the WRKDIR concept is not specific to
poudriere but to all the ports infrastructure. From
man ports :

     WRKDIRPREFIX      Where to create any temporary files.  Useful if
                       PORTSDIR is read-only (perhaps mounted from a =
CD-ROM).

. . .

     SU_CMD            Command used to elevate privilege to configure =
and
                       install a port.  The unprivileged user must have =
write
                       access to WRKDIRPREFIX and DISTDIR.  The default =
is
                       =E2=80=98/usr/bin/su root -c=E2=80=99.  Many =
users set it to
                       =E2=80=98/usr/local/bin/sudo -E sh -c=E2=80=99 =
for convenience.


SIDE NOTE:

main has commits today for avoiding the rust build failures.

=3D=3D=3D
Mark Millard
marklmi at yahoo.com
( dsl-only.net went
away in early 2018-Mar)




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?841656A2-789C-4F4A-A5C4-109899CCBF2F>