From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 06FBE1581D3 for ; Thu, 16 May 2024 15:06:48 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 4F79FE2AEE; Thu, 16 May 2024 15:06:47 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 29A37E2AEE for ; Thu, 16 May 2024 15:06:47 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 3FBAB33BEFF for ; Thu, 16 May 2024 15:06:46 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id D31951ACD for ; Thu, 16 May 2024 15:06:44 +0000 (UTC) From: "Denis Reva" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Denis Reva" Message-ID: <1715871986.e26cca7bdfaca9fbac239b0561875d5060dda7ab.RarogCmex@gentoo> Subject: [gentoo-commits] repo/proj/guru:dev commit in: sys-fs/dwarfs/ X-VCS-Repository: repo/proj/guru X-VCS-Files: sys-fs/dwarfs/Manifest sys-fs/dwarfs/dwarfs-0.9.9.ebuild X-VCS-Directories: sys-fs/dwarfs/ X-VCS-Committer: RarogCmex X-VCS-Committer-Name: Denis Reva X-VCS-Revision: e26cca7bdfaca9fbac239b0561875d5060dda7ab X-VCS-Branch: dev Date: Thu, 16 May 2024 15:06:44 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 5638b6b8-f698-48f3-afbc-f929479d47e4 X-Archives-Hash: 66f1128884009fea971130387826008a commit: e26cca7bdfaca9fbac239b0561875d5060dda7ab Author: Denis Reva gmail com> AuthorDate: Thu May 16 15:06:26 2024 +0000 Commit: Denis Reva gmail 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 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" +}