freebsd / poudriere

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

poudriere-bulk(8): … Finished …: Failed: leftovers #1162

Open grahamperrin opened 4 months ago

grahamperrin commented 4 months ago

Prerequisites

Describe the bug

It seems that poudriere lost the ability to build some types of port, for example:

[00:16:49] [01] [00:02:32] Finished x11/nvidia-driver-470 | nvidia-driver-470-470.161.03_1: Failed: leftovers

How to reproduce

Steps to reproduce the behavior:

  1. FreeBSD-CURRENT with an up-to-date jail named main
  2. poudriere bulk -j main -J 4 -Ct emulators/virtualbox-ose-kmod sysutils/sysctlbyname-improved-kmod x11/nvidia-driver-470 ports-mgmt/poudriere-devel
  3. success for poudriere-devel
  4. failures for virtualbox-ose-kmod, sysctlbyname-improved-kmod, and nvidia-driver-470.

2024-07-08 example.txt

Expected behavior

  1. success for the two kmods, and for the NVIDIA driver.

Environment

Additional context

I sought help a few times before opening this issue, as far as I can tell the first enquiry was 2nd June:

The prior version bump for me was on 2024-04-07, I would have built the three ports successfully not long afterwards.

grahamperrin commented 3 months ago

Not a show-stopper – I can build and install the required ports without poudriere – but I struggle to understand this bug (if, indeed, it is a bug).

Essentially:

I did make various guesses before opening this issue, none of what I removed/cleaned was a workaround.


Today I experimented with poudriere 3.4.1_1 (instead of poudriere-devel): the same, failure with leftovers.

2024-07-25 08-3 poudriere instead of poudriere-devel.txt

I reinstalled poudriere-devel.

grahamperrin commented 3 months ago

Also failing:

bdrewery commented 3 months ago

Did you check the log file for the failed port? Did it have leftovers? The bulk -t flag is causing it to test for leftovers.

grahamperrin commented 2 months ago

The tail of nvidia-driver-470-470.161.03_1.log:

…
=======================<phase: deinstall      >============================
===== env: DEVELOPER_MODE=yes STRICT_DEPENDS=yes USER=root UID=0 GID=0
===>  Deinstalling for nvidia-driver-470
===>   Deinstalling nvidia-driver-470-470.161.03_1
Updating database digests format: .......... done
Checking integrity... done (0 conflicting)
Deinstallation has been requested for the following 1 packages (of 0 packages in the universe):

Installed packages to be REMOVED:
        nvidia-driver-470: 470.161.03_1

Number of packages to be removed: 1

The operation will free 215 MiB.
[main-default-job-01] [1/1] Deinstalling nvidia-driver-470-470.161.03_1...
[main-default-job-01] [1/1] Deleting files for nvidia-driver-470-470.161.03_1: .......... done
===========================================================================
=>> Checking for extra files and directories
=>> Error: Files or directories left over:
@dir /%%KMODDIR%%
=>> Cleaning up wrkdir
===>  Cleaning for nvidia-driver-470-470.161.03_1
build of x11/nvidia-driver-470 | nvidia-driver-470-470.161.03_1 ended at Mon Jul  8 19:14:50 BST 2024
build time: 00:02:32
!!! build failure encountered !!!

Earlier in the file:

KMODDIR="boot/modules"

/usr/local/poudriere/jails/main/boot exists, /usr/local/poudriere/jails/main/boot/modules does not.

I'm lost, sorry …