debian: Integrate Debian/Ubuntu changes
cover debian: Integrate Debian/Ubuntu changes
Ubuntu has changes on xfsprogs. Integrate the useful ones so that Debian and Ubuntu differ less.
There was one bug introduced with the 5.6 -> 5.10 change in Debian: The new libinih package did not have a udeb package which is needed by xfsprogs-udeb. Explicitly depend on newer libinih versions.
Bastian Germann (4):
debian: Drop trying to create upstream distribution
debian: Enable CET on amd64
debian: Regenerate config.guess using debhelper
debian: Build-depend on libinih-dev with udeb package
debian/changelog | 14 ++++++++++++++ debian/control | 2 +- debian/rules | 10 ++++++++-- 3 files changed, 23 insertions(+), 3 deletions(-)
Signature · 1 line
2.30.1
PATCH 1/4 debian: Drop trying to create upstream distribution
This is a change introduced in 4.3.0+nmu1ubuntu1.
--- debian/changelog | 7 +++++++ debian/rules | 1 - 2 files changed, 7 insertions(+), 1 deletion(-)
debian/changelog +7 -0
@@ -1,3 +1,10 @@ +xfsprogs (5.11.0-rc0-1) experimental; urgency=medium + + [ Dimitri John Ledkov ] + * Drop trying to create upstream distribution + + -- Bastian Germann <[email protected]> Sat, 20 Feb 2021 11:57:31 +0100 + xfsprogs (5.10.0-3) unstable; urgency=medium * Drop unused dh-python from Build-Depends (Closes: #981361)
debian/rules +0 -1
@@ -81,7 +81,6 @@ binary-arch: checkroot built $(pkgme) $(MAKE) -C . install $(pkgdev) $(MAKE) -C . install-dev $(pkgdi) $(MAKE) -C debian install-d-i - $(pkgme) $(MAKE) dist install -D -m 0755 debian/local/initramfs.hook debian/xfsprogs/usr/share/initramfs-tools/hooks/xfs rmdir debian/xfslibs-dev/usr/share/doc/xfsprogs rm -f debian/xfslibs-dev/lib/libhandle.la
Signature · 1 line
2.30.1
Re: [PATCH 1/4] debian: Drop trying to create upstream distribution
Quoted 1 line · Bastian Germann
This is a change introduced in 4.3.0+nmu1ubuntu1.
Why? When the change was made is not important, explaining why the change needs to be made is what should be in the commit message. i.e. Tell us why this isn't needed any more...
Cheers,
Dave.
Signature · 2 lines
Dave Chinner [email protected]
Re: [PATCH 1/4] debian: Drop trying to create upstream distribution
Quoted 6 lines · Dave Chinner
Quoted 1 line · Bastian Germann
This is a change introduced in 4.3.0+nmu1ubuntu1.
Why? When the change was made is not important, explaining why the change needs to be made is what should be in the commit message. i.e. Tell us why this isn't needed any more...
Yes, this is vital information to have in the commit message.
I'm guessing it has something to do with the fact that 'make dist' tries to create source tarballs, which is a strange thing to do during the binary build, and in any case it ultimately fails because tarball generation now requires .gitcensus, which is cleaned out and then requires git to regeneration, which you can't do when you're building from a source tarball?
<shrug> Hm?
--D
Quoted 6 lines
Cheers,
Dave.
Signature · 2 lines
Dave Chinner [email protected]
PATCH 2/4 debian: Enable CET on amd64
In reply to Bastian GermannThis is a change introduced in 5.6.0-1ubuntu3.
--- debian/changelog | 1 + debian/rules | 8 +++++++- 2 files changed, 8 insertions(+), 1 deletion(-)
debian/changelog +1 -0
@@ -2,6 +2,7 @@ xfsprogs (5.11.0-rc0-1) experimental; urgency=medium [ Dimitri John Ledkov ] * Drop trying to create upstream distribution + * Enable CET on amd64 -- Bastian Germann <[email protected]> Sat, 20 Feb 2021 11:57:31 +0100
debian/rules +7 -1
@@ -23,8 +23,14 @@ pkgdev = DIST_ROOT=`pwd`/$(dirdev); export DIST_ROOT; pkgdi = DIST_ROOT=`pwd`/$(dirdi); export DIST_ROOT; stdenv = @GZIP=-q; export GZIP; +ifeq ($(target),amd64) +export DEB_CFLAGS_MAINT_APPEND=-fcf-protection +export DEB_LDFLAGS_MAINT_APPEND=-fcf-protection +endif +include /usr/share/dpkg/default.mk + options = export DEBUG=-DNDEBUG DISTRIBUTION=debian \ - INSTALL_USER=root INSTALL_GROUP=root \ + INSTALL_USER=root INSTALL_GROUP=root LDFLAGS='$(LDFLAGS)' \ LOCAL_CONFIGURE_OPTIONS="--enable-editline=yes --enable-blkid=yes --disable-ubsan --disable-addrsan --disable-threadsan --enable-lto" ; diopts = $(options) \ export OPTIMIZER=-Os LOCAL_CONFIGURE_OPTIONS="--enable-gettext=no --disable-ubsan --disable-addrsan --disable-threadsan --enable-lto" ;
Signature · 1 line
2.30.1
Re: [PATCH 2/4] debian: Enable CET on amd64
Quoted 31 lines · Bastian Germann
This is a change introduced in 5.6.0-1ubuntu3.
Reported-by Dimitri John Ledkov <[email protected]>Signed-off-by Bastian Germann <[email protected]>--- debian/changelog | 1 + debian/rules | 8 +++++++- 2 files changed, 8 insertions(+), 1 deletion(-)debian/changelog +1
-0@@ -2,6 +2,7 @@ xfsprogs (5.11.0-rc0-1) experimental; urgency=medium [ Dimitri John Ledkov ] * Drop trying to create upstream distribution + * Enable CET on amd64 -- Bastian Germann <[email protected]> Sat, 20 Feb 2021 11:57:31 +0100debian/rules +2
-0@@ -23,8 +23,14 @@ pkgdev = DIST_ROOT=`pwd`/$(dirdev); export DIST_ROOT; pkgdi = DIST_ROOT=`pwd`/$(dirdi); export DIST_ROOT; stdenv = @GZIP=-q; export GZIP; +ifeq ($(target),amd64) +export DEB_CFLAGS_MAINT_APPEND=-fcf-protection
debian/rules pkgdev = DIST_ROOT=`pwd`/$(dirdev); export DIST_ROOT; · line 36
Quoted 10 lines
debian/rules +5
-1+export DEB_LDFLAGS_MAINT_APPEND=-fcf-protection +endif +include /usr/share/dpkg/default.mk + options = export DEBUG=-DNDEBUG DISTRIBUTION=debian \ - INSTALL_USER=root INSTALL_GROUP=root \ + INSTALL_USER=root INSTALL_GROUP=root LDFLAGS='$(LDFLAGS)' \ LOCAL_CONFIGURE_OPTIONS="--enable-editline=yes --enable-blkid=yes --disable-ubsan --disable-addrsan --disable-threadsan --enable-lto" ; diopts = $(options) \ export OPTIMIZER=-Os LOCAL_CONFIGURE_OPTIONS="--enable-gettext=no --disable-ubsan --disable-addrsan --disable-threadsan --enable-lto" ;
No. This is not the way to turn on build wide compiler/linker options/protections.
IOWs, if you want to turn on control flow protections to make ROP exploits harder (why that actually matters for xfsprogs is beyond me), then it you need to add a configure option similar to --enable-lto. Then it can actually be enabled and used by other distros, not just Ubuntu, and it will also ensure that builds will fail at configure time if the compiler/linker does not support this functionality.
Cheers,
Dave.
Signature · 2 lines
Dave Chinner [email protected]
NACK Re: [PATCH 2/4] debian: Enable CET on amd64
The patch in question is specific to Ubuntu and was not submitted by me to neither Debian or Upstream.
Indeed, this is very distro specific, because of all the other things that we turn on by default in our toolchain, dpkg build flags, and all other packages.
This patch if taken at face value, will not enable CET. And will make the package start failing to build from source, when using older toolchains that don't support said flag.
It should not go upstream nor into debian.
NACK
Quoted 61 lines · Dave Chinner
Quoted 31 lines · Bastian Germann
This is a change introduced in 5.6.0-1ubuntu3.
Reported-by Dimitri John Ledkov <[email protected]>Signed-off-by Bastian Germann <[email protected]>--- debian/changelog | 1 + debian/rules | 8 +++++++- 2 files changed, 8 insertions(+), 1 deletion(-)debian/changelog +1
-0@@ -2,6 +2,7 @@ xfsprogs (5.11.0-rc0-1) experimental; urgency=medium [ Dimitri John Ledkov ] * Drop trying to create upstream distribution + * Enable CET on amd64 -- Bastian Germann <[email protected]> Sat, 20 Feb 2021 11:57:31 +0100debian/rules +2
-0@@ -23,8 +23,14 @@ pkgdev = DIST_ROOT=`pwd`/$(dirdev); export DIST_ROOT; pkgdi = DIST_ROOT=`pwd`/$(dirdi); export DIST_ROOT; stdenv = @GZIP=-q; export GZIP; +ifeq ($(target),amd64) +export DEB_CFLAGS_MAINT_APPEND=-fcf-protectiondebian/rules pkgdev = DIST_ROOT=`pwd`/$(dirdev); export DIST_ROOT; · line 36
Quoted 10 lines
debian/rules +5
-1+export DEB_LDFLAGS_MAINT_APPEND=-fcf-protection +endif +include /usr/share/dpkg/default.mk + options = export DEBUG=-DNDEBUG DISTRIBUTION=debian \ - INSTALL_USER=root INSTALL_GROUP=root \ + INSTALL_USER=root INSTALL_GROUP=root LDFLAGS='$(LDFLAGS)' \ LOCAL_CONFIGURE_OPTIONS="--enable-editline=yes --enable-blkid=yes --disable-ubsan --disable-addrsan --disable-threadsan --enable-lto" ; diopts = $(options) \ export OPTIMIZER=-Os LOCAL_CONFIGURE_OPTIONS="--enable-gettext=no --disable-ubsan --disable-addrsan --disable-threadsan --enable-lto" ;No. This is not the way to turn on build wide compiler/linker options/protections.
IOWs, if you want to turn on control flow protections to make ROP exploits harder (why that actually matters for xfsprogs is beyond me), then it you need to add a configure option similar to --enable-lto. Then it can actually be enabled and used by other distros, not just Ubuntu, and it will also ensure that builds will fail at configure time if the compiler/linker does not support this functionality.
Cheers,
Dave.
--
Dave Chinner
[email protected]
Signature · 3 lines
Regards, Dimitri.
Re: NACK Re: [PATCH 2/4] debian: Enable CET on amd64
Quoted 10 lines · Dimitri John Ledkov
The patch in question is specific to Ubuntu and was not submitted by me to neither Debian or Upstream.
Indeed, this is very distro specific, because of all the other things that we turn on by default in our toolchain, dpkg build flags, and all other packages.
This patch if taken at face value, will not enable CET. And will make the package start failing to build from source, when using older toolchains that don't support said flag.
Yes, that is exactly what I said when pointing out how to *support this properly* so it doesn't break builds in environments that do not support such functionality.
Having it as a configure option allows the configure script to -test whether the toolchain supports it- and then either fail (enable=yes) or not use it (enable=probe) and continue the build without it.
Quoted 1 line
It should not go upstream nor into debian.
There is no reason it cannot be implemented as a build option in the upstream package. Then you can get rid of all your nasty hacks and simply add --enable-cf-protections to your distro's configure options.
And other distros that also support all this functionality can use it to. Please play nice with others and do things the right way instead of making silly claims about how "nobody else can use this" when it's clear that they can if they also tick all the necessary boxes.
Cheers,
Dave.
Signature · 2 lines
Dave Chinner [email protected]
Re: NACK Re: [PATCH 2/4] debian: Enable CET on amd64
Quoted 28 lines · Dave Chinner
Quoted 10 lines · Dimitri John Ledkov
The patch in question is specific to Ubuntu and was not submitted by me to neither Debian or Upstream.
Indeed, this is very distro specific, because of all the other things that we turn on by default in our toolchain, dpkg build flags, and all other packages.
This patch if taken at face value, will not enable CET. And will make the package start failing to build from source, when using older toolchains that don't support said flag.
Yes, that is exactly what I said when pointing out how to *support this properly* so it doesn't break builds in environments that do not support such functionality.
Having it as a configure option allows the configure script to -test whether the toolchain supports it- and then either fail (enable=yes) or not use it (enable=probe) and continue the build without it.
Quoted 1 line
It should not go upstream nor into debian.
There is no reason it cannot be implemented as a build option in the upstream package. Then you can get rid of all your nasty hacks and simply add --enable-cf-protections to your distro's configure options.
Quoted 5 lines
And other distros that also support all this functionality can use it to. Please play nice with others and do things the right way instead of making silly claims about how "nobody else can use this" when it's clear that they can if they also tick all the necessary boxes.
debian will probably will not want --enable-cf-protections as a configure option, and will enable CET via dpkg-buildflags as a hardening option, which will then be turned on by default for relevant architectures and series as of when debian kernel starts to support it.
as that way, debian will be able to affect that change across the whole distro.
once CET is actually merged into kernel, I do not expect configure options or debian/rules changes to enable CET. At most export DEB_BUILD_MAINT_OPTIONS=hardening should be enough in debian/rules.
Signature · 3 lines
Regards, Dimitri.
Re: NACK Re: [PATCH 2/4] debian: Enable CET on amd64
Quoted 35 lines · Dimitri John Ledkov
Quoted 28 lines · Dave Chinner
Quoted 10 lines · Dimitri John Ledkov
The patch in question is specific to Ubuntu and was not submitted by me to neither Debian or Upstream.
Indeed, this is very distro specific, because of all the other things that we turn on by default in our toolchain, dpkg build flags, and all other packages.
This patch if taken at face value, will not enable CET. And will make the package start failing to build from source, when using older toolchains that don't support said flag.
Yes, that is exactly what I said when pointing out how to *support this properly* so it doesn't break builds in environments that do not support such functionality.
Having it as a configure option allows the configure script to -test whether the toolchain supports it- and then either fail (enable=yes) or not use it (enable=probe) and continue the build without it.
Quoted 1 line
It should not go upstream nor into debian.
There is no reason it cannot be implemented as a build option in the upstream package. Then you can get rid of all your nasty hacks and simply add --enable-cf-protections to your distro's configure options.
Quoted 5 lines
And other distros that also support all this functionality can use it to. Please play nice with others and do things the right way instead of making silly claims about how "nobody else can use this" when it's clear that they can if they also tick all the necessary boxes.
Quoted 7 lines
debian will probably will not want --enable-cf-protections as a configure option, and will enable CET via dpkg-buildflags as a hardening option, which will then be turned on by default for relevant architectures and series as of when debian kernel starts to support it.
as that way, debian will be able to affect that change across the whole distro.
Except now you've got the problem that dpkg-buildflags is not used by various packages such as xfsprogs, so the flags it sets up, even with overrides like DEB_BUILD_MAINT_OPTIONS are completely ignored by the debian package build because debian/rules is not set up to source the buildflags at all.
e.g. if you run 'make Q= deb' you won't see any of the compiler or linker options emitted by dpkg-buildflags being used during the debian package build. You will, OTOH, see it emit stuff like LTO options because those get turned on via configure.
Quoted 3 lines
once CET is actually merged into kernel, I do not expect configure options or debian/rules changes to enable CET. At most
export DEB_BUILD_MAINT_OPTIONS=hardeningshould be enough in debian/rules.
The default dpkg-buildflags output already includes "hardening" options, and as I said above, they aren't actually included in the build rules. Hence what you suggest just won't work like you think it should.
Again, if you want build option stuff to work correctly, don't rely on distro specific magic to turn stuff on because it just doesn't work for everyone. Use configure options to enable, probe and detect support and enable the feature in the build, then upstream and other distros can actually build with it and test it outside the magical unicorn distro build environment you are running in...
Cheers,
Dave.
Signature · 2 lines
Dave Chinner [email protected]
PATCH 3/4 debian: Regenerate config.guess using debhelper
In reply to Bastian GermannThis is a change introduced in 5.10.0-2ubuntu2 with the changelog:
Quoted 2 lines
xfsprogs upstream has regressed config.guess, so use
dh_update_autotools_config.
--- debian/changelog | 3 +++ debian/rules | 1 + 2 files changed, 4 insertions(+)
debian/changelog +3 -0
@@ -4,6 +4,9 @@ xfsprogs (5.11.0-rc0-1) experimental; urgency=medium * Drop trying to create upstream distribution * Enable CET on amd64 + [ Steve Langasek ] + * Regenerate config.guess using debhelper + -- Bastian Germann <[email protected]> Sat, 20 Feb 2021 11:57:31 +0100 xfsprogs (5.10.0-3) unstable; urgency=medium
debian/rules +1 -0
@@ -49,6 +49,7 @@ config: .census @echo "== dpkg-buildpackage: configure" 1>&2 $(checkdir) AUTOHEADER=/bin/true dh_autoreconf + dh_update_autotools_config $(options) $(MAKE) $(PMAKEFLAGS) include/platform_defs.h touch .census
Signature · 1 line
2.30.1
Re: [PATCH 3/4] debian: Regenerate config.guess using debhelper
Quoted 4 lines · Bastian Germann
This is a change introduced in 5.10.0-2ubuntu2 with the changelog:
Quoted 2 lines
xfsprogs upstream has regressed config.guess, so use
dh_update_autotools_config.
What regression?
The xfsprogs build generates config.guess with the libtool infrastructure installed on the build machine. So I'm not sure how/what we've regressed here, because AFAIK we haven't changed anything here recently...
Quoted 26 lines
Reported-by Steve Langasek <[email protected]>Signed-off-by Bastian Germann <[email protected]>--- debian/changelog | 3 +++ debian/rules | 1 + 2 files changed, 4 insertions(+)debian/changelog +3
-0@@ -4,6 +4,9 @@ xfsprogs (5.11.0-rc0-1) experimental; urgency=medium * Drop trying to create upstream distribution * Enable CET on amd64 + [ Steve Langasek ] + * Regenerate config.guess using debhelper + -- Bastian Germann <[email protected]> Sat, 20 Feb 2021 11:57:31 +0100 xfsprogs (5.10.0-3) unstable; urgency=mediumdebian/rules +0
-0
debian/rules config: .census · line 53
Quoted 5 lines
debian/rules +1
-0@@ -49,6 +49,7 @@ config: .census @echo "== dpkg-buildpackage: configure" 1>&2 $(checkdir) AUTOHEADER=/bin/true dh_autoreconf + dh_update_autotools_config $(options) $(MAKE) $(PMAKEFLAGS) include/platform_defs.h
Why would running at tool that does a search-n-replace of built config.guess files do anything when run before the build runs libtoolize to copy in the config.guess file it uses? I'm a bit confused by this...
Cheers,
Dave.
Signature · 2 lines
Dave Chinner [email protected]
Re: [PATCH 3/4] debian: Regenerate config.guess using debhelper
Quoted 6 lines · Dave Chinner
Quoted 4 lines · Bastian Germann
This is a change introduced in 5.10.0-2ubuntu2 with the changelog:
Quoted 2 lines
xfsprogs upstream has regressed config.guess, so use
dh_update_autotools_config.
Quoted 6 lines
What regression?
The xfsprogs build generates config.guess with the libtool infrastructure installed on the build machine. So I'm not sure how/what we've regressed here, because AFAIK we haven't changed anything here recently...
This upstream release ended up with an older version of config.guess in the tarball. Specifically, it was too old to recognize RISC-V as an architecture.
Quoted 21 lines
Quoted 12 lines
Reported-by Steve Langasek <[email protected]>Signed-off-by Bastian Germann <[email protected]>--- debian/changelog | 3 +++ debian/rules | 1 + 2 files changed, 4 insertions(+)debian/changelog +0
-0debian/changelog xfsprogs (5.11.0-rc0-1) experimental; urgency=medium · line 10
Quoted 7 lines
debian/changelog +3
-0@@ -4,6 +4,9 @@ xfsprogs (5.11.0-rc0-1) experimental; urgency=medium * Drop trying to create upstream distribution * Enable CET on amd64 + [ Steve Langasek ] + * Regenerate config.guess using debhelper + -- Bastian Germann <[email protected]> Sat, 20 Feb 202111:57:31 +0100
Quoted 1 line
Quoted 16 lines
debian/rules config: .census · line 53
Quoted 11 lines
xfsprogs (5.10.0-3) unstable; urgency=medium
debian/rules +1
-0@@ -49,6 +49,7 @@ config: .census @echo "== dpkg-buildpackage: configure" 1>&2 $(checkdir) AUTOHEADER=/bin/true dh_autoreconf + dh_update_autotools_config $(options) $(MAKE) $(PMAKEFLAGS) include/platform_defs.hWhy would running at tool that does a search-n-replace of built config.guess files do anything when run before the build runs libtoolize to copy in the config.guess file it uses? I'm a bit confused by this...
Autoreconf was not copying in a newer version of config.guess from the system, because of the specific subset of autotools used by this project.
Signature · 1 line
Steve Langasek
Re: [PATCH 3/4] debian: Regenerate config.guess using debhelper
Quoted 9 lines · Steve Langasek
Quoted 6 lines · Dave Chinner
Quoted 4 lines · Bastian Germann
This is a change introduced in 5.10.0-2ubuntu2 with the changelog:
Quoted 2 lines
xfsprogs upstream has regressed config.guess, so use
dh_update_autotools_config.
Quoted 8 lines
Quoted 6 lines
What regression?
The xfsprogs build generates config.guess with the libtool infrastructure installed on the build machine. So I'm not sure how/what we've regressed here, because AFAIK we haven't changed anything here recently...
This upstream release ended up with an older version of config.guess in the tarball. Specifically, it was too old to recognize RISC-V as an architecture.
So was the RISC-V architecture added to the ubuntu build between the uploads of the previous version of xfsprogs and xfsprogs-5.10.0? Or is this an actual regression where the maintainer signed tarball had RISC-V support in it and now it doesn't?
FWIW, where are you getting the tarballs from? Are you downloading the maintainer signed tarballs from here:
https://mirrors.edge.kernel.org/pub/linux/utils/fs/xfs/xfsprogs/
Or pulling the git.kernel.org built tarball that is autogenerated from the release tag?
Quoted 11 lines
Quoted 10 lines
debian/rules config: .census · line 53
Quoted 5 lines
debian/rules +1
-0@echo "== dpkg-buildpackage: configure" 1>&2 $(checkdir) AUTOHEADER=/bin/true dh_autoreconf + dh_update_autotools_config $(options) $(MAKE) $(PMAKEFLAGS) include/platform_defs.hWhy would running at tool that does a search-n-replace of built config.guess files do anything when run before the build runs libtoolize to copy in the config.guess file it uses? I'm a bit confused by this...
Quoted 1 line
Autoreconf was not copying in a newer version of config.guess from the system, because of the specific subset of autotools used by this project.
That sounds wrong. AIUI, autoreconf doesn't copy in anything.
$ man 7 dh-autoreconf
....
CAVEATS
dh_autoreconf is mostly a superset of the
dh_update_autotools_config debhelper command included in
debhelper since version 9.20160115. When using the dh
sequencer, dh_update_autotools_config is run before
dh_autoreconf and updates the config.guess and config.sub
files. This is required in cases where autoreconf does not
update config.guess and config.sub itself.So isn't the dh_update_autotools_config call in the wrong place here?
Cheers,
Dave.
Signature · 2 lines
Dave Chinner [email protected]
Re: [PATCH 3/4] debian: Regenerate config.guess using debhelper
Quoted 8 lines · Dave Chinner
Quoted 3 lines
This upstream release ended up with an older version of config.guess in the tarball. Specifically, it was too old to recognize RISC-V as an architecture.
So was the RISC-V architecture added to the ubuntu build between the uploads of the previous version of xfsprogs and xfsprogs-5.10.0? Or is this an actual regression where the maintainer signed tarball had RISC-V support in it and now it doesn't?
This is a regression. The previous tarball (5.6.0) had a newer config.guess that recognized RISC-V, the newer one (5.10.0) had an older config.guess.
Quoted 7 lines
FWIW, where are you getting the tarballs from? Are you downloading the maintainer signed tarballs from here:
https://mirrors.edge.kernel.org/pub/linux/utils/fs/xfs/xfsprogs/
Or pulling the git.kernel.org built tarball that is autogenerated from the release tag?
I don't know the answer to this; we in Ubuntu take the tarballs from Debian.
Quoted 28 lines
Quoted 11 lines
Quoted 10 lines
debian/rules config: .census · line 53
Quoted 5 lines
debian/rules +1
-0@echo "== dpkg-buildpackage: configure" 1>&2 $(checkdir) AUTOHEADER=/bin/true dh_autoreconf + dh_update_autotools_config $(options) $(MAKE) $(PMAKEFLAGS) include/platform_defs.hWhy would running at tool that does a search-n-replace of built config.guess files do anything when run before the build runs libtoolize to copy in the config.guess file it uses? I'm a bit confused by this...
Quoted 3 lines
Autoreconf was not copying in a newer version of config.guess from the system, because of the specific subset of autotools used by this project.
That sounds wrong. AIUI, autoreconf doesn't copy in anything.
$ man 7 dh-autoreconf .... CAVEATS dh_autoreconf is mostly a superset of the dh_update_autotools_config debhelper command included in debhelper since version 9.20160115. When using the dh sequencer, dh_update_autotools_config is run before dh_autoreconf and updates the config.guess and config.sub files. This is required in cases where autoreconf does not update config.guess and config.sub itself.
Quoted 2 lines
So isn't the
dh_update_autotools_configcall in the wrong place here?
Documentation notwithstanding, dh_autoreconf was definitively NOT copying in the newer config.guess, and we have the build logs to prove it.
https://launchpad.net/ubuntu/+source/xfsprogs/5.10.0-2ubuntu1/+build/20952006
I don't know in what sense this would be the "wrong" place to call it, because it fixes the build failure, which is what I care about.
Signature · 4 lines
Steve Langasek Give me a lever long enough and a Free OS Debian Developer to set it on, and I can move the world. Ubuntu Developer https://www.debian.org/ [email protected] [email protected]
Re: [PATCH 3/4] debian: Regenerate config.guess using debhelper
Quoted 6 lines · Steve Langasek
Quoted 3 lines · Dave Chinner
Quoted 3 lines
This upstream release ended up with an older version of config.guess in the tarball. Specifically, it was too old to recognize RISC-V as an architecture.
Quoted 7 lines
Quoted 4 lines
So was the RISC-V architecture added to the ubuntu build between the uploads of the previous version of xfsprogs and xfsprogs-5.10.0? Or is this an actual regression where the maintainer signed tarball had RISC-V support in it and now it doesn't?
This is a regression. The previous tarball (5.6.0) had a newer config.guess that recognized RISC-V, the newer one (5.10.0) had an older config.guess.
Ok.
Eric, did you change the machine you did the release build from?
Quoted 11 lines
Quoted 10 lines
$ man 7 dh-autoreconf .... CAVEATS dh_autoreconf is mostly a superset of the dh_update_autotools_config debhelper command included in debhelper since version 9.20160115. When using the dh sequencer, dh_update_autotools_config is run before dh_autoreconf and updates the config.guess and config.sub files. This is required in cases where autoreconf does not update config.guess and config.sub itself.
Quoted 7 lines
Quoted 2 lines
So isn't the
dh_update_autotools_configcall in the wrong place here?Documentation notwithstanding,
dh_autoreconfwas definitively NOT copying in the newer config.guess, and we have the build logs to prove it.https://launchpad.net/ubuntu/+source/xfsprogs/5.10.0-2ubuntu1/+build/20952006
I'm not denying that it fixed your problem. As a reviewer, I'm supposed to point out where the proposed fix doesn't match with expected usage. And as a reviewer, I expect that patched get changed to address problems that are found before they are committed, not to be told:
Quoted 2 lines
I don't know in what sense this would be the "wrong" place to call it, because it fixes the build failure, which is what I care about.
"It made my problem go away, so my job is done."
You didn't report it upstream so we could avoid the regression in future, to either the debian package maintainers or the XFS lists. Nor do you seem to care if the fix is correct or whether anyone else might need it.
In future, if there is a regression in the upstream xfsprogs package, please report it upstream and not just keep it to yourself and hack around it.
Cheers,
Dave.
Signature · 2 lines
Dave Chinner [email protected]
Re: [PATCH 3/4] debian: Regenerate config.guess using debhelper
Quoted 12 lines · Dave Chinner
Quoted 11 lines · Steve Langasek
Quoted 8 lines · Dave Chinner
Quoted 3 lines
This upstream release ended up with an older version of config.guess in the tarball. Specifically, it was too old to recognize RISC-V as an architecture.
So was the RISC-V architecture added to the ubuntu build between the uploads of the previous version of xfsprogs and xfsprogs-5.10.0? Or is this an actual regression where the maintainer signed tarball had RISC-V support in it and now it doesn't?
Quoted 6 lines
Quoted 2 lines
This is a regression. The previous tarball (5.6.0) had a newer config.guess that recognized RISC-V, the newer one (5.10.0) had an older config.guess.
Ok.
Eric, did you change the machine you did the release build from?
I don't recall doing so, but I must have. I guess I remember this coming up a while ago and maybe I failed to change process in a sticky way. :/
But - if my local toolchain can cause a regression in a major distro, it seems like this patch to regenerate is the obvious path forward, to control the distro-specific build, and not be subject to my personal toolchain whims.
Is that not best practice? (I honestly don't know.)
-Eric
Re: [PATCH 3/4] debian: Regenerate config.guess using debhelper
Quoted 18 lines · Eric Sandeen
Quoted 17 lines · Dave Chinner
Quoted 6 lines · Steve Langasek
Quoted 3 lines · Dave Chinner
Quoted 3 lines
This upstream release ended up with an older version of config.guess in the tarball. Specifically, it was too old to recognize RISC-V as an architecture.
Quoted 7 lines
Quoted 4 lines
So was the RISC-V architecture added to the ubuntu build between the uploads of the previous version of xfsprogs and xfsprogs-5.10.0? Or is this an actual regression where the maintainer signed tarball had RISC-V support in it and now it doesn't?
This is a regression. The previous tarball (5.6.0) had a newer config.guess that recognized RISC-V, the newer one (5.10.0) had an older config.guess.
Ok.
Quoted 8 lines
Quoted 1 line
Eric, did you change the machine you did the release build from?
I don't recall doing so, but I must have. I guess I remember this coming up a while ago and maybe I failed to change process in a sticky way. :/
But - if my local toolchain can cause a regression in a major distro, it seems like this patch to regenerate is the obvious path forward, to control the distro-specific build, and not be subject to my personal toolchain whims.
I think it's on the package maintainer to ensure what is uploaded as the official distro package contains the correct tarball contents for their distro. If the distro build overrides shipped config files, then there shouldn't be any problems at all with just using the upstream tarball.
Quoted 1 line
Is that not best practice? (I honestly don't know.)
Honestly, I think building packages from tarballs is an anachronism of a time gone by. Debian xfsprogs packages can be build directly from a clean git tree and none of these problems exist in that case. i.e. a clean git tree requires the build to libtoolize/autoconf and set up the source tree from it's environment before anything else, hence there's nothing that needs to be overridden...
Cheers,
Dave.
Signature · 2 lines
Dave Chinner [email protected]
PATCH 4/4 debian: Build-depend on libinih-dev with udeb package
In reply to Bastian GermannThe first libinih Debian package version with udeb binary package is 53-1. Debian bug #981662 documents the need for it:
xfsprogs-udeb depends on libinih1, not libinih1-udeb
--- debian/changelog | 3 +++ debian/control | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-)
debian/changelog +3 -0
@@ -7,6 +7,9 @@ xfsprogs (5.11.0-rc0-1) experimental; urgency=medium [ Steve Langasek ] * Regenerate config.guess using debhelper + [ Bastian Germann ] + * Build-depend on libinih-dev with udeb package + -- Bastian Germann <[email protected]> Sat, 20 Feb 2021 11:57:31 +0100 xfsprogs (5.10.0-3) unstable; urgency=medium
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, pkg-config +Build-Depends: libinih-dev (>= 53), 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.1