summaryrefslogtreecommitdiff
path: root/net-libs/xrootd
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2023-05-17 22:10:38 +0100
committerV3n3RiX <venerix@koprulu.sector>2023-05-17 22:10:38 +0100
commit6854913aa1a57839328baafb435b84f9baacae65 (patch)
tree3273ce9a77541e3f4bb905ca47a1d0d2bbe0f4e5 /net-libs/xrootd
parenta538d5e834cfb040c79291bd02474285e27241b8 (diff)
gentoo auto-resync : 17:05:2023 - 22:10:37
Diffstat (limited to 'net-libs/xrootd')
-rw-r--r--net-libs/xrootd/Manifest5
-rw-r--r--net-libs/xrootd/files/xrootd-5.5-system-isa-l.patch286
-rw-r--r--net-libs/xrootd/metadata.xml4
-rw-r--r--net-libs/xrootd/xrootd-5.5.5.ebuild205
4 files changed, 499 insertions, 1 deletions
diff --git a/net-libs/xrootd/Manifest b/net-libs/xrootd/Manifest
index b895022da572..1bfca84ec954 100644
--- a/net-libs/xrootd/Manifest
+++ b/net-libs/xrootd/Manifest
@@ -5,11 +5,14 @@ AUX xrootd-4.8.3-crc32.patch 1987 BLAKE2B be57f7be2a897a2399f923e4670d219be79053
AUX xrootd-5.4.3-cmake_no_python.patch 403 BLAKE2B 8e13c64de9bb8504dae8c309fccfb52a13bf5c86be40493272002437c8b5838c75badbdfc8eef3d04e7f62d15509dda138fcecfd4299794c73bbb92f4665182c SHA512 0d082f52a4c6fd0e569d6df9653065d1438a55c047edefbdb882465a6c83d66bca1c358e64e724a656595a2d1e453adaaa662915d74382508338f3d98e98e44e
AUX xrootd-5.4.3-no_automagic.patch 454 BLAKE2B 78fdb01301a342db1ea3685f5513f56449ed69af0e5ecf48545af7c8e2cb00f58b68660b812f64dcdc15df4d1bc303ef127fe85c0b9ea7ebc4a9518ab0d30c11 SHA512 7aa1e7d2f2a86e2222a4bf95ca344994d67bc25dbb3ffce27c36634dcecf8dd828a3072f04dd266014e7fd8cab8a06135959a8ee10f3003dcbaf43ac5658d3e5
AUX xrootd-5.4.3-python_tests_py3.patch 4491 BLAKE2B 61e3eb0e10de6e746b1447c7a1df8d6345c9533e6285e21263f5e65f8d7c4a6e7d50eef56be48fb9ac88c4efaee488e6f90fe046cbd9b24ace322a8781a5ea5a SHA512 6b854907e1fa45b44492c5224eb977ac7b4682ad1a74319efdf3a9907b252a2bdfd9510fa942f253319b80fa25947b05e3ab2f92b23d7fc1be0282c248741c9d
+AUX xrootd-5.5-system-isa-l.patch 9637 BLAKE2B f46dfec0b4abcc0ddb01575b823d74c2345b02d5c951359baf64bf3a3d41bbe622014b82d11a4e8a642e7b5b95d6bfa7cdf896f1a02842a8065199a91c12c3a2 SHA512 33591ef5416276e5708d0adc3cf1f79d9eb19e80299e99b10ffd1a024f14c87ba83687b29df6f1bd251d0ec850ff8eec1b40a9384dbe26ea7e2f9018fed79878
AUX xrootd.confd 651 BLAKE2B a35bf51b82334757dbd27bd48923e59f955361ab009c4b92eef83050d5d4e23904abc2b0b9577f8a5888c875c34bf736cf4072b6684a91ca6ad8cd90fe9a2ba9 SHA512 60ab5b6d77cf79437960044bf201127c8adf5134e7f61a18dcccd2e474a4e41eda971e3ada71dea987716080fb308af98a5237bab2a0b82f50f932ff59e3fdea
AUX xrootd.initd 858 BLAKE2B 306970196c9f69db3f94c095c8518b837f5f4723a1cbae273273821e4d77d30a7fe65ac4fccbb640ad5e0b6f879e549dbbc4e799f87b5b5c813d66f2d270af2b SHA512 dcdb75341d904c9850c2bf97393ccbb68ad37b095e0a20ca4dab27b10dd7525874c8ad6e07e5b9c1f3c3566391a50c06dee70622d865fa51a7e73aa4096da955
DIST xrootd-5.4.3.tar.gz 3182127 BLAKE2B ed3f6a943167eafb5f6d7f78ca34f44c9a18b5ed672a4e622acb1e6e6997bd21756a30bf24f0b799ab4f16e7e1fb3f61a042f4e5e00f965b898fc5a287bf995a SHA512 189ec8e20901fd07093494187502e031a60d4ade22af33067313fad7a1bf6a6feb5c5d9d59d3a86d13a6a767e5a93cf4836da02e9cae11c81ccac07199898d72
DIST xrootd-5.5.4.tar.gz 3241021 BLAKE2B 505890ab7dbd0530d3c42390c9a6858cf0c8b53d42631b3bed615cb9b7c4d738bb791d26e625b010fef79f57291eb8bcd653ec629d240df92d37c12c973210f8 SHA512 1bf8fec3e20950e1dfbb5a7914c2f2b1d7d1fc1ce6b419dda129bb6cfb083ae674a14732b7b7330dee2287635749d91f8ee7e16badd71c723d189a1a44c309dd
+DIST xrootd-5.5.5.tar.gz 3243062 BLAKE2B 697dbd9d42e3fd9c6d2cf86a1c120e3752e74abbae2cf69be4c20292c568ad2f20fbea9320a2e22c04b53232d32915f9f7ea08c0e93117e8e72f181d5b642044 SHA512 864b4fe686c0a618a2672b624b7c5a00a4e87b4bd97842f8e25666b48a23f01e7d91d926013e9f435fb439a9c464ebbca8818720ec6c067c04d0603d1381cdba
EBUILD xrootd-5.4.3-r2.ebuild 4627 BLAKE2B c3820362346a32f41c9a9afe447854211af4a2015e3e0950b98e18e6346ec9ec7528ae3ec7cef8be29dbaf069a9188dce4fad2a31023c87cb82cef709dc03c03 SHA512 705bd4e6189c67a0b7f31dc96241b086145268a13113826292ab6b00fdf739c497c67cb00033f5f42181f51dcc0476bf816fc5daf2dbace16d14c989fecd8589
EBUILD xrootd-5.4.3.ebuild 3186 BLAKE2B 39211730f3cf2da1f616c3cb88e0fbe5449b534fdb9612c47f919537162fb1cb14e4a225feeeed6b51428ae51c7550d31a875b71a0c1b5b3ee3b12e2cd474f26 SHA512 3ab16277df556260c833c1a60cb47c964ffefa7cef623aba61038d73be6959f2dbae41f2ccef28e95274472d0995a840347128fb38d4e5d8f171af709d8267f2
EBUILD xrootd-5.5.4-r1.ebuild 4747 BLAKE2B b998c253caf6335c65a071d9ad58b3481e24c697ba53506d38751284561f3fdd89f89f9b42d30789b168d8bc83ed6d96b0d12fed781cb6ee61c1751f142f2ac9 SHA512 064dad4eb4c39910149ad0a9a98519ae44e93038a000f9df4d5f8e4981267d681994bf033a75dfb711ae504368ac76c3852dcfeae3b3aae04874eafa203e724c
-MISC metadata.xml 1035 BLAKE2B c81c606529973beb7936c49a35eff0a91bde2c604b4d0cea3a91cdb7aff0aeeba15ae6e9c6913897272e6f76c811427b920514d73280b2c0f13e4d035f4c5b3c SHA512 df74f8ac010f34a63e16979a5c3a222119f9c9b201f0a83b8b8f20bf3b5d102ad1ccdedfdd557a599701fbe234c42b1bb5ec34384445f428a40716ba2c1a6ae2
+EBUILD xrootd-5.5.5.ebuild 5131 BLAKE2B 1db4765c9c86cdebb0737961e69c8dd388343ed578fdaf0aa64d77e2199d86d949d9a0e8e4b737605854597f31d8dc65b8cde3702ab73174a607ad31c4f0bc37 SHA512 9714cf15a9d19f2c449bb019052f5b03e0cf5400191e07ec967c3a6c3c43e863ecf924b9edabee7b871a0b2e3d0069a1d2b1f0378bdf7b13ffbd2a26853c7f0f
+MISC metadata.xml 1223 BLAKE2B 91d347d56ce4e60e13a50f8331a9f6ae5d8030c71d0ce42273637b305b83334e5b5e1652f96396faf4d5ce669dc8d970d4eafaaa32ce21ed7b6e7378013347ba SHA512 9dbcae7cd57b4b1ad3809b7adf02d6053d5d476bdf6ce4b20a41897e550281e68c8a58fe9a8fd6a08fccc61adc384c7123c8a5a02b226522c32a52a26f8ce5a3
diff --git a/net-libs/xrootd/files/xrootd-5.5-system-isa-l.patch b/net-libs/xrootd/files/xrootd-5.5-system-isa-l.patch
new file mode 100644
index 000000000000..4ab928aed7bb
--- /dev/null
+++ b/net-libs/xrootd/files/xrootd-5.5-system-isa-l.patch
@@ -0,0 +1,286 @@
+commit fb01136cc18af34447d9438827cc736f720e4c24
+Author: Guilherme Amadio <amadio@cern.ch>
+Date: Fri Nov 11 17:33:00 2022 +0100
+
+ [CMake] Adapt build system to be able to use pre-installed isa-l
+
+diff --git a/cmake/XRootDDefaults.cmake b/cmake/XRootDDefaults.cmake
+index 5c25975bb..1bef0cce3 100644
+--- a/cmake/XRootDDefaults.cmake
++++ b/cmake/XRootDDefaults.cmake
+@@ -33,4 +33,5 @@ option( ENABLE_XRDCLHTTP "Enable xrdcl-http plugin."
+ cmake_dependent_option( ENABLE_SCITOKENS "Enable SciTokens plugin." TRUE "NOT XRDCL_ONLY" FALSE )
+ cmake_dependent_option( ENABLE_MACAROONS "Enable Macaroons plugin." TRUE "NOT XRDCL_ONLY" FALSE )
+ option( FORCE_ENABLED "Fail build if enabled components cannot be built." FALSE )
++cmake_dependent_option( USE_SYSTEM_ISAL "Use isa-l installed in the system" FALSE "ENABLE_XRDEC" FALSE )
+ define_default( XRD_PYTHON_REQ_VERSION 3 )
+diff --git a/src/XrdCl/CMakeLists.txt b/src/XrdCl/CMakeLists.txt
+index fb43d1f1b..32d3ccb4e 100644
+--- a/src/XrdCl/CMakeLists.txt
++++ b/src/XrdCl/CMakeLists.txt
+@@ -28,8 +28,6 @@ endif()
+ # XrdEc sources
+ #-------------------------------------------------------------------------------
+ if( BUILD_XRDEC )
+- link_directories( ${ISAL_LIBDIR} )
+- include_directories( ${ISAL_INCDIR} )
+ set( XrdEcSources
+ ${CMAKE_SOURCE_DIR}/src/XrdEc/XrdEcRedundancyProvider.cc
+ ${CMAKE_SOURCE_DIR}/src/XrdEc/XrdEcUtilities.cc
+@@ -37,7 +35,6 @@ if( BUILD_XRDEC )
+ ${CMAKE_SOURCE_DIR}/src/XrdEc/XrdEcReader.cc
+ XrdClEcHandler.cc
+ )
+- set( ISAL_LIB isal )
+ add_compile_definitions( WITH_XRDEC )
+ endif()
+
+@@ -119,19 +116,17 @@ target_link_libraries(
+ ${ZLIB_LIBRARIES}
+ ${EXTRA_LIBS}
+ ${CMAKE_DL_LIBS}
+- ${OPENSSL_LIBRARIES}
+- ${ISAL_LIB})
++ ${OPENSSL_LIBRARIES})
+
+ set_target_properties(
+ XrdCl
+ PROPERTIES
+- INTERFACE_LINK_LIBRARIES ""
+- LINK_INTERFACE_LIBRARIES ""
+ VERSION ${XRD_CL_VERSION}
+ SOVERSION ${XRD_CL_SOVERSION} )
+
+ if( BUILD_XRDEC )
+- add_dependencies( XrdCl isa-l )
++ target_include_directories(XrdCl PUBLIC ${ISAL_INCLUDE_DIRS})
++ target_link_libraries(XrdCl ${ISAL_LIBRARIES})
+ endif()
+
+ #-------------------------------------------------------------------------------
+diff --git a/src/XrdEc/CMakeLists.txt b/src/XrdEc/CMakeLists.txt
+index 43aa3ff5e..53754340c 100644
+--- a/src/XrdEc/CMakeLists.txt
++++ b/src/XrdEc/CMakeLists.txt
+@@ -1,9 +1,6 @@
+ include( XRootDCommon )
+ include( ExternalProject )
+
+-link_directories( ${ISAL_LIBDIR} )
+-include_directories( ${ISAL_INCDIR} )
+-
+ #-------------------------------------------------------------------------------
+ # The XrdEc shared library
+ #-------------------------------------------------------------------------------
+@@ -27,19 +24,14 @@ add_library(
+ target_link_libraries(
+ XrdEc
+ XrdCl
+- isal
+ )
+
+ set_target_properties(
+ XrdEc
+ PROPERTIES
+- INTERFACE_LINK_LIBRARIES ""
+- LINK_INTERFACE_LIBRARIES ""
+ VERSION ${XRD_EC_VERSION}
+ SOVERSION ${XRD_EC_SOVERSION} )
+
+-add_dependencies( XrdEc isa-l )
+-
+ #------------------------------------------------------------------------------
+ # Install XrdEc library
+ #------------------------------------------------------------------------------
+diff --git a/src/XrdEc/XrdEcObjCfg.hh b/src/XrdEc/XrdEcObjCfg.hh
+index 3978b1c77..24fb99429 100644
+--- a/src/XrdEc/XrdEcObjCfg.hh
++++ b/src/XrdEc/XrdEcObjCfg.hh
+@@ -10,7 +10,7 @@
+
+ #include "XrdOuc/XrdOucCRC32C.hh"
+
+-#include "isa-l/crc.h"
++#include <isa-l/crc.h>
+
+ #include <cstdlib>
+ #include <string>
+diff --git a/src/XrdEc/XrdEcRedundancyProvider.cc b/src/XrdEc/XrdEcRedundancyProvider.cc
+index 47f48a431..c41232aee 100644
+--- a/src/XrdEc/XrdEcRedundancyProvider.cc
++++ b/src/XrdEc/XrdEcRedundancyProvider.cc
+@@ -15,7 +15,7 @@
+
+ #include "XrdEc/XrdEcRedundancyProvider.hh"
+
+-#include "isa-l/isa-l.h"
++#include <isa-l.h>
+ #include <cstring>
+ #include <sstream>
+ #include <algorithm>
+diff --git a/src/XrdIsal.cmake b/src/XrdIsal.cmake
+index fe819f495..f110df69d 100644
+--- a/src/XrdIsal.cmake
++++ b/src/XrdIsal.cmake
+@@ -1,57 +1,47 @@
+-include( XRootDCommon )
+-include( ExternalProject )
++if(USE_SYSTEM_ISAL)
++ find_package(isal REQUIRED)
++endif()
++
++if(ISAL_FOUND)
++ return()
++endif()
+
+ #-------------------------------------------------------------------------------
+ # Build isa-l
+ #-------------------------------------------------------------------------------
+
+-set(MAKEOPTIONS "")
+-if("${CMAKE_SYSTEM_PROCESSOR}" STREQUAL "i386" OR "${CMAKE_SYSTEM_PROCESSOR}" STREQUAL "i686")
+- set(MAKEOPTIONS "arch=32")
+-endif()
++include(ExternalProject)
++include(FindPackageHandleStandardArgs)
+
+-#EXECUTE_PROCESS(
+-# COMMAND git ls-remote --tags https://github.com/01org/isa-l
+-# COMMAND awk "{print $2}"
+-# COMMAND grep -v {}
+-# COMMAND awk -F "/" "{print $3}"
+-# COMMAND tail -1
+-# OUTPUT_VARIABLE ISAL_VERSION
+-#)
++set(ISAL_VERSION v2.30.0)
++message(STATUS "Building ISAL: ${ISAL_VERSION}")
+
+-set( ISAL_VERSION v2.30.0 )
+-MESSAGE( STATUS "Building ISAL: ${ISAL_VERSION}" )
++set(ISAL_ROOT "${CMAKE_BINARY_DIR}/isa-l")
++set(ISAL_LIBRARY "${ISAL_ROOT}/.libs/libisal.a")
++set(ISAL_INCLUDE_DIRS "${ISAL_ROOT}")
+
+-set( ISAL_BUILDDIR "${CMAKE_BINARY_DIR}/isal/build" CACHE INTERNAL "" )
+-set( ISAL_INCDIR "${CMAKE_BINARY_DIR}/isal/include" CACHE INTERNAL "" )
+-set( ISAL_LIBDIR "${CMAKE_BINARY_DIR}/isal/lib" CACHE INTERNAL "" )
+-
+-set( ISAL_HEADERS
+- ${ISAL_BUILDDIR}/include/crc64.h
+- ${ISAL_BUILDDIR}/include/crc.h
+- ${ISAL_BUILDDIR}/include/erasure_code.h
+- ${ISAL_BUILDDIR}/include/gf_vect_mul.h
+- ${ISAL_BUILDDIR}/include/igzip_lib.h
+- ${ISAL_BUILDDIR}/include/mem_routines.h
+- ${ISAL_BUILDDIR}/include/multibinary.asm
+- ${ISAL_BUILDDIR}/include/raid.h
+- ${ISAL_BUILDDIR}/include/reg_sizes.asm
+- ${ISAL_BUILDDIR}/include/test.h
+- ${ISAL_BUILDDIR}/include/types.h
++ExternalProject_add(isa-l
++ URL https://github.com/intel/isa-l/archive/refs/tags/${ISAL_VERSION}.tar.gz
++ URL_HASH SHA256=bcf592c04fdfa19e723d2adf53d3e0f4efd5b956bb618fed54a1108d76a6eb56
++ SOURCE_DIR ${CMAKE_BINARY_DIR}/isa-l
++ BUILD_IN_SOURCE 1
++ CONFIGURE_COMMAND ./autogen.sh COMMAND ./configure --with-pic
++ BUILD_COMMAND make -j ${CMAKE_BUILD_PARALLEL_LEVEL}
++ INSTALL_COMMAND ${CMAKE_COMMAND} -E copy_directory ${ISAL_ROOT}/include ${ISAL_ROOT}/isa-l
++ BUILD_BYPRODUCTS ${ISAL_LIBRARY} ${ISAL_INCLUDE_DIRS}
+ )
+
+-ExternalProject_add(
+- isa-l
+- SOURCE_DIR ${ISAL_BUILDDIR}
+- BUILD_IN_SOURCE 1
+- GIT_REPOSITORY https://github.com/01org/isa-l.git
+- GIT_TAG ${ISAL_VERSION}
+- CONFIGURE_COMMAND ./autogen.sh COMMAND ./configure --with-pic
+- BUILD_COMMAND make ${MAKEOPTIONS}
+- INSTALL_COMMAND mkdir -p ${ISAL_INCDIR}/isa-l
+- COMMAND mkdir -p ${ISAL_LIBDIR}
+- COMMAND cp ${ISAL_HEADERS} ${ISAL_INCDIR}/isa-l
+- COMMAND cp ${ISAL_BUILDDIR}/isa-l.h ${ISAL_INCDIR}/isa-l
+- COMMAND cp ${ISAL_BUILDDIR}/.libs/libisal.a ${ISAL_LIBDIR}/
++add_library(isal STATIC IMPORTED)
++
++set(ISAL_LIBRARIES isal)
++add_dependencies(isal isa-l)
++
++set_target_properties(isal
++ PROPERTIES
++ IMPORTED_LOCATION "${ISAL_LIBRARY}"
++ INTERFACE_INCLUDE_DIRECTORIES "$<BUILD_INTERFACE:${ISAL_INCLUDE_DIRS}>"
+ )
+
++# Emulate what happens when find_package(isal) succeeds
++find_package_handle_standard_args(isal
++ REQUIRED_VARS ISAL_INCLUDE_DIRS ISAL_LIBRARIES VERSION_VAR ISAL_VERSION)
+
+--
+commit f702ed624f9d57fb155ebf9c28b11def766da1da
+Author: Guilherme Amadio <amadio@cern.ch>
+Date: Fri Nov 11 15:35:15 2022 +0100
+
+ [CMake] Add a CMake find module for isa-l
+
+diff --git a/cmake/Findisal.cmake b/cmake/Findisal.cmake
+new file mode 100644
+index 000000000..06468f993
+--- /dev/null
++++ b/cmake/Findisal.cmake
+@@ -0,0 +1,55 @@
++#.rst:
++# Findisal
++# ---------
++#
++# Find Intelligent Storage Acceleration Library.
++#
++# Result Variables
++# ^^^^^^^^^^^^^^^^
++#
++# This module defines the following variables:
++#
++# ::
++#
++# ISAL_FOUND - True if isa-l is found.
++# ISAL_INCLUDE_DIRS - Where to find isa-l.h
++# ISAL_LIBRARIES - Where to find libisal.so
++#
++# ::
++#
++# ISAL_VERSION - The version of ISAL found (x.y.z)
++# ISAL_VERSION_MAJOR - The major version of isa-l
++# ISAL_VERSION_MINOR - The minor version of isa-l
++# ISAL_VERSION_PATCH - The patch version of isa-l
++
++foreach(var ISAL_FOUND ISAL_INCLUDE_DIR ISAL_ISAL_LIBRARY ISAL_LIBRARIES)
++ unset(${var} CACHE)
++endforeach()
++
++find_path(ISAL_INCLUDE_DIR NAME isa-l.h PATH_SUFFIXES include)
++
++if(NOT ISAL_LIBRARY)
++ find_library(ISAL_LIBRARY NAMES isal PATH_SUFFIXES lib)
++endif()
++
++mark_as_advanced(ISAL_INCLUDE_DIR)
++
++if(ISAL_INCLUDE_DIR AND EXISTS "${ISAL_INCLUDE_DIR}/isa-l.h")
++ file(STRINGS "${ISAL_INCLUDE_DIR}/isa-l.h" ISAL_H REGEX "^#define ISAL_[A-Z_]+[ ]+[0-9]+.*$")
++ string(REGEX REPLACE ".+ISAL_MAJOR_VERSION[ ]+([0-9]+).*$" "\\1" ISAL_VERSION_MAJOR "${ISAL_H}")
++ string(REGEX REPLACE ".+ISAL_MINOR_VERSION[ ]+([0-9]+).*$" "\\1" ISAL_VERSION_MINOR "${ISAL_H}")
++ string(REGEX REPLACE ".+ISAL_PATCH_VERSION[ ]+([0-9]+).*$" "\\1" ISAL_VERSION_PATCH "${ISAL_H}")
++ set(ISAL_VERSION "${ISAL_VERSION_MAJOR}.${ISAL_VERSION_MINOR}.${ISAL_VERSION_PATCH}")
++endif()
++
++include(FindPackageHandleStandardArgs)
++find_package_handle_standard_args(isal
++ REQUIRED_VARS ISAL_LIBRARY ISAL_INCLUDE_DIR VERSION_VAR ISAL_VERSION)
++
++if(ISAL_FOUND)
++ set(ISAL_INCLUDE_DIRS "${ISAL_INCLUDE_DIR}")
++
++ if(NOT ISAL_LIBRARIES)
++ set(ISAL_LIBRARIES ${ISAL_LIBRARY})
++ endif()
++endif()
diff --git a/net-libs/xrootd/metadata.xml b/net-libs/xrootd/metadata.xml
index dae43a78f13c..16c259164057 100644
--- a/net-libs/xrootd/metadata.xml
+++ b/net-libs/xrootd/metadata.xml
@@ -13,10 +13,14 @@
It is usually used with <pkg>sci-physics/root</pkg> and its PROOF
facilities for cluster computing in high energy physics.
</longdescription>
+ <upstream>
+ <remote-id type="github">xrootd/xrootd</remote-id>
+ </upstream>
<use>
<flag name="fuse">Enable the <pkg>sys-fs/fuse</pkg> filesystem driver</flag>
<flag name="http">Enable http protocol support</flag>
<flag name="libxml2">Use <pkg>dev-libs/libxml2</pkg> for XML parsing (preferred) instead of bundled tinyxml</flag>
<flag name="server">Install xrootd server and related plug-ins</flag>
+ <flag name="xrdec">Enable erasure coding support (XrdEc plugin) with <pkg>dev-libs/isa-l</pkg></flag>
</use>
</pkgmetadata>
diff --git a/net-libs/xrootd/xrootd-5.5.5.ebuild b/net-libs/xrootd/xrootd-5.5.5.ebuild
new file mode 100644
index 000000000000..9137e1925da2
--- /dev/null
+++ b/net-libs/xrootd/xrootd-5.5.5.ebuild
@@ -0,0 +1,205 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+PYTHON_COMPAT=( python3_{9..11} )
+DISTUTILS_EXT=1
+DISTUTILS_OPTIONAL=1
+DISTUTILS_USE_PEP517="setuptools"
+DOCS_BUILDER="doxygen"
+DOCS_DEPEND="
+ media-gfx/graphviz
+ virtual/latex-base
+ python? ( dev-python/sphinx )
+"
+
+inherit cmake docs distutils-r1 systemd
+
+DESCRIPTION="Extended ROOT remote file server"
+HOMEPAGE="https://xrootd.slac.stanford.edu/"
+SRC_URI="https://xrootd.slac.stanford.edu/download/v${PV}/${P}.tar.gz"
+
+LICENSE="LGPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
+IUSE="examples fuse http kerberos +libxml2 python readline +server systemd test xrdec"
+
+RESTRICT="!test? ( test )"
+
+CDEPEND="acct-group/xrootd
+ acct-user/xrootd
+ dev-libs/openssl:0=
+ sys-libs/zlib
+ virtual/libcrypt:=
+ fuse? ( sys-fs/fuse:0= )
+ http? (
+ net-misc/curl:=
+ net-libs/davix
+ )
+ kerberos? ( virtual/krb5 )
+ libxml2? ( dev-libs/libxml2:2= )
+ python? ( ${PYTHON_DEPS} )
+ readline? ( sys-libs/readline:0= )
+ systemd? ( sys-apps/systemd:= )
+ xrdec? ( dev-libs/isa-l )
+"
+DEPEND="${CDEPEND}"
+BDEPEND="
+ python? (
+ ${PYTHON_DEPS}
+ ${DISTUTILS_DEPS}
+ test? ( >=dev-python/pytest-7.1.2[${PYTHON_USEDEP}] )
+ )
+ test? ( dev-util/cppunit )
+"
+RDEPEND="${CDEPEND}
+ dev-lang/perl
+"
+REQUIRED_USE="
+ http? ( kerberos )
+ python? ( ${PYTHON_REQUIRED_USE} )
+ test? ( server )
+"
+
+PATCHES=(
+ "${FILESDIR}"/${PN}-4.8.3-crc32.patch
+ "${FILESDIR}"/${PN}-5.4.3-cmake_no_python.patch
+ "${FILESDIR}"/${PN}-5.4.3-python_tests_py3.patch
+ "${FILESDIR}"/${PN}-5.5-system-isa-l.patch
+)
+
+# xrootd plugins are not intended to be linked with,
+# they are to be loaded at runtime by xrootd,
+# see https://github.com/xrootd/xrootd/issues/447
+QA_SONAME="/usr/lib.*/libXrd.*-$(ver_cut 1)\.so
+ /usr/lib.*/libXrdClTests\.so"
+
+pkg_setup() {
+ use python && python_setup
+}
+
+src_prepare() {
+ cmake_src_prepare
+
+ if use python; then
+ pushd "${S}"/bindings/python > /dev/null || die
+ distutils-r1_src_prepare
+ popd > /dev/null || die
+ fi
+}
+
+# FIXME: support xrdec - currently only builds against bundled isa-l
+src_configure() {
+ local mycmakeargs=(
+ -DUSE_SYSTEM_ISAL=TRUE
+ -DCMAKE_DISABLE_FIND_PACKAGE_LibXml2=$(usex libxml2 "no" "yes")
+ -DCMAKE_DISABLE_FIND_PACKAGE_systemd=$(usex systemd "no" "yes")
+ -DENABLE_FUSE=$(usex fuse)
+ -DENABLE_HTTP=$(usex http)
+ -DENABLE_KRB5=$(usex kerberos)
+ -DENABLE_MACAROONS=no
+ -DENABLE_PYTHON=$(usex python)
+ -DENABLE_READLINE=$(usex readline)
+ -DENABLE_SCITOKENS=no
+ -DENABLE_TESTS=$(usex test)
+ -DENABLE_VOMS=no
+ -DENABLE_XRDCL=yes
+ -DENABLE_XRDCLHTTP=$(usex http)
+ -DENABLE_XRDEC=$(usex xrdec)
+ -DFORCE_ENABLED=yes
+ -DXRDCL_ONLY=$(usex server "no" "yes")
+ )
+ cmake_src_configure
+
+ if use python; then
+ pushd "${BUILD_DIR}"/bindings/python > /dev/null || die
+ distutils-r1_src_configure
+ popd > /dev/null || die
+ fi
+}
+
+src_compile() {
+ cmake_src_compile
+ if use python; then
+ pushd "${BUILD_DIR}"/bindings/python > /dev/null || die
+ distutils-r1_src_compile
+ popd > /dev/null || die
+ fi
+
+ docs_compile
+ # secondary documentation for python bindings
+ if use python && use doc; then
+ emake -C bindings/python/docs html
+ fi
+}
+
+python_test() {
+ epytest
+}
+
+src_test() {
+ pushd "${BUILD_DIR}/tests" > /dev/null || die
+ # There are more tests but, they require a docker environment with various containers.
+ # The tests below are the ones which do not require a server to be running.
+ ./common/test-runner ./XrdClTests/libXrdClTests.so "All Tests/UtilsTest/" || die
+ ./common/test-runner ./XrdClTests/libXrdClTests.so "All Tests/SocketTest/" || die
+ ./common/test-runner ./XrdClTests/libXrdClTests.so "All Tests/PollerTest/" || die
+ popd > /dev/null || die
+
+ # Python tests currently require manual configuration and start-up of an xrootd server.
+ # TODO: get this to run properly.
+ #use python && distutils-r1_src_test
+}
+
+src_install() {
+ dodoc docs/ReleaseNotes.txt
+ cmake_src_install
+ find "${ED}" \( -iname '*.md5' -o -iname '*.map' \) -delete || die
+
+ if use server; then
+ local i
+ for i in cmsd frm_purged frm_xfrd xrootd; do
+ newinitd "${FILESDIR}"/${i}.initd ${i}
+ done
+ # all daemons MUST use single master config file
+ newconfd "${FILESDIR}"/xrootd.confd xrootd
+
+ if use systemd; then
+ systemd_dounit packaging/common/*.{service,socket}
+ fi
+ fi
+
+ # base configs
+ insinto /etc/xrootd
+ doins packaging/common/*.cfg
+
+ keepdir /etc/xrootd/config.d
+ keepdir /var/log/xrootd
+
+ fowners -R xrootd:xrootd /etc/xrootd
+ fowners -R xrootd:xrootd /var/log/xrootd
+
+ if use python; then
+ pushd "${BUILD_DIR}"/bindings/python > /dev/null || die
+ distutils-r1_src_install
+ popd > /dev/null || die
+
+ if use doc; then
+ docinto python
+ docompress -x "/usr/share/doc/${PF}/python/html"
+ dodoc -r bindings/python/docs/build/html
+ fi
+ if use examples; then
+ docinto python
+ dodoc -r bindings/python/examples
+ fi
+ fi
+
+ if use test; then
+ for f in test-runner xrdshmap; do
+ rm "${ED}"/usr/bin/${f} || die "Failed to remove test helper ${f} from installed tree"
+ done
+ rm "${ED}"/usr/$(get_libdir)/libXrd*Test*.so || die "Failed to remove test libraries from installed tree"
+ fi
+}