]> Zhao Yanbai Git Server - minix.git/commitdiff
use ${PKGPATH} instead of ${CATEGORIES}/${PKGBASE}
authorThomas Cort <tcort@minix3.org>
Mon, 27 Jun 2011 16:01:38 +0000 (16:01 +0000)
committerBen Gras <ben@minix3.org>
Mon, 27 Jun 2011 19:18:47 +0000 (21:18 +0200)
Some packages are in multiple categories (one example is
devel/libgetopt). This broke the IF statement because
${CATEGORIES} got expanded to "cat1 cat2". The proper
variable to use is PKGPATH.

share/mk/pkgsrchooks.mk

index 8e61f9fee867ee4fce3256e73c78fbf437e4a594..ad4a6a36a2932e300b6521290a3eb63fb0ec83de 100644 (file)
@@ -14,7 +14,7 @@ PKG_REQUIRES_MINIX_LIBC=no
 
 # Search PKGS_REQUIRING_MINIX_LIBC to see if it needs Minix libc
 .for PKG_REQUIRING_MINIX_LIBC in ${PKGS_REQUIRING_MINIX_LIBC}
-.if "${PKG_REQUIRING_MINIX_LIBC}" == "${CATEGORIES}/${PKGBASE}"
+.if "${PKG_REQUIRING_MINIX_LIBC}" == "${PKGPATH}"
 PKG_REQUIRES_MINIX_LIBC=yes
 .endif
 .endfor