summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWouter Deconinck <wdconinc@gmail.com>2023-03-27 04:36:24 -0500
committerGitHub <noreply@github.com>2023-03-27 11:36:24 +0200
commitfd19759783429ff58739db5445ce24e94f2dba88 (patch)
tree41e02dedba86b6cbdb75f78ec96f5d1678cdd0d7
parent3265215f1d3254d9ee0db8c1f1f4b733407fb20c (diff)
downloadspack-fd19759783429ff58739db5445ce24e94f2dba88.tar.gz
spack-fd19759783429ff58739db5445ce24e94f2dba88.tar.bz2
spack-fd19759783429ff58739db5445ce24e94f2dba88.tar.xz
spack-fd19759783429ff58739db5445ce24e94f2dba88.zip
xrootd: update patch (#36350)
Due to case change, a patch in xrootd doesn't apply cleanly. This fixes the patch by turning it into a `filter_file` with a more limited regex match.
-rw-r--r--var/spack/repos/builtin/packages/xrootd/no-systemd.patch17
-rw-r--r--var/spack/repos/builtin/packages/xrootd/package.py12
2 files changed, 8 insertions, 21 deletions
diff --git a/var/spack/repos/builtin/packages/xrootd/no-systemd.patch b/var/spack/repos/builtin/packages/xrootd/no-systemd.patch
deleted file mode 100644
index 44099f0b02..0000000000
--- a/var/spack/repos/builtin/packages/xrootd/no-systemd.patch
+++ /dev/null
@@ -1,17 +0,0 @@
---- a/cmake/XRootDFindLibs.cmake 2021-07-29 12:22:48.000000000 +0000
-+++ b/cmake/XRootDFindLibs.cmake 2021-10-25 18:26:07.308918231 +0000
-@@ -26,10 +26,10 @@
- add_definitions( -DHAVE_XML2 )
- endif()
-
--find_package( Systemd )
--if( SYSTEMD_FOUND )
-- add_definitions( -DHAVE_SYSTEMD )
--endif()
-+#find_package( Systemd )
-+#if( SYSTEMD_FOUND )
-+# add_definitions( -DHAVE_SYSTEMD )
-+#endif()
-
- find_package( CURL )
-
diff --git a/var/spack/repos/builtin/packages/xrootd/package.py b/var/spack/repos/builtin/packages/xrootd/package.py
index 4125de7e60..a4725a7a99 100644
--- a/var/spack/repos/builtin/packages/xrootd/package.py
+++ b/var/spack/repos/builtin/packages/xrootd/package.py
@@ -15,6 +15,8 @@ class Xrootd(CMakePackage):
url = "https://xrootd.slac.stanford.edu/download/v5.5.1/xrootd-5.5.1.tar.gz"
list_url = "https://xrootd.slac.stanford.edu/dload.html"
+ maintainers("wdconinc")
+
version("5.5.3", sha256="703829c2460204bd3c7ba8eaa23911c3c9a310f6d436211ba0af487ef7f6a980")
version("5.5.2", sha256="ec4e0490b8ee6a3254a4ea4449342aa364bc95b78dc9a8669151be30353863c6")
version("5.5.1", sha256="3556d5afcae20ed9a12c89229d515492f6c6f94f829a3d537f5880fcd2fa77e4")
@@ -91,11 +93,13 @@ class Xrootd(CMakePackage):
when="@5.5.1",
)
- # do not use systemd
- patch("no-systemd.patch")
-
def patch(self):
- """Remove hardcoded -std=c++0x flag"""
+ # Do not use systemd
+ filter_file(
+ r"(add_definitions\(\s*-DHAVE_SYSTEMD\s*\))", r"#\1", "cmake/XRootDFindLibs.cmake"
+ )
+
+ # Remove hardcoded -std=c++0x flag
if self.spec.satisfies("@4.7.0:"):
filter_file(r"\-std=c\+\+0x", r"", "cmake/XRootDOSDefs.cmake")