From: Robin H. Johnson Date: Wed, 20 May 2020 05:06:20 +0000 (-0700) Subject: dev-libs/protobuf-c: compile-fix ensure new enough dev-libs/protobuf X-Git-Url: http://git.tremily.us/gitweb.cgi?a=commitdiff_plain;h=4fe1341cc3226fa721a5e818ba6eeb03c42a009c;p=gentoo.git dev-libs/protobuf-c: compile-fix ensure new enough dev-libs/protobuf If the system has an old dev-libs/protobuf-2* installed, then it will not be upgraded before protobuf-c tries to compile, which leads to error: ``` t/issue330/issue330.protot/issue330/issue330.proto:1:10: Unrecognized syntax identifier "proto3". This parser only recognizes "proto2". ``` Signed-off-by: Robin H. Johnson --- diff --git a/dev-libs/protobuf-c/protobuf-c-1.3.2.ebuild b/dev-libs/protobuf-c/protobuf-c-1.3.2.ebuild index d6909a46a388..3c3dc101011b 100644 --- a/dev-libs/protobuf-c/protobuf-c-1.3.2.ebuild +++ b/dev-libs/protobuf-c/protobuf-c-1.3.2.ebuild @@ -19,9 +19,9 @@ KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~mips ppc ppc64 s390 sparc x86" IUSE="static-libs test" RESTRICT="!test? ( test )" -BDEPEND="dev-libs/protobuf:0 +BDEPEND=">=dev-libs/protobuf-3:0 virtual/pkgconfig[${MULTILIB_USEDEP}]" -DEPEND="dev-libs/protobuf:0=[${MULTILIB_USEDEP}]" +DEPEND=">=dev-libs/protobuf-3:0=[${MULTILIB_USEDEP}]" RDEPEND="${DEPEND}" S="${WORKDIR}/${MY_P}"