commit: 850f8f135f7412585de885a1ca129d2eada3f67f
Author: Paul Zander <negril.nx+gentoo <AT> gmail <DOT> com>
AuthorDate: Thu Mar 6 19:30:26 2025 +0000
Commit: Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sat Apr 5 00:39:52 2025 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=850f8f13
dev-libs/protobuf-c: 1.5.1 fix build with protobuf-30
Signed-off-by: Paul Zander <negril.nx+gentoo <AT> gmail.com>
Signed-off-by: Sam James <sam <AT> gentoo.org>
dev-libs/protobuf-c/Manifest | 1 +
dev-libs/protobuf-c/protobuf-c-1.5.1.ebuild | 10 +++++++++-
2 files changed, 10 insertions(+), 1 deletion(-)
diff --git a/dev-libs/protobuf-c/Manifest b/dev-libs/protobuf-c/Manifest
index 86100d8b40da..9d41680869dd 100644
--- a/dev-libs/protobuf-c/Manifest
+++ b/dev-libs/protobuf-c/Manifest
@@ -1,3 +1,4 @@
DIST protobuf-c-1.4.1.tar.gz 513596 BLAKE2B
b5e87a3154863581b81790a26b6b522c2b3ad138e966053f20c6264b4a7677d6c5bff8e27faa7c6cfa9e982b72b06e2f518a3def9f6db13241c3cb3ee9afc8f6
SHA512
190a4aa5c607853e6bf860b0974deb21e4f7f6209e810251eaca9612b59ea676779b0ca217fb1572914ffb8de3315a7d24f162b14d447ee671a9adc5b1271e41
DIST protobuf-c-1.5.0.tar.gz 507251 BLAKE2B
7b428655901f4fd74b67b75419552e7c02065a5291aed4dcc1d55b98c986caa9ccf846eb5e98e0954420c3e5bea559b0078843e00daa7b5c63465eec21e28204
SHA512
175c9fc901cab88308730eea982dd62b1e0decdceb80aa53be163f17a440b4acecb834a784beab5cd71186413a322a323f4539758a8727ca51801cf92f9bd3da
+DIST protobuf-c-1.5.1-protobuf-30.patch 57952 BLAKE2B
abd28312d438cacbc056751e265e74e8a987f8f4dceab28b6ef2b628696eed7624bc9d0ac0a67b58cb87383519212541f3e119dd4bb28553c2bd2c5e663ed5a8
SHA512
ae6e2cc0a8141d8143451a87a84ae9140d5e82817f2312025dd426d892c7aa3b5fc363e44f76486608322712eabccaa75afa06ff4bfb7829bb265ab27e11c611
DIST protobuf-c-1.5.1.tar.gz 531693 BLAKE2B
f3c8688e6d88999b24c1192a91fd96855233c811c9c87534983cca14d06158cf48f729775c529a182326c97c41184ef86fcc26e9ed706e49cf1e7994ed573b61
SHA512
35d4de5562b79056f46320552a27b8e476b92466d0a2f5c697f41b0e1c437bb0b0819c39f71accf942b74ecfcea64e42e0a1e67792eeff4a7e01fbafd84488b5
diff --git a/dev-libs/protobuf-c/protobuf-c-1.5.1.ebuild
b/dev-libs/protobuf-c/protobuf-c-1.5.1.ebuild
index 627008fb260e..96330ef4c6c8 100644
--- a/dev-libs/protobuf-c/protobuf-c-1.5.1.ebuild
+++ b/dev-libs/protobuf-c/protobuf-c-1.5.1.ebuild
@@ -12,7 +12,11 @@ MY_P="${PN}-${MY_PV}"
DESCRIPTION="Protocol Buffers implementation in C"
HOMEPAGE="https://github.com/protobuf-c/protobuf-c"
-SRC_URI="https://github.com/${PN}/${PN}/releases/download/v${MY_PV}/${MY_P}.tar.gz"
+SRC_URI="
+
https://github.com/${PN}/${PN}/releases/download/v${MY_PV}/${MY_P}.tar.gz
+
https://github.com/protobuf-c/protobuf-c/commit/25174818178d4761f971dab1c47083b892297dc2.patch
+ -> ${PN}-1.5.1-protobuf-30.patch
+"
S="${WORKDIR}/${MY_P}"
LICENSE="BSD-2"
@@ -35,6 +39,10 @@ RDEPEND="${DEPEND}
"
src_prepare() {
+ if has_version ">=dev-libs/protobuf-30"; then
+ eapply "${DISTDIR}/${PN}-1.5.1-protobuf-30.patch"
+ fi
+
default
eautoreconf
}