debian: minor fixes
cover debian: minor fixes
This series contains unrelated changes for the xfsprogs Debian package.
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
PATCH 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
@@ -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
@@ -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
Re: [PATCH 1/3] debian: Drop unused dh-python from Build-Depends
Quoted 3 lines · Bastian Germann
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.
scrub/xfs_scrub_all.in and tools/xfsbuflock.py are the only python scripts in xfsprogs. We ship the first one as-is in the xfsprogs package and we don't ship the second one at all (it's a debugger tool).
AFAICT neither of them really use dh-python, right?
--D
Quoted 38 lines
Reported-by Helmut Grohne <[email protected]>Signed-off-by Bastian Germann <[email protected]>--- debian/changelog | 6 ++++++ debian/control | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-)debian/changelog +6
-0@@ -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 uploaddebian/control +1
-1@@ -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
Re: [PATCH 1/3] debian: Drop unused dh-python from Build-Depends
Quoted 10 lines · Darrick J. Wong
Quoted 3 lines · Bastian Germann
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.
scrub/xfs_scrub_all.in and
tools/xfsbuflock.pyare the only python scripts in xfsprogs. We ship the first one as-is in the xfsprogs package and we don't ship the second one at all (it's a debugger tool).AFAICT neither of them really use dh-python, right?
right, hence the dependency drop, so I think you're in violent agreement and as one of our resident debian-heads you could RVB this one too, Darrick? ;)
-Eric
Re: [PATCH 1/3] debian: Drop unused dh-python from Build-Depends
In reply to Darrick J. WongAm 05.02.21 um 01:51 schrieb Darrick J. Wong:
Quoted 10 lines · Bastian Germann
Quoted 3 lines
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.
scrub/xfs_scrub_all.in and
tools/xfsbuflock.pyare the only python scripts in xfsprogs. We ship the first one as-is in the xfsprogs package and we don't ship the second one at all (it's a debugger tool).AFAICT neither of them really use dh-python, right?
That is right. dh-python is generally used at build time to generate packages with Python modules, i.e., with files in /usr/lib/python3/dist-packages. That is not the case in xfsprogs.
For xfsprogs, python3 is only a runtime dependency and that is defined in the control file as well.
Quoted 5 lines
--D
Quoted 3 lines
Reported-by Helmut Grohne <[email protected]>Signed-off-by Bastian Germann <[email protected]>
Darrick J. Wong
Reviewed-byRe: [PATCH 1/3] debian: Drop unused dh-python from Build-Depends
Quoted 10 lines · Bastian Germann
Am 05.02.21 um 01:51 schrieb Darrick J. Wong:
Quoted 9 lines · Bastian Germann
Quoted 3 lines
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.
scrub/xfs_scrub_all.in and
tools/xfsbuflock.pyare the only python scripts in xfsprogs. We ship the first one as-is in the xfsprogs package and we don't ship the second one at all (it's a debugger tool).
Quoted 8 lines
Quoted 1 line
AFAICT neither of them really use dh-python, right?
That is right. dh-python is generally used at build time to generate packages with Python modules, i.e., with files in
/usr/lib/python3/dist-packages. That is not the case in xfsprogs.For xfsprogs, python3 is only a runtime dependency and that is defined in the control file as well.
<nod> /me finally figures out exactly what dh_python does--I thought it was required for any package shipping any python anything, but I guess it's only for building and prepping library code and hence not needed for our single python script in /usr/sbin, so:
--D
Quoted 6 lines
Quoted 6 lines
--D
Quoted 3 lines
Reported-by Helmut Grohne <[email protected]>Signed-off-by Bastian Germann <[email protected]>
PATCH 2/3 debian: Only build for Linux
In reply to Bastian GermannUse 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
@@ -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
@@ -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
Re: [PATCH 2/3] debian: Only build for Linux
Quoted 4 lines · Bastian Germann
Use architecture linux-any to exclude kfreebsd and hurd from building the package. Those will always fail.
Signed-off-by Bastian Germann <[email protected]>
Yep, we dropped support for hurd and bsd and macos a while ago...
--D
Quoted 51 lines
--- debian/changelog | 1 + debian/control | 6 +++--- 2 files changed, 4 insertions(+), 3 deletions(-)debian/changelog +1
-0@@ -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 +0100debian/control +3
-3@@ -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 itSignature · 1 line
2.30.0
PATCH 3/3 debian: Prevent installing duplicate changelog
In reply to Bastian GermannThe 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
@@ -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
@@ -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
Re: [PATCH 3/3] debian: Prevent installing duplicate changelog
Quoted 5 lines · Bastian Germann
The doc/CHANGES file is both processed by
dh_installdocsanddh_installchangelogs. So it ends up as changelog.gz and CHANGES.gz. Prevent that by excluding it fromdh_installdocs.Signed-off-by Bastian Germann <[email protected]>
/me wonders if a wider cleanup (isn't debhelper up to v12 now?) is in order but for now,
--D
Quoted 33 lines
--- debian/changelog | 1 + debian/rules | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-)debian/changelog +1
-0@@ -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 +0100debian/rules +1
-1@@ -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_compressSignature · 1 line
2.30.0