public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Denis Reva" <denis7774@gmail.com>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/proj/guru:dev commit in: sys-fs/dwarfs/
Date: Thu, 16 May 2024 15:06:44 +0000 (UTC)	[thread overview]
Message-ID: <1715871986.e26cca7bdfaca9fbac239b0561875d5060dda7ab.RarogCmex@gentoo> (raw)

commit:     e26cca7bdfaca9fbac239b0561875d5060dda7ab
Author:     Denis Reva <denis7774 <AT> gmail <DOT> com>
AuthorDate: Thu May 16 15:06:26 2024 +0000
Commit:     Denis Reva <denis7774 <AT> gmail <DOT> com>
CommitDate: Thu May 16 15:06:26 2024 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=e26cca7b

sys-fs/dwarfs: add 0.9.9

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

 sys-fs/dwarfs/Manifest            |   1 +
 sys-fs/dwarfs/dwarfs-0.9.9.ebuild | 137 ++++++++++++++++++++++++++++++++++++++
 2 files changed, 138 insertions(+)

diff --git a/sys-fs/dwarfs/Manifest b/sys-fs/dwarfs/Manifest
index 441ebd00bf..65abf39d25 100644
--- a/sys-fs/dwarfs/Manifest
+++ b/sys-fs/dwarfs/Manifest
@@ -1 +1,2 @@
 DIST dwarfs-0.9.6.tar.xz 15665392 BLAKE2B 305587de0e31390f4d3c2701cc1b0fe9f29d2a37a363f575ae770c0037d69b77685bd593f900c71e4e9fe8dbfdf4644f1ea3158f9fdc3596583eda89d0040e88 SHA512 c1a094df448bd5820be71f4d950ff4f515e5be137d1343acb00298986495b41c4223d0b2e7e4501a94a0d019789e54bf041bba4f7b83efac43d6fa4b1d60c68a
+DIST dwarfs-0.9.9.tar.xz 18614744 BLAKE2B c8f98b737d86444a6a074f7de2704edb94c86bd80e4024d021d4887240f9e1a5b52187ca2e82257427b2392d4afc7c7081985d5b5cc5d8b593f7221c4bc12126 SHA512 7f7f2d49f25856b6e88cf8bda0f194efeeac88eab9f0b9079d02fa871af2b8181879ece7170e36653b75246b421e6a1c54c04a5156b4e1803a0a202472232da0

diff --git a/sys-fs/dwarfs/dwarfs-0.9.9.ebuild b/sys-fs/dwarfs/dwarfs-0.9.9.ebuild
new file mode 100644
index 0000000000..42bdd10ad7
--- /dev/null
+++ b/sys-fs/dwarfs/dwarfs-0.9.9.ebuild
@@ -0,0 +1,137 @@
+# 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"
+
+S="${WORKDIR}/dwarfs-${PV}"
+
+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
+
+RESTRICT="!test? ( test )"
+
+RDEPEND="
+	app-arch/brotli
+	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
+	dev-libs/fsst
+	media-libs/flac
+	sys-fs/fuse:3
+	sys-libs/binutils-libs
+	sys-libs/zlib
+	jemalloc? ( >=dev-libs/jemalloc-5.3.0-r1 )
+"
+
+DEPEND="${RDEPEND}
+	sys-libs/libunwind"
+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" )
+
+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-05-16 15:06 UTC|newest]

Thread overview: 74+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-05-16 15:06 Denis Reva [this message]
  -- strict thread matches above, loose matches on Subject: below --
2025-04-19  5:38 [gentoo-commits] repo/proj/guru:dev commit in: sys-fs/dwarfs/ Denis Reva
2025-03-21 19:05 Denis Reva
2025-03-20 17:10 Denis Reva
2025-03-20 16:27 Denis Reva
2024-12-27 17:43 Denis Reva
2024-12-04 20:47 [gentoo-commits] repo/proj/guru:dev commit in: "sys-fs/dwarfs/ Anna Vyalkova
2024-11-04  8:57 [gentoo-commits] repo/proj/guru:dev commit in: sys-fs/dwarfs/ Denis Reva
2024-11-02 18:27 Denis Reva
2024-11-02 18:02 Denis Reva
2024-10-29 14:07 David Roman
2024-07-02 18:12 Denis Reva
2024-06-05  5:11 Denis Reva
2024-06-03 12:41 Denis Reva
2024-06-03 12:41 Denis Reva
2024-02-24  9:07 Denis Reva
2024-02-15  8:43 Denis Reva
2024-02-14 15:00 Denis Reva
2024-02-13 15:46 Denis Reva
2024-02-13 15:46 Denis Reva
2024-02-13 15:45 Denis Reva
2024-02-12  9:18 Denis Reva
2024-02-12  8:06 Denis Reva
2024-02-08 19:13 YiFei Zhu
2024-01-23 11:08 YiFei Zhu
2024-01-19  6:43 YiFei Zhu
2024-01-10  6:31 YiFei Zhu
2024-01-10  6:31 YiFei Zhu
2024-01-08 14:03 Denis Reva
2024-01-08  9:43 YiFei Zhu
2024-01-08  8:50 YiFei Zhu
2024-01-07 11:05 Denis Reva
2024-01-02 16:02 Denis Reva
2023-08-16 13:08 Denis Reva
2023-07-25 14:16 Denis Reva
2023-07-12 16:46 Denis Reva
2023-07-10  5:39 Denis Reva
2023-05-16 10:04 Denis Reva
2023-05-07 13:26 Denis Reva
2023-03-30 13:06 Anna Vyalkova
2023-02-28 14:51 Denis Reva
2023-02-28 13:02 Denis Reva
2022-07-07  0:41 Anna Vyalkova
2021-11-26 11:39 Denis Reva
2021-10-28 15:18 Alessandro Barbieri
2021-09-16  6:34 Denis Reva
2021-07-07  3:41 Denis Reva
2021-07-07  3:41 Denis Reva
2021-05-05  7:32 Alessandro Barbieri
2021-05-03 10:11 Denis Reva
2021-05-02  2:27 Alessandro Barbieri
2021-05-02  1:51 Alessandro Barbieri
2021-04-29  3:24 Alessandro Barbieri
2021-04-28 11:43 Denis Reva
2021-04-28  5:20 Denis Reva
2021-04-28  5:17 Denis Reva
2021-04-27  8:34 Denis Reva
2021-04-12  9:27 Andrew Ammerlaan
2021-04-12  4:05 Denis Reva
2021-04-11 15:00 Denis Reva
2021-04-11 12:24 Denis Reva
2021-04-09 14:29 Denis Reva
2021-03-28 11:14 Andrew Ammerlaan
2021-03-12  4:52 Denis Reva
2021-03-11 17:16 Denis Reva
2021-02-06  5:54 Denis Reva
2021-01-10  5:56 Denis Reva
2021-01-07 19:41 Denis Reva
2020-12-13 13:30 Denis Reva
2020-12-10 15:11 Denis Reva
2020-12-10  7:52 Denis Reva
2020-12-08  7:28 Denis Reva
2020-12-04  4:17 Denis Reva
2020-12-02  7:34 Denis Reva

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=1715871986.e26cca7bdfaca9fbac239b0561875d5060dda7ab.RarogCmex@gentoo \
    --to=denis7774@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