From 4c7214ce7f459d02eafce3e13cfecb6db8ebec19 Mon Sep 17 00:00:00 2001 From: Ionen Wolkens Date: Thu, 11 Apr 2024 23:02:22 -0400 Subject: app-arch/snappy: bump subslot's fudge value due to ABI breakage Breaks at least dev-qt/qtwebengine:6 if not rebuilt, aka libQt6WebEngineCore.so.6: undefined reference to `snappy::RawCompress(char const*, unsigned long, char*, unsigned long*) * ABI: libsnappy.so.1(64) func(+6,-5) [BREAKING] ^ includes RawCompress Signed-off-by: Ionen Wolkens --- app-arch/snappy/snappy-1.2.0-r1.ebuild | 49 ++++++++++++++++++++++++++++++++++ app-arch/snappy/snappy-1.2.0.ebuild | 49 ---------------------------------- 2 files changed, 49 insertions(+), 49 deletions(-) create mode 100644 app-arch/snappy/snappy-1.2.0-r1.ebuild delete mode 100644 app-arch/snappy/snappy-1.2.0.ebuild diff --git a/app-arch/snappy/snappy-1.2.0-r1.ebuild b/app-arch/snappy/snappy-1.2.0-r1.ebuild new file mode 100644 index 000000000000..a2331f1ef08a --- /dev/null +++ b/app-arch/snappy/snappy-1.2.0-r1.ebuild @@ -0,0 +1,49 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit cmake-multilib + +DESCRIPTION="A high-speed compression/decompression library by Google" +HOMEPAGE="https://github.com/google/snappy" +SRC_URI="https://github.com/google/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="BSD" +# ${PV%%.*}.FUDGE where FUDGE is incremented if ABI is broken without a new SONAME +# Please use abidiff on bumps. +SLOT="0/${PV%%.*}.2" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~x64-macos" +IUSE="cpu_flags_x86_avx cpu_flags_x86_avx2 test" +RESTRICT="!test? ( test )" + +DEPEND="test? ( dev-cpp/gtest )" + +DOCS=( format_description.txt framing_format.txt NEWS README.md ) + +PATCHES=( + "${FILESDIR}/${PN}-1.2.0_external-gtest.patch" + "${FILESDIR}/${PN}-1.2.0_no-werror.patch" + "${FILESDIR}/${PN}-1.2.0_remove-no-rtti.patch" +) + +multilib_src_configure() { + local mycmakeargs=( + -DCMAKE_CXX_STANDARD=14 # Latest gtest needs -std=c++14 or newer + -DSNAPPY_BUILD_TESTS=$(usex test) + -DSNAPPY_REQUIRE_AVX=$(usex cpu_flags_x86_avx) + -DSNAPPY_REQUIRE_AVX2=$(usex cpu_flags_x86_avx2) + -DSNAPPY_BUILD_BENCHMARKS=OFF + # Options below are related to benchmarking, that we disable. + -DHAVE_LIBZ=NO + -DHAVE_LIBLZO2=NO + -DHAVE_LIBLZ4=NO + ) + cmake_src_configure +} + +multilib_src_test() { + # run tests directly to get verbose output + cd "${S}" || die + "${BUILD_DIR}"/snappy_unittest || die +} diff --git a/app-arch/snappy/snappy-1.2.0.ebuild b/app-arch/snappy/snappy-1.2.0.ebuild deleted file mode 100644 index c1a06ba97416..000000000000 --- a/app-arch/snappy/snappy-1.2.0.ebuild +++ /dev/null @@ -1,49 +0,0 @@ -# Copyright 1999-2024 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -inherit cmake-multilib - -DESCRIPTION="A high-speed compression/decompression library by Google" -HOMEPAGE="https://github.com/google/snappy" -SRC_URI="https://github.com/google/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" - -LICENSE="BSD" -# ${PV%%.*}.FUDGE where FUDGE is incremented if ABI is broken without a new SONAME -# Please use abidiff on bumps. -SLOT="0/${PV%%.*}.1" -KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~x64-macos" -IUSE="cpu_flags_x86_avx cpu_flags_x86_avx2 test" -RESTRICT="!test? ( test )" - -DEPEND="test? ( dev-cpp/gtest )" - -DOCS=( format_description.txt framing_format.txt NEWS README.md ) - -PATCHES=( - "${FILESDIR}/${PN}-1.2.0_external-gtest.patch" - "${FILESDIR}/${PN}-1.2.0_no-werror.patch" - "${FILESDIR}/${PN}-1.2.0_remove-no-rtti.patch" -) - -multilib_src_configure() { - local mycmakeargs=( - -DCMAKE_CXX_STANDARD=14 # Latest gtest needs -std=c++14 or newer - -DSNAPPY_BUILD_TESTS=$(usex test) - -DSNAPPY_REQUIRE_AVX=$(usex cpu_flags_x86_avx) - -DSNAPPY_REQUIRE_AVX2=$(usex cpu_flags_x86_avx2) - -DSNAPPY_BUILD_BENCHMARKS=OFF - # Options below are related to benchmarking, that we disable. - -DHAVE_LIBZ=NO - -DHAVE_LIBLZO2=NO - -DHAVE_LIBLZ4=NO - ) - cmake_src_configure -} - -multilib_src_test() { - # run tests directly to get verbose output - cd "${S}" || die - "${BUILD_DIR}"/snappy_unittest || die -} -- cgit v1.2.3-65-gdbad