[Mod] First commit

This commit is contained in:
2022-10-31 22:18:58 +08:00
commit 1c8a3d9709
13090 changed files with 526733 additions and 0 deletions

View File

@ -0,0 +1,25 @@
Remove rpath from linking command
Fixes build error:
lib/.libs/libfstrcmp.so: undefined reference to `__ctype_b_loc@GLIBC_2.3'
lib/.libs/libfstrcmp.so: undefined reference to `mbstowcs@GLIBC_2.2.5'
lib/.libs/libfstrcmp.so: undefined reference to `printf@GLIBC_2.2.5'
lib/.libs/libfstrcmp.so: undefined reference to `readlink@GLIBC_2.2.5'
lib/.libs/libfstrcmp.so: undefined reference to `malloc@GLIBC_2.2.5'
lib/.libs/libfstrcmp.so: undefined reference to `memcmp@GLIBC_2.2.5'
lib/.libs/libfstrcmp.so: undefined reference to `wcslen@GLIBC_2.2.5'
Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
--- fstrcmp-0.7.D001/Makefile.in.orig 2014-03-05 01:13:45.000000000 +0100
+++ fstrcmp-0.7.D001/Makefile.in 2019-04-07 13:55:07.817689231 +0200
@@ -507,7 +507,7 @@
lib/libfstrcmp.la: $(lib_obj)
rm -f $@
$(LIBTOOL) --mode=link --tag=CC $(CC) $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) \
- -o $@ $(lib_obj) $(LIBS) -rpath $(libdir) -version-info 6:0:6
+ -o $@ $(lib_obj) $(LIBS) -version-info 6:0:6
#
# The install of the *.la file automatically causes "$(LIBTOOL) --mode=install"

12
package/fstrcmp/Config.in Normal file
View File

@ -0,0 +1,12 @@
config BR2_PACKAGE_FSTRCMP
bool "fstrcmp"
depends on BR2_USE_WCHAR
help
The fstrcmp project provides a library that is used to make
fuzzy comparisons of strings and byte arrays, including multi-
byte character strings.
http://fstrcmp.sourceforge.net/
comment "fstrcmp needs a toolchain w/ wchar"
depends on !BR2_USE_WCHAR

View File

@ -0,0 +1,6 @@
# From https://sourceforge.net/projects/fstrcmp/files/fstrcmp/0.7/
md5 9c440bbdfcad9fd22e38f2388715b0cc fstrcmp-0.7.D001.tar.gz
sha1 bb848118fb157dc624ae9fac0566a64cc85f2ef2 fstrcmp-0.7.D001.tar.gz
# Locally computed
sha256 e4018e850f80700acee8da296e56e15b1eef711ab15157e542e7d7e1237c3476 fstrcmp-0.7.D001.tar.gz
sha256 5352e426b563eda9252d76be92337b49f7b5cfdd1302a1e8d99389840c0e46be LICENSE

View File

@ -0,0 +1,31 @@
################################################################################
#
# fstrcmp
#
################################################################################
FSTRCMP_VERSION_MAJOR = 0.7
FSTRCMP_VERSION = $(FSTRCMP_VERSION_MAJOR).D001
FSTRCMP_SITE = https://sourceforge.net/projects/fstrcmp/files/fstrcmp/$(FSTRCMP_VERSION_MAJOR)
FSTRCMP_LICENSE = GPL-3.0+
FSTRCMP_LICENSE_FILES = LICENSE
FSTRCMP_INSTALL_STAGING = YES
FSTRCMP_DEPENDENCIES = host-libtool
FSTRCMP_CONF_ENV = LIBTOOL="$(HOST_DIR)/bin/libtool"
FSTRCMP_MAKE_OPTS = all-bin libdir/pkgconfig/fstrcmp.pc
# We need to install the package files ourselves due to upstream trying
# to install a .lai file which is missing because of rpath removal
define FSTRCMP_INSTALL_STAGING_CMDS
$(TARGET_MAKE_ENV) $(MAKE) -C $(@D) DESTDIR=$(STAGING_DIR) install-include
$(INSTALL) -D -m 755 $(@D)/lib/.libs/libfstrcmp.a $(STAGING_DIR)/usr/lib/libfstrcmp.a
$(INSTALL) -D -m 755 $(@D)/lib/libfstrcmp.la $(STAGING_DIR)/usr/lib/libfstrcmp.la
$(INSTALL) -D -m 755 $(@D)/libdir/pkgconfig/fstrcmp.pc $(STAGING_DIR)/usr/lib/pkgconfig/fstrcmp.pc
endef
define FSTRCMP_INSTALL_TARGET_CMDS
$(INSTALL) -D -m 755 $(@D)/bin/fstrcmp $(TARGET_DIR)/usr/bin/fstrcmp
endef
$(eval $(autotools-package))