pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/mk Use pax(1) instead of "cp -R" so we preserve symlin...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/23c4a527f421
branches:  trunk
changeset: 460996:23c4a527f421
user:      jlam <jlam%pkgsrc.org@localhost>
date:      Tue Sep 09 09:15:02 2003 +0000

description:
Use pax(1) instead of "cp -R" so we preserve symlinks instead of following
them.

diffstat:

 mk/buildlink2/bsd.buildlink2.mk |  4 ++--
 mk/buildlink3/bsd.buildlink3.mk |  4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)

diffs (36 lines):

diff -r 7bc0257d15f9 -r 23c4a527f421 mk/buildlink2/bsd.buildlink2.mk
--- a/mk/buildlink2/bsd.buildlink2.mk   Tue Sep 09 09:13:20 2003 +0000
+++ b/mk/buildlink2/bsd.buildlink2.mk   Tue Sep 09 09:15:02 2003 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: bsd.buildlink2.mk,v 1.96 2003/09/02 06:59:50 jlam Exp $
+# $NetBSD: bsd.buildlink2.mk,v 1.97 2003/09/09 09:15:02 jlam Exp $
 #
 # An example package buildlink2.mk file:
 #
@@ -170,7 +170,7 @@
        ${_PKG_SILENT}${_PKG_DEBUG}${RM} -f ${BUILDLINK_X11_DIR}
        ${_PKG_SILENT}${_PKG_DEBUG}${LN} -sf ${BUILDLINK_DIR} ${BUILDLINK_X11_DIR}
 .  if empty(USE_X11_LINKS:M[nN][oO])
-       ${_PKG_SILENT}${_PKG_DEBUG}${CP} -R ${_BLNK_X11_DIR}/* ${BUILDLINK_X11_DIR}
+       ${_PKG_SILENT}${_PKG_DEBUG}cd ${_BLNK_X11_DIR} && ${PAX} -rwpp . ${BUILDLINK_X11_DIR}
 .  endif
 .endif
        ${_PKG_SILENT}${_PKG_DEBUG}${MKDIR} ${BUILDLINK_DIR}/include
diff -r 7bc0257d15f9 -r 23c4a527f421 mk/buildlink3/bsd.buildlink3.mk
--- a/mk/buildlink3/bsd.buildlink3.mk   Tue Sep 09 09:13:20 2003 +0000
+++ b/mk/buildlink3/bsd.buildlink3.mk   Tue Sep 09 09:15:02 2003 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: bsd.buildlink3.mk,v 1.7 2003/09/08 09:18:15 jlam Exp $
+# $NetBSD: bsd.buildlink3.mk,v 1.8 2003/09/09 09:15:03 jlam Exp $
 #
 # An example package buildlink3.mk file:
 #
@@ -290,7 +290,7 @@
        ${_PKG_SILENT}${_PKG_DEBUG}${LN} -sf ${BUILDLINK_DIR} ${BUILDLINK_X11_DIR}
 .  if empty(USE_X11_LINKS:M[nN][oO])
 .    if exists(${_BLNK_X11_LINKS_DIR})
-       ${_PKG_SILENT}${_PKG_DEBUG}${CP} -R ${_BLNK_X11_LINKS_DIR}/* ${BUILDLINK_X11_DIR}
+       ${_PKG_SILENT}${_PKG_DEBUG}cd ${_BLNK_X11_LINKS_DIR} && ${PAX} -rwpp . ${BUILDLINK_X11_DIR}
 .    else
        ${_PKG_SILENT}${_PKG_DEBUG}${ECHO_MSG} "x11-links doesn't seem to be installed."
        ${_PKG_SILENT}${_PKG_DEBUG}${FALSE}



Home | Main Index | Thread Index | Old Index