Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 844073 - sys-apps/gptfdisk-1.0.9 weird error when creating partition in ~amd64 systems
Summary: sys-apps/gptfdisk-1.0.9 weird error when creating partition in ~amd64 systems
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Lars Wendler (Polynomial-C) (RETIRED)
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2022-05-13 17:41 UTC by Andreas
Modified: 2022-05-14 13:17 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
forum post. (file_844073.txt,1.30 KB, text/plain)
2022-05-13 17:41 UTC, Andreas
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Andreas 2022-05-13 17:41:57 UTC
Created attachment 778541 [details]
forum post.

Hi Guys
Something very strange I noticed happening when trying to create partitions via gdisk
Code:

Command (? for help): n
Partition number (23-128, default 23):
First sector (34-1953529822, default = 912263168) or {+-}size{KMGTP}:
Last sector (912263168-1953529822, default = 1953527807) or {+-}size{KMGTP}: +10G
Warning! Unable to generate a proper UUID! Creating an improper one as a last
resort! Windows 7 may crash if you save this partition table!
Current type is 8300 (Linux filesystem)
Hex code or GUID (L to show codes, Enter = 8300):


This happened in two testing systems.
Downgrading gptfdisk didnt help but booting into a non-testing system and using gdisk was faultless.
I believe some other package (maybe systemd-utils[udev]) is to blame?
What other relevant packages might be the culprit?
Maybe
Code:

sys-fs/udisks-2.9.4

?
This is the dependency graph
Code:

 * dependency graph for sys-apps/gptfdisk-1.0.9
 `--  sys-apps/gptfdisk-1.0.9  ~amd64
   `--  dev-libs/popt-1.18  (dev-libs/popt) amd64
   `--  sys-libs/ncurses-6.3_p20220423  (sys-libs/ncurses) ~amd64  [unicode(+)]
   `--  sys-apps/util-linux-2.38  (sys-apps/util-linux) ~amd64
   `--  virtual/pkgconfig-2-r1  (virtual/pkgconfig) amd64
[ sys-apps/gptfdisk-1.0.9 stats: packages (5), max depth (1) ]

Should i file a bug report,but for which package?
Maybe
Code:

/usr/lib64/libuuid.so

of
sys-apps/util-linux-2.38
?
Thanks a lot.
Comment 1 Mike Gilbert gentoo-dev 2022-05-13 20:07:23 UTC
The problem was introduced by this change in util-linux:

https://github.com/util-linux/util-linux/commit/10f5f79485964ab52272ebe79c3b0047b1f84d82

It should be fixed by this change in gptfdisk:

https://sourceforge.net/p/gptfdisk/code/ci/6a8416cbd12d55f882bb751993b94f72d338d96f/
Comment 2 Andreas 2022-05-13 20:46:33 UTC
Thanks a lot.
The above patch fixed it.
:)
Comment 3 Larry the Git Cow gentoo-dev 2022-05-14 13:17:12 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4d4e356d33eccb979a1df3fb79009348ecf4a3ea

commit 4d4e356d33eccb979a1df3fb79009348ecf4a3ea
Author:     Lars Wendler <polynomial-c@gentoo.org>
AuthorDate: 2022-05-14 13:15:51 +0000
Commit:     Lars Wendler <polynomial-c@gentoo.org>
CommitDate: 2022-05-14 13:17:07 +0000

    sys-apps/gptfdisk: Revbump to fix build against recent libuuid
    
    Reported-by: Andreas <alamahant@gmail.com>
    Thanks-to: Mike Gilbert <floppym@gentoo.org>
    Closes: https://bugs.gentoo.org/844073
    Signed-off-by: Lars Wendler <polynomial-c@gentoo.org>

 .../gptfdisk/files/gptfdisk-1.0.9-libuuid.patch    | 37 ++++++++++++++++++++++
 ...fdisk-1.0.9.ebuild => gptfdisk-1.0.9-r1.ebuild} |  4 +++
 2 files changed, 41 insertions(+)