Bump buidlroot version to 2018.02.6
This commit is contained in:
@@ -0,0 +1,79 @@
|
||||
From 141c4309d7164dcd4e09d137fc075c1726fd8dbb Mon Sep 17 00:00:00 2001
|
||||
From: Felix Janda <felix.janda@posteo.de>
|
||||
Date: Sun, 3 May 2015 10:33:15 +0200
|
||||
Subject: [PATCH] libparted/arch/linux.c: Compile without ENABLE_DEVICE_MAPPER
|
||||
|
||||
Signed-off-by: Brian C. Lane <bcl@redhat.com>
|
||||
Signed-off-by: Yegor Yefremov <yegorslists@googlemail.com>
|
||||
---
|
||||
libparted/arch/linux.c | 21 +++++++++++++++++----
|
||||
1 file changed, 17 insertions(+), 4 deletions(-)
|
||||
|
||||
diff --git a/libparted/arch/linux.c b/libparted/arch/linux.c
|
||||
index 0f18904..cf38c6f 100644
|
||||
--- a/libparted/arch/linux.c
|
||||
+++ b/libparted/arch/linux.c
|
||||
@@ -2304,6 +2304,7 @@ zasprintf (const char *format, ...)
|
||||
return r < 0 ? NULL : resultp;
|
||||
}
|
||||
|
||||
+#ifdef ENABLE_DEVICE_MAPPER
|
||||
static char *
|
||||
dm_canonical_path (PedDevice const *dev)
|
||||
{
|
||||
@@ -2326,14 +2327,21 @@ dm_canonical_path (PedDevice const *dev)
|
||||
err:
|
||||
return NULL;
|
||||
}
|
||||
+#endif
|
||||
|
||||
static char*
|
||||
_device_get_part_path (PedDevice const *dev, int num)
|
||||
{
|
||||
- char *devpath = (dev->type == PED_DEVICE_DM
|
||||
- ? dm_canonical_path (dev) : dev->path);
|
||||
- size_t path_len = strlen (devpath);
|
||||
+ char *devpath;
|
||||
+ size_t path_len;
|
||||
char *result;
|
||||
+#ifdef ENABLE_DEVICE_MAPPER
|
||||
+ devpath = (dev->type == PED_DEVICE_DM
|
||||
+ ? dm_canonical_path (dev) : dev->path);
|
||||
+#else
|
||||
+ devpath = dev->path;
|
||||
+#endif
|
||||
+ path_len = strlen (devpath);
|
||||
/* Check for devfs-style /disc => /partN transformation
|
||||
unconditionally; the system might be using udev with devfs rules,
|
||||
and if not the test is harmless. */
|
||||
@@ -2349,8 +2357,10 @@ _device_get_part_path (PedDevice const *dev, int num)
|
||||
? "p" : "");
|
||||
result = zasprintf ("%s%s%d", devpath, p, num);
|
||||
}
|
||||
+#ifdef ENABLE_DEVICE_MAPPER
|
||||
if (dev->type == PED_DEVICE_DM)
|
||||
free (devpath);
|
||||
+#endif
|
||||
return result;
|
||||
}
|
||||
|
||||
@@ -2945,12 +2955,15 @@ _disk_sync_part_table (PedDisk* disk)
|
||||
unsigned long long *length);
|
||||
|
||||
|
||||
+#ifdef ENABLE_DEVICE_MAPPER
|
||||
if (disk->dev->type == PED_DEVICE_DM) {
|
||||
add_partition = _dm_add_partition;
|
||||
remove_partition = _dm_remove_partition;
|
||||
resize_partition = _dm_resize_partition;
|
||||
get_partition_start_and_length = _dm_get_partition_start_and_length;
|
||||
- } else {
|
||||
+ } else
|
||||
+#endif
|
||||
+ {
|
||||
add_partition = _blkpg_add_partition;
|
||||
remove_partition = _blkpg_remove_partition;
|
||||
#ifdef BLKPG_RESIZE_PARTITION
|
||||
--
|
||||
2.14.2
|
||||
|
||||
@@ -1,19 +0,0 @@
|
||||
The CPPFunction typedef (among others) have been deprecated in favour of
|
||||
specific prototyped typedefs since readline 4.2.
|
||||
It's been working since because compatibility typedefs have been
|
||||
in place until they were removed in readline 6.3.
|
||||
|
||||
Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
|
||||
|
||||
diff -Nura parted-3.1.orig/parted/ui.c parted-3.1/parted/ui.c
|
||||
--- parted-3.1.orig/parted/ui.c 2014-03-01 16:11:41.970827134 -0300
|
||||
+++ parted-3.1/parted/ui.c 2014-03-01 16:11:55.540259786 -0300
|
||||
@@ -1474,7 +1474,7 @@
|
||||
#ifdef HAVE_LIBREADLINE
|
||||
if (!opt_script_mode) {
|
||||
rl_initialize ();
|
||||
- rl_attempted_completion_function = (CPPFunction*) complete_function;
|
||||
+ rl_attempted_completion_function = (rl_completion_func_t *) complete_function;
|
||||
readline_state.in_readline = 0;
|
||||
}
|
||||
#endif
|
||||
@@ -1,4 +1,4 @@
|
||||
From b3958317c5ee2940e7024bec2e7f288b5a6a26c3 Mon Sep 17 00:00:00 2001
|
||||
From 7697d9c54e489b32b82c01f17db04f8b51857e51 Mon Sep 17 00:00:00 2001
|
||||
From: Gustavo Zacarias <gustavo@zacarias.com.ar>
|
||||
Date: Mon, 30 Jun 2014 10:09:04 -0300
|
||||
Subject: [PATCH] configure.ac: uclinux is also linux
|
||||
@@ -29,5 +29,5 @@ index 436d0e2..50ad478 100644
|
||||
AC_SUBST([OS])
|
||||
|
||||
--
|
||||
1.8.5.5
|
||||
2.14.2
|
||||
|
||||
|
||||
@@ -0,0 +1,29 @@
|
||||
From 2078c07d38ee7841b89ac8d81afc5e8bfcd4f703 Mon Sep 17 00:00:00 2001
|
||||
From: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
|
||||
Date: Sun, 8 Oct 2017 00:58:58 +0200
|
||||
Subject: [PATCH] Include <fcntl.h> to get loff_t definition
|
||||
|
||||
Patch borrowed from Alpine Linux at
|
||||
http://git.alpinelinux.org/cgit/aports/plain/main/parted/fix-includes.patch. Solves
|
||||
build with musl.
|
||||
|
||||
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
|
||||
---
|
||||
libparted/fs/xfs/platform_defs.h | 1 +
|
||||
1 file changed, 1 insertion(+)
|
||||
|
||||
diff --git a/libparted/fs/xfs/platform_defs.h b/libparted/fs/xfs/platform_defs.h
|
||||
index 2b55752..17023dc 100644
|
||||
--- a/libparted/fs/xfs/platform_defs.h
|
||||
+++ b/libparted/fs/xfs/platform_defs.h
|
||||
@@ -35,6 +35,7 @@
|
||||
#define __XFS_PLATFORM_DEFS_H__
|
||||
|
||||
#include <stdio.h>
|
||||
+#include <fcntl.h>
|
||||
#include <stdarg.h>
|
||||
#include <assert.h>
|
||||
#include <endian.h>
|
||||
--
|
||||
2.14.2
|
||||
|
||||
@@ -1,48 +0,0 @@
|
||||
configure: use pkg-config to find libuuid
|
||||
|
||||
In some conditions, libuuid may be linked with -lintl. This can be the
|
||||
case on uClibc when locales are enabled.
|
||||
|
||||
When doing a shared link, this dependency is automatically pulled in via
|
||||
a DT_NEEDED ELF tag
|
||||
|
||||
For a static link, there is no such mechanism to pull in dependent
|
||||
libraries.
|
||||
|
||||
Currently, the check for libuuid is done with AC_CHECK_LIB, but this
|
||||
does not handle dependencies, and thus a stattic build fails.
|
||||
|
||||
Use pkg-config to find libuuid, that automatically pulls in the
|
||||
dependencies of libuuid, if any.
|
||||
|
||||
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
|
||||
|
||||
---
|
||||
Note: of course, that relies on the fact that libuuid installs a proper
|
||||
.pc file; a patch will be submitted upstream shortly.
|
||||
|
||||
But even considering the current situation, where libuuid does not
|
||||
provide a proper .pc file (yet), this patch does not change the
|
||||
behaviour we've had so far; it is a bet on the future! ;-)
|
||||
|
||||
diff -durN parted-3.1.orig/configure.ac parted-3.1/configure.ac
|
||||
--- parted-3.1.orig/configure.ac 2014-11-29 16:27:49.520560137 +0100
|
||||
+++ parted-3.1/configure.ac 2014-11-29 16:32:50.799702049 +0100
|
||||
@@ -313,16 +313,7 @@
|
||||
AC_SUBST([DL_LIBS])
|
||||
|
||||
dnl Check for libuuid
|
||||
-UUID_LIBS=""
|
||||
-AC_CHECK_LIB([uuid], [uuid_generate], [UUID_LIBS="-luuid"],
|
||||
- [AC_MSG_ERROR(dnl
|
||||
-[GNU Parted requires libuuid - a part of the util-linux-ng package (but
|
||||
-usually distributed separately in libuuid-devel, uuid-dev or similar)
|
||||
-This can probably be found on your distribution's CD or FTP site or at:
|
||||
- http://userweb.kernel.org/~kzak/util-linux-ng/
|
||||
-Note: originally, libuuid was part of the e2fsprogs package. Later, it
|
||||
-moved to util-linux-ng-2.16, and that package is now the preferred source.])])
|
||||
-AC_SUBST([UUID_LIBS])
|
||||
+PKG_CHECK_MODULES([UUID],[uuid])
|
||||
|
||||
dnl Check for libdevmapper
|
||||
DM_LIBS=
|
||||
@@ -1,18 +0,0 @@
|
||||
Include <fcntl.h> to get loff_t definition
|
||||
|
||||
Patch borrowed from Alpine Linux at
|
||||
http://git.alpinelinux.org/cgit/aports/plain/main/parted/fix-includes.patch. Solves
|
||||
build with musl.
|
||||
|
||||
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
|
||||
|
||||
--- parted-3.1.orig/libparted/fs/xfs/platform_defs.h
|
||||
+++ parted-3.1/libparted/fs/xfs/platform_defs.h
|
||||
@@ -35,6 +35,7 @@
|
||||
#define __XFS_PLATFORM_DEFS_H__
|
||||
|
||||
#include <stdio.h>
|
||||
+#include <fcntl.h>
|
||||
#include <stdarg.h>
|
||||
#include <assert.h>
|
||||
#include <endian.h>
|
||||
@@ -0,0 +1,54 @@
|
||||
From dd17f55b2ac189ccd3b8025e4f6509537d00f9d3 Mon Sep 17 00:00:00 2001
|
||||
From: "Arnout Vandecappelle (Essensium/Mind)" <arnout@mind.be>
|
||||
Date: Sun, 8 Oct 2017 00:53:31 +0200
|
||||
Subject: [PATCH] libparted/labels: link with libiconv if needed
|
||||
|
||||
gpt.c uses iconv so it should link with it. Otherwise, on platforms
|
||||
where libiconv is a separate library, we get a link failure of parted:
|
||||
|
||||
CCLD parted
|
||||
../libparted/.libs/libparted.so: undefined reference to `libiconv'
|
||||
../libparted/.libs/libparted.so: undefined reference to `libiconv_open'
|
||||
../libparted/.libs/libparted.so: undefined reference to `libiconv_close'
|
||||
|
||||
Since iconv functionality is needed unconditionally (not only when
|
||||
gettext is enabled), AM_ICONV needs to be added to configure.ac.
|
||||
|
||||
Upstream status: sent to mailing list
|
||||
http://lists.alioth.debian.org/pipermail/parted-devel/2017-November/005131.html
|
||||
|
||||
Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
|
||||
---
|
||||
configure.ac | 2 ++
|
||||
libparted/labels/Makefile.am | 2 +-
|
||||
2 files changed, 3 insertions(+), 1 deletion(-)
|
||||
|
||||
diff --git a/configure.ac b/configure.ac
|
||||
index 50ad478..62f1b4d 100644
|
||||
--- a/configure.ac
|
||||
+++ b/configure.ac
|
||||
@@ -288,6 +288,8 @@ fi
|
||||
AC_PROG_LIBTOOL
|
||||
LT_INIT
|
||||
|
||||
+AM_ICONV
|
||||
+
|
||||
AM_GNU_GETTEXT_VERSION([0.18])
|
||||
AM_GNU_GETTEXT([external])
|
||||
if test "$USE_INCLUDED_LIBINTL" = "yes"; then
|
||||
diff --git a/libparted/labels/Makefile.am b/libparted/labels/Makefile.am
|
||||
index c996f81..b204379 100644
|
||||
--- a/libparted/labels/Makefile.am
|
||||
+++ b/libparted/labels/Makefile.am
|
||||
@@ -35,7 +35,7 @@ liblabels_la_SOURCES = \
|
||||
rdb.c \
|
||||
sun.c
|
||||
|
||||
-liblabels_la_LIBADD = $(OS_LIBS) $(INTLLIBS)
|
||||
+liblabels_la_LIBADD = $(OS_LIBS) $(INTLLIBS) $(LIBICONV)
|
||||
|
||||
AM_CPPFLAGS = $(partedincludedir) $(INTLINCS)
|
||||
|
||||
--
|
||||
2.14.2
|
||||
|
||||
@@ -0,0 +1,27 @@
|
||||
From ba5e0451b51c983e40afd123b6e0d3eddb55e610 Mon Sep 17 00:00:00 2001
|
||||
From: "Richard W.M. Jones" <rjones@redhat.com>
|
||||
Date: Sat, 24 Mar 2018 17:37:02 +0000
|
||||
Subject: [PATCH] linux: Include <sys/sysmacros.h> for major() macro.
|
||||
|
||||
Since glibc 2.27 this header is required.
|
||||
|
||||
Signed-off-by: Giulio Benetti <giulio.benetti@micronovasrl.com>
|
||||
---
|
||||
libparted/arch/linux.c | 1 +
|
||||
1 file changed, 1 insertion(+)
|
||||
|
||||
diff --git a/libparted/arch/linux.c b/libparted/arch/linux.c
|
||||
index 31b98ab..7e86b51 100644
|
||||
--- a/libparted/arch/linux.c
|
||||
+++ b/libparted/arch/linux.c
|
||||
@@ -41,6 +41,7 @@
|
||||
#include <sys/utsname.h> /* for uname() */
|
||||
#include <scsi/scsi.h>
|
||||
#include <assert.h>
|
||||
+#include <sys/sysmacros.h>
|
||||
#ifdef ENABLE_DEVICE_MAPPER
|
||||
#include <libdevmapper.h>
|
||||
#endif
|
||||
--
|
||||
2.17.1
|
||||
|
||||
@@ -1,2 +1,2 @@
|
||||
# Locally calculated after checking pgp signature
|
||||
sha256 5e9cc1f91eaf016e5033d85b9b893fd6d3ffaca532a48de1082df9b94225ca15 parted-3.1.tar.xz
|
||||
sha256 858b589c22297cacdf437f3baff6f04b333087521ab274f7ab677cb8c6bb78e4 parted-3.2.tar.xz
|
||||
|
||||
@@ -4,15 +4,16 @@
|
||||
#
|
||||
################################################################################
|
||||
|
||||
PARTED_VERSION = 3.1
|
||||
PARTED_VERSION = 3.2
|
||||
PARTED_SOURCE = parted-$(PARTED_VERSION).tar.xz
|
||||
PARTED_SITE = $(BR2_GNU_MIRROR)/parted
|
||||
PARTED_DEPENDENCIES = host-pkgconf util-linux
|
||||
PARTED_INSTALL_STAGING = YES
|
||||
# For uclinux patch
|
||||
# 0002-configure.ac-uclinux-is-also-linux.patch
|
||||
# 0004-libparted-labels-link-with-libiconv-if-needed.patch
|
||||
PARTED_AUTORECONF = YES
|
||||
PARTED_GETTEXTIZE = YES
|
||||
PARTED_LICENSE = GPLv3+
|
||||
PARTED_LICENSE = GPL-3.0+
|
||||
PARTED_LICENSE_FILES = COPYING
|
||||
|
||||
ifeq ($(BR2_PACKAGE_READLINE),y)
|
||||
@@ -29,6 +30,10 @@ else
|
||||
PARTED_CONF_OPTS += --disable-device-mapper
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_LIBICONV),y)
|
||||
PARTED_DEPENDENCIES += libiconv
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_STATIC_LIBS),y)
|
||||
PARTED_CONF_OPTS += --disable-dynamic-loading
|
||||
endif
|
||||
@@ -36,7 +41,7 @@ endif
|
||||
HOST_PARTED_DEPENDENCIES = host-pkgconf host-util-linux
|
||||
HOST_PARTED_CONF_OPTS += \
|
||||
--without-readline \
|
||||
--disable-device-mapper \
|
||||
--disable-device-mapper
|
||||
|
||||
$(eval $(autotools-package))
|
||||
$(eval $(host-autotools-package))
|
||||
|
||||
Reference in New Issue
Block a user