Initial Commit
- initial default booting image
This commit is contained in:
22
package/libedit/0001-check-bsd-functions-in-libbsd.patch
Normal file
22
package/libedit/0001-check-bsd-functions-in-libbsd.patch
Normal file
@@ -0,0 +1,22 @@
|
||||
configure: on Linux, the BSD functions require linking against libbsd
|
||||
|
||||
Signed-off-by: "Fabrice Fontaine" <fontaine.fabrice@gmail.com>
|
||||
(Rebased against 20210910-3.1)
|
||||
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
|
||||
(Rebased against 20150325-3.1 & 20221030-3.1)
|
||||
Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
|
||||
|
||||
diff -durN libedit-20130712-3.1.orig/configure.ac libedit-20130712-3.1/configure.ac
|
||||
--- libedit-20130712-3.1.orig/configure.ac 2013-07-12 20:39:22.000000000 +0200
|
||||
+++ libedit-20130712-3.1/configure.ac 2013-07-28 23:35:35.012676469 +0200
|
||||
@@ -119,6 +119,10 @@
|
||||
#AC_FUNC_MALLOC
|
||||
#AC_FUNC_REALLOC
|
||||
AC_FUNC_STAT
|
||||
+
|
||||
+# Search for libbsd for *vis functions
|
||||
+AC_CHECK_LIB([bsd], [vis])
|
||||
+
|
||||
AC_CHECK_FUNCS([endpwent isascii memchr memset re_comp regcomp strcasecmp strchr strcspn strdup strerror strrchr strstr strtol issetugid wcsdup strlcpy strlcat vis strvis strunvis __secure_getenv secure_getenv reallocarr])
|
||||
|
||||
# strlcpy
|
||||
15
package/libedit/0002-add-sys-types_h.patch
Normal file
15
package/libedit/0002-add-sys-types_h.patch
Normal file
@@ -0,0 +1,15 @@
|
||||
Signed-off-by: Waldemar Brodkorb <wbx@openadk.org>
|
||||
Upstream: N/A only reachable via mail
|
||||
|
||||
diff -Nur libedit-20221030-3.1.orig/src/sys.h libedit-20221030-3.1/src/sys.h
|
||||
--- libedit-20221030-3.1.orig/src/sys.h 2022-10-30 06:35:40.000000000 +0100
|
||||
+++ libedit-20221030-3.1/src/sys.h 2023-08-12 09:52:28.137223311 +0200
|
||||
@@ -40,7 +40,7 @@
|
||||
#ifndef _h_sys
|
||||
#define _h_sys
|
||||
|
||||
-#if defined(HAVE_SYS_TYPES_H) && defined(__sun)
|
||||
+#if defined(HAVE_SYS_TYPES_H)
|
||||
#include <sys/types.h>
|
||||
#endif
|
||||
|
||||
21
package/libedit/Config.in
Normal file
21
package/libedit/Config.in
Normal file
@@ -0,0 +1,21 @@
|
||||
config BR2_PACKAGE_LIBEDIT
|
||||
bool "libedit"
|
||||
depends on BR2_USE_WCHAR
|
||||
depends on BR2_USE_MMU # fork()
|
||||
select BR2_PACKAGE_NCURSES
|
||||
help
|
||||
The editline library (from BSD) provides generic line editing
|
||||
and history functions. It slightly resembles GNU readline.
|
||||
|
||||
The official homepage is at:
|
||||
http://ftp.netbsd.org/pub/NetBSD/NetBSD-release-5-0/src/lib/libedit/
|
||||
|
||||
Jess Thrysoee maintains an autotoolified package, which we use
|
||||
in Buildroot as it makes it much simpler than using the
|
||||
upstream sources which require pmake.
|
||||
|
||||
http://www.thrysoee.dk/editline
|
||||
|
||||
comment "libedit needs a toolchain w/ wchar"
|
||||
depends on BR2_USE_MMU
|
||||
depends on !BR2_USE_WCHAR
|
||||
3
package/libedit/libedit.hash
Normal file
3
package/libedit/libedit.hash
Normal file
@@ -0,0 +1,3 @@
|
||||
# Locally computed
|
||||
sha256 23792701694550a53720630cd1cd6167101b5773adddcb4104f7345b73a568ac libedit-20250104-3.1.tar.gz
|
||||
sha256 9da6c9c74987a36c84302982799d17d2f748ba1c1c0c471425716173c1d07649 COPYING
|
||||
31
package/libedit/libedit.mk
Normal file
31
package/libedit/libedit.mk
Normal file
@@ -0,0 +1,31 @@
|
||||
################################################################################
|
||||
#
|
||||
# libedit
|
||||
#
|
||||
################################################################################
|
||||
|
||||
LIBEDIT_VERSION = 20250104-3.1
|
||||
LIBEDIT_SITE = https://www.thrysoee.dk/editline
|
||||
LIBEDIT_INSTALL_STAGING = YES
|
||||
LIBEDIT_DEPENDENCIES = ncurses
|
||||
LIBEDIT_LICENSE = BSD-3-Clause
|
||||
LIBEDIT_LICENSE_FILES = COPYING
|
||||
LIBEDIT_CPE_ID_VALID = YES
|
||||
|
||||
# We're patching configure.ac
|
||||
LIBEDIT_AUTORECONF = YES
|
||||
|
||||
# musl is ISO 10646 compliant but doesn't define __STDC_ISO_10646__,
|
||||
# so let's define it manually
|
||||
ifeq ($(BR2_TOOLCHAIN_USES_MUSL),y)
|
||||
LIBEDIT_CONF_OPTS += CFLAGS="$(TARGET_CFLAGS) -D__STDC_ISO_10646__=201103L"
|
||||
endif
|
||||
|
||||
# Note: libbsd required for *vis functions, but works only with a toolchain
|
||||
# with __progname; otherwise, some features are disabled, as if libbsd was
|
||||
# missing entirely.
|
||||
ifeq ($(BR2_PACKAGE_LIBBSD),y)
|
||||
LIBEDIT_DEPENDENCIES += libbsd
|
||||
endif
|
||||
|
||||
$(eval $(autotools-package))
|
||||
Reference in New Issue
Block a user