Tiny Core Linux

Tiny Core Extensions => TCE Bugs => Topic started by: aw on November 23, 2016, 11:13:59 AM

Title: util-linux 2.27 introduces regressions
Post by: aw on November 23, 2016, 11:13:59 AM
Hi,

I noticed the util-linux.tcz extension version 2.27 (from 7.x/x86_64) introduces a regression in certain commands.

For example, on 6.x with util-linux 2.25.1:

Code: [Select]
$ sfdisk -l /dev/nothing
sfdisk: cannot open /dev/nothing for reading: No such file or directory
$ echo $?
1

but on 7.x with util-linux 2.27:

Code: [Select]
$ sfdisk -l /dev/nothing
$ echo $?
0

We get no output, and it exits cleanly.  :'(

I can't confirm if the problem is with that version util-linux itself, or with the way it was compiled.
Title: Re: util-linux 2.27 introduces regressions
Post by: curaga on November 23, 2016, 11:27:21 AM
Since it's an upstream command, should be easy to test a couple versions and file a bug?
Title: Re: util-linux 2.27 introduces regressions
Post by: aw on November 23, 2016, 11:48:50 AM
This and other regressions were fixed in 2.27.1 - see ftp://ftp.kernel.org/pub/linux/utils/util-linux/v2.27/v2.27.1-ChangeLog (http://ftp://ftp.kernel.org/pub/linux/utils/util-linux/v2.27/v2.27.1-ChangeLog).

Can the maintainer publish a new extension?

(sorry, I just realize this post belongs in TCE Bugs).
Title: Re: util-linux 2.27 introduces regressions
Post by: Juanito on November 23, 2016, 11:38:12 PM
As there are some util-linux libs in the base tinycore, can we wait until tc-8.x, which is planned to be util-linux-2.28.2?
Title: Re: util-linux 2.27 introduces regressions
Post by: aw on November 24, 2016, 03:32:14 AM
I reported the bug in the official util-linux repo on GitHub, because I get the same error with 2.28.2.

Just for fun, I compiled 2.25.2 using the same compile flags used for 2.27.1 ... and sfdisk works just fine.