[Bug 76362] [patch] sys directory link points to wrong location

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Sat Nov 14 22:10:46 UTC 2015


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=76362

NGie Cooper <ngie at FreeBSD.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Assignee|freebsd-bugs at FreeBSD.org    |ngie at FreeBSD.org

--- Comment #4 from NGie Cooper <ngie at FreeBSD.org> ---
(In reply to NGie Cooper from comment #3)

This works with relative symlinks, i.e. DESTDIR != /:

$ svn diff etc/
Index: etc/Makefile
===================================================================
--- etc/Makefile    (revision 290831)
+++ etc/Makefile    (working copy)
@@ -408,7 +408,7 @@
                    ${METALOG.add} ; \
        done; true
 .endif
-       ${INSTALL_SYMLINK} usr/src/sys ${DESTDIR}/sys
+       ${INSTALL_SYMLINK} ${SRCTOP:C/^\///}/sys ${DESTDIR}/sys
 .if ${MK_MAN} != "no"
        cd ${DESTDIR}${SHAREDIR}/man; \
        for mandir in man*; do \

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


More information about the freebsd-bugs mailing list