Bug 269470

Summary: Dependency loop detected: doxygen, texlive-base, libgd, libheif, aom, libjxl, openexr, py39-breathe
Product: Ports & Packages Reporter: David P. Discher <dpd>
Component: Individual Port(s)Assignee: freebsd-ports-bugs (Nobody) <ports-bugs>
Status: Closed Overcome By Events    
Severity: Affects Many People    
Priority: ---    
Version: Latest   
Hardware: Any   
OS: Any   

Description David P. Discher 2023-02-10 17:46:26 UTC
Scenario: 
FreeBSD 13.1-stable (13-n251454-1a2920e96aac) attempting any size poudriere bulk build, finds a Dependency loop.

[00:01:13] Error: Dependency loop detected:
These packages depend on each other: doxygen-1.9.6,2 texlive-base-20210325_13 libgd-2.3.3_5,1 libheif-1.14.2 aom-3.6.0 libjxl-0.8.1 openexr-3.1.5 py39-breathe-4.34.0


Process: 
sudo poudriere ports -u
sudo poudriere bulk -j 13-1-stable -p default -a

Logging:
[ pts/0 dpdtech borg:~ ]
[ dpd ] > sudo poudriere ports -u
[00:00:00] Updating portstree "default" with portsnap...Looking up portsnap.FreeBSD.org mirrors... 5 mirrors found.
Fetching snapshot tag from dualstack.aws.portsnap.freebsd.org... done.
Fetching snapshot metadata... done.
Updating from Fri Feb 10 15:54:14 UTC 2023 to Fri Feb 10 16:38:54 UTC 2023.
Fetching 0 metadata patches. done.
Applying metadata patches... done.
Fetching 0 metadata files... done.
Fetching 2 patches.
(2/2) 100.00%  done.
done.
Applying patches...
done.
Fetching 0 new ports or files... done.
Removing old files and directories... done.
Extracting new files:
/usr/local/poudriere/ports/default/devel/py-virtualenv/
/usr/local/poudriere/ports/default/math/xspread/
Building new INDEX files... done.
 done
[ .. ]
[ pts/0 dpdtech borg:/usr/local/etc/poudriere.d ]
[ dpd ] > sudo poudriere bulk -j 13-1-stable -p default -a
[00:00:00] Creating the reference jail... done
[00:00:02] Mounting system devices for 13-1-stable-default
[00:00:02] Warning: Using packages from previously failed, or uncommitted, build: /usr/local/poudriere/data/packages/13-1-stable-default/.building
[00:00:02] Mounting ports from: /usr/local/poudriere/ports/default
[00:00:02] Mounting packages from: /usr/local/poudriere/data/packages/13-1-stable-default
[00:00:02] Mounting distfiles from: /z/freebsd/distfiles
[00:00:02] Copying /var/db/ports from: /usr/local/poudriere/etc/poudriere.d/options
[00:00:02] Appending to make.conf: /usr/local/etc/poudriere.d/make.conf
/etc/resolv.conf -> /usr/local/poudriere/data/.m/13-1-stable-default/ref/etc/resolv.conf
[00:00:02] Starting jail 13-1-stable-default
[00:00:02] Will build as nobody:nobody (65534:65534)
[00:00:02] Logs: /usr/local/poudriere/data/logs/bulk/13-1-stable-default/2023-02-10_17h37m21s
[00:00:02] Loading MOVED for /usr/local/poudriere/data/.m/13-1-stable-default/ref/usr/ports
[00:00:03] Ports supports: FLAVORS SELECTED_OPTIONS
[00:00:03] Gathering ports metadata
[00:00:46] Calculating ports order and dependencies
[00:01:05] Trimming IGNORED and blacklisted ports
[...]
[00:01:09] pkg bootstrap missing: unable to inspect existing packages, cleaning all packages... done
[00:01:09] Sanity checking the repository
[00:01:09] Deleting stale symlinks... done
[00:01:09] Deleting empty directories... done
[00:01:12] Unqueueing existing packages
[00:01:12] Sanity checking build queue
[00:01:13] Error: Dependency loop detected:
These packages depend on each other: doxygen-1.9.6,2 texlive-base-20210325_13 libgd-2.3.3_5,1 libheif-1.14.2 aom-3.6.0 libjxl-0.8.1 openexr-3.1.5 py39-breathe-4.34.0
[13-1-stable-default] [2023-02-10_17h37m21s] [crashed:] Queued: 33333 Built: 0     Failed: 0     Skipped: 58    Ignored: 428   Fetched: 0     Tobuild: 32847  Time: 00:01:11
[00:01:13] Logs: /usr/local/poudriere/data/logs/bulk/13-1-stable-default/2023-02-10_17h37m21s
[00:01:13] Cleaning up
[00:01:13] Unmounting file systems
Exiting with status 1
Comment 1 David P. Discher 2023-02-14 17:01:42 UTC
I believe this had to do with the renaming of SVT to SVTAV1 in the ports tree , and the cached options I had in poudriere

Solution:

sudo poudriere options -r print/texlive-base multimedia/aom graphics/openexr graphics/libjxl graphics/libheif graphics/gd devel/doxygen graphics/openexr


This resolved the issue.