public inbox for linux-rdma@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH rdma-core 0/6] More Debian packaging cleanup
@ 2017-11-14 20:02 Benjamin Drung
       [not found] ` <20171114200247.25890-1-benjamin.drung-EIkl63zCoXaH+58JC4qpiA@public.gmane.org>
  0 siblings, 1 reply; 9+ messages in thread
From: Benjamin Drung @ 2017-11-14 20:02 UTC (permalink / raw)
  To: linux-rdma-u79uwXL29TY76Z2rM5mHXA; +Cc: Benjamin Drung

This patch series contain some packaging clean-up.

Benjamin Drung (6):
  debian: Let libibverbs1 16 break ibverbs-providers 15
  debian: Replace priority extra by optional
  debian: Relax dh-systemd build dependency
  debian: Bump Standards-Version to 4.1.1
  debian: Drop lintian overrides for false positives
  debian: Run wrap-and-sort

 debian/control                         | 10 +++-------
 debian/libibumad-dev.lintian-overrides |  3 ---
 debian/libibumad3.lintian-overrides    |  2 --
 debian/libibverbs-dev.install          |  2 +-
 debian/rdma-core.install               |  2 +-
 5 files changed, 5 insertions(+), 14 deletions(-)
 delete mode 100644 debian/libibumad-dev.lintian-overrides
 delete mode 100644 debian/libibumad3.lintian-overrides

-- 
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	[flat|nested] 9+ messages in thread

* [PATCH rdma-core 1/6] debian: Let libibverbs1 16 break ibverbs-providers 15
       [not found] ` <20171114200247.25890-1-benjamin.drung-EIkl63zCoXaH+58JC4qpiA@public.gmane.org>
@ 2017-11-14 20:02   ` Benjamin Drung
       [not found]     ` <20171114200247.25890-2-benjamin.drung-EIkl63zCoXaH+58JC4qpiA@public.gmane.org>
  2017-11-14 20:02   ` [PATCH rdma-core 2/6] debian: Replace priority extra by optional Benjamin Drung
                     ` (4 subsequent siblings)
  5 siblings, 1 reply; 9+ messages in thread
From: Benjamin Drung @ 2017-11-14 20:02 UTC (permalink / raw)
  To: linux-rdma-u79uwXL29TY76Z2rM5mHXA; +Cc: Benjamin Drung

ibverbs-providers uses the private symbols of libibverbs1. Thus
libibverbs1 will not work with an old version version of
ibverbs-providers if the private symbol version is bumped.

Bump the ibverbs-providers version that libibverbs1 breaks which was
forgotten on the symbol version bump. See also commit
611b7cc3b8e0d79aa986f042f486fccc95d73679. Append a tilde to support
the lower version numbers (e.g. 16~201711132208) in the PPA builds.

Signed-off-by: Benjamin Drung <benjamin.drung-EIkl63zCoXaH+58JC4qpiA@public.gmane.org>
---
 debian/control | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/debian/control b/debian/control
index c5f7a052..8c0957c7 100644
--- a/debian/control
+++ b/debian/control
@@ -137,7 +137,7 @@ Section: libs
 Pre-Depends: ${misc:Pre-Depends}
 Depends: adduser, ${misc:Depends}, ${shlibs:Depends}
 Recommends: ibverbs-providers
-Breaks: ibverbs-providers (<< 14)
+Breaks: ibverbs-providers (<< 16~)
 Description: Library for direct userspace use of RDMA (InfiniBand/iWARP)
  libibverbs is a library that allows userspace processes to use RDMA
  "verbs" as described in the InfiniBand Architecture Specification and
-- 
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] 9+ messages in thread

* [PATCH rdma-core 2/6] debian: Replace priority extra by optional
       [not found] ` <20171114200247.25890-1-benjamin.drung-EIkl63zCoXaH+58JC4qpiA@public.gmane.org>
  2017-11-14 20:02   ` [PATCH rdma-core 1/6] debian: Let libibverbs1 16 break ibverbs-providers 15 Benjamin Drung
@ 2017-11-14 20:02   ` Benjamin Drung
  2017-11-14 20:02   ` [PATCH rdma-core 3/6] debian: Relax dh-systemd build dependency Benjamin Drung
                     ` (3 subsequent siblings)
  5 siblings, 0 replies; 9+ messages in thread
From: Benjamin Drung @ 2017-11-14 20:02 UTC (permalink / raw)
  To: linux-rdma-u79uwXL29TY76Z2rM5mHXA; +Cc: Benjamin Drung

Since Debian Policy version 4.0.1, the priority extra has been
deprecated.

Refer to Debian Policy Manual section 2.5 (Priorities) for details.

Signed-off-by: Benjamin Drung <benjamin.drung-EIkl63zCoXaH+58JC4qpiA@public.gmane.org>
---
 debian/control | 4 ----
 1 file changed, 4 deletions(-)

diff --git a/debian/control b/debian/control
index 8c0957c7..403f0527 100644
--- a/debian/control
+++ b/debian/control
@@ -155,7 +155,6 @@ Description: Library for direct userspace use of RDMA (InfiniBand/iWARP)
 
 Package: libibverbs1-dbg
 Section: debug
-Priority: extra
 Architecture: linux-any
 Multi-Arch: same
 Depends: libibverbs1 (= ${binary:Version}), ${misc:Depends}
@@ -199,7 +198,6 @@ Description: InfiniBand Communication Manager (CM) library
 
 Package: libibcm1-dbg
 Section: debug
-Priority: extra
 Architecture: linux-any
 Depends: libibcm1 (= ${binary:Version}), ${misc:Depends}
 Description: Debug symbols for the libibcm1 library
@@ -238,7 +236,6 @@ Description: InfiniBand Userspace Management Datagram (uMAD) library
 
 Package: libibumad3-dbg
 Section: debug
-Priority: extra
 Architecture: linux-any
 Depends: libibumad3 (= ${binary:Version}), ${misc:Depends}
 Description: Debug symbols for the libibumad3 library
@@ -295,7 +292,6 @@ Description: Library for managing RDMA connections
 
 Package: librdmacm1-dbg
 Section: debug
-Priority: extra
 Architecture: linux-any
 Depends: librdmacm1 (= ${binary:Version}), ${misc:Depends}
 Description: Debug symbols for the librdmacm library
-- 
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] 9+ messages in thread

* [PATCH rdma-core 3/6] debian: Relax dh-systemd build dependency
       [not found] ` <20171114200247.25890-1-benjamin.drung-EIkl63zCoXaH+58JC4qpiA@public.gmane.org>
  2017-11-14 20:02   ` [PATCH rdma-core 1/6] debian: Let libibverbs1 16 break ibverbs-providers 15 Benjamin Drung
  2017-11-14 20:02   ` [PATCH rdma-core 2/6] debian: Replace priority extra by optional Benjamin Drung
@ 2017-11-14 20:02   ` Benjamin Drung
  2017-11-14 20:02   ` [PATCH rdma-core 4/6] debian: Bump Standards-Version to 4.1.1 Benjamin Drung
                     ` (2 subsequent siblings)
  5 siblings, 0 replies; 9+ messages in thread
From: Benjamin Drung @ 2017-11-14 20:02 UTC (permalink / raw)
  To: linux-rdma-u79uwXL29TY76Z2rM5mHXA; +Cc: Benjamin Drung

dh-systemd was merged into debhelper 9.20160709. Thus it does not need
to be installed when debhelper is recent enough.

Signed-off-by: Benjamin Drung <benjamin.drung-EIkl63zCoXaH+58JC4qpiA@public.gmane.org>
---
 debian/control | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/debian/control b/debian/control
index 403f0527..63231b72 100644
--- a/debian/control
+++ b/debian/control
@@ -6,7 +6,7 @@ Section: net
 Priority: optional
 Build-Depends: cmake (>= 2.8.11),
                debhelper (>= 9),
-               dh-systemd,
+               debhelper (>= 9.20160709) | dh-systemd,
                dpkg-dev (>= 1.17),
                libnl-3-dev,
                libnl-route-3-dev,
-- 
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] 9+ messages in thread

* [PATCH rdma-core 4/6] debian: Bump Standards-Version to 4.1.1
       [not found] ` <20171114200247.25890-1-benjamin.drung-EIkl63zCoXaH+58JC4qpiA@public.gmane.org>
                     ` (2 preceding siblings ...)
  2017-11-14 20:02   ` [PATCH rdma-core 3/6] debian: Relax dh-systemd build dependency Benjamin Drung
@ 2017-11-14 20:02   ` Benjamin Drung
  2017-11-14 20:02   ` [PATCH rdma-core 5/6] debian: Drop lintian overrides for false positives Benjamin Drung
  2017-11-14 20:02   ` [PATCH rdma-core 6/6] debian: Run wrap-and-sort Benjamin Drung
  5 siblings, 0 replies; 9+ messages in thread
From: Benjamin Drung @ 2017-11-14 20:02 UTC (permalink / raw)
  To: linux-rdma-u79uwXL29TY76Z2rM5mHXA; +Cc: Benjamin Drung

No changes are needed to support the new Debian policy version. See
https://www.debian.org/doc/debian-policy/ for details.

Signed-off-by: Benjamin Drung <benjamin.drung-EIkl63zCoXaH+58JC4qpiA@public.gmane.org>
---
 debian/control | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/debian/control b/debian/control
index 63231b72..0426fd2e 100644
--- a/debian/control
+++ b/debian/control
@@ -16,7 +16,7 @@ Build-Depends: cmake (>= 2.8.11),
                pkg-config,
                python,
                valgrind [!alpha !armel !hppa !m68k !powerpcspe !sh4 !sparc64]
-Standards-Version: 4.1.0
+Standards-Version: 4.1.1
 Vcs-Git: https://github.com/linux-rdma/rdma-core.git
 Vcs-Browser: https://github.com/linux-rdma/rdma-core
 Homepage: https://github.com/linux-rdma/rdma-core
-- 
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] 9+ messages in thread

* [PATCH rdma-core 5/6] debian: Drop lintian overrides for false positives
       [not found] ` <20171114200247.25890-1-benjamin.drung-EIkl63zCoXaH+58JC4qpiA@public.gmane.org>
                     ` (3 preceding siblings ...)
  2017-11-14 20:02   ` [PATCH rdma-core 4/6] debian: Bump Standards-Version to 4.1.1 Benjamin Drung
@ 2017-11-14 20:02   ` Benjamin Drung
  2017-11-14 20:02   ` [PATCH rdma-core 6/6] debian: Run wrap-and-sort Benjamin Drung
  5 siblings, 0 replies; 9+ messages in thread
From: Benjamin Drung @ 2017-11-14 20:02 UTC (permalink / raw)
  To: linux-rdma-u79uwXL29TY76Z2rM5mHXA; +Cc: Benjamin Drung

lintian 2.5.59 does not complain about the false positives any more.
Thus the lintian overrides can be removed.

Signed-off-by: Benjamin Drung <benjamin.drung-EIkl63zCoXaH+58JC4qpiA@public.gmane.org>
---
 debian/libibumad-dev.lintian-overrides | 3 ---
 debian/libibumad3.lintian-overrides    | 2 --
 2 files changed, 5 deletions(-)
 delete mode 100644 debian/libibumad-dev.lintian-overrides
 delete mode 100644 debian/libibumad3.lintian-overrides

diff --git a/debian/libibumad-dev.lintian-overrides b/debian/libibumad-dev.lintian-overrides
deleted file mode 100644
index ed71b738..00000000
--- a/debian/libibumad-dev.lintian-overrides
+++ /dev/null
@@ -1,3 +0,0 @@
-# False positive for Certificate Authoritys (CAs)
-libibumad-dev: spelling-error-in-manpage usr/share/man/man3/umad_get_cas_names.3.gz cas case
-libibumad-dev: spelling-error-in-manpage usr/share/man/man3/umad_get_cas_names.3.gz CAs Case
diff --git a/debian/libibumad3.lintian-overrides b/debian/libibumad3.lintian-overrides
deleted file mode 100644
index cb001b96..00000000
--- a/debian/libibumad3.lintian-overrides
+++ /dev/null
@@ -1,2 +0,0 @@
-# False positive for Certificate Authoritys (CAs)
-libibumad3: spelling-error-in-binary usr/lib/x86_64-linux-gnu/libibumad.so.3.0.15 cas case
-- 
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] 9+ messages in thread

* [PATCH rdma-core 6/6] debian: Run wrap-and-sort
       [not found] ` <20171114200247.25890-1-benjamin.drung-EIkl63zCoXaH+58JC4qpiA@public.gmane.org>
                     ` (4 preceding siblings ...)
  2017-11-14 20:02   ` [PATCH rdma-core 5/6] debian: Drop lintian overrides for false positives Benjamin Drung
@ 2017-11-14 20:02   ` Benjamin Drung
  5 siblings, 0 replies; 9+ messages in thread
From: Benjamin Drung @ 2017-11-14 20:02 UTC (permalink / raw)
  To: linux-rdma-u79uwXL29TY76Z2rM5mHXA; +Cc: Benjamin Drung

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

diff --git a/debian/libibverbs-dev.install b/debian/libibverbs-dev.install
index 026327ee..28995381 100644
--- a/debian/libibverbs-dev.install
+++ b/debian/libibverbs-dev.install
@@ -5,8 +5,8 @@ usr/include/infiniband/mlx5dv.h
 usr/include/infiniband/opcode.h
 usr/include/infiniband/sa-kern-abi.h
 usr/include/infiniband/sa.h
-usr/include/infiniband/verbs.h
 usr/include/infiniband/tm_types.h
+usr/include/infiniband/verbs.h
 usr/lib/*/libibverbs*.so
 usr/lib/*/libmlx4.so
 usr/lib/*/libmlx5.so
diff --git a/debian/rdma-core.install b/debian/rdma-core.install
index da3e73cd..93b537a1 100644
--- a/debian/rdma-core.install
+++ b/debian/rdma-core.install
@@ -26,8 +26,8 @@ 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/doc/rdma-core/tag_matching.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
-- 
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] 9+ messages in thread

* Re: [PATCH rdma-core 1/6] debian: Let libibverbs1 16 break ibverbs-providers 15
       [not found]     ` <20171114200247.25890-2-benjamin.drung-EIkl63zCoXaH+58JC4qpiA@public.gmane.org>
@ 2017-11-14 20:39       ` Jason Gunthorpe
       [not found]         ` <20171114203939.GT4263-uk2M96/98Pc@public.gmane.org>
  0 siblings, 1 reply; 9+ messages in thread
From: Jason Gunthorpe @ 2017-11-14 20:39 UTC (permalink / raw)
  To: Benjamin Drung; +Cc: linux-rdma-u79uwXL29TY76Z2rM5mHXA

On Tue, Nov 14, 2017 at 09:02:42PM +0100, Benjamin Drung wrote:
> ibverbs-providers uses the private symbols of libibverbs1. Thus
> libibverbs1 will not work with an old version version of
> ibverbs-providers if the private symbol version is bumped.
> 
> Bump the ibverbs-providers version that libibverbs1 breaks which was
> forgotten on the symbol version bump. See also commit
> 611b7cc3b8e0d79aa986f042f486fccc95d73679. Append a tilde to support
> the lower version numbers (e.g. 16~201711132208) in the PPA builds.

This seems strange to me, we don't really need Breaks semantics here.

Shouldn't we do something like:

Package: ibverbs-providers
Depends: [..], libibverbs1 (= ${binary:Version}),

?

We really do not want to encourage mixing and matching versions.

IIRC the existing breaks is only because of how the new packages
interact with the legacy ones??
--
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	[flat|nested] 9+ messages in thread

* Re: [PATCH rdma-core 1/6] debian: Let libibverbs1 16 break ibverbs-providers 15
       [not found]         ` <20171114203939.GT4263-uk2M96/98Pc@public.gmane.org>
@ 2017-11-15  9:20           ` Benjamin Drung
  0 siblings, 0 replies; 9+ messages in thread
From: Benjamin Drung @ 2017-11-15  9:20 UTC (permalink / raw)
  To: Jason Gunthorpe; +Cc: linux-rdma-u79uwXL29TY76Z2rM5mHXA

Am Dienstag, den 14.11.2017, 13:39 -0700 schrieb Jason Gunthorpe:
> On Tue, Nov 14, 2017 at 09:02:42PM +0100, Benjamin Drung wrote:
> > ibverbs-providers uses the private symbols of libibverbs1. Thus
> > libibverbs1 will not work with an old version version of
> > ibverbs-providers if the private symbol version is bumped.
> > 
> > Bump the ibverbs-providers version that libibverbs1 breaks which
> > was
> > forgotten on the symbol version bump. See also commit
> > 611b7cc3b8e0d79aa986f042f486fccc95d73679. Append a tilde to support
> > the lower version numbers (e.g. 16~201711132208) in the PPA builds.
> 
> This seems strange to me, we don't really need Breaks semantics here.
> 
> Shouldn't we do something like:
> 
> Package: ibverbs-providers
> Depends: [..], libibverbs1 (= ${binary:Version}),
> 
> ?

We had exactly that previously and commit
611b7cc3b8e0d79aa986f042f486fccc95d73679 changed that behavior. See
there for a reasoning. When building, ibverbs-provides will get an
dependency on libibverbs1 (>= X) where X matches the major number from
the private symbols (currently X = 16)

> We really do not want to encourage mixing and matching versions.

The current way with Breaks allows one to mix and match only within one
 major release. So you could use ibverbs-provides 15.1 with libibverbs1
15 (but not with 14 or 16).

> IIRC the existing breaks is only because of how the new packages
> interact with the legacy ones??

The Provides & Replaces & Breaks in ibverbs-providers are there for
upgrading from the old package names to ibverbs-providers.

-- 
Benjamin Drung
System Developer
Debian & Ubuntu Developer

ProfitBricks GmbH
Greifswalder Str. 207
D - 10405 Berlin

Email: benjamin.drung-EIkl63zCoXaH+58JC4qpiA@public.gmane.org
URL: https://www.profitbricks.de

Sitz der Gesellschaft: Berlin
Registergericht: Amtsgericht Charlottenburg, HRB 125506 B
Geschäftsführer: Achim Weiss, Matthias Steinberg
--
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	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2017-11-15  9:20 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-11-14 20:02 [PATCH rdma-core 0/6] More Debian packaging cleanup Benjamin Drung
     [not found] ` <20171114200247.25890-1-benjamin.drung-EIkl63zCoXaH+58JC4qpiA@public.gmane.org>
2017-11-14 20:02   ` [PATCH rdma-core 1/6] debian: Let libibverbs1 16 break ibverbs-providers 15 Benjamin Drung
     [not found]     ` <20171114200247.25890-2-benjamin.drung-EIkl63zCoXaH+58JC4qpiA@public.gmane.org>
2017-11-14 20:39       ` Jason Gunthorpe
     [not found]         ` <20171114203939.GT4263-uk2M96/98Pc@public.gmane.org>
2017-11-15  9:20           ` Benjamin Drung
2017-11-14 20:02   ` [PATCH rdma-core 2/6] debian: Replace priority extra by optional Benjamin Drung
2017-11-14 20:02   ` [PATCH rdma-core 3/6] debian: Relax dh-systemd build dependency Benjamin Drung
2017-11-14 20:02   ` [PATCH rdma-core 4/6] debian: Bump Standards-Version to 4.1.1 Benjamin Drung
2017-11-14 20:02   ` [PATCH rdma-core 5/6] debian: Drop lintian overrides for false positives Benjamin Drung
2017-11-14 20:02   ` [PATCH rdma-core 6/6] debian: Run wrap-and-sort Benjamin Drung

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox