pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/mk/buildlink3 mk: Improve BUILDLINK_PREFIX performance.
details: https://anonhg.NetBSD.org/pkgsrc/rev/7c648c1cb0e8
branches: trunk
changeset: 388589:7c648c1cb0e8
user: jperkin <jperkin%pkgsrc.org@localhost>
date: Wed Nov 23 10:57:59 2022 +0000
description:
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.
diffstat:
mk/buildlink3/bsd.buildlink3.mk | 6 ++----
1 files changed, 2 insertions(+), 4 deletions(-)
diffs (20 lines):
diff -r 8d7bf4db7333 -r 7c648c1cb0e8 mk/buildlink3/bsd.buildlink3.mk
--- a/mk/buildlink3/bsd.buildlink3.mk Wed Nov 23 10:57:44 2022 +0000
+++ b/mk/buildlink3/bsd.buildlink3.mk Wed Nov 23 10:57:59 2022 +0000
@@ -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 @@
. 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