initial buildroot for linux 5.15
This commit is contained in:
@@ -0,0 +1,27 @@
|
||||
Do not add (possibly poisoned) /usr/local/include and /usr/local/lib
|
||||
to gcc and ld search paths in configure.
|
||||
|
||||
With BR2_COMPILER_PARANOID_UNSAFE_PATH enabled, poisoned paths result
|
||||
in hard errors, failing affected configure tests.
|
||||
|
||||
Signed-off-by: Alex Suykov <alex.suykov@gmail.com>
|
||||
|
||||
--- a/configure.ac
|
||||
+++ b/configure.ac
|
||||
@@ -57,16 +57,6 @@
|
||||
AC_TYPE_INT32_T
|
||||
AC_TYPE_UINT32_T
|
||||
|
||||
-dnl --------------------------------------
|
||||
-dnl Check whether to add /usr/local or not
|
||||
-dnl (this is somewhat a religious problem)
|
||||
-dnl --------------------------------------
|
||||
-dnl
|
||||
-if test "`$CPP -v < /dev/null 2>&1 | grep '/usr/local/include' 2>&1`" = ""; then
|
||||
- CPPFLAGS="$CPPFLAGS -I/usr/local/include"
|
||||
- LDFLAGS="$LDFLAGS -L/usr/local/lib"
|
||||
-fi
|
||||
-
|
||||
dnl ------------------------------------
|
||||
dnl Check for socket libs (AIX, Solaris)
|
||||
dnl ------------------------------------
|
||||
@@ -0,0 +1,29 @@
|
||||
From 96dde9dedf806256cdc6cbf5cacbd5c8d74e6288 Mon Sep 17 00:00:00 2001
|
||||
From: Jonathan Kimmitt <jrrk2@cam.ac.uk>
|
||||
Date: Thu, 9 Jan 2020 22:01:42 +0100
|
||||
Subject: [PATCH] Fix openssl detection
|
||||
|
||||
SSL_library_init is now a define, use OPENSSL_init_ssl instead.
|
||||
|
||||
Signed-off-by: Jonathan Kimmitt <jrrk2@cam.ac.uk>
|
||||
Signed-off-by: Peter Seiderer <ps.report@gmx.net>
|
||||
---
|
||||
configure.ac | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/configure.ac b/configure.ac
|
||||
index 66b5e9f..206fd53 100644
|
||||
--- a/configure.ac
|
||||
+++ b/configure.ac
|
||||
@@ -276,7 +276,7 @@ if test "x$enable_ssl" = "xyes"; then
|
||||
|
||||
if test "x$ssl_ok" = "xyes"; then
|
||||
old_libs="$LIBS"
|
||||
- AC_CHECK_LIB(ssl, SSL_library_init, ssl_ok=yes, ssl_ok=no, -lcrypto)
|
||||
+ AC_CHECK_LIB(ssl, OPENSSL_init_ssl, ssl_ok=yes, ssl_ok=no, -lcrypto)
|
||||
LIBS="$old_libs"
|
||||
fi
|
||||
|
||||
--
|
||||
2.24.1
|
||||
|
||||
@@ -0,0 +1,33 @@
|
||||
From ff44d8b2d5211a502afdb3e612dae0e8133b5124 Mon Sep 17 00:00:00 2001
|
||||
From: Johannes Hofmann <Johannes.Hofmann@gmx.de>
|
||||
Date: Thu, 9 Jan 2020 22:07:15 +0100
|
||||
Subject: [PATCH] Support OpenSSL 1.1.0
|
||||
|
||||
taken-from: pkgsrc (Ryo ONODERA)
|
||||
submitted-by: Jun Ebihara <jun@soum.co.jp>
|
||||
|
||||
Upstream: https://hg.dillo.org/dillo/rev/b171b8610400
|
||||
Signed-off-by: Peter Seiderer <ps.report@gmx.net>
|
||||
---
|
||||
dpi/https.c | 4 ++++
|
||||
1 file changed, 4 insertions(+)
|
||||
|
||||
diff --git a/dpi/https.c b/dpi/https.c
|
||||
index 766b3af..025cfc4 100644
|
||||
--- a/dpi/https.c
|
||||
+++ b/dpi/https.c
|
||||
@@ -476,7 +476,11 @@ static int handle_certificate_problem(SSL * ssl_connection)
|
||||
case X509_V_ERR_DEPTH_ZERO_SELF_SIGNED_CERT:
|
||||
/*Either self signed and untrusted*/
|
||||
/*Extract CN from certificate name information*/
|
||||
+#if OPENSSL_VERSION_NUMBER < 0x10100000L
|
||||
if ((cn = strstr(remote_cert->name, "/CN=")) == NULL) {
|
||||
+#else
|
||||
+ if ((cn = strstr(X509_get_subject_name(remote_cert), "/CN=")) == NULL) {
|
||||
+#endif
|
||||
strcpy(buf, "(no CN given)");
|
||||
} else {
|
||||
char *cn_end;
|
||||
--
|
||||
2.24.1
|
||||
|
||||
@@ -0,0 +1,124 @@
|
||||
fix build with gcc 10
|
||||
|
||||
gcc 10 is now defaulting to -fno-common resulting in the following build
|
||||
failures:
|
||||
|
||||
/nvme/rc-buildroot-test/scripts/instance-0/output-1/host/bin/arm-buildroot-linux-gnueabihf-gcc -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -Os -g2 -D_FORTIFY_SOURCE=1 -DENABLE_IPV6 -DD_DNS_THREADED -D_REENTRANT -D_THREAD_SAFE -Wall -W -Wno-unused-parameter -Waggregate-return -o dpid dpi.o dpi_socket_dir.o dpid.o dpid_common.o main.o misc_new.o ../dpip/libDpip.a ../dlib/libDlib.a
|
||||
/nvme/rc-buildroot-test/scripts/instance-0/output-1/host/lib/gcc/arm-buildroot-linux-gnueabihf/10.2.0/../../../../arm-buildroot-linux-gnueabihf/bin/ld: dpi_socket_dir.o:/nvme/rc-buildroot-test/scripts/instance-0/output-1/build/dillo-3.0.5/dpid/dpid_common.h:44: multiple definition of `dpi_errno'; dpi.o:/nvme/rc-buildroot-test/scripts/instance-0/output-1/build/dillo-3.0.5/dpid/dpid_common.h:44: first defined here
|
||||
/nvme/rc-buildroot-test/scripts/instance-0/output-1/host/lib/gcc/arm-buildroot-linux-gnueabihf/10.2.0/../../../../arm-buildroot-linux-gnueabihf/bin/ld: dpid.o:/nvme/rc-buildroot-test/scripts/instance-0/output-1/build/dillo-3.0.5/dpid/dpid_common.h:44: multiple definition of `dpi_errno'; dpi.o:/nvme/rc-buildroot-test/scripts/instance-0/output-1/build/dillo-3.0.5/dpid/dpid_common.h:44: first defined here
|
||||
/nvme/rc-buildroot-test/scripts/instance-0/output-1/host/lib/gcc/arm-buildroot-linux-gnueabihf/10.2.0/../../../../arm-buildroot-linux-gnueabihf/bin/ld: dpid_common.o:/nvme/rc-buildroot-test/scripts/instance-0/output-1/build/dillo-3.0.5/dpid/dpid_common.h:44: multiple definition of `dpi_errno'; dpi.o:/nvme/rc-buildroot-test/scripts/instance-0/output-1/build/dillo-3.0.5/dpid/dpid_common.h:44: first defined here
|
||||
/nvme/rc-buildroot-test/scripts/instance-0/output-1/host/lib/gcc/arm-buildroot-linux-gnueabihf/10.2.0/../../../../arm-buildroot-linux-gnueabihf/bin/ld: main.o:/nvme/rc-buildroot-test/scripts/instance-0/output-1/build/dillo-3.0.5/dpid/dpid.h:64: multiple definition of `sock_set'; dpid.o:/nvme/rc-buildroot-test/scripts/instance-0/output-1/build/dillo-3.0.5/dpid/dpid.h:64: first defined here
|
||||
/nvme/rc-buildroot-test/scripts/instance-0/output-1/host/lib/gcc/arm-buildroot-linux-gnueabihf/10.2.0/../../../../arm-buildroot-linux-gnueabihf/bin/ld: main.o:/nvme/rc-buildroot-test/scripts/instance-0/output-1/build/dillo-3.0.5/dpid/dpid.h:61: multiple definition of `services_list'; dpid.o:/nvme/rc-buildroot-test/scripts/instance-0/output-1/build/dillo-3.0.5/dpid/dpid.h:61: first defined here
|
||||
/nvme/rc-buildroot-test/scripts/instance-0/output-1/host/lib/gcc/arm-buildroot-linux-gnueabihf/10.2.0/../../../../arm-buildroot-linux-gnueabihf/bin/ld: main.o:/nvme/rc-buildroot-test/scripts/instance-0/output-1/build/dillo-3.0.5/dpid/dpid.h:58: multiple definition of `dpi_attr_list'; dpid.o:/nvme/rc-buildroot-test/scripts/instance-0/output-1/build/dillo-3.0.5/dpid/dpid.h:58: first defined here
|
||||
/nvme/rc-buildroot-test/scripts/instance-0/output-1/host/lib/gcc/arm-buildroot-linux-gnueabihf/10.2.0/../../../../arm-buildroot-linux-gnueabihf/bin/ld: main.o:/nvme/rc-buildroot-test/scripts/instance-0/output-1/build/dillo-3.0.5/dpid/dpid.h:55: multiple definition of `numsocks'; dpid.o:/nvme/rc-buildroot-test/scripts/instance-0/output-1/build/dillo-3.0.5/dpid/dpid.h:55: first defined here
|
||||
/nvme/rc-buildroot-test/scripts/instance-0/output-1/host/lib/gcc/arm-buildroot-linux-gnueabihf/10.2.0/../../../../arm-buildroot-linux-gnueabihf/bin/ld: main.o:/nvme/rc-buildroot-test/scripts/instance-0/output-1/build/dillo-3.0.5/dpid/dpid.h:52: multiple definition of `numdpis'; dpid.o:/nvme/rc-buildroot-test/scripts/instance-0/output-1/build/dillo-3.0.5/dpid/dpid.h:52: first defined here
|
||||
/nvme/rc-buildroot-test/scripts/instance-0/output-1/host/lib/gcc/arm-buildroot-linux-gnueabihf/10.2.0/../../../../arm-buildroot-linux-gnueabihf/bin/ld: main.o:/nvme/rc-buildroot-test/scripts/instance-0/output-1/build/dillo-3.0.5/dpid/dpid.h:31: multiple definition of `srs_fd'; dpid.o:/nvme/rc-buildroot-test/scripts/instance-0/output-1/build/dillo-3.0.5/dpid/dpid.h:31: first defined here
|
||||
/nvme/rc-buildroot-test/scripts/instance-0/output-1/host/lib/gcc/arm-buildroot-linux-gnueabihf/10.2.0/../../../../arm-buildroot-linux-gnueabihf/bin/ld: main.o:/nvme/rc-buildroot-test/scripts/instance-0/output-1/build/dillo-3.0.5/dpid/dpid.h:28: multiple definition of `srs_name'; dpid.o:/nvme/rc-buildroot-test/scripts/instance-0/output-1/build/dillo-3.0.5/dpid/dpid.h:28: first defined here
|
||||
/nvme/rc-buildroot-test/scripts/instance-0/output-1/host/lib/gcc/arm-buildroot-linux-gnueabihf/10.2.0/../../../../arm-buildroot-linux-gnueabihf/bin/ld: main.o:/nvme/rc-buildroot-test/scripts/instance-0/output-1/build/dillo-3.0.5/dpid/dpid_common.h:44: multiple definition of `dpi_errno'; dpi.o:/nvme/rc-buildroot-test/scripts/instance-0/output-1/build/dillo-3.0.5/dpid/dpid_common.h:44: first defined here
|
||||
/nvme/rc-buildroot-test/scripts/instance-0/output-1/host/lib/gcc/arm-buildroot-linux-gnueabihf/10.2.0/../../../../arm-buildroot-linux-gnueabihf/bin/ld: misc_new.o:/nvme/rc-buildroot-test/scripts/instance-0/output-1/build/dillo-3.0.5/dpid/dpid_common.h:44: multiple definition of `dpi_errno'; dpi.o:/nvme/rc-buildroot-test/scripts/instance-0/output-1/build/dillo-3.0.5/dpid/dpid_common.h:44: first defined here
|
||||
|
||||
So add missing extern for srs_fd, numdpis, numsocks, dpi_attr_list,
|
||||
services_list and sock_set
|
||||
|
||||
Also remove srs_name which is never used and give a name to dpi_errno
|
||||
enum
|
||||
|
||||
Fixes:
|
||||
- http://autobuild.buildroot.org/results/9c777af97fe50143c6a68f0170fc86c87d8ead3f
|
||||
|
||||
Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
|
||||
[Upstream status: sent to jcid@dillo.org]
|
||||
|
||||
diff -r f60d55c02567 dpid/dpid.c
|
||||
--- a/dpid/dpid.c Fri Oct 05 22:05:08 2018 +0200
|
||||
+++ b/dpid/dpid.c Thu Aug 27 18:16:50 2020 +0200
|
||||
@@ -38,6 +38,12 @@
|
||||
|
||||
#define QUEUE 5
|
||||
|
||||
+int srs_fd;
|
||||
+int numdpis;
|
||||
+int numsocks;
|
||||
+struct dp *dpi_attr_list;
|
||||
+Dlist *services_list;
|
||||
+fd_set sock_set;
|
||||
volatile sig_atomic_t caught_sigchld = 0;
|
||||
char *SharedKey = NULL;
|
||||
|
||||
diff -r f60d55c02567 dpid/dpid.h
|
||||
--- a/dpid/dpid.h Fri Oct 05 22:05:08 2018 +0200
|
||||
+++ b/dpid/dpid.h Thu Aug 27 18:16:50 2020 +0200
|
||||
@@ -25,10 +25,9 @@
|
||||
|
||||
/*! \TODO: Should read this from dillorc */
|
||||
#define SRS_NAME "dpid.srs"
|
||||
-char *srs_name;
|
||||
|
||||
/*! dpid's service request socket file descriptor */
|
||||
-int srs_fd;
|
||||
+extern int srs_fd;
|
||||
|
||||
/*! plugin state information
|
||||
*/
|
||||
@@ -49,19 +48,19 @@
|
||||
};
|
||||
|
||||
/*! Number of available plugins */
|
||||
-int numdpis;
|
||||
+extern int numdpis;
|
||||
|
||||
/*! Number of sockets being watched */
|
||||
-int numsocks;
|
||||
+extern int numsocks;
|
||||
|
||||
/*! State information for each plugin. */
|
||||
-struct dp *dpi_attr_list;
|
||||
+extern struct dp *dpi_attr_list;
|
||||
|
||||
/*! service served for each plugin */
|
||||
-Dlist *services_list;
|
||||
+extern Dlist *services_list;
|
||||
|
||||
/*! Set of sockets watched for connections */
|
||||
-fd_set sock_set;
|
||||
+extern fd_set sock_set;
|
||||
|
||||
/*! Set to 1 by the SIGCHLD handler dpi_sigchld */
|
||||
extern volatile sig_atomic_t caught_sigchld;
|
||||
diff -r f60d55c02567 dpid/dpid_common.h
|
||||
--- a/dpid/dpid_common.h Fri Oct 05 22:05:08 2018 +0200
|
||||
+++ b/dpid/dpid_common.h Thu Aug 27 18:16:50 2020 +0200
|
||||
@@ -37,10 +37,10 @@
|
||||
|
||||
|
||||
/*! Error codes for dpid */
|
||||
-enum {
|
||||
+enum dpi_errno {
|
||||
no_errors,
|
||||
dpid_srs_addrinuse /* dpid service request socket address already in use */
|
||||
-} dpi_errno;
|
||||
+};
|
||||
|
||||
/*! Intended for identifying dillo plugins
|
||||
* and related files
|
||||
diff -r f60d55c02567 dpid/main.c
|
||||
--- a/dpid/main.c Fri Oct 05 22:05:08 2018 +0200
|
||||
+++ b/dpid/main.c Thu Aug 27 18:16:50 2020 +0200
|
||||
@@ -231,7 +231,7 @@
|
||||
/* this sleep used to unmask a race condition */
|
||||
// sleep(2);
|
||||
|
||||
- dpi_errno = no_errors;
|
||||
+ enum dpi_errno error_code = no_errors;
|
||||
|
||||
/* Get list of available dpis */
|
||||
numdpis = register_all(&dpi_attr_list);
|
||||
@@ -254,7 +254,7 @@
|
||||
|
||||
/* Initialise sockets */
|
||||
if ((numsocks = init_ids_srs_socket()) == -1) {
|
||||
- switch (dpi_errno) {
|
||||
+ switch (error_code) {
|
||||
case dpid_srs_addrinuse:
|
||||
MSG_ERR("dpid refuses to start, possibly because:\n");
|
||||
MSG_ERR("\t1) An instance of dpid is already running.\n");
|
||||
@@ -0,0 +1,19 @@
|
||||
config BR2_PACKAGE_DILLO
|
||||
bool "dillo"
|
||||
depends on BR2_PACKAGE_XORG7
|
||||
depends on BR2_INSTALL_LIBSTDCPP
|
||||
depends on BR2_USE_MMU # fltk fork()
|
||||
select BR2_PACKAGE_FLTK
|
||||
select BR2_PACKAGE_LIBICONV if !BR2_ENABLE_LOCALE
|
||||
select BR2_PACKAGE_ZLIB
|
||||
help
|
||||
Dillo is a multi-platform graphical web browser known
|
||||
for its speed and small footprint.
|
||||
|
||||
Enable openssl package to gain https support.
|
||||
|
||||
http://www.dillo.org
|
||||
|
||||
comment "dillo needs a toolchain w/ C++"
|
||||
depends on BR2_PACKAGE_XORG7 && BR2_USE_MMU
|
||||
depends on !BR2_INSTALL_LIBSTDCPP
|
||||
@@ -0,0 +1,3 @@
|
||||
# Locally calculated
|
||||
sha256 db1be16c1c5842ebe07b419aa7c6ef11a45603a75df2877f99635f4f8345148b dillo-3.0.5.tar.bz2
|
||||
sha256 8ceb4b9ee5adedde47b31e975c1d90c73ad27b6b165a1dcd80c7c545eb65b903 COPYING
|
||||
@@ -0,0 +1,46 @@
|
||||
################################################################################
|
||||
#
|
||||
# dillo
|
||||
#
|
||||
################################################################################
|
||||
|
||||
DILLO_VERSION = 3.0.5
|
||||
DILLO_SOURCE = dillo-$(DILLO_VERSION).tar.bz2
|
||||
DILLO_SITE = http://www.dillo.org/download
|
||||
DILLO_LICENSE = GPL-3.0+
|
||||
DILLO_LICENSE_FILES = COPYING
|
||||
# configure.ac gets patched, so autoreconf is necessary
|
||||
DILLO_AUTORECONF = YES
|
||||
DILLO_DEPENDENCIES = fltk zlib \
|
||||
$(if $(BR2_PACKAGE_LIBICONV),libiconv)
|
||||
DILLO_CONF_ENV = ac_cv_path_FLTK_CONFIG=$(STAGING_DIR)/usr/bin/fltk-config
|
||||
|
||||
ifeq ($(BR2_PACKAGE_OPENSSL),y)
|
||||
DILLO_CONF_OPTS += --enable-ssl
|
||||
DILLO_DEPENDENCIES += openssl
|
||||
else
|
||||
DILLO_CONF_OPTS += --disable-ssl
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_LIBPNG),y)
|
||||
DILLO_CONF_OPTS += --enable-png
|
||||
DILLO_DEPENDENCIES += libpng
|
||||
DILLO_CONF_ENV += PNG_CONFIG=$(STAGING_DIR)/usr/bin/libpng-config
|
||||
else
|
||||
DILLO_CONF_OPTS += --disable-png
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_JPEG),y)
|
||||
DILLO_CONF_OPTS += --enable-jpeg
|
||||
DILLO_DEPENDENCIES += jpeg
|
||||
else
|
||||
DILLO_CONF_OPTS += --disable-jpeg
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_TOOLCHAIN_HAS_THREADS),y)
|
||||
DILLO_CONF_OPTS += --enable-threaded-dns
|
||||
else
|
||||
DILLO_CONF_OPTS += --disable-threaded-dns
|
||||
endif
|
||||
|
||||
$(eval $(autotools-package))
|
||||
Reference in New Issue
Block a user