linux-rdma.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH rdma-core 1/3] debian: Guard udevadm call again
@ 2018-02-15 11:08 Benjamin Drung
       [not found] ` <20180215110842.6375-1-benjamin.drung-EIkl63zCoXaH+58JC4qpiA@public.gmane.org>
  0 siblings, 1 reply; 3+ messages in thread
From: Benjamin Drung @ 2018-02-15 11:08 UTC (permalink / raw)
  To: linux-rdma-u79uwXL29TY76Z2rM5mHXA; +Cc: Benjamin Drung

lintian complains with udevadm-called-without-guard:

udevadm can exist but be non-functional (such as inside a chroot) and
thus can result in package installation or upgrade failure if the call
fails.

Please guard the return code of the call via wrapping it in a suitable
if construct or by appending || true.

Refer to https://bugs.debian.org/890224 and the udevadm(8) manual page
for details.

Signed-off-by: Benjamin Drung <benjamin.drung-EIkl63zCoXaH+58JC4qpiA@public.gmane.org>
---
 debian/rdma-core.postinst | 6 +++---
 debian/srptools.postinst  | 2 +-
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/debian/rdma-core.postinst b/debian/rdma-core.postinst
index a76368a4..6486f62e 100644
--- a/debian/rdma-core.postinst
+++ b/debian/rdma-core.postinst
@@ -6,7 +6,7 @@ set -e
 if [ "$1" = "configure" ]; then
     # we ship udev rules, so trigger an update. This has to be done after
     # DEBHELPER restarts systemd to get our new service files loaded.
-    udevadm trigger --subsystem-match=infiniband --action=change
-    udevadm trigger --subsystem-match=net --action=change
-    udevadm trigger --subsystem-match=infiniband_mad --action=change
+    udevadm trigger --subsystem-match=infiniband --action=change || true
+    udevadm trigger --subsystem-match=net --action=change || true
+    udevadm trigger --subsystem-match=infiniband_mad --action=change || true
 fi
diff --git a/debian/srptools.postinst b/debian/srptools.postinst
index c69a3ad1..398534db 100644
--- a/debian/srptools.postinst
+++ b/debian/srptools.postinst
@@ -6,5 +6,5 @@ set -e
 if [ "$1" = "configure" ]; then
     # we ship udev rules, so trigger an update. This has to be done after
     # DEBHELPER restarts systemd to get our new service files loaded.
-    udevadm trigger --subsystem-match=infiniband_mad --action=change
+    udevadm trigger --subsystem-match=infiniband_mad --action=change || true
 fi
-- 
2.14.1

--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* [PATCH rdma-core 2/3] debian: Override intentional WantedBy lintian warning
       [not found] ` <20180215110842.6375-1-benjamin.drung-EIkl63zCoXaH+58JC4qpiA@public.gmane.org>
@ 2018-02-15 11:08   ` Benjamin Drung
  2018-02-15 11:08   ` [PATCH rdma-core 3/3] debian: Add Debian uploads up to version 16.2-1 Benjamin Drung
  1 sibling, 0 replies; 3+ messages in thread
From: Benjamin Drung @ 2018-02-15 11:08 UTC (permalink / raw)
  To: linux-rdma-u79uwXL29TY76Z2rM5mHXA; +Cc: Benjamin Drung

Lintian complains about unusual WantedBy= relationship in systemd
service files. These WantedBy= relationships are intentional. Therefore
override the lintian warnings.

Signed-off-by: Benjamin Drung <benjamin.drung-EIkl63zCoXaH+58JC4qpiA@public.gmane.org>
---
 debian/ibacm.lintian-overrides    | 2 ++
 debian/srptools.lintian-overrides | 2 ++
 2 files changed, 4 insertions(+)
 create mode 100644 debian/ibacm.lintian-overrides
 create mode 100644 debian/srptools.lintian-overrides

diff --git a/debian/ibacm.lintian-overrides b/debian/ibacm.lintian-overrides
new file mode 100644
index 00000000..66fffd93
--- /dev/null
+++ b/debian/ibacm.lintian-overrides
@@ -0,0 +1,2 @@
+# The wantedby target rdma-hw.target is intentional (see rdma-core)
+ibacm: systemd-service-file-refers-to-unusual-wantedby-target lib/systemd/system/ibacm.service rdma-hw.target
diff --git a/debian/srptools.lintian-overrides b/debian/srptools.lintian-overrides
new file mode 100644
index 00000000..86788994
--- /dev/null
+++ b/debian/srptools.lintian-overrides
@@ -0,0 +1,2 @@
+# The wantedby target remote-fs-pre.target is intentional
+srptools: systemd-service-file-refers-to-unusual-wantedby-target lib/systemd/system/*.service remote-fs-pre.target
-- 
2.14.1

--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* [PATCH rdma-core 3/3] debian: Add Debian uploads up to version 16.2-1
       [not found] ` <20180215110842.6375-1-benjamin.drung-EIkl63zCoXaH+58JC4qpiA@public.gmane.org>
  2018-02-15 11:08   ` [PATCH rdma-core 2/3] debian: Override intentional WantedBy lintian warning Benjamin Drung
@ 2018-02-15 11:08   ` Benjamin Drung
  1 sibling, 0 replies; 3+ messages in thread
From: Benjamin Drung @ 2018-02-15 11:08 UTC (permalink / raw)
  To: linux-rdma-u79uwXL29TY76Z2rM5mHXA; +Cc: Benjamin Drung

rdma-core 16.1-2 and 16.2-1 were uploaded to Debian unstable. Include
the changelogs from these uploads and update the timestamp from the top
commit.
---
 debian/changelog | 16 +++++++++++++++-
 1 file changed, 15 insertions(+), 1 deletion(-)

diff --git a/debian/changelog b/debian/changelog
index 7aa1408d..8dcb371f 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -2,7 +2,21 @@ rdma-core (17.0-1) unstable; urgency=medium
 
   * New upstream release.
 
- -- Jason Gunthorpe <jgg-ePGOBjL8dl3ta4EC/59zMFaTQe2KTcn/@public.gmane.org>  Thu, 04 Jan 2018 15:25:06 +0100
+ -- Jason Gunthorpe <jgg-ePGOBjL8dl3ta4EC/59zMFaTQe2KTcn/@public.gmane.org>  Thu, 15 Feb 2018 12:06:48 +0100
+
+rdma-core (16.2-1) unstable; urgency=medium
+
+  * New upstream bugfix release
+  * Guard udevadm call again
+  * Override intentional systemd WantedBy= relationship lintian warning
+
+ -- Benjamin Drung <benjamin.drung-EIkl63zCoXaH+58JC4qpiA@public.gmane.org>  Thu, 15 Feb 2018 11:41:14 +0100
+
+rdma-core (16.1-2) unstable; urgency=medium
+
+  * Do not require valgrind on ia64 (Closes: #887511)
+
+ -- Benjamin Drung <benjamin.drung-EIkl63zCoXaH+58JC4qpiA@public.gmane.org>  Fri, 19 Jan 2018 12:37:05 +0100
 
 rdma-core (16.1-1) unstable; urgency=medium
 
-- 
2.14.1

--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2018-02-15 11:08 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-02-15 11:08 [PATCH rdma-core 1/3] debian: Guard udevadm call again Benjamin Drung
     [not found] ` <20180215110842.6375-1-benjamin.drung-EIkl63zCoXaH+58JC4qpiA@public.gmane.org>
2018-02-15 11:08   ` [PATCH rdma-core 2/3] debian: Override intentional WantedBy lintian warning Benjamin Drung
2018-02-15 11:08   ` [PATCH rdma-core 3/3] debian: Add Debian uploads up to version 16.2-1 Benjamin Drung

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).