summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2022-02-21 22:10:56 +0000
committerSam James <sam@gentoo.org>2022-02-21 22:10:56 +0000
commit883b91e25e9f99aed36ed5db29ca34c002a4b614 (patch)
tree3f146a052959555c91da29103b0804bf96f6ec8b /dev-libs/cereal
parentsys-auth/oath-toolkit: add ICU dependency (diff)
downloadgentoo-883b91e25e9f99aed36ed5db29ca34c002a4b614.tar.gz
gentoo-883b91e25e9f99aed36ed5db29ca34c002a4b614.tar.bz2
gentoo-883b91e25e9f99aed36ed5db29ca34c002a4b614.zip
dev-libs/cereal: fix version in headers
Closes: https://bugs.gentoo.org/833817 Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'dev-libs/cereal')
-rw-r--r--dev-libs/cereal/cereal-1.3.1-r1.ebuild (renamed from dev-libs/cereal/cereal-1.3.1.ebuild)4
-rw-r--r--dev-libs/cereal/files/cereal-1.3.1-fix-version.patch14
2 files changed, 18 insertions, 0 deletions
diff --git a/dev-libs/cereal/cereal-1.3.1.ebuild b/dev-libs/cereal/cereal-1.3.1-r1.ebuild
index b8f35d34d146..5e128446aca6 100644
--- a/dev-libs/cereal/cereal-1.3.1.ebuild
+++ b/dev-libs/cereal/cereal-1.3.1-r1.ebuild
@@ -17,6 +17,10 @@ RESTRICT="!test? ( test )"
BDEPEND="doc? ( app-doc/doxygen )"
+PATCHES=(
+ "${FILESDIR}"/${PN}-1.3.1-fix-version.patch
+)
+
src_prepare() {
if ! use doc ; then
sed -i -e '/add_subdirectory(doc/d' CMakeLists.txt || die
diff --git a/dev-libs/cereal/files/cereal-1.3.1-fix-version.patch b/dev-libs/cereal/files/cereal-1.3.1-fix-version.patch
new file mode 100644
index 000000000000..9a9fa109b39d
--- /dev/null
+++ b/dev-libs/cereal/files/cereal-1.3.1-fix-version.patch
@@ -0,0 +1,14 @@
+https://github.com/USCiLab/cereal/issues/748
+https://github.com/symengine/symengine/issues/1886
+https://bugs.gentoo.org/833817
+--- a/include/cereal/version.hpp
++++ b/include/cereal/version.hpp
+@@ -42,7 +42,7 @@
+ //! The minor version
+ #define CEREAL_VERSION_MINOR 3
+ //! The patch version
+-#define CEREAL_VERSION_PATCH 0
++#define CEREAL_VERSION_PATCH 1
+
+ //! The full version as a single number
+ #define CEREAL_VERSION (CEREAL_VERSION_MAJOR * 10000 \