Ticket 8544 - Enable --with libcurl in spec file
Summary: Enable --with libcurl in spec file
Status: OPEN
Alias: None
Product: Slurm
Classification: Unclassified
Component: Build System and Packaging (show other tickets)
Version: 20.02.x
Hardware: Linux Linux
: C - Contributions
Assignee: Tim Wickberg
QA Contact:
URL:
Depends on:
Blocks:
 
Reported: 2020-02-20 01:51 MST by Andrew Elwell
Modified: 2020-02-20 01:51 MST (History)
0 users

See Also:
Site: Pawsey
Alineos Sites: ---
Atos/Eviden Sites: ---
Confidential Site: ---
Coreweave sites: ---
Cray Sites: ---
DS9 clusters: ---
HPCnow Sites: ---
HPE Sites: ---
IBM Sites: ---
NOAA SIte: ---
NoveTech Sites: ---
Nvidia HWinf-CS Sites: ---
OCF Sites: ---
Recursion Pharma Sites: ---
SFW Sites: ---
SNIC sites: ---
Tzag Elita Sites: ---
Linux Distro: ---
Machine Name:
CLE Version:
Version Fixed:
Target Release: ---
DevPrio: ---
Emory-Cloud Sites: ---


Attachments

Note You need to log in before you can comment on or make changes to this ticket.
Description Andrew Elwell 2020-02-20 01:51:00 MST
Discovered when trying to build slurm on a cray, but may be of help to others.
Although the ./configure will detect if libcurl-devel is installed and build jobcomp/elasticsearch automatically, there's no way of requesting this on a rpmbuild command line

Trivial patch to allow --with libcurl rpmbuild option to force the BuildRequires to pull in libcurl-devel


diff --git a/slurm.spec b/slurm.spec
index c0ac8d626b..4943fee58d 100644
--- a/slurm.spec
+++ b/slurm.spec
@@ -27,6 +27,7 @@ Source:               %{slurm_source_dir}.tar.bz2
 # --without debug      %_without_debug 1       don't compile with debugging symbols
 # --with hdf5          %_with_hdf5 path        require hdf5 support
 # --with hwloc         %_with_hwloc 1          require hwloc support
+# --with libcurl       %_with_libcurl path     require libcurl support (needed for jobcomp/elasticsearch)
 # --with lua           %_with_lua path         build Slurm lua bindings
 # --with mysql         %_with_mysql 1          require mysql/mariadb support
 # --with numa          %_with_numa 1           require NUMA support
@@ -46,6 +47,7 @@ Source:               %{slurm_source_dir}.tar.bz2
 # These options are only here to force there to be these on the build.
 # If they are not set they will still be compiled if the packages exist.
 %bcond_with hwloc
+%bcond_with libcurl
 %bcond_with mysql
 %bcond_with hdf5
 %bcond_with lua
@@ -121,6 +123,10 @@ BuildRequires: pkgconfig(lua) >= 5.1.0
 BuildRequires: hwloc-devel
 %endif

+%if %{with libcurl}
+BuildRequires: libcurl-devel
+%endif
+
 %if %{with numa}
 %if %{defined suse_version}
 BuildRequires: libnuma-devel