libports: remove ancient unused readline library

This commit is contained in:
Christian Helmuth 2022-02-09 16:06:33 +01:00 committed by Norman Feske
parent 888b89c1c0
commit 76dde9d0ec
9 changed files with 0 additions and 426 deletions

View File

@ -1,269 +0,0 @@
/* config.h. Generated from config.h.in by configure. */
/* config.h.in. Maintained by hand. */
/* Define NO_MULTIBYTE_SUPPORT to not compile in support for multibyte
characters, even if the OS supports them. */
/* #undef NO_MULTIBYTE_SUPPORT */
/* Define if on MINIX. */
/* #undef _MINIX */
/* Define as the return type of signal handlers (int or void). */
#define RETSIGTYPE void
#define VOID_SIGHANDLER 1
/* Characteristics of the compiler. */
/* #undef sig_atomic_t */
/* #undef size_t */
/* #undef ssize_t */
/* #undef const */
/* #undef volatile */
#define PROTOTYPES 1
/* #undef __CHAR_UNSIGNED__ */
/* Define if the `S_IS*' macros in <sys/stat.h> do not work properly. */
/* #undef STAT_MACROS_BROKEN */
/* Define if you have the fcntl function. */
#define HAVE_FCNTL 1
/* Define if you have the getpwent function. */
#define HAVE_GETPWENT 1
/* Define if you have the getpwnam function. */
#define HAVE_GETPWNAM 1
/* Define if you have the getpwuid function. */
#define HAVE_GETPWUID 1
/* Define if you have the isascii function. */
#define HAVE_ISASCII 1
/* Define if you have the iswctype function. */
#define HAVE_ISWCTYPE 1
/* Define if you have the iswlower function. */
#define HAVE_ISWLOWER 1
/* Define if you have the iswupper function. */
#define HAVE_ISWUPPER 1
/* Define if you have the isxdigit function. */
#define HAVE_ISXDIGIT 1
/* Define if you have the kill function. */
#define HAVE_KILL 1
/* Define if you have the lstat function. */
#define HAVE_LSTAT 1
/* Define if you have the mbrlen function. */
#define HAVE_MBRLEN 1
/* Define if you have the mbrtowc function. */
#define HAVE_MBRTOWC 1
/* Define if you have the mbsrtowcs function. */
#define HAVE_MBSRTOWCS 1
/* Define if you have the memmove function. */
#define HAVE_MEMMOVE 1
/* Define if you have the putenv function. */
#define HAVE_PUTENV 1
/* Define if you have the select function. */
#define HAVE_SELECT 1
/* Define if you have the setenv function. */
#define HAVE_SETENV 1
/* Define if you have the setlocale function. */
#define HAVE_SETLOCALE 1
/* Define if you have the strcasecmp function. */
#define HAVE_STRCASECMP 1
/* Define if you have the strcoll function. */
#define HAVE_STRCOLL 1
/* #undef STRCOLL_BROKEN */
/* Define if you have the strpbrk function. */
#define HAVE_STRPBRK 1
/* Define if you have the tcgetattr function. */
#define HAVE_TCGETATTR 1
/* Define if you have the towlower function. */
#define HAVE_TOWLOWER 1
/* Define if you have the towupper function. */
#define HAVE_TOWUPPER 1
/* Define if you have the vsnprintf function. */
#define HAVE_VSNPRINTF 1
/* Define if you have the wcrtomb function. */
#define HAVE_WCRTOMB 1
/* Define if you have the wcscoll function. */
#define HAVE_WCSCOLL 1
/* Define if you have the wctype function. */
#define HAVE_WCTYPE 1
/* Define if you have the wcwidth function. */
#define HAVE_WCWIDTH 1
#define STDC_HEADERS 1
/* Define if you have the <dirent.h> header file. */
#define HAVE_DIRENT_H 1
/* Define if you have the <fcntl.h> header file. */
#define HAVE_FCNTL_H 1
/* Define if you have the <langinfo.h> header file. */
#define HAVE_LANGINFO_H 1
/* Define if you have the <limits.h> header file. */
#define HAVE_LIMITS_H 1
/* Define if you have the <locale.h> header file. */
#define HAVE_LOCALE_H 1
/* Define if you have the <memory.h> header file. */
#define HAVE_MEMORY_H 1
/* Define if you have the <ndir.h> header file. */
/* #undef HAVE_NDIR_H */
/* Define if you have the <pwd.h> header file. */
#define HAVE_PWD_H 1
/* Define if you have the <stdarg.h> header file. */
#define HAVE_STDARG_H 1
/* Define if you have the <stdlib.h> header file. */
#define HAVE_STDLIB_H 1
/* Define if you have the <string.h> header file. */
#define HAVE_STRING_H 1
/* Define if you have the <strings.h> header file. */
#define HAVE_STRINGS_H 1
/* Define if you have the <sys/dir.h> header file. */
/* #undef HAVE_SYS_DIR_H */
/* Define if you have the <sys/file.h> header file. */
#define HAVE_SYS_FILE_H 1
/* Define if you have the <sys/ndir.h> header file. */
/* #undef HAVE_SYS_NDIR_H */
/* Define if you have the <sys/pte.h> header file. */
/* #undef HAVE_SYS_PTE_H */
/* Define if you have the <sys/ptem.h> header file. */
/* #undef HAVE_SYS_PTEM_H */
/* Define if you have the <sys/select.h> header file. */
#define HAVE_SYS_SELECT_H 1
/* Define if you have the <sys/stream.h> header file. */
/* #undef HAVE_SYS_STREAM_H */
/* Define if you have the <termcap.h> header file. */
/* #undef HAVE_TERMCAP_H */
/* Define if you have the <termio.h> header file. */
#define HAVE_TERMIO_H 1
/* Define if you have the <termios.h> header file. */
#define HAVE_TERMIOS_H 1
/* Define if you have the <unistd.h> header file. */
#define HAVE_UNISTD_H 1
/* Define if you have the <varargs.h> header file. */
/* #undef HAVE_VARARGS_H */
/* Define if you have the <wchar.h> header file. */
#define HAVE_WCHAR_H 1
/* Define if you have the <wctype.h> header file. */
#define HAVE_WCTYPE_H 1
#define HAVE_MBSTATE_T 1
/* Define if you have wchar_t in <wctype.h>. */
#define HAVE_WCHAR_T 1
/* Define if you have wctype_t in <wctype.h>. */
#define HAVE_WCTYPE_T 1
/* Define if you have wint_t in <wctype.h>. */
#define HAVE_WINT_T 1
/* Define if you have <langinfo.h> and nl_langinfo(CODESET). */
#define HAVE_LANGINFO_CODESET 1
/* Definitions pulled in from aclocal.m4. */
#define VOID_SIGHANDLER 1
#define GWINSZ_IN_SYS_IOCTL 1
#define STRUCT_WINSIZE_IN_SYS_IOCTL 1
/* #undef STRUCT_WINSIZE_IN_TERMIOS */
/* #undef TIOCSTAT_IN_SYS_IOCTL */
#define FIONREAD_IN_SYS_IOCTL 1
/* #undef SPEED_T_IN_SYS_TYPES */
#define HAVE_GETPW_DECLS 1
/* #undef STRUCT_DIRENT_HAS_D_INO */
/* #undef STRUCT_DIRENT_HAS_D_FILENO */
/* #undef HAVE_BSD_SIGNALS */
#define HAVE_POSIX_SIGNALS 1
/* #undef HAVE_USG_SIGHOLD */
/* #undef MUST_REINSTALL_SIGHANDLERS */
/* #undef HAVE_POSIX_SIGSETJMP */
/* #undef CTYPE_NON_ASCII */
/* modify settings or make new ones based on what autoconf tells us. */
/* Ultrix botches type-ahead when switching from canonical to
non-canonical mode, at least through version 4.3 */
#if !defined (HAVE_TERMIOS_H) || !defined (HAVE_TCGETATTR) || defined (ultrix)
# define TERMIOS_MISSING
#endif
#if defined (__STDC__) && defined (HAVE_STDARG_H)
# define PREFER_STDARG
# define USE_VARARGS
#else
# if defined (HAVE_VARARGS_H)
# define PREFER_VARARGS
# define USE_VARARGS
# endif
#endif

View File

@ -1 +0,0 @@
include $(call select_from_repositories,lib/import/import-readline.mk)

View File

@ -1 +0,0 @@
INC_DIR += $(call select_from_ports,readline)/include

View File

@ -1,28 +0,0 @@
READLINE_PORT_DIR := $(call select_from_ports,readline)
READLINE_DIR := $(READLINE_PORT_DIR)/src/lib/readline
LIBS += libc
# use our customized 'config.h'
INC_DIR += $(REP_DIR)/include/readline
INC_DIR += $(READLINE_PORT_DIR)/include/readline
# add local readline headers to include-search path
INC_DIR += $(READLINE_DIR)
CC_DEF += -DHAVE_CONFIG_H
CC_DEF += -DRL_LIBRARY_VERSION='"6.0"'
# dim build noise for contrib code
CC_WARN = -Wno-unused-but-set-variable
# sources from readline base directory
SRC_C = \
history.c histexpand.c histfile.c histsearch.c shell.c mbutil.c \
xmalloc.c
vpath %.c $(READLINE_DIR)
SHARED_LIB = yes
CC_CXX_WARN_STRICT =

View File

@ -1,34 +0,0 @@
READLINE_PORT_DIR := $(call select_from_ports,readline)
READLINE_DIR := $(READLINE_PORT_DIR)/src/lib/readline
LIBS += libc
# use our customized 'config.h'
INC_DIR += $(REP_DIR)/include/readline
INC_DIR += $(READLINE_PORT_DIR)/include
# add local readline headers to include-search path
INC_DIR += $(READLINE_DIR)/src/base
CC_DEF += -DHAVE_CONFIG_H
CC_DEF += -DRL_LIBRARY_VERSION='"6.0"'
# dim build noise for contrib code
CC_WARN = -Wno-unused-but-set-variable
# sources from readline base directory
SRC_C = \
readline.c vi_mode.c funmap.c keymaps.c parens.c search.c rltty.c \
complete.c bind.c isearch.c display.c signals.c util.c kill.c undo.c \
macro.c input.c callback.c terminal.c text.c nls.c misc.c xmalloc.c \
history.c histexpand.c histfile.c histsearch.c shell.c mbutil.c tilde.c \
compat.c
SRC_CC += genode.cc
vpath %.c $(READLINE_DIR)
vpath genode.cc $(REP_DIR)/src/lib/readline
SHARED_LIB = yes
CC_CXX_WARN_STRICT =

View File

@ -1 +0,0 @@
a0bfb07e4ee36edffd6eb908e2f57be2bb119fc8

View File

@ -1,13 +0,0 @@
LICENSE := GPLv3
VERSION := 6.0
DOWNLOADS := readline.archive
URL(readline) := ftp://ftp.gnu.org/gnu/readline/readline-$(VERSION).tar.gz
SHA(readline) := 1199d905c025735b34cf67d03078585e18f84707052413279fe68ce48c1cc1de
SIG(readline) := ${URL(readline)}.sig
KEY(readline) := GNU
DIR(readline) := src/lib/readline
DIRS := include/readline
DIR_CONTENT(include/readline) := $(addprefix src/lib/readline/,\
rlstdc.h rltypedefs.h keymaps.h tilde.h)

View File

@ -1,72 +0,0 @@
/*
* \brief Readline supplement to resolve symbols missing from the libc
* \author Norman Feske
* \date 2009-10-16
*
* In the future, the content of this file should go to the libc repository.
*/
/*
* Copyright (C) 2009-2017 Genode Labs GmbH
*
* This file is part of the Genode OS framework, which is distributed
* under the terms of the GNU Affero General Public License version 3.
*/
#include <base/log.h>
#include <util/string.h>
using namespace Genode;
extern "C" int tgetnum(char *s);
int tgetnum(char *s)
{
Genode::log(__func__, ": tgetnum called with s=\"", Genode::Cstring(s), "\"");
enum { SCREEN_WIDTH = 80, SCREEN_HEIGHT = 25 };
if (!strcmp(s, "co")) return SCREEN_WIDTH;
if (!strcmp(s, "li")) return SCREEN_HEIGHT;
return 1;
}
extern "C" char *tgetstr(char *id, char **area);
char *tgetstr(char *id, char **area)
{
Genode::log(__func__, " not yet implemented");
return 0;
}
extern "C" int tputs(const char *str, int affcnt, int (*putc)(int));
int tputs(const char *str, int affcnt, int (*putc)(int))
{
Genode::log(__func__, " not yet implemented");
return -1;
}
extern "C" int tgetent(char *bp, const char *name);
int tgetent(char *bp, const char *name)
{
Genode::log(__func__, " not yet implemented");
return -1;
}
extern "C" char *tgoto(const char *cap, int col, int row);
char *tgoto(const char *cap, int col, int row)
{
Genode::log(__func__, " not yet implemented");
return 0;
}
extern "C" int tgetflag(char *id);
int tgetflag(char *id)
{
Genode::log(__func__, " not yet implemented");
return -1;
}

View File

@ -1,7 +0,0 @@
TARGET = test-readline
LIBS = libc readline history
SRC_CC = main.cc
vpath main.cc $(PRG_DIR)/..
CC_CXX_WARN_STRICT =