Skip to contentSkip to conversation

debian: minor fixes

PATCH In review Bastian Germann 2 participants 5 messages Feb 5, 2021

lore
Share & tools
lore
#0 lore raw

v2 cover debian: minor fixes

This series contains unrelated changes for the xfsprogs Debian package.

v2: Resend with Reviewed-bys applied.

Bastian Germann (3):
debian: Drop unused dh-python from Build-Depends
debian: Only build for Linux
debian: Prevent installing duplicate changelog

 debian/changelog | 8 ++++++++
 debian/control   | 8 ++++----
 debian/rules     | 2 +-
 3 files changed, 13 insertions(+), 5 deletions(-)
Signature · 1 line
2.30.0
#1 lore raw

PATCH v2 1/3 debian: Drop unused dh-python from Build-Depends

xfsprogs participates in dependency loops relevant to architecture bootstrap. Identifying easily droppable dependencies, it was found that xfsprogs does not use dh-python in any way.

---
 debian/changelog | 6 ++++++
 debian/control   | 2 +-
 2 files changed, 7 insertions(+), 1 deletion(-)
debian/changelog +6 -0
index ce4a224d..7b0120c2 100644
@@ -1,3 +1,9 @@
+xfsprogs (5.10.0-3) unstable; urgency=medium
+
+  * Drop unused dh-python from Build-Depends (Closes: #981361)
+
+ -- Bastian Germann <[email protected]>  Fri, 05 Feb 2021 00:18:31 +0100
+
 xfsprogs (5.10.0-2) unstable; urgency=low
 
   * Team upload
debian/control +1 -1
index b0eb1566..8975bd13 100644
@@ -3,7 +3,7 @@ Section: admin
 Priority: optional
 Maintainer: XFS Development Team <[email protected]>
 Uploaders: Nathan Scott <[email protected]>, Anibal Monsalve Salazar <[email protected]>, Bastian Germann <[email protected]>
-Build-Depends: libinih-dev, uuid-dev, dh-autoreconf, debhelper (>= 5), gettext, libtool, libedit-dev, libblkid-dev (>= 2.17), linux-libc-dev, libdevmapper-dev, libattr1-dev, libicu-dev, dh-python, pkg-config
+Build-Depends: libinih-dev, uuid-dev, dh-autoreconf, debhelper (>= 5), gettext, libtool, libedit-dev, libblkid-dev (>= 2.17), linux-libc-dev, libdevmapper-dev, libattr1-dev, libicu-dev, pkg-config
 Standards-Version: 4.0.0
 Homepage: https://xfs.wiki.kernel.org/
 
Signature · 1 line
2.30.0
#2 lore raw

PATCH v2 2/3 debian: Only build for Linux

In reply to Bastian Germann

Use architecture linux-any to exclude kfreebsd and hurd from building the package. Those will always fail.

---
 debian/changelog | 1 +
 debian/control   | 6 +++---
 2 files changed, 4 insertions(+), 3 deletions(-)
debian/changelog +1 -0
index 7b0120c2..2da58f30 100644
@@ -1,6 +1,7 @@
 xfsprogs (5.10.0-3) unstable; urgency=medium
 
   * Drop unused dh-python from Build-Depends (Closes: #981361)
+  * Only build for Linux
 
  -- Bastian Germann <[email protected]>  Fri, 05 Feb 2021 00:18:31 +0100
 
debian/control +3 -3
index 8975bd13..1da8093d 100644
@@ -13,7 +13,7 @@ Provides: fsck-backend
 Suggests: xfsdump, acl, attr, quota
 Breaks: xfsdump (<< 3.0.0)
 Replaces: xfsdump (<< 3.0.0)
-Architecture: any
+Architecture: linux-any
 Description: Utilities for managing the XFS filesystem
  A set of commands to use the XFS filesystem, including mkfs.xfs.
  .
@@ -31,7 +31,7 @@ Package: xfslibs-dev
 Section: libdevel
 Depends: libc6-dev | libc-dev, uuid-dev, xfsprogs (>= 3.0.0), ${misc:Depends}
 Breaks: xfsprogs (<< 3.0.0)
-Architecture: any
+Architecture: linux-any
 Description: XFS filesystem-specific static libraries and headers
  xfslibs-dev contains the libraries and header files needed to
  develop XFS filesystem-specific programs.
@@ -49,7 +49,7 @@ Description: XFS filesystem-specific static libraries and headers
 Package: xfsprogs-udeb
 Package-Type: udeb
 Section: debian-installer
-Architecture: any
+Architecture: linux-any
 Depends: ${shlibs:Depends}, ${misc:Depends}
 Description: A stripped-down version of xfsprogs, for debian-installer
  This package is an xfsprogs package built for reduced size, so that it
Signature · 1 line
2.30.0
#3 lore raw

PATCH v2 3/3 debian: Prevent installing duplicate changelog

In reply to Bastian Germann

The doc/CHANGES file is both processed by dh_installdocs and dh_installchangelogs. So it ends up as changelog.gz and CHANGES.gz. Prevent that by excluding it from dh_installdocs.

---
 debian/changelog | 1 +
 debian/rules     | 2 +-
 2 files changed, 2 insertions(+), 1 deletion(-)
debian/changelog +1 -0
index 2da58f30..5421aed6 100644
@@ -2,6 +2,7 @@ xfsprogs (5.10.0-3) unstable; urgency=medium
 
   * Drop unused dh-python from Build-Depends (Closes: #981361)
   * Only build for Linux
+  * Prevent installing duplicate changelog (Closes: #570704)
 
  -- Bastian Germann <[email protected]>  Fri, 05 Feb 2021 00:18:31 +0100
 
debian/rules +1 -1
index 7304222c..c6ca5491 100755
@@ -87,7 +87,7 @@ binary-arch: checkroot built
 	rm -f debian/xfslibs-dev/lib/libhandle.la
 	rm -f debian/xfslibs-dev/lib/libhandle.a
 	rm -fr debian/xfslibs-dev/usr/lib
-	dh_installdocs
+	dh_installdocs -XCHANGES
 	dh_installchangelogs
 	dh_strip
 	dh_compress
Signature · 1 line
2.30.0
#4 lore raw
In reply to Bastian Germann
Quoted 3 lines · Bastian Germann

This series contains unrelated changes for the xfsprogs Debian package.

v2: Resend with Reviewed-bys applied.

FYI this is fine, but not necessary - I pull commits out of patchwork and it magically adds any existing RVBs to each patch.

Thanks,
-Eric

Quoted 9 lines

Bastian Germann (3):
debian: Drop unused dh-python from Build-Depends
debian: Only build for Linux
debian: Prevent installing duplicate changelog

 debian/changelog | 8 ++++++++
 debian/control   | 8 ++++----
 debian/rules     | 2 +-
 3 files changed, 13 insertions(+), 5 deletions(-)