sys-libs/pam: require pkgconfig only when USE=nis
authorMike Frysinger <vapier@gentoo.org>
Wed, 19 Aug 2015 15:13:02 +0000 (11:13 -0400)
committerMike Frysinger <vapier@gentoo.org>
Wed, 19 Aug 2015 15:14:04 +0000 (11:14 -0400)
The only library pam uses pkg-config to look up is libtirpc, and we
use that only when USE=nis.  Depend on pkg-config only when that is
enabled to avoid circular dependencies (especially when bootstrapping).

sys-libs/pam/pam-1.2.1-r1.ebuild
sys-libs/pam/pam-1.2.1.ebuild

index 0c86a62dc36d94b881f4014153df9368ab6b79e2..b5fb9fc27b7ea4f936c0043463d2ecfa5426d597 100644 (file)
@@ -29,7 +29,7 @@ DEPEND="${RDEPEND}
        >=sys-devel/libtool-2
        >=sys-devel/flex-2.5.39-r1[${MULTILIB_USEDEP}]
        nls? ( sys-devel/gettext )
-       >=virtual/pkgconfig-0-r1[${MULTILIB_USEDEP}]"
+       nis? ( >=virtual/pkgconfig-0-r1[${MULTILIB_USEDEP}] )"
 PDEPEND="sys-auth/pambase
        vim-syntax? ( app-vim/pam-syntax )"
 RDEPEND="${RDEPEND}
index b540a67138e16655410918d5a553ed62e37c8e50..0a342c59d8ad4fc055beef6cdc447bf3b6f7b673 100644 (file)
@@ -29,7 +29,7 @@ DEPEND="${RDEPEND}
        >=sys-devel/libtool-2
        >=sys-devel/flex-2.5.39-r1[${MULTILIB_USEDEP}]
        nls? ( sys-devel/gettext )
-       >=virtual/pkgconfig-0-r1[${MULTILIB_USEDEP}]"
+       nis? ( >=virtual/pkgconfig-0-r1[${MULTILIB_USEDEP}] )"
 PDEPEND="sys-auth/pambase
        vim-syntax? ( app-vim/pam-syntax )"
 RDEPEND="${RDEPEND}