Bump buidlroot version to 2018.02.6
This commit is contained in:
87
bsp/buildroot/package/attr/0001-build-with-older-GCCs.patch
Normal file
87
bsp/buildroot/package/attr/0001-build-with-older-GCCs.patch
Normal file
@@ -0,0 +1,87 @@
|
||||
From 3ac428794ea0f95c854166c9c0cffb0267c5e98b Mon Sep 17 00:00:00 2001
|
||||
From: Hollis Blanchard <hollis_blanchard@mentor.com>
|
||||
Date: Mon, 30 Jul 2018 14:17:21 -0700
|
||||
Subject: [PATCH] Remove messages in "deprecated" gcc attributes
|
||||
|
||||
GCC versions up through 4.4.7 (which is used in RHEL 6) do not accept
|
||||
any argument for the deprecated attribute. GCC 4.5 and later say the
|
||||
"msg" argument is optional. We don't need the messages during
|
||||
Buildroot builds anyways.
|
||||
|
||||
Signed-off-by: Hollis Blanchard <hollis_blanchard@mentor.com>
|
||||
---
|
||||
include/attributes.h | 20 ++++++++++----------
|
||||
1 file changed, 10 insertions(+), 10 deletions(-)
|
||||
|
||||
diff --git a/include/attributes.h b/include/attributes.h
|
||||
index 14beb8f..23c39c8 100644
|
||||
--- a/include/attributes.h
|
||||
+++ b/include/attributes.h
|
||||
@@ -127,10 +127,10 @@ typedef struct attr_multiop {
|
||||
*/
|
||||
EXPORT int attr_get (const char *__path, const char *__attrname,
|
||||
char *__attrvalue, int *__valuelength, int __flags)
|
||||
- __attribute__ ((deprecated ("Use getxattr or lgetxattr instead")));
|
||||
+ __attribute__ ((deprecated));
|
||||
EXPORT int attr_getf (int __fd, const char *__attrname, char *__attrvalue,
|
||||
int *__valuelength, int __flags)
|
||||
- __attribute__ ((deprecated ("Use fgetxattr instead")));
|
||||
+ __attribute__ ((deprecated));
|
||||
|
||||
/*
|
||||
* Set the value of an attribute, creating the attribute if necessary.
|
||||
@@ -139,11 +139,11 @@ EXPORT int attr_getf (int __fd, const char *__attrname, char *__attrvalue,
|
||||
EXPORT int attr_set (const char *__path, const char *__attrname,
|
||||
const char *__attrvalue, const int __valuelength,
|
||||
int __flags)
|
||||
- __attribute__ ((deprecated ("Use setxattr or lsetxattr instead")));
|
||||
+ __attribute__ ((deprecated));
|
||||
EXPORT int attr_setf (int __fd, const char *__attrname,
|
||||
const char *__attrvalue, const int __valuelength,
|
||||
int __flags)
|
||||
- __attribute__ ((deprecated ("Use fsetxattr instead")));
|
||||
+ __attribute__ ((deprecated));
|
||||
|
||||
/*
|
||||
* Remove an attribute.
|
||||
@@ -151,9 +151,9 @@ EXPORT int attr_setf (int __fd, const char *__attrname,
|
||||
*/
|
||||
EXPORT int attr_remove (const char *__path, const char *__attrname,
|
||||
int __flags)
|
||||
- __attribute__ ((deprecated ("Use removexattr or lremovexattr instead")));
|
||||
+ __attribute__ ((deprecated));
|
||||
EXPORT int attr_removef (int __fd, const char *__attrname, int __flags)
|
||||
- __attribute__ ((deprecated ("Use fremovexattr instead")));
|
||||
+ __attribute__ ((deprecated));
|
||||
|
||||
/*
|
||||
* List the names and sizes of the values of all the attributes of an object.
|
||||
@@ -164,10 +164,10 @@ EXPORT int attr_removef (int __fd, const char *__attrname, int __flags)
|
||||
*/
|
||||
EXPORT int attr_list(const char *__path, char *__buffer, const int __buffersize,
|
||||
int __flags, attrlist_cursor_t *__cursor)
|
||||
- __attribute__ ((deprecated ("Use listxattr or llistxattr instead")));
|
||||
+ __attribute__ ((deprecated));
|
||||
EXPORT int attr_listf(int __fd, char *__buffer, const int __buffersize,
|
||||
int __flags, attrlist_cursor_t *__cursor)
|
||||
- __attribute__ ((deprecated ("Use flistxattr instead")));
|
||||
+ __attribute__ ((deprecated));
|
||||
|
||||
/*
|
||||
* Operate on multiple attributes of the same object simultaneously.
|
||||
@@ -188,10 +188,10 @@ EXPORT int attr_listf(int __fd, char *__buffer, const int __buffersize,
|
||||
*/
|
||||
EXPORT int attr_multi (const char *__path, attr_multiop_t *__oplist,
|
||||
int __count, int __flags)
|
||||
- __attribute__ ((deprecated ("Use getxattr, setxattr, listxattr, removexattr instead")));
|
||||
+ __attribute__ ((deprecated));
|
||||
EXPORT int attr_multif (int __fd, attr_multiop_t *__oplist,
|
||||
int __count, int __flags)
|
||||
- __attribute__ ((deprecated ("Use getxattr, setxattr, listxattr, removexattr instead")));
|
||||
+ __attribute__ ((deprecated));
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
--
|
||||
2.13.0
|
||||
|
||||
@@ -1,29 +0,0 @@
|
||||
Support installation of .a file when doing static linking
|
||||
|
||||
When doing static linking (i.e ENABLE_SHARED != yes), the attr build
|
||||
logic wasn't installing any library at all, not even the .a file which
|
||||
is needed for static linking. This patch fixes that.
|
||||
|
||||
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
|
||||
|
||||
Index: b/include/buildmacros
|
||||
===================================================================
|
||||
--- a/include/buildmacros
|
||||
+++ b/include/buildmacros
|
||||
@@ -97,7 +97,15 @@
|
||||
|
||||
INSTALL_LTLIB_STATIC = \
|
||||
cd $(TOPDIR)/$(LIBNAME)/.libs; \
|
||||
- ../$(INSTALL) -m 755 -d $(PKG_DEVLIB_DIR);
|
||||
+ ../$(INSTALL) -m 755 -d $(PKG_DEVLIB_DIR); \
|
||||
+ ../$(INSTALL) -m 644 -T old_lib $(LIBNAME).la $(PKG_DEVLIB_DIR); \
|
||||
+ ../$(INSTALL) -m 644 $(LIBNAME).la $(PKG_DEVLIB_DIR)/$(LIBNAME).la ; \
|
||||
+ ../$(INSTALL) -m 755 -d $(PKG_LIB_DIR); \
|
||||
+ ../$(INSTALL) -T so_base $(LIBNAME).la $(PKG_LIB_DIR); \
|
||||
+ if test "x$(PKG_DEVLIB_DIR)" != "x$(PKG_LIB_DIR)" ; then \
|
||||
+ ../$(INSTALL) -S $(PKG_DEVLIB_DIR)/$(LIBNAME).a $(PKG_LIB_DIR)/$(LIBNAME).a; \
|
||||
+ ../$(INSTALL) -S $(PKG_DEVLIB_DIR)/$(LIBNAME).la $(PKG_LIB_DIR)/$(LIBNAME).la; \
|
||||
+ fi
|
||||
|
||||
INSTALL_MAN = \
|
||||
@for d in $(MAN_PAGES); do \
|
||||
@@ -1,37 +0,0 @@
|
||||
From 667137acaffb8d0cc62b47821a67a52ba0637d5c Mon Sep 17 00:00:00 2001
|
||||
From: Mike Frysinger <vapier@gentoo.org>
|
||||
Date: Fri, 10 Jan 2014 13:56:37 +0000
|
||||
Subject: avoid glibc-specific DECLS defines
|
||||
|
||||
This matches what we do in all the other headers.
|
||||
|
||||
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
|
||||
---
|
||||
diff --git a/include/xattr.h b/include/xattr.h
|
||||
index 70a84be..070d7c5 100644
|
||||
--- a/include/xattr.h
|
||||
+++ b/include/xattr.h
|
||||
@@ -30,8 +30,9 @@
|
||||
#define XATTR_CREATE 0x1 /* set value, fail if attr already exists */
|
||||
#define XATTR_REPLACE 0x2 /* set value, fail if attr does not exist */
|
||||
|
||||
-
|
||||
-__BEGIN_DECLS
|
||||
+#ifdef __cplusplus
|
||||
+extern "C" {
|
||||
+#endif
|
||||
|
||||
extern int setxattr (const char *__path, const char *__name,
|
||||
const void *__value, size_t __size, int __flags) __THROW;
|
||||
@@ -58,6 +59,8 @@ extern int removexattr (const char *__path, const char *__name) __THROW;
|
||||
extern int lremovexattr (const char *__path, const char *__name) __THROW;
|
||||
extern int fremovexattr (int __filedes, const char *__name) __THROW;
|
||||
|
||||
-__END_DECLS
|
||||
+#ifdef __cplusplus
|
||||
+}
|
||||
+#endif
|
||||
|
||||
#endif /* __XATTR_H__ */
|
||||
--
|
||||
cgit v0.9.0.2
|
||||
@@ -1,37 +0,0 @@
|
||||
From 92247401984dd9a80d9d0c8c030692323f980678 Mon Sep 17 00:00:00 2001
|
||||
From: Emmanuel Dreyfus <manu@netbsd.org>
|
||||
Date: Mon, 30 Jun 2014 13:06:05 +0000
|
||||
Subject: Portability fixes
|
||||
|
||||
- <features.h> is Linux specific
|
||||
- Define __THROW for non glibc based systems
|
||||
|
||||
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
|
||||
---
|
||||
(limited to 'include/xattr.h')
|
||||
|
||||
diff --git a/include/xattr.h b/include/xattr.h
|
||||
index 070d7c5..fd1f268 100644
|
||||
--- a/include/xattr.h
|
||||
+++ b/include/xattr.h
|
||||
@@ -20,7 +20,18 @@
|
||||
#ifndef __XATTR_H__
|
||||
#define __XATTR_H__
|
||||
|
||||
+#if defined(linux)
|
||||
#include <features.h>
|
||||
+#endif
|
||||
+
|
||||
+/* Portability non glibc c++ build systems */
|
||||
+#ifndef __THROW
|
||||
+# if defined __cplusplus
|
||||
+# define __THROW throw ()
|
||||
+# else
|
||||
+# define __THROW
|
||||
+# endif
|
||||
+#endif
|
||||
|
||||
#include <errno.h>
|
||||
#ifndef ENOATTR
|
||||
--
|
||||
cgit v0.9.0.2
|
||||
@@ -1,2 +1,2 @@
|
||||
# Locally calculated after checking pgp signature
|
||||
sha256 25772f653ac5b2e3ceeb89df50e4688891e21f723c460636548971652af0a859 attr-2.4.47.src.tar.gz
|
||||
sha256 5ead72b358ec709ed00bbf7a9eaef1654baad937c001c044fe8b74c57f5324e7 attr-2.4.48.tar.gz
|
||||
|
||||
@@ -4,43 +4,15 @@
|
||||
#
|
||||
################################################################################
|
||||
|
||||
ATTR_VERSION = 2.4.47
|
||||
ATTR_SOURCE = attr-$(ATTR_VERSION).src.tar.gz
|
||||
ATTR_VERSION = 2.4.48
|
||||
ATTR_SITE = http://download.savannah.gnu.org/releases/attr
|
||||
ATTR_INSTALL_STAGING = YES
|
||||
ATTR_CONF_OPTS = --enable-gettext=no
|
||||
HOST_ATTR_CONF_OPTS = --enable-gettext=no
|
||||
ATTR_LICENSE = GPLv2+ (programs), LGPLv2.1+ (libraries)
|
||||
ATTR_LICENSE = GPL-2.0+ (programs), LGPL-2.1+ (libraries)
|
||||
ATTR_LICENSE_FILES = doc/COPYING doc/COPYING.LGPL
|
||||
|
||||
# While the configuration system uses autoconf, the Makefiles are
|
||||
# hand-written and do not use automake. Therefore, we have to hack
|
||||
# around their deficiencies by passing installation paths.
|
||||
ATTR_INSTALL_STAGING_OPTS = \
|
||||
prefix=$(STAGING_DIR)/usr \
|
||||
exec_prefix=$(STAGING_DIR)/usr \
|
||||
PKG_DEVLIB_DIR=$(STAGING_DIR)/usr/lib \
|
||||
install-dev install-lib
|
||||
ATTR_INSTALL_STAGING = YES
|
||||
|
||||
ATTR_INSTALL_TARGET_OPTS = \
|
||||
prefix=$(TARGET_DIR)/usr \
|
||||
exec_prefix=$(TARGET_DIR)/usr \
|
||||
install install-lib
|
||||
|
||||
HOST_ATTR_INSTALL_OPTS = \
|
||||
prefix=$(HOST_DIR)/usr \
|
||||
exec_prefix=$(HOST_DIR)/usr \
|
||||
install-dev install-lib
|
||||
|
||||
# The libdir variable in libattr.la is empty, so let's fix it. This is
|
||||
# probably due to attr not using automake, and not doing fully the
|
||||
# right thing with libtool.
|
||||
define ATTR_FIX_LIBTOOL_LA_LIBDIR
|
||||
$(SED) "s,libdir=.*,libdir='$(STAGING_DIR)'," \
|
||||
$(STAGING_DIR)/usr/lib/libattr.la
|
||||
endef
|
||||
|
||||
ATTR_POST_INSTALL_STAGING_HOOKS += ATTR_FIX_LIBTOOL_LA_LIBDIR
|
||||
ATTR_CONF_OPTS = --disable-nls
|
||||
HOST_ATTR_CONF_OPTS = --disable-nls
|
||||
|
||||
$(eval $(autotools-package))
|
||||
$(eval $(host-autotools-package))
|
||||
|
||||
Reference in New Issue
Block a user