mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
* [ptxdist] [RFC PATCH 0/3] util-linux-ng improvements
@ 2018-03-22  8:18 Alexander Dahl
  2018-03-22  8:18 ` [ptxdist] [RFC PATCH 1/3] util-linux-ng: Add lscpu to installable tools Alexander Dahl
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Alexander Dahl @ 2018-03-22  8:18 UTC (permalink / raw)
  To: ptxdist

Hei hei,

the recently published util-linux 2.32 supports an improved version of
lscpu on ARM CPUs [1], which I was interested in. After adding an
option to install lscpu to the target (first patch), I found I could
not easily test rc tarballs (second patch). The third patch is the
version bump, but I'm not sure about all things configure_helper.py
complained about. So I marked the whole patch series as RFC.

Greets
Alex

[1] https://mirrors.edge.kernel.org/pub/linux/utils/util-linux/v2.32/v2.32-ReleaseNotes

Alexander Dahl (3):
  util-linux-ng: Add lscpu to installable tools
  util-linux-ng: Change regex to allow rc tarballs
  util-linux-ng: Upgrade from v2.31.1 to v2.32

 rules/util-linux-ng.in   |  7 +++++++
 rules/util-linux-ng.make | 10 +++++++---
 2 files changed, 14 insertions(+), 3 deletions(-)

-- 
2.11.0


_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de

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

* [ptxdist] [RFC PATCH 1/3] util-linux-ng: Add lscpu to installable tools
  2018-03-22  8:18 [ptxdist] [RFC PATCH 0/3] util-linux-ng improvements Alexander Dahl
@ 2018-03-22  8:18 ` Alexander Dahl
  2018-03-22  8:18 ` [ptxdist] [RFC PATCH 2/3] util-linux-ng: Change regex to allow rc tarballs Alexander Dahl
  2018-03-22  8:18 ` [ptxdist] [RFC PATCH 3/3] util-linux-ng: Upgrade from v2.31.1 to v2.32 Alexander Dahl
  2 siblings, 0 replies; 6+ messages in thread
From: Alexander Dahl @ 2018-03-22  8:18 UTC (permalink / raw)
  To: ptxdist

Signed-off-by: Alexander Dahl <ada@thorsis.com>
---
 rules/util-linux-ng.in   | 7 +++++++
 rules/util-linux-ng.make | 3 +++
 2 files changed, 10 insertions(+)

diff --git a/rules/util-linux-ng.in b/rules/util-linux-ng.in
index c6b2e89899..8e89370f68 100644
--- a/rules/util-linux-ng.in
+++ b/rules/util-linux-ng.in
@@ -428,4 +428,11 @@ config UTIL_LINUX_NG_MKFS
 	  The mkfs command is a generic wrapper for fs specific
           mkfs.* commands.
 
+config UTIL_LINUX_NG_LSCPU
+	bool
+	select UTIL_LINUX_NG_LIBSMARTCOLS
+	prompt "lscpu"
+	help
+	  lscpu shows information about the CPU architecture
+
 endif
diff --git a/rules/util-linux-ng.make b/rules/util-linux-ng.make
index 2464909c71..6efbc98416 100644
--- a/rules/util-linux-ng.make
+++ b/rules/util-linux-ng.make
@@ -306,6 +306,9 @@ endif
 ifdef PTXCONF_UTIL_LINUX_NG_MKFS
 	@$(call install_copy, util-linux-ng, 0, 0, 0755, -, /usr/sbin/mkfs)
 endif
+ifdef PTXCONF_UTIL_LINUX_NG_LSCPU
+	@$(call install_copy, util-linux-ng, 0, 0, 0755, -, /usr/bin/lscpu)
+endif
 
 	@$(call install_finish, util-linux-ng)
 
-- 
2.11.0


_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de

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

* [ptxdist] [RFC PATCH 2/3] util-linux-ng: Change regex to allow rc tarballs
  2018-03-22  8:18 [ptxdist] [RFC PATCH 0/3] util-linux-ng improvements Alexander Dahl
  2018-03-22  8:18 ` [ptxdist] [RFC PATCH 1/3] util-linux-ng: Add lscpu to installable tools Alexander Dahl
@ 2018-03-22  8:18 ` Alexander Dahl
  2018-03-22  8:18 ` [ptxdist] [RFC PATCH 3/3] util-linux-ng: Upgrade from v2.31.1 to v2.32 Alexander Dahl
  2 siblings, 0 replies; 6+ messages in thread
From: Alexander Dahl @ 2018-03-22  8:18 UTC (permalink / raw)
  To: ptxdist

The previous sed regex for creating the basename for an intermediate
folder in the download URL failed on rc tarballs. Now URLs like this
work, too:

https://www.kernel.org/pub/linux/utils/util-linux/v2.32/util-linux-2.32-rc1.tar.gz

Signed-off-by: Alexander Dahl <ada@thorsis.com>
---
 rules/util-linux-ng.make | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/rules/util-linux-ng.make b/rules/util-linux-ng.make
index 6efbc98416..ed0f85c02e 100644
--- a/rules/util-linux-ng.make
+++ b/rules/util-linux-ng.make
@@ -21,7 +21,7 @@ UTIL_LINUX_NG_VERSION	:= 2.31.1
 UTIL_LINUX_NG_MD5	:= 7733b583dcb51518944d42aa62ef19ea
 UTIL_LINUX_NG		:= util-linux-$(UTIL_LINUX_NG_VERSION)
 UTIL_LINUX_NG_SUFFIX	:= tar.xz
-UTIL_LINUX_NG_BASENAME	:= v$(shell echo $(UTIL_LINUX_NG_VERSION) | sed -e 's/\([0-9]*\.[0-9]*\)[\.[0-9]*]\?/\1/g')
+UTIL_LINUX_NG_BASENAME	:= v$(shell echo $(UTIL_LINUX_NG_VERSION) | sed -e 's/\([0-9]*\.[0-9]*\)[^0-9].*\?/\1/g')
 UTIL_LINUX_NG_URL	:= $(call ptx/mirror, KERNEL, utils/util-linux/$(UTIL_LINUX_NG_BASENAME)/$(UTIL_LINUX_NG).$(UTIL_LINUX_NG_SUFFIX))
 UTIL_LINUX_NG_SOURCE	:= $(SRCDIR)/$(UTIL_LINUX_NG).$(UTIL_LINUX_NG_SUFFIX)
 UTIL_LINUX_NG_DIR	:= $(BUILDDIR)/$(UTIL_LINUX_NG)
-- 
2.11.0


_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de

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

* [ptxdist] [RFC PATCH 3/3] util-linux-ng: Upgrade from v2.31.1 to v2.32
  2018-03-22  8:18 [ptxdist] [RFC PATCH 0/3] util-linux-ng improvements Alexander Dahl
  2018-03-22  8:18 ` [ptxdist] [RFC PATCH 1/3] util-linux-ng: Add lscpu to installable tools Alexander Dahl
  2018-03-22  8:18 ` [ptxdist] [RFC PATCH 2/3] util-linux-ng: Change regex to allow rc tarballs Alexander Dahl
@ 2018-03-22  8:18 ` Alexander Dahl
  2018-03-23  9:02   ` Alexander Dahl
  2 siblings, 1 reply; 6+ messages in thread
From: Alexander Dahl @ 2018-03-22  8:18 UTC (permalink / raw)
  To: ptxdist

Disable option for compilation with Address Sanitizer.

Signed-off-by: Alexander Dahl <ada@thorsis.com>
---
 rules/util-linux-ng.make | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/rules/util-linux-ng.make b/rules/util-linux-ng.make
index ed0f85c02e..0961c4c657 100644
--- a/rules/util-linux-ng.make
+++ b/rules/util-linux-ng.make
@@ -17,8 +17,8 @@ PACKAGES-$(PTXCONF_UTIL_LINUX_NG) += util-linux-ng
 #
 # Paths and names
 #
-UTIL_LINUX_NG_VERSION	:= 2.31.1
-UTIL_LINUX_NG_MD5	:= 7733b583dcb51518944d42aa62ef19ea
+UTIL_LINUX_NG_VERSION	:= 2.32
+UTIL_LINUX_NG_MD5	:= e0d8a25853f88cd15ff557e5d8cb4ea7
 UTIL_LINUX_NG		:= util-linux-$(UTIL_LINUX_NG_VERSION)
 UTIL_LINUX_NG_SUFFIX	:= tar.xz
 UTIL_LINUX_NG_BASENAME	:= v$(shell echo $(UTIL_LINUX_NG_VERSION) | sed -e 's/\([0-9]*\.[0-9]*\)[^0-9].*\?/\1/g')
@@ -52,6 +52,7 @@ UTIL_LINUX_NG_CONF_OPT	:= \
 	$(CROSS_AUTOCONF_USR) \
 	--bindir=/usr/bin \
 	--sbindir=/usr/sbin \
+	--disable-asan \
 	--enable-shared \
 	--disable-static \
 	--disable-gtk-doc \
-- 
2.11.0


_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de

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

* Re: [ptxdist] [RFC PATCH 3/3] util-linux-ng: Upgrade from v2.31.1 to v2.32
  2018-03-22  8:18 ` [ptxdist] [RFC PATCH 3/3] util-linux-ng: Upgrade from v2.31.1 to v2.32 Alexander Dahl
@ 2018-03-23  9:02   ` Alexander Dahl
  2018-03-26  6:36     ` Michael Olbrich
  0 siblings, 1 reply; 6+ messages in thread
From: Alexander Dahl @ 2018-03-23  9:02 UTC (permalink / raw)
  To: ptxdist

Hei hei,

the are old patches for v2.31.1 which I forgot to check. :-/

Just to let you know, this should not be applied as is.

Greets
Alex

Am Donnerstag, 22. März 2018, 09:18:38 CET schrieb Alexander Dahl:
> Disable option for compilation with Address Sanitizer.
> 
> Signed-off-by: Alexander Dahl <ada@thorsis.com>
> ---
>  rules/util-linux-ng.make | 5 +++--
>  1 file changed, 3 insertions(+), 2 deletions(-)
> 
> diff --git a/rules/util-linux-ng.make b/rules/util-linux-ng.make
> index ed0f85c02e..0961c4c657 100644
> --- a/rules/util-linux-ng.make
> +++ b/rules/util-linux-ng.make
> @@ -17,8 +17,8 @@ PACKAGES-$(PTXCONF_UTIL_LINUX_NG) += util-linux-ng
>  #
>  # Paths and names
>  #
> -UTIL_LINUX_NG_VERSION	:= 2.31.1
> -UTIL_LINUX_NG_MD5	:= 7733b583dcb51518944d42aa62ef19ea
> +UTIL_LINUX_NG_VERSION	:= 2.32
> +UTIL_LINUX_NG_MD5	:= e0d8a25853f88cd15ff557e5d8cb4ea7
>  UTIL_LINUX_NG		:= util-linux-$(UTIL_LINUX_NG_VERSION)
>  UTIL_LINUX_NG_SUFFIX	:= tar.xz
>  UTIL_LINUX_NG_BASENAME	:= v$(shell echo $(UTIL_LINUX_NG_VERSION) | sed -e
> 's/\([0-9]*\.[0-9]*\)[^0-9].*\?/\1/g') @@ -52,6 +52,7 @@
> UTIL_LINUX_NG_CONF_OPT	:= \
>  	$(CROSS_AUTOCONF_USR) \
>  	--bindir=/usr/bin \
>  	--sbindir=/usr/sbin \
> +	--disable-asan \
>  	--enable-shared \
>  	--disable-static \
>  	--disable-gtk-doc \



_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de

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

* Re: [ptxdist] [RFC PATCH 3/3] util-linux-ng: Upgrade from v2.31.1 to v2.32
  2018-03-23  9:02   ` Alexander Dahl
@ 2018-03-26  6:36     ` Michael Olbrich
  0 siblings, 0 replies; 6+ messages in thread
From: Michael Olbrich @ 2018-03-26  6:36 UTC (permalink / raw)
  To: ptxdist

On Fri, Mar 23, 2018 at 10:02:22AM +0100, Alexander Dahl wrote:
> Hei hei,
> 
> the are old patches for v2.31.1 which I forgot to check. :-/
> 
> Just to let you know, this should not be applied as is.

Ok, I've applied the other two. Can you resend this one with the patches?

About the configure options: configure_helper.py has a --old-src option to
compare to the previous version. This helps ignoring the options that are
not set in the old version. These are ok.

Michael

> Am Donnerstag, 22. März 2018, 09:18:38 CET schrieb Alexander Dahl:
> > Disable option for compilation with Address Sanitizer.
> > 
> > Signed-off-by: Alexander Dahl <ada@thorsis.com>
> > ---
> >  rules/util-linux-ng.make | 5 +++--
> >  1 file changed, 3 insertions(+), 2 deletions(-)
> > 
> > diff --git a/rules/util-linux-ng.make b/rules/util-linux-ng.make
> > index ed0f85c02e..0961c4c657 100644
> > --- a/rules/util-linux-ng.make
> > +++ b/rules/util-linux-ng.make
> > @@ -17,8 +17,8 @@ PACKAGES-$(PTXCONF_UTIL_LINUX_NG) += util-linux-ng
> >  #
> >  # Paths and names
> >  #
> > -UTIL_LINUX_NG_VERSION	:= 2.31.1
> > -UTIL_LINUX_NG_MD5	:= 7733b583dcb51518944d42aa62ef19ea
> > +UTIL_LINUX_NG_VERSION	:= 2.32
> > +UTIL_LINUX_NG_MD5	:= e0d8a25853f88cd15ff557e5d8cb4ea7
> >  UTIL_LINUX_NG		:= util-linux-$(UTIL_LINUX_NG_VERSION)
> >  UTIL_LINUX_NG_SUFFIX	:= tar.xz
> >  UTIL_LINUX_NG_BASENAME	:= v$(shell echo $(UTIL_LINUX_NG_VERSION) | sed -e
> > 's/\([0-9]*\.[0-9]*\)[^0-9].*\?/\1/g') @@ -52,6 +52,7 @@
> > UTIL_LINUX_NG_CONF_OPT	:= \
> >  	$(CROSS_AUTOCONF_USR) \
> >  	--bindir=/usr/bin \
> >  	--sbindir=/usr/sbin \
> > +	--disable-asan \
> >  	--enable-shared \
> >  	--disable-static \
> >  	--disable-gtk-doc \
> 
> 
> 
> _______________________________________________
> ptxdist mailing list
> ptxdist@pengutronix.de

-- 
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de

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

end of thread, other threads:[~2018-03-26  6:36 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-03-22  8:18 [ptxdist] [RFC PATCH 0/3] util-linux-ng improvements Alexander Dahl
2018-03-22  8:18 ` [ptxdist] [RFC PATCH 1/3] util-linux-ng: Add lscpu to installable tools Alexander Dahl
2018-03-22  8:18 ` [ptxdist] [RFC PATCH 2/3] util-linux-ng: Change regex to allow rc tarballs Alexander Dahl
2018-03-22  8:18 ` [ptxdist] [RFC PATCH 3/3] util-linux-ng: Upgrade from v2.31.1 to v2.32 Alexander Dahl
2018-03-23  9:02   ` Alexander Dahl
2018-03-26  6:36     ` Michael Olbrich

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