WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: util-linux 2.27 introduces regressions  (Read 2866 times)

Offline aw

  • Newbie
  • *
  • Posts: 45
util-linux 2.27 introduces regressions
« 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.
github.com/aw

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 11049
Re: util-linux 2.27 introduces regressions
« Reply #1 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?
The only barriers that can stop you are the ones you create yourself.

Offline aw

  • Newbie
  • *
  • Posts: 45
Re: util-linux 2.27 introduces regressions
« Reply #2 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.

Can the maintainer publish a new extension?

(sorry, I just realize this post belongs in TCE Bugs).
github.com/aw

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14851
Re: util-linux 2.27 introduces regressions
« Reply #3 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?

Offline aw

  • Newbie
  • *
  • Posts: 45
Re: util-linux 2.27 introduces regressions
« Reply #4 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.
github.com/aw