Packaging: fixes and SUSE support
Subsystems (2)
v2 cover Packaging: fixes and SUSE support
This series contains a few fixes for the packaging and add support for RPM packaging on SUSE
Patch 1-3 are fixes
#1 adds a CMake variable to select the patch tot systemd-modules-load #2 installs udev.md which is referenced in multiple service files #3 fixes a typo in redhat spec file
#4 adds the SUSE spec file
#5 enable the suse spec file do SUSE build in cbuild
Changes since v1:
- Add packaging fixes
- Several fixes on the SUSE spec file:
* Drop unneeded service file registering
* Drop duplicate rdma-ndd udev rule
Nicolas Morey-Chaisemartin (5):
kernel-boot: Add cmake variable to configure the path to systemd-*
binaries
Documentation: install udev.md
redhat: fix typo in librdacm package description
suse: Add spec file for SUSE
cbuild: use SUSE spec file for SUSE targets
CMakeLists.txt | 2 + Documentation/CMakeLists.txt | 1 + MAINTAINERS | 5 + buildlib/cbuild | 2 + debian/rdma-core.install | 1 + kernel-boot/[email protected] | 2 +- redhat/rdma-core.spec | 3 +- suse/rdma-core.spec | 688 ++++++++++++++++++++++++++++++ 8 files changed, 702 insertions(+), 2 deletions(-) create mode 100644 suse/rdma-core.spec
Signature · 6 lines
2.14.1.252.gf15771ee3 -- To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
A message that is not in the archive (sent off-list or not yet received): 88926674-d707-6f00-e9a1-e2a823fec323-l3A5Bk7waGM@public.gmane.org
PATCH v2 1/5 kernel-boot: Add cmake variable to configure the path to systemd-* binaries
Debian uses /lib/systemd
SUSE uses /usr/lib/systemd
RHEL/Fedora can use both.
--- CMakeLists.txt | 2 ++ kernel-boot/[email protected] | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-)
CMakeLists.txt +2 -0
@@ -74,6 +74,8 @@ set(CMAKE_INSTALL_INITDDIR "${CMAKE_INSTALL_SYSCONFDIR}/init.d" CACHE PATH "Location for init.d files") set(CMAKE_INSTALL_SYSTEMD_SERVICEDIR "${CMAKE_INSTALL_PREFIX}/lib/systemd/system" CACHE PATH "Location for systemd service files") +set(CMAKE_INSTALL_SYSTEMD_BINDIR "/lib/systemd" + CACHE PATH "Location for systemd extra binaries") set(ACM_PROVIDER_DIR "${CMAKE_INSTALL_FULL_LIBDIR}/ibacm" CACHE PATH "Location for ibacm provider plugin shared library files.")
kernel-boot/[email protected] +1 -1
@@ -21,5 +21,5 @@ ConditionCapability=CAP_SYS_MODULE [Service] Type=oneshot RemainAfterExit=yes -ExecStart=/lib/systemd/systemd-modules-load @CMAKE_INSTALL_FULL_SYSCONFDIR@/rdma/modules/%I.conf +ExecStart=@CMAKE_INSTALL_SYSTEMD_BINDIR@/systemd-modules-load @CMAKE_INSTALL_FULL_SYSCONFDIR@/rdma/modules/%I.conf TimeoutSec=90s
Signature · 7 lines
2.14.1.252.gf15771ee3 -- To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
PATCH v2 2/5 Documentation: install udev.md
In reply to a message not in the archiveudev.md is referenced by rdma-hw,target and [email protected] and needs to be installed.
--- Documentation/CMakeLists.txt | 1 + debian/rdma-core.install | 1 + redhat/rdma-core.spec | 1 + 3 files changed, 3 insertions(+)
Documentation/CMakeLists.txt +1 -0
@@ -5,6 +5,7 @@ install(FILES libibverbs.md librdmacm.md rxe.md + udev.md ../README.md ../MAINTAINERS DESTINATION "${CMAKE_INSTALL_DOCDIR}")
debian/rdma-core.install +1 -0
@@ -25,6 +25,7 @@ usr/sbin/rdma-ndd usr/share/doc/rdma-core/MAINTAINERS usr/share/doc/rdma-core/README.md usr/share/doc/rdma-core/rxe.md +usr/share/doc/rdma-core/udev.md usr/share/man/man5/iwpmd.conf.5 usr/share/man/man7/rxe.7 usr/share/man/man8/iwpmd.8
redhat/rdma-core.spec +1 -0
@@ -319,6 +319,7 @@ rm -rf %{buildroot}/%{_sbindir}/srp_daemon.sh %dir %{_docdir}/%{name}-%{version} %doc %{_docdir}/%{name}-%{version}/README.md %doc %{_docdir}/%{name}-%{version}/rxe.md +%doc %{_docdir}/%{name}-%{version}/udev.md %config(noreplace) %{_sysconfdir}/rdma/mlx4.conf %config(noreplace) %{_sysconfdir}/rdma/modules/infiniband.conf %config(noreplace) %{_sysconfdir}/rdma/modules/iwarp.conf
Signature · 7 lines
2.14.1.252.gf15771ee3 -- To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
PATCH v2 3/5 redhat: fix typo in librdacm package description
In reply to a message not in the archive--- redhat/rdma-core.spec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
redhat/rdma-core.spec +1 -1
@@ -183,7 +183,7 @@ Summary: Userspace RDMA Connection Manager Requires: %{name}%{?_isa} = %{version}-%{release} %description -n librdmacm -librdmacm provides a userspace RDMA Communication Managment API. +librdmacm provides a userspace RDMA Communication Management API. %package -n librdmacm-utils Summary: Examples for the librdmacm library
Signature · 7 lines
2.14.1.252.gf15771ee3 -- To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
PATCH v2 4/5 suse: Add spec file for SUSE
In reply to a message not in the archive--- MAINTAINERS | 5 + suse/rdma-core.spec | 688 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 693 insertions(+) create mode 100644 suse/rdma-core.spec
MAINTAINERS +5 -0
@@ -166,6 +166,11 @@ M: Bart Van Assche <[email protected]> S: Supported F: srp_daemon/ +SUSE PACKAGING +M: Nicolas Morey-Chaisemartin <[email protected]> +S: Supported +F: suse/ + VMWARE PVRDMA USERSPACE PROVIDER (for vmw_pvrdma.ko) M: Adit Ranadive <[email protected]> L: [email protected]
suse/rdma-core.spec new file +688 -0
688 lines not on this page · raw message
Signature · 7 lines
2.14.1.252.gf15771ee3 -- To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
PATCH v2 5/5 cbuild: use SUSE spec file for SUSE targets
In reply to a message not in the archive--- buildlib/cbuild | 2 ++ 1 file changed, 2 insertions(+)
buildlib/cbuild +2 -0
@@ -293,6 +293,7 @@ class ZypperEnvironment(Environment): class leap(ZypperEnvironment): docker_parent = "opensuse:42.2"; + specfile = "suse/rdma-core.spec"; pkgs = { 'cmake', 'gcc',
@@ -313,6 +314,7 @@ class tumbleweed(ZypperEnvironment): docker_parent = "opensuse:tumbleweed"; pkgs = leap.pkgs; name = "tumbleweed"; + specfile = "suse/rdma-core.spec"; # -------------------------------------------------------------------------
Signature · 6 lines
2.14.1.252.gf15771ee3 -- To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
A message that is not in the archive (sent off-list or not yet received): 6173036c-1120-3afa-274d-8b41ce821da2-l3A5Bk7waGM@public.gmane.org
Re: [PATCHv2 rdma-core 5/5] cbuild: use SUSE spec file for SUSE targets
Quoted 16 lines · Nicolas Morey-Chaisemartin
buildlib/cbuild | 2 ++ 1 file changed, 2 insertions(+)buildlib/cbuild +2
-0+++ b/buildlib/cbuild@@ -293,6 +293,7 @@ class ZypperEnvironment(Environment): class leap(ZypperEnvironment): docker_parent = "opensuse:42.2"; + specfile = "suse/rdma-core.spec"; pkgs = { 'cmake', 'gcc',
buildlib/cbuild class tumbleweed(ZypperEnvironment): · line 319
Quoted 6 lines
buildlib/cbuild +1
-0@@ -313,6 +314,7 @@ class tumbleweed(ZypperEnvironment): docker_parent = "opensuse:tumbleweed"; pkgs = leap.pkgs; name = "tumbleweed"; + specfile = "suse/rdma-core.spec"; # -------------------------------------------------------------------------
Would you add another patch to delete the top level rdma-core.spec please?
Nothing uses it now.
Jason
--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
A message that is not in the archive (sent off-list or not yet received): 20170825151651.GB1027-ePGOBjL8dl3ta4EC/59zMFaTQe2KTcn/@public.gmane.org
PATCH v2 6/6 rdma-core.spec: remove top spec file
It is now unused as both redhat and suse provide theirs. Update versioning documentation for the new files.
--- Documentation/versioning.md | 49 ++++++++------- rdma-core.spec | 146 -------------------------------------------- 2 files changed, 26 insertions(+), 169 deletions(-) delete mode 100644 rdma-core.spec
Documentation/versioning.md +26 -23
@@ -17,50 +17,53 @@ When the PACKAGE_VERSION is changed, the packaging files should be updated: ```diff diff --git a/CMakeLists.txt b/CMakeLists.txt -index 8f7a47580f7b95..45cbc4e018b296 100644 +index a2464ec5..cf237904 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -44,7 +44,7 @@ endif() set(PACKAGE_NAME "RDMA") # See Documentation/versioning.md --set(PACKAGE_VERSION "12") -+set(PACKAGE_VERSION "13") - - #------------------------- - # Basic standard paths +-set(PACKAGE_VERSION "14") ++set(PACKAGE_VERSION "15") + # When this is changed the values in these files need changing too: + # debian/libibverbs1.symbols + # libibverbs/libibverbs.map diff --git a/debian/changelog b/debian/changelog -index 6cabcc483ca85e..3defc050c5e457 100644 +index 86b402f4..9ee7fe16 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,4 +1,4 @@ --rdma-core (12-1) unstable; urgency=low -+rdma-core (13-1) unstable; urgency=low +-rdma-core (14-1) unstable; urgency=low ++rdma-core (15-1) unstable; urgency=low * New version. * Adding debian/copyright. -diff --git a/rdma-core.spec b/rdma-core.spec -index 41eedb2813c52d..6519bc370a230a 100644 ---- a/rdma-core.spec -+++ b/rdma-core.spec -@@ -1,5 +1,5 @@ - Name: rdma-core --Version: 12 -+Version: 13 - Release: 1%{?dist} - Summary: RDMA core userspace libraries and daemons - diff --git a/redhat/rdma-core.spec b/redhat/rdma-core.spec -index 4271e7c9817e67..f2198ee3cd9410 100644 +index cc0c3ba0..62334730 100644 --- a/redhat/rdma-core.spec +++ b/redhat/rdma-core.spec @@ -1,5 +1,5 @@ Name: rdma-core --Version: 12 -+Version: 13 +-Version: 14 ++Version: 15 Release: 1%{?dist} Summary: RDMA core userspace libraries and daemons +diff --git a/suse/rdma-core.spec b/suse/rdma-core.spec +index 76ca7286..a19f9e01 100644 +--- a/suse/rdma-core.spec ++++ b/suse/rdma-core.spec +@@ -19,7 +19,7 @@ + %bcond_without systemd + %define git_ver %{nil} + Name: rdma-core +-Version: 14 ++Version: 15 + Release: 0 + Summary: RDMA core userspace libraries and daemons + License: GPL-2.0 or BSD-2-Clause + ``` # Shared Library Versions
rdma-core.spec deleted +0 -146
146 lines not on this page · raw message
Signature · 6 lines
2.14.1.252.gf15771ee3 -- To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html