[Bug 281045] cd /usr/src && make packages creates stale symlinks

From: <bugzilla-noreply_at_freebsd.org>
Date: Sun, 25 Aug 2024 08:51:00 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=281045

            Bug ID: 281045
           Summary: cd /usr/src && make packages creates stale symlinks
           Product: Base System
           Version: 15.0-CURRENT
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: bin
          Assignee: bugs@FreeBSD.org
          Reporter: wosch@FreeBSD.org

After re-building a system, I tried to run `make packages'. It created 3 stale
symlinks:

stale symlink detected: lrwxrwxr-x  1 wosch wheel 21 Aug 24 18:00
/scratch/tmp/wosch/freebsd/home/wosch/projects/freebsd-src/amd64.amd64/worldstage/etc/os-release
-> ../var/run/os-release
stale symlink detected: lrwxrwxr-x  1 wosch wheel 35 Aug 24 18:02
/scratch/tmp/wosch/freebsd/home/wosch/projects/freebsd-src/amd64.amd64/worldstage/usr/lib/libxo/encoder/test.enc
-> /usr/tests/lib/libxo/libenc_test.so
stale symlink detected: lrwxrwxr-x  1 wosch wheel 14 Aug 24 18:01
/scratch/tmp/wosch/freebsd/home/wosch/projects/freebsd-src/amd64.amd64/worldstage/usr/tests/local
-> ../local/tests

How to repeat:

make -j$(nproc) buildworld
make -j$(nproc) buildkernel
make -j$(nproc) packages
./tools/build/stale-symlink-buildworld.sh

-- 
You are receiving this mail because:
You are the assignee for the bug.