Initial Commit
- initial default booting image
This commit is contained in:
@@ -0,0 +1,44 @@
|
||||
From 16343bda6ce0d41edf43f8dac368db3bbb63d271 Mon Sep 17 00:00:00 2001
|
||||
From: Rudi Heitbaum <rudi@heitbaum.com>
|
||||
Date: Wed, 20 Nov 2024 12:22:22 +0000
|
||||
Subject: [PATCH] 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),
|
||||
| ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
Upstream: https://cgit.git.savannah.gnu.org/cgit/parted.git/commit/?id=16343bda6ce0d41edf43f8dac368db3bbb63d271
|
||||
|
||||
Signed-off-by: Rudi Heitbaum <rudi@heitbaum.com>
|
||||
Signed-off-by: Brian C. Lane <bcl@redhat.com>
|
||||
Signed-off-by: Yegor Yefremov <yegorslists@googlemail.com>
|
||||
---
|
||||
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,
|
||||
--
|
||||
2.34.1
|
||||
|
||||
15
package/parted/Config.in
Normal file
15
package/parted/Config.in
Normal file
@@ -0,0 +1,15 @@
|
||||
config BR2_PACKAGE_PARTED
|
||||
bool "parted"
|
||||
depends on BR2_ENABLE_LOCALE
|
||||
depends on BR2_USE_WCHAR
|
||||
depends on BR2_TOOLCHAIN_GCC_AT_LEAST_5
|
||||
select BR2_PACKAGE_UTIL_LINUX
|
||||
select BR2_PACKAGE_UTIL_LINUX_LIBUUID
|
||||
help
|
||||
parted, the GNU partition resizing program
|
||||
|
||||
http://www.gnu.org/software/parted/
|
||||
|
||||
comment "parted needs a toolchain w/ locale, wchar, gcc >=5"
|
||||
depends on !BR2_ENABLE_LOCALE || !BR2_USE_WCHAR || \
|
||||
!BR2_TOOLCHAIN_GCC_AT_LEAST_5
|
||||
6
package/parted/Config.in.host
Normal file
6
package/parted/Config.in.host
Normal file
@@ -0,0 +1,6 @@
|
||||
config BR2_PACKAGE_HOST_PARTED
|
||||
bool "host parted"
|
||||
help
|
||||
parted, the GNU partition resizing program
|
||||
|
||||
http://www.gnu.org/software/parted/
|
||||
5
package/parted/parted.hash
Normal file
5
package/parted/parted.hash
Normal file
@@ -0,0 +1,5 @@
|
||||
# Locally calculated after checking pgp signature
|
||||
sha256 3b43dbe33cca0f9a18601ebab56b7852b128ec1a3df3a9b30ccde5e73359e612 parted-3.6.tar.xz
|
||||
|
||||
# Locally calculated
|
||||
sha256 0abbff814cd00e2b0b6d08395af2b419c1a92026c4b4adacbb65ccda45fa58cf COPYING
|
||||
40
package/parted/parted.mk
Normal file
40
package/parted/parted.mk
Normal file
@@ -0,0 +1,40 @@
|
||||
################################################################################
|
||||
#
|
||||
# parted
|
||||
#
|
||||
################################################################################
|
||||
|
||||
PARTED_VERSION = 3.6
|
||||
PARTED_SOURCE = parted-$(PARTED_VERSION).tar.xz
|
||||
PARTED_SITE = $(BR2_GNU_MIRROR)/parted
|
||||
PARTED_DEPENDENCIES = host-pkgconf util-linux
|
||||
PARTED_INSTALL_STAGING = YES
|
||||
PARTED_LICENSE = GPL-3.0+
|
||||
PARTED_LICENSE_FILES = COPYING
|
||||
PARTED_CPE_ID_VALID = YES
|
||||
|
||||
ifeq ($(BR2_PACKAGE_READLINE),y)
|
||||
PARTED_DEPENDENCIES += readline
|
||||
PARTED_CONF_OPTS += --with-readline
|
||||
else
|
||||
PARTED_CONF_OPTS += --without-readline
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_LVM2),y)
|
||||
PARTED_DEPENDENCIES += lvm2
|
||||
PARTED_CONF_OPTS += --enable-device-mapper
|
||||
else
|
||||
PARTED_CONF_OPTS += --disable-device-mapper
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_LIBICONV),y)
|
||||
PARTED_DEPENDENCIES += libiconv
|
||||
endif
|
||||
|
||||
HOST_PARTED_DEPENDENCIES = host-pkgconf host-util-linux
|
||||
HOST_PARTED_CONF_OPTS += \
|
||||
--without-readline \
|
||||
--disable-device-mapper
|
||||
|
||||
$(eval $(autotools-package))
|
||||
$(eval $(host-autotools-package))
|
||||
Reference in New Issue
Block a user