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

From: <bugzilla-noreply_at_freebsd.org>
Date: Sat, 19 Oct 2024 10:03:32 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=281045

Wolfram Schneider <wosch@FreeBSD.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|Open                        |In Progress
                 CC|                            |ngie@FreeBSD.org,
                   |                            |rgrimes@FreeBSD.org

--- Comment #2 from Wolfram Schneider <wosch@FreeBSD.org> ---
I think the problem with 2) is that the symlink test.enc points to an absolute
path outside of the worldstage directory:

cd worldstage/usr/lib/libxo/encoder
test.enc -> /usr/tests/lib/libxo/libenc_test.so

it should be a relative link to:

../../../tests/lib/libxo/libenc_test.so

see
lib/libxo/tests/encoder/Makefile:SYMLINKS+=     ${LIBDIR}/${SHLIB_NAME}
/usr/lib/libxo/encoder/test.enc

commit 6dcfd4368f5b320c8aa023a8b7a2b41c6b0a1f94
Author: Rodney W. Grimes <rgrimes@FreeBSD.org>
Date:   Tue Mar 7 06:11:36 2017 +0000

    The relative symlink fix causes downstream issues for
    EMC DELL Isilon so revert the relative symlink fix
    pending a better solution.

    Reported by:    ngie
    Approved by:    greham (mentor) Implicit as reverting
    MFC after:      1 week

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