summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorriastradh <riastradh@pkgsrc.org>2022-04-04 11:40:20 +0000
committerriastradh <riastradh@pkgsrc.org>2022-04-04 11:40:20 +0000
commit02c1c3216188c4ab3933fbcef65d67c9f2f90c80 (patch)
tree16908398991770e4783240c4b4e89d0279ed2d4e
parentaa930ef0996105dbba2b3ddb57d6f1388743b076 (diff)
downloadpkgsrc-02c1c3216188c4ab3933fbcef65d67c9f2f90c80.tar.gz
mk/pkgformat/pkg: Fix deinstall of cross-built package.
-rw-r--r--mk/pkgformat/pkg/deinstall.mk6
1 files changed, 5 insertions, 1 deletions
diff --git a/mk/pkgformat/pkg/deinstall.mk b/mk/pkgformat/pkg/deinstall.mk
index 372d2981a65..fb60ff33af6 100644
--- a/mk/pkgformat/pkg/deinstall.mk
+++ b/mk/pkgformat/pkg/deinstall.mk
@@ -1,4 +1,4 @@
-# $NetBSD: deinstall.mk,v 1.3 2017/08/19 00:30:19 jlam Exp $
+# $NetBSD: deinstall.mk,v 1.4 2022/04/04 11:40:20 riastradh Exp $
# Set the appropriate flags to pass to pkg_delete(1) based on the value
# of DEINSTALLDEPENDS (see pkgsrc/mk/install/deinstall.mk).
@@ -25,6 +25,10 @@ MAKEFLAGS.su-deinstall+= _UPDATE_RUNNING=YES
. endif
.endif
+.if !empty(USE_CROSS_COMPILE:M[yY][eE][sS])
+_PKG_ARGS_DEINSTALL+= -p ${_CROSS_DESTDIR}${PREFIX}
+.endif
+
# _pkgformat-deinstall:
# Removes a package from the system.
#