Re: Poudriere: when fetching a package with porttree from a git source, the generation of logs is slow

Mark Millard <[email protected]>
Newsgroups gmane.os.freebsd.devel.ports
Message-ID <[email protected]>
On 4/9/26 02:26, Tatsuki Makino wrote:
> Hello.
> This contains the hope that it will be fixed, but it is mostly like a
> memorandum :)
> 
> As stated in the subject, it is slow :)
> For example, the following log will be generated at the beginning.
> 
> build started at Thu Apr  9 08:38:58 UTC 2026
> port directory: /usr/ports/graphics/py-pycairo
> package name: py314-pycairo-1.29.0
> building for: FreeBSD src-git-fetch 14.4-STABLE FreeBSD 14.4-STABLE
> 1404500 amd64
> maintained by: desktop@
> Makefile datestamp: -rw-r--r--  1 root wheel 1269 Feb 13 05:07 /usr/
> ports/graphics/py-pycairo/Makefile
> Ports top last git commit: 86aef581b030dd8330093557ff2c40474fc72f92
> Ports top unclean checkout: yes
> Port dir last git commit: b01ea745e968cda7c20fab0502c5119bdf533fb4
> Port dir unclean checkout: no
> Poudriere version: poudriere-git-3.4.6
> Host OSVERSION: 1404500
> Jail OSVERSION: 1404500
> Job Id:
> 
> Among these logs, the 'Port dir last git commit' line may take time to
> obtain the commit hash, but it does not necessarily match the package
> that was fetched when it was built.
> Therefore, when the package is fetched, it seems preferable that the
> operation of that part is omitted.

My understanding was that when the ports tree ( /usr/ports/ above ) does
not match the upstream version that can be fetched, including for any
dependency mismatches or option mismatches, poudriere uses the the port
tree based source to do that package's build --instead of installing and
using the mismatched upstream build.

Presuming that for the below . . .

Testing if there is a match vs. not could involve checking for local
changes: "Port dir unclean checkout: yes" would indicate a mismatch that
would avoid using a mismatched fetch.


(The command used to do the bulk build was not shown so I could not
reference it. If I've made bad assumptions about it, let me know.)

> 
> Regards.
> 
> 
> 


-- 
===
Mark Millard
marklmi at yahoo.com
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.