freebsd / poudriere

Port/Package build and test system
https://github.com/freebsd/poudriere/wiki
BSD 2-Clause "Simplified" License
379 stars 161 forks source link

Ctrl-C during 'Stashing existing package repository' causes poudriere to begin to rebuild all packages from scratch #1096

Closed yurivict closed 2 months ago

yurivict commented 7 months ago

Before this Ctrl-C poudriere had all depending packages built and was only building net/sing-box.

After this Ctrl-C poudriere is rebuilding everything beginning with ports-mgmt/pkg:

[yuri@yv /usr/ports/net/sing-box]$ run-one-in-poudriere-13-amd64 net/sing-box
[00:00:00] Creating the reference jail... done
[00:00:00] Mounting system devices for 13amd64-local-workstation
[00:00:00] Mounting ports/packages/distfiles
[00:00:00] Stashing existing package repository
^C[00:00:00] Error: Signal SIGINT caught, cleaning up and exiting
[00:00:00] Cleaning up
[00:00:01] Unmounting file systems
m[yuri@yv /usr/ports/net/sing-box]$ make clean
===>  Cleaning for sing-box-1.7.4
[yuri@yv /usr/ports/net/sing-box]$ run-one-in-poudriere-13-amd64 net/sing-box
[00:00:00] Creating the reference jail... done
[00:00:00] Mounting system devices for 13amd64-local-workstation
[00:00:00] Mounting ports/packages/distfiles
[00:00:00] Using packages from previously failed build: /usr/local/poudriere/data/packages/13amd64-local-workstation/.building
[00:00:00] Mounting packages from: /usr/local/poudriere/data/packages/13amd64-local-workstation
[00:00:00] Appending to make.conf: /usr/local/etc/poudriere.d/13amd64-make.conf
/etc/resolv.conf -> /usr/local/poudriere/data/.m/13amd64-local-workstation/ref/etc/resolv.conf
[00:00:00] Starting jail 13amd64-local-workstation
[00:00:00] Will build as nobody: (65534:65534)
[00:00:01] Logs: /usr/local/poudriere/data/logs/bulk/13amd64-local-workstation/2023-12-08_17h41m46s
[00:00:01] Loading MOVED for /usr/local/poudriere/data/.m/13amd64-local-workstation/ref/usr/ports
[00:00:03] Ports supports: FLAVORS SELECTED_OPTIONS
[00:00:03] Gathering ports metadata
[00:00:03] Calculating ports order and dependencies
[00:00:03] pkg package missing, skipping sanity
[00:00:03] Skipping incremental rebuild and repository sanity checks
[00:00:03] Cleaning the build queue
[00:00:03] Sanity checking build queue
[00:00:03] Processing PRIORITY_BOOST
[00:00:03] Balancing pool
[00:00:03] Recording filesystem state for prepkg... done
[00:00:04] Building 5 packages using 5 builders
[00:00:04] Starting/Cloning builders
[00:00:05] Hit CTRL+t at any time to see build progress and stats
[00:00:05] [01] [00:00:00] Building ports-mgmt/pkg | pkg-1.20.9
^C[00:00:28] Error: Signal SIGINT caught, cleaning up and exiting
[00:00:28] Cleaning up
13amd64-local-workstation: removed
13amd64-local-workstation-n: removed
[00:00:30] Unmounting file systems
[yuri@yv /usr/ports/net/sing-box]$ run-one-in-poudriere-13-amd64 net/sing-box
[00:00:00] Creating the reference jail... done
[00:00:00] Mounting system devices for 13amd64-local-workstation
[00:00:00] Mounting ports/packages/distfiles
[00:00:00] Using packages from previously failed build: /usr/local/poudriere/data/packages/13amd64-local-workstation/.building
[00:00:00] Mounting packages from: /usr/local/poudriere/data/packages/13amd64-local-workstation
[00:00:00] Appending to make.conf: /usr/local/etc/poudriere.d/13amd64-make.conf
/etc/resolv.conf -> /usr/local/poudriere/data/.m/13amd64-local-workstation/ref/etc/resolv.conf
[00:00:00] Starting jail 13amd64-local-workstation
[00:00:00] Will build as nobody: (65534:65534)
[00:00:01] Logs: /usr/local/poudriere/data/logs/bulk/13amd64-local-workstation/2023-12-08_17h42m18s
[00:00:01] Loading MOVED for /usr/local/poudriere/data/.m/13amd64-local-workstation/ref/usr/ports
[00:00:02] Ports supports: FLAVORS SELECTED_OPTIONS
[00:00:02] Gathering ports metadata
[00:00:02] Calculating ports order and dependencies
[00:00:03] pkg package missing, skipping sanity
[00:00:03] Skipping incremental rebuild and repository sanity checks
[00:00:03] Cleaning the build queue
[00:00:03] Sanity checking build queue
[00:00:03] Processing PRIORITY_BOOST
[00:00:03] Balancing pool
[00:00:03] Recording filesystem state for prepkg... done
[00:00:03] Building 5 packages using 5 builders
[00:00:03] Starting/Cloning builders
[00:00:04] Hit CTRL+t at any time to see build progress and stats
[00:00:04] [01] [00:00:00] Building ports-mgmt/pkg | pkg-1.20.9
[00:03:21] [01] [00:03:17] Finished ports-mgmt/pkg | pkg-1.20.9: Success
[00:03:22] [01] [00:00:00] Building lang/perl5.36 | perl5-5.36.3_1
[00:03:22] [02] [00:00:00] Building lang/go120 | go120-1.20.8

Environment