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) server-digest SHA256) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id E992515838C for ; Thu, 25 Jan 2024 15:31:36 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 2C62DE2A4D; Thu, 25 Jan 2024 15:31:36 +0000 (UTC) Received: from smtp.gentoo.org (dev.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 0E88EE2A4D for ; Thu, 25 Jan 2024 15:31:36 +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) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 0E32B343343 for ; Thu, 25 Jan 2024 15:31:35 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 36C671133 for ; Thu, 25 Jan 2024 15:31:33 +0000 (UTC) From: "Guilherme Amadio" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Guilherme Amadio" Message-ID: <1706196665.35914bd9c14fb01cc0fe7cb32fb681d05b07c059.amadio@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: net-libs/xrootd/ X-VCS-Repository: repo/gentoo X-VCS-Files: net-libs/xrootd/Manifest net-libs/xrootd/xrootd-5.6.6.ebuild X-VCS-Directories: net-libs/xrootd/ X-VCS-Committer: amadio X-VCS-Committer-Name: Guilherme Amadio X-VCS-Revision: 35914bd9c14fb01cc0fe7cb32fb681d05b07c059 X-VCS-Branch: master Date: Thu, 25 Jan 2024 15:31:33 +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: 69ca628f-217d-49d8-ae46-2a2c71754353 X-Archives-Hash: 017b0b66933f2f245b056a9096aa30f3 commit: 35914bd9c14fb01cc0fe7cb32fb681d05b07c059 Author: Guilherme Amadio gentoo org> AuthorDate: Thu Jan 25 10:46:55 2024 +0000 Commit: Guilherme Amadio gentoo org> CommitDate: Thu Jan 25 15:31:05 2024 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=35914bd9 net-libs/xrootd: add 5.6.6 Signed-off-by: Guilherme Amadio gentoo.org> net-libs/xrootd/Manifest | 1 + net-libs/xrootd/xrootd-5.6.6.ebuild | 206 ++++++++++++++++++++++++++++++++++++ 2 files changed, 207 insertions(+) diff --git a/net-libs/xrootd/Manifest b/net-libs/xrootd/Manifest index 6a95ff6758a4..ac4af459674c 100644 --- a/net-libs/xrootd/Manifest +++ b/net-libs/xrootd/Manifest @@ -3,3 +3,4 @@ DIST xrootd-5.5.5.tar.gz 3243062 BLAKE2B 697dbd9d42e3fd9c6d2cf86a1c120e3752e74ab DIST xrootd-5.6.2.tar.gz 3251295 BLAKE2B 74582fd256279719c40fbee8e053d45ef76709c5077ace43db2f3c3e5f1902245999e25872f18a4c60bf41e5c11bb1a195cd494b00c66dcc19705112909f0170 SHA512 53ee1f7eaf5bd61dcc6345be0193679daa76300cd5fc15e54e622e2c05cf5a312d924c6e7fe3bfb91e9d2aff8feeb9faee87259e9c2ff33bb52d1add7ec13394 DIST xrootd-5.6.3.tar.gz 3257144 BLAKE2B 6186b20ffca7183ca5325798afacf4aa5b6993cbdc25b4abce7da33129e7ca5c0524efe93431ccf84b3504a84f6dabfca86d0d9ac8a2a592ec2b16519be6d540 SHA512 72a875064181225deef57eae89c651696a083896d7bd26099c7dd321097c2b90acef42dc1c4ef55334f0ff9b6d33bf0a82e3c9d92511b69b955fbdadeff4b625 DIST xrootd-5.6.4.tar.gz 6696858 BLAKE2B 09e7bcd750f6eac5714eab7eb945a55e939d4ad5310b3bfe90b1322f00064778d179396d9e9a89dc4bafda5ee924054e71c5bfe8474889b31dc3e2bcd24ed4c4 SHA512 efa88da2c9e9e55aeab9c4fbec0ec688fbc6ea8e16178bbcbdd534a09609b5c645cafee023fed48495cda8e865210e2fd3ba4830852f157626ecc1995eb55988 +DIST xrootd-5.6.6.tar.gz 6698407 BLAKE2B 205918ba9af43a8b276f9a3cdd1e28342205b6ed4bd19fdb56fc79a98c6b4c3701995b8aa690706d7fff8923646923e87f0d63162851aadfeb18146978c46cc6 SHA512 b13b91805f238cb06d6893bb41e39df3ab0c77a3096770bbd2ccd6472ed0e292cbcad67b6c8d1966c00056f4ae21a68fc9e24331fd9c2cf56890135151ebf97b diff --git a/net-libs/xrootd/xrootd-5.6.6.ebuild b/net-libs/xrootd/xrootd-5.6.6.ebuild new file mode 100644 index 000000000000..a1af68ccd6cf --- /dev/null +++ b/net-libs/xrootd/xrootd-5.6.6.ebuild @@ -0,0 +1,206 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +PYTHON_COMPAT=( python3_{9..12} ) +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/" +LICENSE="LGPL-3+" + +IUSE="ceph examples fuse http kerberos +libxml2 macaroons python readline scitokens +server systemd test xrdec" +SLOT="0" + +KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux" +SRC_URI="https://xrootd.slac.stanford.edu/download/v${PV}/${P}.tar.gz" + +RESTRICT="!test? ( test )" + +REQUIRED_USE=" + http? ( kerberos ) + macaroons? ( server http ) + python? ( ${PYTHON_REQUIRED_USE} ) + scitokens? ( server ) + test? ( server ) +" + +CDEPEND="acct-group/xrootd + acct-user/xrootd + dev-libs/openssl:0= + sys-libs/zlib + virtual/libcrypt:= + ceph? ( sys-cluster/ceph ) + fuse? ( sys-fs/fuse:0= ) + http? ( + net-misc/curl:= + net-libs/davix + ) + kerberos? ( virtual/krb5 ) + libxml2? ( dev-libs/libxml2:2= ) + macaroons? ( dev-libs/libmacaroons ) + python? ( ${PYTHON_DEPS} ) + readline? ( sys-libs/readline:0= ) + scitokens? ( dev-cpp/scitokens-cpp ) + 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-cpp/gtest + dev-util/cppunit + ) +" +RDEPEND="${CDEPEND} + dev-lang/perl +" + +PATCHES=( + "${FILESDIR}"/${PN}-5.4.3-python_tests_py3.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.*/libXrd.*Tests\.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 +} + +src_configure() { + local mycmakeargs=( + -DUSE_SYSTEM_ISAL=TRUE + $(usex python "-DINSTALL_PYTHON_BINDINGS=FALSE" "") + -DXRDCEPH_SUBMODULE=$(usex ceph) + -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=$(usex macaroons) + -DENABLE_PYTHON=$(usex python) + -DENABLE_READLINE=$(usex readline) + -DENABLE_SCITOKENS=$(usex scitokens) + -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() { + cmake_src_test + # 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 +}