Bump buildroot to 2019.02
This commit is contained in:
@@ -0,0 +1,32 @@
|
||||
From 8da4dde42cc25294819ad078432d85437e4a12ee Mon Sep 17 00:00:00 2001
|
||||
From: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
|
||||
Date: Sun, 22 Apr 2018 15:05:46 +0200
|
||||
Subject: [PATCH] pktsetup/pktsetup.c: do not include <bits/types.h>
|
||||
|
||||
This header is not a standard header, and is for example not provided
|
||||
by the musl C library.
|
||||
|
||||
This change has been tested by building udftools against glibc, uClibc
|
||||
and musl.
|
||||
|
||||
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
|
||||
Upstream-status: https://github.com/pali/udftools/pull/16
|
||||
---
|
||||
pktsetup/pktsetup.c | 1 -
|
||||
1 file changed, 1 deletion(-)
|
||||
|
||||
diff --git a/pktsetup/pktsetup.c b/pktsetup/pktsetup.c
|
||||
index 8b3df51..81ed142 100644
|
||||
--- a/pktsetup/pktsetup.c
|
||||
+++ b/pktsetup/pktsetup.c
|
||||
@@ -27,7 +27,6 @@
|
||||
#include <sys/stat.h>
|
||||
#include <unistd.h>
|
||||
#include <getopt.h>
|
||||
-#include <bits/types.h>
|
||||
#include <sys/types.h>
|
||||
#include <string.h>
|
||||
#include <limits.h>
|
||||
--
|
||||
2.14.3
|
||||
|
||||
@@ -0,0 +1,60 @@
|
||||
From bdacf0101fea1dad2c89996b27cb4b9caee9109c Mon Sep 17 00:00:00 2001
|
||||
From: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
|
||||
Date: Sun, 22 Apr 2018 22:28:09 +0200
|
||||
Subject: [PATCH] configure.ac: detect readline via pkg-config when possible
|
||||
|
||||
pkg-config automatically handles static linking situations, where for
|
||||
example readline is linked against ncurses, and therefore -lncurses
|
||||
needs to be passed in addition to -lreadline.
|
||||
|
||||
This proposal uses pkg-config when available. If pkg-config is not
|
||||
found, or readline is not found via pkg-config, we fallback to the
|
||||
existing AC_CHECK_LIB(). This AC_CHECK_LIB() test is modified to set
|
||||
READLINE_LIBS, like PKG_CHECK_MODULES() does. The Makefile.am
|
||||
consequently uses READLINE_LIBS instead of hardcoding -lreadline.
|
||||
|
||||
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
|
||||
---
|
||||
configure.ac | 14 ++++++++++++--
|
||||
wrudf/Makefile.am | 2 +-
|
||||
2 files changed, 13 insertions(+), 3 deletions(-)
|
||||
|
||||
diff --git a/configure.ac b/configure.ac
|
||||
index 95fbba3..62b1caa 100644
|
||||
--- a/configure.ac
|
||||
+++ b/configure.ac
|
||||
@@ -9,8 +9,18 @@ AC_PROG_CC
|
||||
AC_DISABLE_SHARED
|
||||
AM_PROG_LIBTOOL
|
||||
|
||||
-dnl Checks for libraries.
|
||||
-AC_CHECK_LIB(readline, readline, [ ], AC_MSG_ERROR([cannot find -lreadline.]))
|
||||
+PKG_PROG_PKG_CONFIG
|
||||
+
|
||||
+dnl Checks for libraries, by using pkg-config when available
|
||||
+if test -n "${PKG_CONFIG}" ; then
|
||||
+ PKG_CHECK_MODULES([READLINE], [readline], [readline_found=yes], [readline_found=no])
|
||||
+fi
|
||||
+
|
||||
+if test "${readline_found}" != "yes" ; then
|
||||
+ AC_CHECK_LIB(readline, readline,
|
||||
+ [AC_SUBST([READLINE_LIBS], [-lreadline])],
|
||||
+ AC_MSG_ERROR([cannot find -lreadline.]))
|
||||
+fi
|
||||
|
||||
dnl Checks for header files.
|
||||
AC_HEADER_STDC
|
||||
diff --git a/wrudf/Makefile.am b/wrudf/Makefile.am
|
||||
index fe1c269..e3ab85b 100644
|
||||
--- a/wrudf/Makefile.am
|
||||
+++ b/wrudf/Makefile.am
|
||||
@@ -1,5 +1,5 @@
|
||||
bin_PROGRAMS = wrudf
|
||||
-wrudf_LDADD = $(top_builddir)/libudffs/libudffs.la -lreadline
|
||||
+wrudf_LDADD = $(top_builddir)/libudffs/libudffs.la $(READLINE_LIBS)
|
||||
wrudf_SOURCES = wrudf.c wrudf-cmnd.c wrudf-desc.c wrudf-cdrw.c wrudf-cdr.c ide-pc.c wrudf.h ide-pc.h ../include/ecma_167.h ../include/osta_udf.h ../include/bswap.h
|
||||
|
||||
AM_CPPFLAGS = -I$(top_srcdir)/include -D_GNU_SOURCE -DDEBUG
|
||||
--
|
||||
2.14.3
|
||||
|
||||
@@ -0,0 +1,38 @@
|
||||
From cca194f17fe2892c929acab2f1d5016ad38aa305 Mon Sep 17 00:00:00 2001
|
||||
From: Lars Wendler <polynomial-c@gentoo.org>
|
||||
Date: Tue, 2 Jan 2018 15:10:34 +0100
|
||||
Subject: [PATCH] Include <sys/sysmacros.h> to prevent build breakage with
|
||||
>=glibc-2.25
|
||||
|
||||
libtool: link: x86_64-pc-linux-gnu-gcc -march=native -mtune=native -O2
|
||||
-pipe -Wl,-O1 -Wl,--hash-style=gnu -Wl,--sort-common -Wl,--as-needed -o
|
||||
mkudffs main.o mkudffs.o defaults.o file.o options.o
|
||||
../libudffs/.libs/libudffs.a
|
||||
main.o: In function `is_whole_disk':
|
||||
main.c:(.text+0x2ce): undefined reference to `major'
|
||||
main.c:(.text+0x2dd): undefined reference to `minor'
|
||||
main.o: In function `main':
|
||||
main.c:(.text.startup+0x72f): undefined reference to `minor'
|
||||
main.c:(.text.startup+0x741): undefined reference to `major'
|
||||
collect2: error: ld returned 1 exit status
|
||||
make[1]: *** [Makefile:378: mkudffs] Error 1
|
||||
|
||||
Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
|
||||
[Retrieved from
|
||||
https://github.com/pali/udftools/commit/cca194f17fe2892c929acab2f1d5016ad38aa305]
|
||||
---
|
||||
mkudffs/main.c | 1 +
|
||||
1 file changed, 1 insertion(+)
|
||||
|
||||
diff --git a/mkudffs/main.c b/mkudffs/main.c
|
||||
index 066afac..3e306ac 100644
|
||||
--- a/mkudffs/main.c
|
||||
+++ b/mkudffs/main.c
|
||||
@@ -43,6 +43,7 @@
|
||||
#include <sys/ioctl.h>
|
||||
#include <linux/fs.h>
|
||||
#include <linux/fd.h>
|
||||
+#include <sys/sysmacros.h>
|
||||
|
||||
#include "mkudffs.h"
|
||||
#include "defaults.h"
|
||||
12
bsp/buildroot/package/udftools/Config.in
Normal file
12
bsp/buildroot/package/udftools/Config.in
Normal file
@@ -0,0 +1,12 @@
|
||||
config BR2_PACKAGE_UDFTOOLS
|
||||
bool "udftools"
|
||||
depends on BR2_USE_WCHAR
|
||||
select BR2_PACKAGE_READLINE
|
||||
help
|
||||
Tools for creating UDF filesystems
|
||||
Maintained fork of the 2004 Sourcforge package
|
||||
|
||||
https://github.com/pali/udftools
|
||||
|
||||
comment "udftools needs a toolchain w/ wchar"
|
||||
depends on !BR2_USE_WCHAR
|
||||
3
bsp/buildroot/package/udftools/udftools.hash
Normal file
3
bsp/buildroot/package/udftools/udftools.hash
Normal file
@@ -0,0 +1,3 @@
|
||||
# Locally computed
|
||||
sha256 67fe428d452901215cfad8049d250540c97114b1a20dd63277b91c2c4fae8292 udftools-2.0.tar.gz
|
||||
sha256 dcc100d4161cc0b7177545ab6e47216f84857cda3843847c792a25289852dcaa COPYING
|
||||
14
bsp/buildroot/package/udftools/udftools.mk
Normal file
14
bsp/buildroot/package/udftools/udftools.mk
Normal file
@@ -0,0 +1,14 @@
|
||||
################################################################################
|
||||
#
|
||||
# udftools
|
||||
#
|
||||
################################################################################
|
||||
|
||||
UDFTOOLS_VERSION = 2.0
|
||||
UDFTOOLS_SITE = https://github.com/pali/udftools/releases/download/$(UDFTOOLS_VERSION)
|
||||
UDFTOOLS_LICENSE = GPL-2.0+
|
||||
UDFTOOLS_LICENSE_FILES = COPYING
|
||||
UDFTOOLS_AUTORECONF = YES
|
||||
UDFTOOLS_DEPENDENCIES = readline host-pkgconf
|
||||
|
||||
$(eval $(autotools-package))
|
||||
Reference in New Issue
Block a user