diff --git a/net-fs/cvmfs/cvmfs-2.14.1.ebuild b/net-fs/cvmfs/cvmfs-2.14.1.ebuild index db44f0217ea24..4c81bfa0bca24 100644 --- a/net-fs/cvmfs/cvmfs-2.14.1.ebuild +++ b/net-fs/cvmfs/cvmfs-2.14.1.ebuild @@ -3,7 +3,7 @@ EAPI=8 -inherit cmake linux-info bash-completion-r1 +inherit cmake linux-info shell-completion DESCRIPTION="HTTP read-only file system for distributing software" HOMEPAGE="https://cernvm.cern.ch/fs/" diff --git a/net-fs/cvmfs/files/cvmfs-2.14.1-gentoo.patch b/net-fs/cvmfs/files/cvmfs-2.14.1-gentoo.patch index 77959464036bd..5f3658932bfa7 100644 --- a/net-fs/cvmfs/files/cvmfs-2.14.1-gentoo.patch +++ b/net-fs/cvmfs/files/cvmfs-2.14.1-gentoo.patch @@ -6,6 +6,10 @@ Patch to unbundle dependencies to build in Gentoo. only used with BUILTIN_EXTERNALS; without it no nlohmann_json target would exist). nlohmann_json is header-only but its C++ headers need the C++ standard library, hence the C project type. + - Protobuf -> link the imported protobuf::libprotobuf-lite target instead of + the bare ${PROTOBUF_LITE_LIBRARY} path. The imported target propagates + compile features from its dependencies (including absl), without + hardcoding a C++ standard in the ebuild. diff --git a/CMakeLists.txt b/CMakeLists.txt --- a/CMakeLists.txt @@ -19,6 +23,24 @@ diff --git a/CMakeLists.txt b/CMakeLists.txt set (INCLUDE_DIRECTORIES ${INCLUDE_DIRECTORIES} ${SHA3_INCLUDE_DIRS}) endif () +diff --git a/CMakeLists.txt b/CMakeLists.txt +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -455,0 +457,2 @@ if (BUILD_CVMFS OR BUILD_LIBCVMFS OR BUILD_SERVER OR BUILD_SERVER_DEBUG OR ++ ++ find_package (nlohmann_json REQUIRED) ++ +diff --git a/CMakeLists.txt b/CMakeLists.txt +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -498,5 +498,7 @@ if (BUILD_CVMFS OR BUILD_LIBCVMFS OR BUILD_LIBCVMFS_CACHE OR + BUILD_UNITTESTS OR BUILD_UNITTESTS_DEBUG OR BUILD_UBENCHMARKS OR + BUILD_SHRINKWRAP) + find_package(Protobuf REQUIRED) ++ find_package(protobuf CONFIG REQUIRED) ++ set(PROTOBUF_LITE_LIBRARY protobuf::libprotobuf-lite) + set (INCLUDE_DIRECTORIES ${INCLUDE_DIRECTORIES} ${PROTOBUF_INCLUDE_DIRS}) + endif () diff --git a/externals/sha3/CMakeLists.txt b/externals/sha3/CMakeLists.txt new file mode 100644 --- /dev/null