All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 0/2] debian: Fix problems introduced with 5.10.0
@ 2021-02-21  9:39 Bastian Germann
  2021-02-21  9:39 ` [PATCH v2 1/2] debian: Regenerate config.guess using debhelper Bastian Germann
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Bastian Germann @ 2021-02-21  9:39 UTC (permalink / raw)
  To: linux-xfs; +Cc: Bastian Germann

There were two bugs introduced with the 5.6 -> 5.10 change in Debian:
RISC-V does not build. Fix that by regenerating it.
The new libinih package did not have a udeb package which is needed by
xfsprogs-udeb. Explicitly depend on newer libinih versions.

Changelog:
 v2: Drop Dimitri's Ubuntu changes (related to CET)

Bastian Germann (2):
  debian: Regenerate config.guess using debhelper
  debian: Build-depend on libinih-dev with udeb package

 debian/changelog | 10 ++++++++++
 debian/control   |  2 +-
 debian/rules     |  1 +
 3 files changed, 12 insertions(+), 1 deletion(-)

-- 
2.30.1


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

* [PATCH v2 1/2] debian: Regenerate config.guess using debhelper
  2021-02-21  9:39 [PATCH v2 0/2] debian: Fix problems introduced with 5.10.0 Bastian Germann
@ 2021-02-21  9:39 ` Bastian Germann
  2021-02-22 19:43   ` Darrick J. Wong
  2021-02-21  9:39 ` [PATCH v2 2/2] debian: Build-depend on libinih-dev with udeb package Bastian Germann
  2021-03-07 12:07 ` [PATCH v2 0/2] debian: Fix problems introduced with 5.10.0 Bastian Germann
  2 siblings, 1 reply; 6+ messages in thread
From: Bastian Germann @ 2021-02-21  9:39 UTC (permalink / raw)
  To: linux-xfs; +Cc: Bastian Germann, Steve Langasek

This is a change introduced in 5.10.0-2ubuntu2 with the changelog:

> xfsprogs upstream has regressed config.guess, so use
> dh_update_autotools_config.

The 5.10.0 tarball has a config.guess that breaks builds on RISC-V:
...
UNAME_MACHINE = riscv64
UNAME_RELEASE = 5.0.0+
UNAME_SYSTEM  = Linux
UNAME_VERSION = #2 SMP Sat Mar 9 22:34:53 UTC 2019
configure: error: cannot guess build type; you must specify one
make[1]: *** [Makefile:131: include/builddefs] Error 1
...

Reported-by: Steve Langasek <steve.langasek@ubuntu.com>
Signed-off-by: Bastian Germann <bastiangermann@fishpost.de>
---
 debian/changelog | 7 +++++++
 debian/rules     | 1 +
 2 files changed, 8 insertions(+)

diff --git a/debian/changelog b/debian/changelog
index 5421aed6..679fbf03 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,10 @@
+xfsprogs (5.11.0-rc0-1) experimental; urgency=medium
+
+  [ Steve Langasek ]
+  * Regenerate config.guess using debhelper
+
+ -- Bastian Germann <bastiangermann@fishpost.de>  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)
diff --git a/debian/rules b/debian/rules
index c6ca5491..fe9a1c3a 100755
--- a/debian/rules
+++ b/debian/rules
@@ -43,6 +43,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
 
-- 
2.30.1


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

* [PATCH v2 2/2] debian: Build-depend on libinih-dev with udeb package
  2021-02-21  9:39 [PATCH v2 0/2] debian: Fix problems introduced with 5.10.0 Bastian Germann
  2021-02-21  9:39 ` [PATCH v2 1/2] debian: Regenerate config.guess using debhelper Bastian Germann
@ 2021-02-21  9:39 ` Bastian Germann
  2021-02-22 18:39   ` Darrick J. Wong
  2021-03-07 12:07 ` [PATCH v2 0/2] debian: Fix problems introduced with 5.10.0 Bastian Germann
  2 siblings, 1 reply; 6+ messages in thread
From: Bastian Germann @ 2021-02-21  9:39 UTC (permalink / raw)
  To: linux-xfs; +Cc: Bastian Germann

The 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

Link: https://bugs.debian.org/981662
Signed-off-by: Bastian Germann <bastiangermann@fishpost.de>
---
 debian/changelog | 3 +++
 debian/control   | 2 +-
 2 files changed, 4 insertions(+), 1 deletion(-)

diff --git a/debian/changelog b/debian/changelog
index 679fbf03..8738ab90 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -3,6 +3,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 <bastiangermann@fishpost.de>  Sat, 20 Feb 2021 11:57:31 +0100
 
 xfsprogs (5.10.0-3) unstable; urgency=medium
diff --git a/debian/control b/debian/control
index 1da8093d..e4ec897c 100644
--- a/debian/control
+++ b/debian/control
@@ -3,7 +3,7 @@ Section: admin
 Priority: optional
 Maintainer: XFS Development Team <linux-xfs@vger.kernel.org>
 Uploaders: Nathan Scott <nathans@debian.org>, Anibal Monsalve Salazar <anibal@debian.org>, Bastian Germann <bastiangermann@fishpost.de>
-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/
 
-- 
2.30.1


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

* Re: [PATCH v2 2/2] debian: Build-depend on libinih-dev with udeb package
  2021-02-21  9:39 ` [PATCH v2 2/2] debian: Build-depend on libinih-dev with udeb package Bastian Germann
@ 2021-02-22 18:39   ` Darrick J. Wong
  0 siblings, 0 replies; 6+ messages in thread
From: Darrick J. Wong @ 2021-02-22 18:39 UTC (permalink / raw)
  To: Bastian Germann; +Cc: linux-xfs

On Sun, Feb 21, 2021 at 10:39:46AM +0100, Bastian Germann wrote:
> The 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
> 
> Link: https://bugs.debian.org/981662
> Signed-off-by: Bastian Germann <bastiangermann@fishpost.de>

Oops, yeah... :(

Reviewed-by: Darrick J. Wong <djwong@kernel.org>

--D

> ---
>  debian/changelog | 3 +++
>  debian/control   | 2 +-
>  2 files changed, 4 insertions(+), 1 deletion(-)
> 
> diff --git a/debian/changelog b/debian/changelog
> index 679fbf03..8738ab90 100644
> --- a/debian/changelog
> +++ b/debian/changelog
> @@ -3,6 +3,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 <bastiangermann@fishpost.de>  Sat, 20 Feb 2021 11:57:31 +0100
>  
>  xfsprogs (5.10.0-3) unstable; urgency=medium
> diff --git a/debian/control b/debian/control
> index 1da8093d..e4ec897c 100644
> --- a/debian/control
> +++ b/debian/control
> @@ -3,7 +3,7 @@ Section: admin
>  Priority: optional
>  Maintainer: XFS Development Team <linux-xfs@vger.kernel.org>
>  Uploaders: Nathan Scott <nathans@debian.org>, Anibal Monsalve Salazar <anibal@debian.org>, Bastian Germann <bastiangermann@fishpost.de>
> -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/
>  
> -- 
> 2.30.1
> 

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

* Re: [PATCH v2 1/2] debian: Regenerate config.guess using debhelper
  2021-02-21  9:39 ` [PATCH v2 1/2] debian: Regenerate config.guess using debhelper Bastian Germann
@ 2021-02-22 19:43   ` Darrick J. Wong
  0 siblings, 0 replies; 6+ messages in thread
From: Darrick J. Wong @ 2021-02-22 19:43 UTC (permalink / raw)
  To: Bastian Germann; +Cc: linux-xfs, Steve Langasek

On Sun, Feb 21, 2021 at 10:39:45AM +0100, Bastian Germann wrote:
> This is a change introduced in 5.10.0-2ubuntu2 with the changelog:
> 
> > xfsprogs upstream has regressed config.guess, so use
> > dh_update_autotools_config.
> 
> The 5.10.0 tarball has a config.guess that breaks builds on RISC-V:
> ...
> UNAME_MACHINE = riscv64
> UNAME_RELEASE = 5.0.0+
> UNAME_SYSTEM  = Linux
> UNAME_VERSION = #2 SMP Sat Mar 9 22:34:53 UTC 2019
> configure: error: cannot guess build type; you must specify one
> make[1]: *** [Makefile:131: include/builddefs] Error 1
> ...
> 
> Reported-by: Steve Langasek <steve.langasek@ubuntu.com>
> Signed-off-by: Bastian Germann <bastiangermann@fishpost.de>
> ---
>  debian/changelog | 7 +++++++
>  debian/rules     | 1 +
>  2 files changed, 8 insertions(+)
> 
> diff --git a/debian/changelog b/debian/changelog
> index 5421aed6..679fbf03 100644
> --- a/debian/changelog
> +++ b/debian/changelog
> @@ -1,3 +1,10 @@
> +xfsprogs (5.11.0-rc0-1) experimental; urgency=medium
> +
> +  [ Steve Langasek ]
> +  * Regenerate config.guess using debhelper
> +
> + -- Bastian Germann <bastiangermann@fishpost.de>  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)
> diff --git a/debian/rules b/debian/rules
> index c6ca5491..fe9a1c3a 100755
> --- a/debian/rules
> +++ b/debian/rules
> @@ -43,6 +43,7 @@ config: .census
>  	@echo "== dpkg-buildpackage: configure" 1>&2
>  	$(checkdir)
>  	AUTOHEADER=/bin/true dh_autoreconf
> +	dh_update_autotools_config

Hm.  The manual page says "dh_update_autotools_config replaces all
occurrences of config.sub and config.guess in the source tree by the
up-to-date versions found in the autotools-dev package."

autoreconf does not itself examine config.{guess,sub}.  automake can
override those files if someone passes it --force --add-missing, but
nobody does.  The build then kicks off with an ancient config.guess.

Hence this patch forcibly overrides config.guess (and config.sub) after
autoreconf, but before debuild gets to ./configure, thereby solving the
build failure on riscv.

Eric could also not to ship config.guess files at all, but that would
break the age-old "download and unpack tarball, ./configure && make"
workflow.  Overriding the files also works, though I have not focused
on repercussions for reproducible builds while examining this patch.

----------

As for the question of why the config.guess file versions keep
changing in the .orig and kernel.org tarballs--

[1] is a tarball with a 2013 era config.guess and files owned by
'sandeen', which I guess means that Eric generates the config.guess file
on a machine with fairly old devel packages before uploading to
kernel.org.

[2] is a tarball with a 2016 era config.guess and files owned by
'nathans'.  I suspect this means that Nathan Scott generated his own
.orig tarball when creating the 5.6.0 package, and as part of that
generated config.guess from a (somewhat more up to date) system?

[3] is a tarball with a 2013 era config.guess and files owned by
'sandeen', which I guess means that four releases later, Eric still
generates the config.guess file on a machine with fairly old devel
packages before uploading to kernel.org.  Though weirdly now he's doing
this as root (or I really hope fakeroot?)

[4] appears to be the same tarball as [3].

So reading between the lines here, I speculate that Eric runs 'make
xfsprogs-5.6.0.tar.xz' on (who are we kidding here, RHEL) and so that
tarball gets the 2013 era config.guess.  Nathan ran 'make
xfsprogs-5.6.0.tar.gz' on Debian and uploaded that to Debian, whereas
Bastian is pulling tarballs straight from kernel.org?  Then Ubuntu
pulled the Debian sources, found that riscv regressed, hence this patch
to reset config.guess?

(And the reason I never noticed is that I build from git on Ubuntu
20.04.  There's no config.guess in the build directory so the build
scripts install config.guess from autotools-dev; the one I get is from
2018 or so...)

Insofar as I avoid have strong opinions about packaging, I don't think
it's unreasonable for a distro to override autotools files with the
versions that they're shipping in that distro.  Who knows what kinds of
adjustments Debian makes to autotools, and it's certainly their right to
do that.

Reviewed-by: Darrick J. Wong <djwong@kernel.org>

<flame>
Personally I also think the upstream tarball should not ship with any of
those autotools files at all because they are not revision-controlled in
upstream git.  Anyone building from source ought to have autotools and
can generate their own.
</flame>

--D

[1] https://mirrors.edge.kernel.org/pub/linux/utils/fs/xfs/xfsprogs/xfsprogs-5.6.0.tar.gz
[2] http://archive.ubuntu.com/ubuntu/pool/main/x/xfsprogs/xfsprogs_5.6.0.orig.tar.gz

[3] https://mirrors.edge.kernel.org/pub/linux/utils/fs/xfs/xfsprogs/xfsprogs-5.10.0.tar.xz
[4] http://deb.debian.org/debian/pool/main/x/xfsprogs/xfsprogs_5.10.0.orig.tar.xz

>  	$(options) $(MAKE) $(PMAKEFLAGS) include/platform_defs.h
>  	touch .census
>  
> -- 
> 2.30.1
> 

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

* Re: [PATCH v2 0/2] debian: Fix problems introduced with 5.10.0
  2021-02-21  9:39 [PATCH v2 0/2] debian: Fix problems introduced with 5.10.0 Bastian Germann
  2021-02-21  9:39 ` [PATCH v2 1/2] debian: Regenerate config.guess using debhelper Bastian Germann
  2021-02-21  9:39 ` [PATCH v2 2/2] debian: Build-depend on libinih-dev with udeb package Bastian Germann
@ 2021-03-07 12:07 ` Bastian Germann
  2 siblings, 0 replies; 6+ messages in thread
From: Bastian Germann @ 2021-03-07 12:07 UTC (permalink / raw)
  To: linux-xfs

Am 21.02.21 um 10:39 schrieb Bastian Germann:
> There were two bugs introduced with the 5.6 -> 5.10 change in Debian:
> RISC-V does not build. Fix that by regenerating it.
> The new libinih package did not have a udeb package which is needed by
> xfsprogs-udeb. Explicitly depend on newer libinih versions.
> 
> Changelog:
>   v2: Drop Dimitri's Ubuntu changes (related to CET)
> 
> Bastian Germann (2):
>    debian: Regenerate config.guess using debhelper
>    debian: Build-depend on libinih-dev with udeb package
> 
>   debian/changelog | 10 ++++++++++
>   debian/control   |  2 +-
>   debian/rules     |  1 +
>   3 files changed, 12 insertions(+), 1 deletion(-)

Any chance of getting this reviewed series in the tree?

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

end of thread, other threads:[~2021-03-07 12:08 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-02-21  9:39 [PATCH v2 0/2] debian: Fix problems introduced with 5.10.0 Bastian Germann
2021-02-21  9:39 ` [PATCH v2 1/2] debian: Regenerate config.guess using debhelper Bastian Germann
2021-02-22 19:43   ` Darrick J. Wong
2021-02-21  9:39 ` [PATCH v2 2/2] debian: Build-depend on libinih-dev with udeb package Bastian Germann
2021-02-22 18:39   ` Darrick J. Wong
2021-03-07 12:07 ` [PATCH v2 0/2] debian: Fix problems introduced with 5.10.0 Bastian Germann

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.