From 9041d72b3d615f3ad4067e587fc1c076546024b8 Mon Sep 17 00:00:00 2001 From: suvari Date: Sun, 5 Apr 2026 15:44:30 +0300 Subject: [PATCH] parted: rebuild --- ...44-parted-fix-do_version-declaration.patch | 38 +++++++++++++++++++ hardware/disk/parted/pspec.xml | 12 +++++- 2 files changed, 48 insertions(+), 2 deletions(-) create mode 100644 hardware/disk/parted/files/0001-bug-74444-parted-fix-do_version-declaration.patch diff --git a/hardware/disk/parted/files/0001-bug-74444-parted-fix-do_version-declaration.patch b/hardware/disk/parted/files/0001-bug-74444-parted-fix-do_version-declaration.patch new file mode 100644 index 0000000000..2bff38917e --- /dev/null +++ b/hardware/disk/parted/files/0001-bug-74444-parted-fix-do_version-declaration.patch @@ -0,0 +1,38 @@ +From 16343bda6ce0d41edf43f8dac368db3bbb63d271 Mon Sep 17 00:00:00 2001 +From: Rudi Heitbaum +Date: Wed, 20 Nov 2024 12:22:22 +0000 +Subject: bug#74444: [PATCH] parted: fix do_version declaration + +With gcc 15-20241117 compile fails with the below error, update the +do_version declaration to match the header in command.h + +../../parted/parted.c: In function '_init_commands': +../../parted/parted.c:2469:9: error: passing argument 2 of 'command_create' from incompatible pointer type [-Wincompatible-pointer-types] + 2469 | do_version, + | ^~~~~~~~~~ + | | + | int (*)(void) +In file included from ../../parted/parted.c:28: +../../parted/command.h:35:39: note: expected 'int (*)(PedDevice **, PedDisk **)' {aka 'int (*)(struct _PedDevice **, struct _PedDisk **)'} but argument is of type 'int (*)(void)' + 35 | int (*method) (PedDevice** dev, PedDisk** diskp), + | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + +Signed-off-by: Rudi Heitbaum +Signed-off-by: Brian C. Lane +--- + parted/parted.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/parted/parted.c b/parted/parted.c +index 3abb52f..fc2aeba 100644 +--- a/parted/parted.c ++++ b/parted/parted.c +@@ -2172,7 +2172,7 @@ do_unit (PedDevice** dev, PedDisk** diskp) + } + + static int +-do_version () ++do_version (PedDevice** dev, PedDisk** diskp) + { + printf ("\n%s\n%s", + prog_name, diff --git a/hardware/disk/parted/pspec.xml b/hardware/disk/parted/pspec.xml index 5f4451f2ae..2d780bf8e6 100644 --- a/hardware/disk/parted/pspec.xml +++ b/hardware/disk/parted/pspec.xml @@ -20,7 +20,7 @@ readline-devel - + 0001-bug-74444-parted-fix-do_version-declaration.patch @@ -34,7 +34,8 @@ ncurses - /usr/lib + /usr/lib/libparted.so* + /usr/lib/libparted-fs* /usr/sbin /usr/share/doc /usr/share/info @@ -56,6 +57,13 @@ + + 2026-04-05 + 3.6 + Rebuild + Mustafa Cinasal + muscnsl@gmail.com + 2024-06-30 3.6