Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
sys-fs/dwarfs: second attempt to fix https://bugs.gentoo.org/785973
Added -fPIC Package-Manager: Portage-3.0.18, Repoman-3.0.2 Signed-off-by: Denis Reva <denis7774@gmail.com>
- Loading branch information
Showing
1 changed file
with
96 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,96 @@ | ||
# Copyright 1999-2021 Gentoo Authors | ||
# Distributed under the terms of the GNU General Public License v2 | ||
|
||
EAPI=7 | ||
|
||
PYTHON_COMPAT=( python3_{7,8,9} ) | ||
|
||
inherit cmake check-reqs python-single-r1 flag-o-matic | ||
|
||
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.bz2" | ||
|
||
LICENSE="GPL-3" | ||
SLOT="0" | ||
KEYWORDS="" | ||
|
||
IUSE="python +jemalloc test" | ||
RESTRICT="!test? ( test )" | ||
REQUIRED_USE="${PYTHON_REQUIRED_USE}" | ||
|
||
PYTHON_REQ_USE="python" | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong. |
||
|
||
DEPEND="sys-devel/flex" | ||
RDEPEND="${PYTHON_DEPS} | ||
dev-libs/boost[context,threads,python?] | ||
dev-libs/double-conversion | ||
dev-libs/libfmt | ||
dev-libs/libevent | ||
dev-libs/xxhash | ||
jemalloc? ( >=dev-libs/jemalloc-5.2.1 ) | ||
app-arch/libarchive | ||
app-arch/zstd | ||
app-arch/lz4 | ||
app-arch/xz-utils | ||
app-arch/snappy | ||
dev-cpp/sparsehash | ||
dev-cpp/gflags | ||
dev-cpp/glog[gflags] | ||
sys-fs/fuse:3 | ||
sys-libs/binutils-libs | ||
sys-libs/zlib | ||
sys-libs/libunwind | ||
!dev-cpp/folly" | ||
BDEPEND="app-text/ronn | ||
test? ( dev-cpp/gtest ) | ||
dev-util/cmake | ||
sys-apps/sed | ||
sys-devel/bison | ||
virtual/pkgconfig" | ||
|
||
CHECKREQS_DISK_BUILD="1300M" | ||
|
||
DOCS=( "README.md" "CHANGES.md" "TODO" ) | ||
|
||
CMAKE_IN_SOURCE_BUILD=1 | ||
CMAKE_WARN_UNUSED_CLI=0 | ||
|
||
src_prepare(){ | ||
cmake_src_prepare | ||
einfo "setting library path to $(get_libdir)" | ||
sed "s/DESTINATION lib/DESTINATION $(get_libdir)/" -i CMakeLists.txt || die | ||
} | ||
|
||
src_configure(){ | ||
append-flags "-fPIC" | ||
einfo "setting configuration flags to:" | ||
mycmakeargs=( | ||
-DUSE_JEMALLOC=$(usex jemalloc ON OFF) | ||
-DWITH_PYTHON=$(usex python ON OFF) | ||
-DWITH_TESTS=$(usex test ON OFF) | ||
-DPREFER_SYSTEM_ZSTD=1 | ||
-DPREFER_SYSTEM_XXHASH=1 | ||
-DPREFER_SYSTEM_GTEST=1 | ||
-DWITH_LEGACY_FUSE=0 | ||
) | ||
if use python; then mycmakeargs+=( -DWITH_PYTHON_VERSION=${EPYTHON#python} ); fi | ||
einfo ${mycmakeargs} | ||
cmake_src_configure | ||
} | ||
|
||
src_install(){ | ||
cmake_src_install | ||
dolib.so libmetadata_thrift.so libthrift_light.so libdwarfs.so libfsst.so | ||
dolib.so folly/libfolly.so.0.58.0-dev folly/libfolly.so | ||
} | ||
|
||
pkg_postinst(){ | ||
elog "Suggest to enable USE 'threads' globally if you have multicore machine" | ||
elog "Since version 0.4.1 GGC builds has been fixed. Now both Clang and GCC are working very well" | ||
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" | ||
} |
I think this is not doing what you think this is doing, because this does:
Which doesn't make much sense because python doesn't have a python USE flag :P
I think what you want here is:
See also: https://devmanual.gentoo.org/eclass-reference/python-r1.eclass/index.html