pkgsrc-Changes archive

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

CVS commit: pkgsrc/mk/buildlink3



Module Name:    pkgsrc
Committed By:   jperkin
Date:           Wed Nov 23 10:57:59 UTC 2022

Modified Files:
        pkgsrc/mk/buildlink3: bsd.buildlink3.mk

Log Message:
mk: Improve BUILDLINK_PREFIX performance.

Just query LOCALBASE from the package rather than relying on sed to parse
the output of "pkg_info -qp".  Also remove a pointless 'true' line.


To generate a diff of this commit:
cvs rdiff -u -r1.250 -r1.251 pkgsrc/mk/buildlink3/bsd.buildlink3.mk

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/mk/buildlink3/bsd.buildlink3.mk
diff -u pkgsrc/mk/buildlink3/bsd.buildlink3.mk:1.250 pkgsrc/mk/buildlink3/bsd.buildlink3.mk:1.251
--- pkgsrc/mk/buildlink3/bsd.buildlink3.mk:1.250        Sat Jul  9 08:19:18 2022
+++ pkgsrc/mk/buildlink3/bsd.buildlink3.mk      Wed Nov 23 10:57:59 2022
@@ -1,4 +1,4 @@
-# $NetBSD: bsd.buildlink3.mk,v 1.250 2022/07/09 08:19:18 rillig Exp $
+# $NetBSD: bsd.buildlink3.mk,v 1.251 2022/11/23 10:57:59 jperkin Exp $
 #
 # Copyright (c) 2004 The NetBSD Foundation, Inc.
 # All rights reserved.
@@ -396,9 +396,7 @@ BUILDLINK_PKGNAME.${_pkg_}?=        ${_BLNK_PKG
 .  if !defined(BUILDLINK_PREFIX.${_pkg_})
 .    if empty(BUILDLINK_PKGNAME.${_pkg_}:M*not_found)
 BUILDLINK_PREFIX.${_pkg_}!=                                            \
-       ${TRUE} Computing BUILDLINK_PREFIX.${_pkg_:Q};                  \
-       ${_BLNK_PKG_INFO.${_pkg_}} -qp ${BUILDLINK_PKGNAME.${_pkg_}} |  \
-       ${SED}  -e "s,^[^/]*,,;q"
+       ${_BLNK_PKG_INFO.${_pkg_}} -Q LOCALBASE ${BUILDLINK_PKGNAME.${_pkg_}}
 .    else
 BUILDLINK_PREFIX.${_pkg_}=     BUILDLINK_PREFIX.${_pkg_}_not_found
 .    endif



Home | Main Index | Thread Index | Old Index