Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 12 Nov 2022 23:14:49 -0500
From:      Paul Mather <paul@gromit.dlib.vt.edu>
To:        Sysadmin Lists <sysadmin.lists@mailfence.com>
Cc:        User Questions <freebsd-questions@freebsd.org>
Subject:   Re: Testing ports of rust software w/o building rustc
Message-ID:  <1C57F2A3-4E9F-4827-95DF-71036235C6F5@gromit.dlib.vt.edu>
In-Reply-To: <2000259215.262401.1668305296540@orville.co-bxl>
References:  <86h6zajyd0.fsf@beastieboy.net> <CAGwOe2amkTGbbT-kUUBG0woQeP7obBZ8eJV0zHhSUuJL%2BQ-iRA@mail.gmail.com> <86bkpiih05.fsf@beastieboy.net> <42FCFC04-FFB4-41BC-BD1D-009F77A90B65@gromit.dlib.vt.edu> <86leohfdfj.fsf@beastieboy.net> <7835B33A-4F4F-4E0F-8692-F40A8E9FE5CC@gromit.dlib.vt.edu> <2000259215.262401.1668305296540@orville.co-bxl>

next in thread | previous in thread | raw e-mail | index | archive | help
On Nov 12, 2022, at 9:08 PM, Sysadmin Lists =
<sysadmin.lists@mailfence.com> wrote:


>> ----------------------------------------
>> From: Paul Mather <paul@gromit.dlib.vt.edu>
>> Sent: Fri Nov 11 22:48:31 CET 2022
>> To: Nicolas Herry <beastieboy@beastieboy.net>
>> Cc: Fernando Apestegu=C3=ADa <fernando.apesteguia@gmail.com>, User =
Questions <freebsd-questions@freebsd.org>
>> Subject: Re: Testing ports of rust software w/o building rustc
>>=20
>> On Nov 11, 2022, at 3:23 PM, Nicolas Herry =
<beastieboy@beastieboy.net> wrote:
>>=20
>>> Paul Mather <paul@gromit.dlib.vt.edu> writes:
>>>=20
>>> Then I'm curious now: why not opt for poudriere-devel (and binary
>>> downloads)? Do you need to pass specific options to the compilation =
of
>>> Rust?
>>=20
>> Also, TBH, the documentation on binary package downloading support in =
Poudriere isn't exactly extensive.  Prompted by your message I went =
looking for it and all I could find is some comments at the end of the =
poudriere.conf.sample file.  (Also, also, I'm running -STABLE, and I =
don't believe there is a FreeBSD package repo for that, so I don't know =
how useful the capability would be to me.  I could be wrong, though.)
>=20
> There's this in poudriere-bulk (8):
>=20
>     -b branch
>              Fetch binary packages from a binary package repository =
instead
>              of building them.  The branch argument can be one of the
>              following: latest, quarterly, release_X (where X is the =
minor
>              version of a release, e.g., =E2=80=9C0=E2=80=9D), or url.
>=20
>              With this option poudriere will first try to fetch a =
binary
>              package from the specified binary package repository.
>=20
>              poudriere will only use packages that:
>              =E2=80=A2   come from a repository having the same or =
older version of
>                  pkg.
>              =E2=80=A2   do not have a locally fetched package =
already.
>              =E2=80=A2   are not IGNORED.
>              =E2=80=A2   match the expected local version.
>              =E2=80=A2   match the expected ABI.
>              =E2=80=A2   match the expected runtime and library =
dependencies.
>              =E2=80=A2   match the expected OPTIONS when =
CHECK_CHANGED_OPTIONS is
>                  enabled (default: on).
>              =E2=80=A2   is NOT listed in PACKAGE_FETCH_BLACKLIST.
>              =E2=80=A2   is NOT listed with -C, or -c, when -t is =
used.
>              The -v flag can be used to show these decisions during =
build.
>              Specifing twice will show more details on why some are =
skipped.
>=20
>              WARNING: poudriere has no way of determining differences =
outside
>              of the above list.  That is, if the local ports =
framework, or
>              port, has custom patches or special WITH_FOO knobs (not =
OPTIONS)
>              then it is required to add its name into
>              PACKAGE_FETCH_BLACKLIST.  Otherwise a package may be =
fetched and
>              used that lacks the custom patch or knob.
>=20
>              See PACKAGE_FETCH_BRANCH, PACKAGE_FETCH_URL,
>              PACKAGE_FETCH_BLACKLIST, and PACKAGE_FETCH_WHITELIST in
>              poudriere.conf.sample.  The entries in the lists will be =
matched
>              against package names without versions.
>=20
> The `-vv' option shows the internal logic poudriere uses when =
analyzing available binaries.


Thank you.  This is very helpful as it clarifies when packages will be =
used.  I'll try it out.

Cheers,

Paul.




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1C57F2A3-4E9F-4827-95DF-71036235C6F5>