Initial Commit
- initial default booting image
This commit is contained in:
39
package/apr/0001-sys-param-h.patch
Normal file
39
package/apr/0001-sys-param-h.patch
Normal file
@@ -0,0 +1,39 @@
|
||||
Fix PATH_MAX detection by including sys/param.h if available
|
||||
|
||||
Patch sent upstream:
|
||||
https://bz.apache.org/bugzilla/show_bug.cgi?id=63782
|
||||
|
||||
Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
|
||||
|
||||
diff -uNr apr-1.7.0.orig/configure.in apr-1.7.0/configure.in
|
||||
--- apr-1.7.0.orig/configure.in 2019-04-01 19:40:46.000000000 +0200
|
||||
+++ apr-1.7.0/configure.in 2019-09-29 17:03:41.803326791 +0200
|
||||
@@ -1586,6 +1586,7 @@
|
||||
AC_SUBST(stringh)
|
||||
AC_SUBST(stringsh)
|
||||
AC_SUBST(sys_ioctlh)
|
||||
+AC_SUBST(sys_paramh)
|
||||
AC_SUBST(sys_sendfileh)
|
||||
AC_SUBST(sys_signalh)
|
||||
AC_SUBST(sys_socketh)
|
||||
diff -uNr apr-1.7.0.orig/include/apr.h.in apr-1.7.0/include/apr.h.in
|
||||
--- apr-1.7.0.orig/include/apr.h.in 2019-03-22 14:30:31.000000000 +0100
|
||||
+++ apr-1.7.0/include/apr.h.in 2019-09-29 17:04:54.203815469 +0200
|
||||
@@ -95,6 +95,7 @@
|
||||
#define APR_HAVE_STRINGS_H @stringsh@
|
||||
#define APR_HAVE_INTTYPES_H @inttypesh@
|
||||
#define APR_HAVE_SYS_IOCTL_H @sys_ioctlh@
|
||||
+#define APR_HAVE_SYS_PARAM_H @sys_paramh@
|
||||
#define APR_HAVE_SYS_SENDFILE_H @sys_sendfileh@
|
||||
#define APR_HAVE_SYS_SIGNAL_H @sys_signalh@
|
||||
#define APR_HAVE_SYS_SOCKET_H @sys_socketh@
|
||||
@@ -206,6 +207,9 @@
|
||||
#include <sys/syslimits.h>
|
||||
#endif
|
||||
#endif
|
||||
+#if APR_HAVE_SYS_PARAM_H
|
||||
+#include <sys/param.h>
|
||||
+#endif
|
||||
|
||||
/* __APPLE__ is now the official pre-defined macro for macOS */
|
||||
#ifdef __APPLE__
|
||||
@@ -0,0 +1,30 @@
|
||||
From 0aa7e33372b479a26e5f04dfc4801e24573a8737 Mon Sep 17 00:00:00 2001
|
||||
From: Graham Leggett <minfrin@apache.org>
|
||||
Date: Wed, 1 Jan 2020 10:43:39 +0000
|
||||
Subject: [PATCH] Revert: Backport r1872164. Fix the name of libtool when
|
||||
cross compiling.
|
||||
|
||||
git-svn-id: https://svn.apache.org/repos/asf/apr/apr/branches/1.7.x@1872165 13f79535-47bb-0310-9956-ffa450edef68
|
||||
|
||||
[Revert upstream commit https://github.com/apache/apr/commit/f82374627b3a6500a7a6cb11e48bcac59bcbb6a1]
|
||||
Signed-off-by: Peter Seiderer <ps.report@gmx.net>
|
||||
---
|
||||
apr-config.in | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/apr-config.in b/apr-config.in
|
||||
index bed47ca..4873fc0 100644
|
||||
--- a/apr-config.in
|
||||
+++ b/apr-config.in
|
||||
@@ -246,7 +246,7 @@ while test $# -gt 0; do
|
||||
if test "$location" = "installed"; then
|
||||
echo "${installbuilddir}/libtool"
|
||||
elif test "$location" = "crosscompile"; then
|
||||
- echo "$APR_TARGET_DIR/${installbuilddir}/libtool"
|
||||
+ echo "$APR_TARGET_DIR/${installbuilddir}/build"
|
||||
else
|
||||
echo "$APR_BUILD_DIR/libtool"
|
||||
fi
|
||||
--
|
||||
2.39.2
|
||||
|
||||
@@ -0,0 +1,114 @@
|
||||
From a8fd928dfab693278205e73286e3a6b622624aeb Mon Sep 17 00:00:00 2001
|
||||
From: Graham Leggett <minfrin@apache.org>
|
||||
Date: Tue, 31 Dec 2019 21:26:02 +0000
|
||||
Subject: [PATCH] Revert: Add the ability to cross compile APR.
|
||||
|
||||
git-svn-id: https://svn.apache.org/repos/asf/apr/apr/branches/1.7.x@1872147 13f79535-47bb-0310-9956-ffa450edef68
|
||||
|
||||
[Revert upstream commit https://github.com/apache/apr/commit/b6dbbc77da35a7b46754c99f465827f2a583e23c]
|
||||
Signed-off-by: Peter Seiderer <ps.report@gmx.net>
|
||||
[Dario: adapt to 1.7.5]
|
||||
Signed-off-by: Dario Binacchi <dario.binacchi@amarulasolutions.com>
|
||||
---
|
||||
CHANGES | 2 --
|
||||
apr-config.in | 22 ----------------------
|
||||
2 files changed, 24 deletions(-)
|
||||
|
||||
diff --git a/CHANGES b/CHANGES
|
||||
index 793b0b6a46a4..4705b8476ff3 100644
|
||||
--- a/CHANGES
|
||||
+++ b/CHANGES
|
||||
@@ -119,8 +119,6 @@ Changes for APR 1.7.5
|
||||
*) Don't try to use PROC_PTHREAD by default when cross compiling.
|
||||
[Yann Ylavic]
|
||||
|
||||
- *) Add the ability to cross compile APR. [Graham Leggett]
|
||||
-
|
||||
*) While cross-compiling, the tools/gen_test_char could not
|
||||
be executed at build time, use AX_PROG_CC_FOR_BUILD to
|
||||
build native tools/gen_test_char
|
||||
diff --git a/apr-config.in b/apr-config.in
|
||||
index 1203d9a0d38e..bcd4a0c10399 100644
|
||||
--- a/apr-config.in
|
||||
+++ b/apr-config.in
|
||||
@@ -61,14 +61,6 @@ if test "$cross_compiling" != "no"; then
|
||||
# Remove trailing '/'
|
||||
normalized_bindir=${normalized_bindir%/}
|
||||
|
||||
- # absolute path, but not installed path - we're cross compiling
|
||||
- case "$normalized_command" in
|
||||
- "${normalized_bindir}/"*) ;;
|
||||
- "/"*) location=crosscompile;
|
||||
- APR_TARGET_DIR=${normalized_command%${normalized_bindir}/apr-${APR_MAJOR_VERSION}-config};
|
||||
- ;;
|
||||
- *) ;;
|
||||
- esac
|
||||
fi
|
||||
|
||||
show_usage()
|
||||
@@ -116,8 +108,6 @@ fi
|
||||
|
||||
if test "$location" = "installed"; then
|
||||
LA_FILE="$libdir/lib${APR_LIBNAME}.la"
|
||||
-elif test "$location" = "crosscompile"; then
|
||||
- LA_FILE="$APR_TARGET_DIR/$libdir/lib${APR_LIBNAME}.la"
|
||||
else
|
||||
LA_FILE="$APR_BUILD_DIR/lib${APR_LIBNAME}.la"
|
||||
fi
|
||||
@@ -147,8 +137,6 @@ while test $# -gt 0; do
|
||||
--includedir)
|
||||
if test "$location" = "installed"; then
|
||||
flags="$includedir"
|
||||
- elif test "$location" = "crosscompile"; then
|
||||
- flags="$APR_TARGET_DIR/$includedir"
|
||||
elif test "$location" = "source"; then
|
||||
flags="$APR_SOURCE_DIR/include"
|
||||
else
|
||||
@@ -181,8 +169,6 @@ while test $# -gt 0; do
|
||||
--includes)
|
||||
if test "$location" = "installed"; then
|
||||
flags="$flags -I$includedir $EXTRA_INCLUDES"
|
||||
- elif test "$location" = "crosscompile"; then
|
||||
- flags="$flags -I$APR_TARGET_DIR/$includedir $EXTRA_INCLUDES"
|
||||
elif test "$location" = "source"; then
|
||||
flags="$flags -I$APR_SOURCE_DIR/include $EXTRA_INCLUDES"
|
||||
else
|
||||
@@ -197,8 +183,6 @@ while test $# -gt 0; do
|
||||
--installbuilddir)
|
||||
if test "$location" = "installed"; then
|
||||
echo "${installbuilddir}"
|
||||
- elif test "$location" = "crosscompile"; then
|
||||
- echo "$APR_TARGET_DIR/${installbuilddir}"
|
||||
elif test "$location" = "source"; then
|
||||
echo "$APR_SOURCE_DIR/build"
|
||||
else
|
||||
@@ -215,8 +199,6 @@ while test $# -gt 0; do
|
||||
if test "$location" = "installed"; then
|
||||
### avoid using -L if libdir is a "standard" location like /usr/lib
|
||||
flags="$flags -L$libdir -l${APR_LIBNAME}"
|
||||
- elif test "$location" = "crosscompile"; then
|
||||
- flags="$flags -L$APR_TARGET_DIR/$libdir -l${APR_LIBNAME}"
|
||||
else
|
||||
### this surely can't work since the library is in .libs?
|
||||
flags="$flags -L$APR_BUILD_DIR -l${APR_LIBNAME}"
|
||||
@@ -234,8 +216,6 @@ while test $# -gt 0; do
|
||||
# Since the user is specifying they are linking with libtool, we
|
||||
# *know* that -R will be recognized by libtool.
|
||||
flags="$flags -L$libdir -R$libdir -l${APR_LIBNAME}"
|
||||
- elif test "$location" = "crosscompile"; then
|
||||
- flags="$flags -L${APR_TARGET_DIR}/$libdir -l${APR_LIBNAME}"
|
||||
else
|
||||
flags="$flags $LA_FILE"
|
||||
fi
|
||||
@@ -260,8 +240,6 @@ while test $# -gt 0; do
|
||||
--apr-libtool)
|
||||
if test "$location" = "installed"; then
|
||||
echo "${installbuilddir}/libtool"
|
||||
- elif test "$location" = "crosscompile"; then
|
||||
- echo "$APR_TARGET_DIR/${installbuilddir}/build"
|
||||
else
|
||||
echo "$APR_BUILD_DIR/libtool"
|
||||
fi
|
||||
--
|
||||
2.43.0
|
||||
|
||||
17
package/apr/Config.in
Normal file
17
package/apr/Config.in
Normal file
@@ -0,0 +1,17 @@
|
||||
config BR2_PACKAGE_APR
|
||||
bool "apr"
|
||||
# apr really needs shared library support
|
||||
depends on !BR2_STATIC_LIBS
|
||||
depends on BR2_USE_MMU # fork() in apr_proc_fork()
|
||||
select BR2_PACKAGE_LIBXCRYPT if BR2_TOOLCHAIN_USES_GLIBC
|
||||
help
|
||||
The mission of the Apache Portable Runtime (APR) project is to
|
||||
create and maintain software libraries that provide a
|
||||
predictable and consistent interface to underlying
|
||||
platform-specific implementations
|
||||
|
||||
https://apr.apache.org
|
||||
|
||||
comment "apr needs a toolchain w/ dynamic library"
|
||||
depends on BR2_USE_MMU
|
||||
depends on BR2_STATIC_LIBS
|
||||
4
package/apr/apr.hash
Normal file
4
package/apr/apr.hash
Normal file
@@ -0,0 +1,4 @@
|
||||
# From https://archive.apache.org/dist/apr/apr-1.7.6.tar.bz2.sha256
|
||||
sha256 49030d92d2575da735791b496dc322f3ce5cff9494779ba8cc28c7f46c5deb32 apr-1.7.6.tar.bz2
|
||||
# Locally calculated
|
||||
sha256 f854aeef66ecd55a126226e82b3f26793fc3b1c584647f6a0edc5639974c38ad LICENSE
|
||||
100
package/apr/apr.mk
Normal file
100
package/apr/apr.mk
Normal file
@@ -0,0 +1,100 @@
|
||||
################################################################################
|
||||
#
|
||||
# apr
|
||||
#
|
||||
################################################################################
|
||||
|
||||
APR_VERSION = 1.7.6
|
||||
APR_SOURCE = apr-$(APR_VERSION).tar.bz2
|
||||
APR_SITE = https://archive.apache.org/dist/apr
|
||||
APR_LICENSE = Apache-2.0
|
||||
APR_LICENSE_FILES = LICENSE
|
||||
APR_CPE_ID_VENDOR = apache
|
||||
APR_CPE_ID_PRODUCT = portable_runtime
|
||||
APR_INSTALL_STAGING = YES
|
||||
# We have a patch touching configure.in and Makefile.in,
|
||||
# so we need to autoreconf:
|
||||
APR_AUTORECONF = YES
|
||||
|
||||
APR_CONF_OPTS = --disable-sctp
|
||||
|
||||
# avoid apr_hints.m4 by setting apr_preload_done=yes and set
|
||||
# the needed CFLAGS on our own (avoids '-D_REENTRANT' in case
|
||||
# not supported by toolchain and subsequent configure failure)
|
||||
APR_CFLAGS = $(TARGET_CFLAGS) -DLINUX -D_GNU_SOURCE
|
||||
ifeq ($(BR2_TOOLCHAIN_HAS_THREADS),y)
|
||||
APR_CFLAGS += -D_REENTRANT
|
||||
endif
|
||||
|
||||
APR_CONF_ENV = \
|
||||
CC_FOR_BUILD="$(HOSTCC)" \
|
||||
CFLAGS_FOR_BUILD="$(HOST_CFLAGS)" \
|
||||
CFLAGS="$(APR_CFLAGS)" \
|
||||
ac_cv_file__dev_zero=yes \
|
||||
ac_cv_mmap__dev_zero=yes \
|
||||
ac_cv_func_setpgrp_void=yes \
|
||||
apr_cv_process_shared_works=yes \
|
||||
apr_cv_mutex_robust_shared=no \
|
||||
apr_cv_tcp_nodelay_with_cork=yes \
|
||||
ac_cv_sizeof_struct_iovec=8 \
|
||||
ac_cv_sizeof_pid_t=4 \
|
||||
ac_cv_struct_rlimit=yes \
|
||||
ac_cv_strerror_r_rc_int=$(if $(BR2_TOOLCHAIN_USES_MUSL),yes,no) \
|
||||
ac_cv_o_nonblock_inherited=no \
|
||||
apr_cv_mutex_recursive=yes \
|
||||
apr_cv_epoll=yes \
|
||||
apr_cv_epoll_create1=yes \
|
||||
apr_cv_dup3=yes \
|
||||
apr_cv_sock_cloexec=yes \
|
||||
apr_cv_accept4=yes \
|
||||
apr_preload_done=yes
|
||||
APR_CONFIG_SCRIPTS = apr-1-config
|
||||
|
||||
ifeq ($(BR2_HOST_GCC_AT_LEAST_14),)
|
||||
APR_CONF_ENV += ac_cv_prog_cc_c23=no
|
||||
endif
|
||||
|
||||
# Doesn't even try to guess when cross compiling
|
||||
ifeq ($(BR2_TOOLCHAIN_HAS_THREADS),y)
|
||||
APR_CONF_ENV += apr_cv_pthreads_lib="-lpthread"
|
||||
endif
|
||||
|
||||
# Fix lfs detection when cross compiling
|
||||
APR_CONF_ENV += apr_cv_use_lfs64=yes
|
||||
|
||||
# Use non-portable atomics when available. We have to override
|
||||
# ap_cv_atomic_builtins because the test used to check for atomic
|
||||
# builtins uses AC_TRY_RUN, which doesn't work when cross-compiling.
|
||||
ifeq ($(BR2_TOOLCHAIN_HAS_SYNC_8),y)
|
||||
APR_CONF_OPTS += --enable-nonportable-atomics
|
||||
APR_CONF_ENV += ap_cv_atomic_builtins=yes
|
||||
else
|
||||
APR_CONF_OPTS += --disable-nonportable-atomics
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_LIBXCRYPT),y)
|
||||
APR_DEPENDENCIES += libxcrypt
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_UTIL_LINUX_LIBUUID),y)
|
||||
APR_DEPENDENCIES += util-linux
|
||||
endif
|
||||
|
||||
define APR_CLEANUP_UNNEEDED_FILES
|
||||
$(RM) -rf $(TARGET_DIR)/usr/build-1/
|
||||
endef
|
||||
|
||||
APR_POST_INSTALL_TARGET_HOOKS += APR_CLEANUP_UNNEEDED_FILES
|
||||
|
||||
define APR_FIXUP_RULES_MK
|
||||
$(SED) 's%apr_builddir=%apr_builddir=$(STAGING_DIR)%' \
|
||||
$(STAGING_DIR)/usr/build-1/apr_rules.mk
|
||||
$(SED) 's%apr_builders=%apr_builders=$(STAGING_DIR)%' \
|
||||
$(STAGING_DIR)/usr/build-1/apr_rules.mk
|
||||
$(SED) 's%top_builddir=%top_builddir=$(STAGING_DIR)%' \
|
||||
$(STAGING_DIR)/usr/build-1/apr_rules.mk
|
||||
endef
|
||||
|
||||
APR_POST_INSTALL_STAGING_HOOKS += APR_FIXUP_RULES_MK
|
||||
|
||||
$(eval $(autotools-package))
|
||||
Reference in New Issue
Block a user