From 102518876412b49c154cd247f5891927304dd8cc Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Tue, 22 Aug 2023 03:45:27 +0100 Subject: gentoo auto-resync : 22:08:2023 - 03:45:27 --- dev-libs/Manifest.gz | Bin 97337 -> 97504 bytes dev-libs/sentry-native/Manifest | 4 ++ .../files/sentry-native-0.6.5_no-fuzz-test.patch | 20 ++++++++++ dev-libs/sentry-native/metadata.xml | 15 ++++++++ dev-libs/sentry-native/sentry-native-0.6.5.ebuild | 42 +++++++++++++++++++++ 5 files changed, 81 insertions(+) create mode 100644 dev-libs/sentry-native/Manifest create mode 100644 dev-libs/sentry-native/files/sentry-native-0.6.5_no-fuzz-test.patch create mode 100644 dev-libs/sentry-native/metadata.xml create mode 100644 dev-libs/sentry-native/sentry-native-0.6.5.ebuild (limited to 'dev-libs') diff --git a/dev-libs/Manifest.gz b/dev-libs/Manifest.gz index ae554955c6ed..9b4dead973ec 100644 Binary files a/dev-libs/Manifest.gz and b/dev-libs/Manifest.gz differ diff --git a/dev-libs/sentry-native/Manifest b/dev-libs/sentry-native/Manifest new file mode 100644 index 000000000000..f5e7ed908dbf --- /dev/null +++ b/dev-libs/sentry-native/Manifest @@ -0,0 +1,4 @@ +AUX sentry-native-0.6.5_no-fuzz-test.patch 579 BLAKE2B 3aadc2b7841fd582d4f09ebd469d2897fa8d73c1f50b250a03d2d11c05a393bff4c7907bef9ebca9f6c6374676c55fc31f2817b37629793393628bdaaa83f057 SHA512 06a4bc485214ccaa1f5d95059c9ab604e1544e989d0bcbec14ee9b7cecfdb1a393fa86bec0d41d2e5b01b7d28a9f49d61eebaa7260420855140ce3bcb96b2b1d +DIST sentry-native-0.6.5.tar.gz 325573 BLAKE2B 6308bef5cc194c3eb8f6f30d1ee894f3d7528d31604f26d6d54cfcc1545ef561346f60c9f35e80662431ad6145cf27a4adac70255b01f230551a541fd4dae709 SHA512 0c0be06f72f53277c9a34ca6514dc96ad14b4239ee92ae65e00d45a515ce13bc314982a651c476ddbb453079ea3fc3fa0bb75cc683dce046f69f0fe1d024f32e +EBUILD sentry-native-0.6.5.ebuild 974 BLAKE2B 8862c291c18da6c160ed90b9eb434ac4ac19135c77af7208232ac9095cb7f5e1126c1f8525a3457e6bff48231c3d9d070690b5517e2c01780f8bb78db4815809 SHA512 ab200b42b2b03182b9a955aa46690528724479c57caccd23c573fa038d1179c6032dabb16e1ee6345d24bf719ea833e092735deada7bfdd52e3e7e94ff14eeb1 +MISC metadata.xml 517 BLAKE2B 03f53fc9cc64e473f8b10fa7d37e932d887f6aea218b39dc43f52f7a87c8f36a816df3dced2390808556822fc0bc785a37133ea5824e18af6dcbbde636a83495 SHA512 846ffe6b02e007df0e694986c83c084fc71b64aec38f59976ca36d80b8b78efafb75663211eea6ec22c18a3a18cc9f26ea2fe7cf16b76119183c204055a49c17 diff --git a/dev-libs/sentry-native/files/sentry-native-0.6.5_no-fuzz-test.patch b/dev-libs/sentry-native/files/sentry-native-0.6.5_no-fuzz-test.patch new file mode 100644 index 000000000000..70231c02da9e --- /dev/null +++ b/dev-libs/sentry-native/files/sentry-native-0.6.5_no-fuzz-test.patch @@ -0,0 +1,20 @@ +On the one hand the bundled upstream README only mentions sentry_test_unit +as a test suite meant for the users to run, on the other comments +in sentry_fuzz_json sources state that it has to be built in a very +special - and performance-killing - way in order to work. + +--- a/tests/unit/CMakeLists.txt ++++ b/tests/unit/CMakeLists.txt +@@ -89,6 +89,7 @@ + + add_test(NAME sentry_test_unit COMMAND sentry_test_unit) + ++if(0) + add_executable(sentry_fuzz_json + ${SENTRY_SOURCES} + fuzz.c +@@ -114,3 +115,4 @@ + endif() + + add_test(NAME sentry_fuzz_json COMMAND sentry_fuzz_json) ++endif() diff --git a/dev-libs/sentry-native/metadata.xml b/dev-libs/sentry-native/metadata.xml new file mode 100644 index 000000000000..aecfa74c176a --- /dev/null +++ b/dev-libs/sentry-native/metadata.xml @@ -0,0 +1,15 @@ + + + + + marecki@gentoo.org + Marek Szuba + + + getsentry/sentry-native + + + Use dev-util/breakpad as the crash handler + Enable support for automated uploading of crash reports + + diff --git a/dev-libs/sentry-native/sentry-native-0.6.5.ebuild b/dev-libs/sentry-native/sentry-native-0.6.5.ebuild new file mode 100644 index 000000000000..c3aebc25ea41 --- /dev/null +++ b/dev-libs/sentry-native/sentry-native-0.6.5.ebuild @@ -0,0 +1,42 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit cmake + +DESCRIPTION="Sentry SDK for C, C++ and native applications" +HOMEPAGE="https://sentry.io/ https://github.com/getsentry/sentry-native" +SRC_URI="https://github.com/getsentry/${PN}/archive/refs/tags/${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64" +IUSE="+breakpad +curl test" + +RESTRICT="!test? ( test )" + +RDEPEND=" + breakpad? ( dev-util/breakpad ) + curl? ( net-misc/curl ) +" +DEPEND="${RDEPEND}" + +PATCHES=( + "${FILESDIR}"/${PN}-0.6.5_no-fuzz-test.patch +) + +src_configure() { + local mycmakeargs=( + -DSENTRY_BUILD_EXAMPLES=OFF + -DSENTRY_BACKEND=$(usex breakpad "breakpad" "inproc") + -DSENTRY_BUILD_TESTS=$(usex test) + -DSENTRY_TRANSPORT=$(usex curl "curl" "none") + ) + # Avoid "not used by the project" warnings when USE=-breakpad + if use breakpad; then + mycmakeargs+=( -DSENTRY_BREAKPAD_SYSTEM=ON ) + fi + + cmake_src_configure +} -- cgit v1.2.3