public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "David Roman" <davidroman96@gmail.com>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/proj/guru:master commit in: sys-fs/dwarfs/
Date: Tue, 13 Feb 2024 16:32:44 +0000 (UTC)	[thread overview]
Message-ID: <1707839130.e7bd17a2a0708ceddd78cdb40204f84b5865064a.davidroman@gentoo> (raw)

commit:     e7bd17a2a0708ceddd78cdb40204f84b5865064a
Author:     Denis Reva <denis7774 <AT> gmail <DOT> com>
AuthorDate: Tue Feb 13 15:44:58 2024 +0000
Commit:     David Roman <davidroman96 <AT> gmail <DOT> com>
CommitDate: Tue Feb 13 15:45:30 2024 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=e7bd17a2

sys-fs/dwarfs: add 0.9.5

Signed-off-by: Denis Reva <denis7774 <AT> gmail.com>

 sys-fs/dwarfs/Manifest            |   1 +
 sys-fs/dwarfs/dwarfs-0.9.5.ebuild | 133 ++++++++++++++++++++++++++++++++++++++
 2 files changed, 134 insertions(+)

diff --git a/sys-fs/dwarfs/Manifest b/sys-fs/dwarfs/Manifest
index b174c903a9..56456b154c 100644
--- a/sys-fs/dwarfs/Manifest
+++ b/sys-fs/dwarfs/Manifest
@@ -1,3 +1,4 @@
 DIST dwarfs-0.8.0.tar.xz 15589992 BLAKE2B 17a0be32cc6e77a90fd391274a12492ab57fdf7f36bb1f9815e3ea09d952e13ec64cfb09a1e4cee3169a5276fd9be250c1e01c5d3af2160924ea3f900aed0a32 SHA512 a61dd173705ed17e3de72c80bcecbd1e0c55665971c4249c8f5d9f4dd448c00d05068ff5406991866becfe28e6622b1d3a0a5e9748d2fc61331601a8c0848fb4
 DIST dwarfs-0.9.1.tar.xz 15671744 BLAKE2B 173557540ed62fc6f59a1caf29fd30945ed32b0cbfca4b2a9613c9490d73f52d38c4c2e0ed83a55fcedefea051858d397c5e36689b9eb01e49c9785bd14bdda1 SHA512 39e20b3e25267cd5baea34154747f5bf2e12ddd862c17153e3a386a2a0d3d7ce30b50377b5102fac49980cf33a6fde646e2367d8ef74ef33881569f2a18a75f0
 DIST dwarfs-0.9.3.tar.xz 15669440 BLAKE2B 96aa9399086f3137cf7fba97159e247f02f584e4c5b8398f63b581ec83f6687fce9d0c64ad8a20f995cbd3abc8ec9b445039d9ac0f344c7e190fcc396c1973c0 SHA512 fb3a5f6c440231b471b5699b2c25cd694fc59580b18fad635f92a296cabea1205cbec63f1421e0acac8635695d07267096fd536b57cc4110aeb51bd9a78aa2fa
+DIST dwarfs-0.9.5.tar.xz 15665480 BLAKE2B 90c0c35f28773f3af6399ca3c3aabaf366770315197adc9c4168bf37f7c88fdbc4c3c93e647132f6a36812b1bf9d27636736682376f9b821086f8793b05feed9 SHA512 b583bfa30594f8758b07d7cb1fea88a48331a570acc73ebdafa47c3b9e055dd7e222cdf03add73543529c3101d516e7936cabc63338ff307c3f54f5f5b06fe65

diff --git a/sys-fs/dwarfs/dwarfs-0.9.5.ebuild b/sys-fs/dwarfs/dwarfs-0.9.5.ebuild
new file mode 100644
index 0000000000..1710d825eb
--- /dev/null
+++ b/sys-fs/dwarfs/dwarfs-0.9.5.ebuild
@@ -0,0 +1,133 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+PYTHON_COMPAT=( python3_{10..12} )
+
+inherit check-reqs cmake flag-o-matic python-any-r1
+
+DESCRIPTION="A fast very high compression read-only FUSE file system"
+HOMEPAGE="https://github.com/mhx/dwarfs"
+SRC_URI="https://github.com/mhx/dwarfs/releases/download/v${PV}/${P}.tar.xz"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE="+jemalloc test man" #Tests is broken at this moment 
+# See https://github.com/mhx/dwarfs/issues/194
+S="${WORKDIR}/dwarfs-${PV}"
+
+RDEPEND="
+	app-arch/libarchive
+	app-arch/lz4
+	app-arch/snappy
+	app-arch/xz-utils
+	app-arch/zstd
+	dev-cpp/range-v3
+	dev-cpp/gflags
+	dev-cpp/glog[gflags]
+	dev-cpp/parallel-hashmap:=
+	dev-libs/boost[context]
+	dev-libs/date
+	dev-libs/double-conversion
+	dev-libs/libevent
+	dev-libs/libfmt
+	dev-libs/utfcpp
+	dev-libs/xxhash
+	sys-fs/fuse:3
+	dev-libs/fsst
+	sys-libs/binutils-libs
+	sys-libs/libunwind
+	sys-libs/zlib
+	jemalloc? ( >=dev-libs/jemalloc-5.3.0-r1 )
+"
+
+DEPEND="${RDEPEND}"
+BDEPEND="
+	${PYTHON_DEPS}
+	dev-util/patchelf
+	sys-devel/bison
+	sys-devel/flex
+	virtual/pkgconfig
+	man? ( app-text/ronn-ng )
+	test? ( dev-cpp/gtest )
+	$(python_gen_any_dep 'dev-python/mistletoe[${PYTHON_USEDEP}]')
+"
+
+DOCS=( "README.md" "CHANGES.md" "TODO" )
+RESTRICT="!test? ( test )"
+
+CHECKREQS_DISK_BUILD="1300M"
+CMAKE_IN_SOURCE_BUILD=1
+CMAKE_WARN_UNUSED_CLI=0
+
+python_check_deps() {
+	python_has_version -b "dev-python/mistletoe[${PYTHON_USEDEP}]"
+}
+
+src_prepare() {
+	rm -r zstd xxHash parallel-hashmap || die
+	sed "s/DESTINATION lib/DESTINATION $(get_libdir)/" -i CMakeLists.txt || die
+
+	# Bug #900016, but upstream discourages O3
+	sed '/FLAGS_RELEASE/s# -O2 -g##' -i CMakeLists.txt || die
+	sed '/CMAKE_CXX_FLAGS_COMMON/s#-g ##' -i folly/CMake/FollyCompilerUnix.cmake || die
+	sed '/^\s*-g$/d' -i folly/CMake/FollyCompilerUnix.cmake || die
+	replace-flags -O3 -O2
+	# Fixes building with test when using system-gtest
+	# https://github.com/mhx/dwarfs/issues/188
+	sed '/utils_test/d' -i CMakeLists.txt || die
+	cmake_src_prepare
+}
+
+src_configure() {
+	append-cxxflags "-I/usr/include"
+	filter-ldflags "-Wl,--as-needed"
+	append-ldflags $(no-as-needed)
+
+	# FIXME: Requires dev-cpp/gtest to be built with -fchar8_t or -std=c++20.
+	# This is unfortunately too aggressive:
+	# append-cxxflags "-fno-char8_t"
+
+	mycmakeargs=(
+		-DUSE_JEMALLOC=$(usex jemalloc ON OFF)
+		-DWITH_TESTS=$(usex test ON OFF)
+		-DWITH_MAN_PAGES=$(usex man ON OFF)
+		-DPREFER_SYSTEM_ZSTD=ON
+		-DPREFER_SYSTEM_XXHASH=ON
+		-DPREFER_SYSTEM_GTEST=ON
+		-DPREFER_SYSTEM_LIBFMT=ON
+		-DWITH_LEGACY_FUSE=OFF
+		-DDISABLE_CCACHE=ON  # Use FEATURES=ccache
+		-DBUILD_SHARED_LIBS=OFF # It can be very difficult to explain
+		#  Shared libs is not fully supported by upstream
+		# https://github.com/mhx/dwarfs/issues/184#issuecomment-1873820859
+		#  So if we disable shared libs we dramatically reduce install code and
+		# remove libs collision with dev-cpp/folly, dev-cpp/fbthrift,
+		# dev-cpp/fizz, and dev-cpp/wangle
+		#  We do NOT enable the full static build, but eradicate bundled libs
+		# such as libfolly.so and libdwarfs_compression.so
+		-DCMAKE_FIND_LIBRARY_SUFFIXES=".a"
+	)
+	cmake_src_configure
+}
+
+src_test() {
+	local CMAKE_SKIP_TESTS=(
+		# Tests don't work in sandbox
+		# fuse: failed to open /dev/fuse: Permission denied
+		dwarfs/tools_test
+		# Some tests doesn't work because of sed '/utils_test/d'
+		dwarfsextract_test.perfmon
+		dwarfs/segmenter_repeating_sequence_test.github161
+	)
+	cmake_src_test
+}
+
+pkg_postinst() {
+	elog "You may find more information in the"
+	elog "${HOMEPAGE}"
+	elog "About creating: ${HOMEPAGE}/blob/main/doc/mkdwarfs.md"
+	elog "About mounting: ${HOMEPAGE}/blob/main/doc/dwarfs.md"
+}


             reply	other threads:[~2024-02-13 16:32 UTC|newest]

Thread overview: 58+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-02-13 16:32 David Roman [this message]
  -- strict thread matches above, loose matches on Subject: below --
2025-04-19 15:28 [gentoo-commits] repo/proj/guru:master commit in: sys-fs/dwarfs/ David Roman
2025-03-24  9:51 David Roman
2025-03-20  9:22 David Roman
2024-12-28 20:08 Florian Schmaus
2024-12-05 12:00 [gentoo-commits] repo/proj/guru:master commit in: "sys-fs/dwarfs/ Florian Schmaus
2024-11-04 18:27 [gentoo-commits] repo/proj/guru:master commit in: sys-fs/dwarfs/ David Roman
2024-11-02 20:52 David Roman
2024-11-02 20:52 David Roman
2024-10-29 14:07 [gentoo-commits] repo/proj/guru:dev " David Roman
2024-10-29 22:14 ` [gentoo-commits] repo/proj/guru:master " David Roman
2024-06-05 12:48 Florian Schmaus
2024-05-16 16:27 Julien Roy
2024-02-24 12:14 Haelwenn Monnier
2024-02-15 14:58 David Roman
2024-02-14 16:01 Andrew Ammerlaan
2024-02-13 16:32 David Roman
2024-02-13 16:32 David Roman
2024-02-13 16:32 David Roman
2024-02-13 16:32 David Roman
2024-02-09  0:30 David Roman
2024-01-19 10:31 Arthur Zamarin
2024-01-09 12:03 David Roman
2024-01-07 23:46 David Roman
2024-01-03 16:54 David Roman
2023-08-17  5:15 Viorel Munteanu
2023-07-25 15:02 David Roman
2023-07-13  9:42 David Roman
2022-07-07  7:33 Haelwenn Monnier
2021-10-28 20:56 Haelwenn Monnier
2021-09-16 17:57 Arthur Zamarin
2021-07-07 14:02 Florian Schmaus
2021-07-07 14:02 Florian Schmaus
2021-05-05  8:33 Andrew Ammerlaan
2021-05-03 16:57 Andrew Ammerlaan
2021-05-02  9:27 Theo Anderson
2021-05-02  9:27 Theo Anderson
2021-04-29  8:23 Michał Górny
2021-04-29  8:23 Michał Górny
2021-04-28  8:08 Andrew Ammerlaan
2021-04-28  8:08 Andrew Ammerlaan
2021-04-27 23:24 Theo Anderson
2021-04-12  9:27 [gentoo-commits] repo/proj/guru:dev " Andrew Ammerlaan
2021-04-12  9:30 ` [gentoo-commits] repo/proj/guru:master " Andrew Ammerlaan
2021-04-12  5:38 Theo Anderson
2021-04-12  5:38 Theo Anderson
2021-04-12  5:38 Theo Anderson
2021-04-10 10:07 Andrew Ammerlaan
2021-03-28 11:14 [gentoo-commits] repo/proj/guru:dev " Andrew Ammerlaan
2021-03-28 11:43 ` [gentoo-commits] repo/proj/guru:master " Andrew Ammerlaan
2021-03-12  9:51 Andrew Ammerlaan
2021-03-12  9:51 Andrew Ammerlaan
2021-02-07  8:24 Andrew Ammerlaan
2021-01-10 11:31 Andrew Ammerlaan
2021-01-08  8:59 Andrew Ammerlaan
2020-12-13 18:37 Andrew Ammerlaan
2020-12-11  8:36 Andrew Ammerlaan
2020-12-10  8:46 Andrew Ammerlaan
2020-12-08 14:25 Andrew Ammerlaan
2020-12-04 15:00 Andrew Ammerlaan
2020-12-03 11:36 Andrew Ammerlaan

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1707839130.e7bd17a2a0708ceddd78cdb40204f84b5865064a.davidroman@gentoo \
    --to=davidroman96@gmail.com \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox