Skip to contentSkip to conversation

Packaging: fixes and SUSE support

PATCH In review Nicolas Morey-Chaisemartin 2 participants 8 messages Aug 25, 2017 3 messages not in the archive

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

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
#2 lore raw

PATCH v2 1/5 kernel-boot: Add cmake variable to configure the path to systemd-* binaries

In reply to a message not in the archive

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
index 2324cf49..a2464ec5 100644
@@ -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
index d381bc5b..c390a8cc 100644
@@ -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
#3 lore raw

PATCH v2 2/5 Documentation: install udev.md

In reply to a message not in the archive

udev.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
index 6170b5f2..d6e08ded 100644
@@ -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
index 8f5779a4..87bff10f 100644
@@ -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
index 61e16de5..ca11f663 100644
@@ -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
#4 lore raw

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
index ca11f663..cc0c3ba0 100644
@@ -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
#5 lore raw

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
index 19fe88df..08286cb5 100644
@@ -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
#6 lore raw

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
index 86a5e42d..4c3ef36b 100755
@@ -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
#8 lore raw

Re: [PATCHv2 rdma-core 5/5] cbuild: use SUSE spec file for SUSE targets

In reply to a message not in the archive
Quoted 16 lines · Nicolas Morey-Chaisemartin
 buildlib/cbuild | 2 ++
 1 file changed, 2 insertions(+)
buildlib/cbuild +2 -0
index 86a5e42d..4c3ef36b 100755
+++ 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

#10 lore raw

PATCH v2 6/6 rdma-core.spec: remove top spec file

In reply to a message not in the archive

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
index dca092d7..1d4a41b8 100644
@@ -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