aboutsummaryrefslogtreecommitdiff
path: root/sys-fs
diff options
context:
space:
mode:
authorDenis Reva <denis7774@gmail.com>2023-08-16 18:08:06 +0500
committerDenis Reva <denis7774@gmail.com>2023-08-16 18:08:06 +0500
commit78fe745fe3ab6c066cf33e79205dde1a71e2384b (patch)
treeede814c4bae4002bc97e6a4f231b27884ed1bf0f /sys-fs
parentsys-fs/dwarfs-bin: treeclean (diff)
downloadguru-78fe745fe3ab6c066cf33e79205dde1a71e2384b.tar.gz
guru-78fe745fe3ab6c066cf33e79205dde1a71e2384b.tar.bz2
guru-78fe745fe3ab6c066cf33e79205dde1a71e2384b.zip
sys-fs/dwarfs: fixed issues with soname libs
Closes: https://bugs.gentoo.org/910719 Closes: https://bugs.gentoo.org/900014 Signed-off-by: Denis Reva <denis7774@gmail.com>
Diffstat (limited to 'sys-fs')
-rw-r--r--sys-fs/dwarfs/dwarfs-0.7.2-r1.ebuild (renamed from sys-fs/dwarfs/dwarfs-0.7.2.ebuild)30
1 files changed, 22 insertions, 8 deletions
diff --git a/sys-fs/dwarfs/dwarfs-0.7.2.ebuild b/sys-fs/dwarfs/dwarfs-0.7.2-r1.ebuild
index 8809b087c..983d49b3c 100644
--- a/sys-fs/dwarfs/dwarfs-0.7.2.ebuild
+++ b/sys-fs/dwarfs/dwarfs-0.7.2-r1.ebuild
@@ -9,7 +9,7 @@ inherit check-reqs cmake flag-o-matic python-single-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}/${PN}-${PV}.tar.xz"
+SRC_URI="https://github.com/mhx/dwarfs/releases/download/v${PV}/${P}.tar.xz"
LICENSE="GPL-3"
SLOT="0"
@@ -64,7 +64,14 @@ REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
CHECKREQS_DISK_BUILD="1300M"
CMAKE_IN_SOURCE_BUILD=1
CMAKE_WARN_UNUSED_CLI=0
-
+#These files supposed to have no symlink
+QA_SONAME=(
+"/usr/sbin/dwarfs"
+"/usr/bin/dwarfsbench"
+"/usr/bin/dwarfsck"
+"/usr/bin/dwarfsextract"
+"/usr/bin/mkdwarfs"
+)
src_prepare(){
rm -r zstd xxHash parallel-hashmap || die
cmake_src_prepare
@@ -88,15 +95,22 @@ src_configure(){
use python && mycmakeargs+=( "-DWITH_PYTHON_VERSION=${EPYTHON#python}" )
cmake_src_configure
}
-
-src_install(){
- cmake_src_install
+src_compile(){
+ cmake_src_compile
# Remove insecure RPATH from bundled lib
patchelf --remove-rpath libdwarfs.so || die
patchelf --remove-rpath libdwarfs_tool.so || die
-
- dolib.so libdwarfs.so libdwarfs_tool.so libdwarfs_compression.so libthrift_light.so libmetadata_thrift.so
- dolib.so folly/libfolly.so folly/libfolly.so.0.58.0-dev
+ patchelf --remove-rpath libmetadata_thrift.so || die
+ patchelf --remove-rpath libdwarfs_compression.so || die
+ patchelf --remove-rpath libthrift_light.so || die
+ patchelf --remove-rpath libdwarfs_main.so || die
+ # TODO: make it proper
+}
+src_install(){
+ # Perform install
+ cmake_src_install
+ dolib.so libdwarfs.so libdwarfs_main.so libdwarfs_tool.so libdwarfs_compression.so libthrift_light.so libmetadata_thrift.so || die "Install failed"
+ dolib.so folly/libfolly.so folly/libfolly.so.0.58.0-dev libmkdwarfs_main.so libdwarfsbench_main.so libdwarfsck_main.so libdwarfsextract_main.so || die "Install failed"
}
pkg_postinst(){