Complete Yocto mirror with license table for TQMa6UL (2038-compliance)
- 264 license table entries with exact download URLs (224/264 resolved) - Complete sources/ directory with all BitBake recipes - Build configuration: tqma6ul-multi-mba6ulx, spaetzle (musl) - Full traceability for Softwarefreigabeantrag - GCC 13.4.0, Linux 6.6.102, U-Boot 2023.04, musl 1.2.4 - License distribution: GPL-2.0 (24), MIT (23), GPL-2.0+ (18), BSD-3 (16)
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
slang: modify array test
|
||||
|
||||
One array test tries to create an array that is far too large and anticipates an exception.
|
||||
IndexError will only be thrown for 64 bit machines, so we add InvalidParmError for 32 bit ones.
|
||||
|
||||
Upstream-Status: Submitted [jedsoft.org]
|
||||
|
||||
Signed-off-by: Joe Slater <joe.slater@windriver.com>
|
||||
|
||||
--- a/src/test/array.sl
|
||||
+++ b/src/test/array.sl
|
||||
@@ -165,7 +165,7 @@ try
|
||||
{
|
||||
SS = Long_Type[10000,10000,10000,10000,10000,10000];
|
||||
}
|
||||
-catch IndexError;
|
||||
+catch IndexError,InvalidParmError;
|
||||
|
||||
private define array_map2_func ()
|
||||
{
|
||||
@@ -0,0 +1,31 @@
|
||||
From b4a6e3c8309cff0f2311cd959c5091213b633851 Mon Sep 17 00:00:00 2001
|
||||
From: Ross Burton <ross.burton@intel.com>
|
||||
Date: Tue, 7 Feb 2017 14:35:43 +0000
|
||||
Subject: [PATCH] slang: rewrite recipe to run autoconf
|
||||
|
||||
SLANG_INST_LIB is the location of where slang will end up, but when building for
|
||||
packaging this doesn't have DESTDIR appended so can potentially link to the host
|
||||
for cross builds and will trigger QA errors.
|
||||
|
||||
As this is obviously wrong, delete it.
|
||||
|
||||
Upstream-Status: Pending
|
||||
Signed-off-by: Ross Burton <ross.burton@intel.com>
|
||||
|
||||
---
|
||||
slsh/Makefile.in | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/slsh/Makefile.in b/slsh/Makefile.in
|
||||
index addd343..63a5c9b 100644
|
||||
--- a/slsh/Makefile.in
|
||||
+++ b/slsh/Makefile.in
|
||||
@@ -77,7 +77,7 @@ SLSYSWRAP_LIB = @LIB_SLSYSWRAP@
|
||||
#----------------------------------------------------------------------------
|
||||
@SET_MAKE@
|
||||
SHELL = /bin/sh
|
||||
-INST_LIBS = $(DEST_LIB_DIR) $(RPATH) $(SLANG_INST_LIB) -lslang $(LDFLAGS) $(READLINE_LIB) $(DYNAMIC_LIBS)
|
||||
+INST_LIBS = $(DEST_LIB_DIR) $(RPATH) -lslang $(LDFLAGS) $(READLINE_LIB) $(DYNAMIC_LIBS)
|
||||
DEFS = -DSLSH_CONF_DIR='"$(SLSH_CONF_DIR)"' -DSLSH_PATH='"$(SLSH_LIB_DIR)"' \
|
||||
-DSLSH_CONF_DIR_ENV='$(SLSH_CONF_DIR_ENV)' -DSLSH_LIB_DIR_ENV='$(SLSH_LIB_DIR_ENV)' \
|
||||
-DSLSH_PATH_ENV='$(SLSH_PATH_ENV)' $(SLSYSWRAP_DEF)
|
||||
18
sources/poky/meta/recipes-extended/slang/slang/no-x.patch
Normal file
18
sources/poky/meta/recipes-extended/slang/slang/no-x.patch
Normal file
@@ -0,0 +1,18 @@
|
||||
There's no need to check for the X libraries as the socket module doesn't use
|
||||
anything from X.
|
||||
|
||||
Upstream-Status: Pending
|
||||
Signed-off-by: Ross Burton <ross.burton@intel.com>
|
||||
|
||||
diff --git a/autoconf/configure.ac b/autoconf/configure.ac
|
||||
index b61e974..a3e5db2 100644
|
||||
--- a/autoconf/configure.ac
|
||||
+++ b/autoconf/configure.ac
|
||||
@@ -72,3 +71,0 @@ AC_SUBST(LIB_READLINE)
|
||||
-# For the socket module
|
||||
-AC_PATH_XTRA
|
||||
-
|
||||
--- a/modules/Makefile.in
|
||||
+++ b/modules/Makefile.in
|
||||
@@ -67 +66,0 @@ ZLIB_LIB = @Z_LIB@ -lz
|
||||
-SOCKET_LIBS = @X_EXTRA_LIBS@
|
||||
3
sources/poky/meta/recipes-extended/slang/slang/run-ptest
Normal file
3
sources/poky/meta/recipes-extended/slang/slang/run-ptest
Normal file
@@ -0,0 +1,3 @@
|
||||
#!/bin/sh
|
||||
|
||||
make -C test runtests
|
||||
@@ -0,0 +1,168 @@
|
||||
From 2a75095638002d37a2f9c7aeb0ec54f271b0a1c4 Mon Sep 17 00:00:00 2001
|
||||
From: Joe Slater <joe.slater@windriver.com>
|
||||
Date: Tue, 1 Aug 2017 12:36:53 -0700
|
||||
Subject: [PATCH] slang: fix terminfo related problems
|
||||
|
||||
Do not use the JD_TERMCAP macro since we cannot get the terminfo from
|
||||
ncurses pkg-config, but fix the macro to not reference host directories.
|
||||
Also add src/test/Makefile.in so that we can use -ltermcap if we want to.
|
||||
|
||||
Upstream isn't going to take this, as it forces blank values and
|
||||
removes functionality without replacing it.
|
||||
Upstream-Status: Inappropriate [see above]
|
||||
|
||||
Signed-off-by: Joe Slater <joe.slater@windriver.com>
|
||||
|
||||
---
|
||||
autoconf/aclocal.m4 | 8 +---
|
||||
autoconf/configure.ac | 11 +++++-
|
||||
src/test/Makefile.in | 90 +++++++++++++++++++++++++++++++++++++++++++
|
||||
3 files changed, 100 insertions(+), 9 deletions(-)
|
||||
create mode 100644 src/test/Makefile.in
|
||||
|
||||
diff --git a/autoconf/aclocal.m4 b/autoconf/aclocal.m4
|
||||
index b2dfcd3..5f94ed3 100644
|
||||
--- a/autoconf/aclocal.m4
|
||||
+++ b/autoconf/aclocal.m4
|
||||
@@ -509,15 +509,9 @@ then
|
||||
else
|
||||
MISC_TERMINFO_DIRS=""
|
||||
fi
|
||||
-JD_Terminfo_Dirs="$MISC_TERMINFO_DIRS \
|
||||
- /usr/lib/terminfo \
|
||||
- /usr/share/terminfo \
|
||||
- /usr/share/lib/terminfo \
|
||||
- /usr/local/lib/terminfo \
|
||||
- /etc/terminfo /lib/terminfo"
|
||||
TERMCAP=-ltermcap
|
||||
|
||||
-for terminfo_dir in $JD_Terminfo_Dirs
|
||||
+for terminfo_dir in $MISC_TERMINFO_DIRS
|
||||
do
|
||||
if test -d $terminfo_dir
|
||||
then
|
||||
diff --git a/autoconf/configure.ac b/autoconf/configure.ac
|
||||
index 8e11e13..9e6402c 100644
|
||||
--- a/autoconf/configure.ac
|
||||
+++ b/autoconf/configure.ac
|
||||
@@ -250,7 +250,14 @@ AC_CHECK_SIZEOF(size_t)
|
||||
JD_CHECK_LONG_LONG
|
||||
JD_LARGE_FILE_SUPPORT
|
||||
|
||||
-JD_TERMCAP
|
||||
+dnl Do not use JD_TERMCAP, since we cannot get terminfo from ncurses*-config anymore.
|
||||
+dnl Set TERMCAP=-ltermcap and AC_DEFINE(USE_TERMCAP,1,[Define to use termcap])
|
||||
+dnl to use libtermcap.
|
||||
+TERMCAP=""
|
||||
+MISC_TERMINFO_DIRS=""
|
||||
+AC_SUBST(TERMCAP)dnl
|
||||
+AC_SUBST(MISC_TERMINFO_DIRS)dnl
|
||||
+
|
||||
JD_GCC_WARNINGS
|
||||
|
||||
JD_SET_OBJ_SRC_DIR(src)
|
||||
@@ -365,7 +372,7 @@ AC_CONFIG_HEADER(src/sysconf.h:src/config.hin)
|
||||
dnl AC_CONFIG_SUBDIRS(demo)
|
||||
|
||||
AC_OUTPUT(Makefile:autoconf/Makefile.in \
|
||||
- src/Makefile slsh/Makefile modules/Makefile demo/Makefile \
|
||||
+ src/Makefile src/test/Makefile slsh/Makefile modules/Makefile demo/Makefile \
|
||||
slang.pc:autoconf/slangpc.in \
|
||||
)
|
||||
|
||||
diff --git a/src/test/Makefile.in b/src/test/Makefile.in
|
||||
new file mode 100644
|
||||
index 0000000..4b7307f
|
||||
--- /dev/null
|
||||
+++ b/src/test/Makefile.in
|
||||
@@ -0,0 +1,90 @@
|
||||
+# -*- make -*-
|
||||
+TEST_SCRIPTS_SLC = argv syntax scircuit eqs sscanf loops arith array strops \
|
||||
+ bstring pack stdio assoc selfload struct nspace path ifeval anytype arrmult \
|
||||
+ time utf8 except bugs list regexp method deref naninf overflow sort \
|
||||
+ longlong signal dollar req docfun debug qualif compare break multline \
|
||||
+ stack misc posixio posdir proc math
|
||||
+
|
||||
+TEST_SCRIPTS_NO_SLC = autoload nspace2 prep
|
||||
+
|
||||
+TEST_SCRIPTS = $(TEST_SCRIPTS_SLC) $(TEST_SCRIPTS_NO_SLC)
|
||||
+
|
||||
+TEST_PGM = sltest
|
||||
+MEMCHECK = valgrind --tool=memcheck --leak-check=yes --leak-resolution=med --num-callers=20
|
||||
+RUN_TEST_PGM = ./$(TEST_PGM)
|
||||
+SLANGINC = ..
|
||||
+SLANGLIB = ../$(ARCH)objs
|
||||
+OTHER_LIBS = -lm @TERMCAP@
|
||||
+OTHER_CFLAGS =
|
||||
+
|
||||
+runtests: $(TEST_PGM) cleantmp
|
||||
+ @tests=""; \
|
||||
+ for test in $(TEST_SCRIPTS); \
|
||||
+ do \
|
||||
+ tests="$$tests $$test.sl"; \
|
||||
+ done; \
|
||||
+ for test in $(TEST_SCRIPTS_SLC); \
|
||||
+ do \
|
||||
+ tests="$$tests $$test.slc"; \
|
||||
+ done; \
|
||||
+ MAKERUNNING=1 ./runtests.sh $$tests
|
||||
+# @touch $(TEST_PGM).c
|
||||
+
|
||||
+update: $(TEST_PGM) cleantmp
|
||||
+ @tests=""; \
|
||||
+ for X in $(TEST_SCRIPTS); \
|
||||
+ do \
|
||||
+ if [ ! -e lastrun/$$X.sl ] || [ $$X.sl -nt lastrun/$$X.sl ] ; \
|
||||
+ then \
|
||||
+ tests="$$tests $$X.sl"; \
|
||||
+ fi \
|
||||
+ done; \
|
||||
+ for X in $(TEST_SCRIPTS_SLC); \
|
||||
+ do \
|
||||
+ if [ ! -e lastrun/$$X.slc ] || [ $$X.sl -nt lastrun/$$X.slc ] ; \
|
||||
+ then \
|
||||
+ tests="$$tests $$X.slc"; \
|
||||
+ fi \
|
||||
+ done; \
|
||||
+ if test -n "$$tests"; \
|
||||
+ then \
|
||||
+ MAKERUNNING=1 ./runtests.sh $$tests; \
|
||||
+ fi
|
||||
+# @touch $(TEST_PGM).c
|
||||
+
|
||||
+memcheck_runtests: $(TEST_PGM) cleantmp
|
||||
+ @echo ""
|
||||
+ @echo "Running tests:"
|
||||
+ @echo ""
|
||||
+ -@for X in $(TEST_SCRIPTS); \
|
||||
+ do \
|
||||
+ $(MEMCHECK) --log-file=log.$${X} $(RUN_TEST_PGM) $$X.sl; \
|
||||
+ grep ERROR log.$${X}; grep 'lost: [^0]' log.$${X}; \
|
||||
+ $(MEMCHECK) --log-file=log.$${X}_u $(RUN_TEST_PGM) -utf8 $$X.sl; \
|
||||
+ grep ERROR log.$${X}_u; grep 'lost: [^0]' log.$${X}_u; \
|
||||
+ done
|
||||
+# touch $(TEST_PGM).c
|
||||
+
|
||||
+memcheck_runtests_slc: $(TEST_PGM) cleantmp
|
||||
+ @echo ""
|
||||
+ @echo "Running tests:"
|
||||
+ @echo ""
|
||||
+ -@for X in $(TEST_SCRIPTS_SLC); \
|
||||
+ do \
|
||||
+ $(MEMCHECK) --log-file=log.$${X}_c $(RUN_TEST_PGM) $$X.slc; \
|
||||
+ $(MEMCHECK) --log-file=log.$${X}_uc $(RUN_TEST_PGM) -utf8 $$X.slc; \
|
||||
+ done
|
||||
+# touch $(TEST_PGM).c
|
||||
+
|
||||
+memcheck: memcheck_runtests memcheck_runtests_slc
|
||||
+
|
||||
+$(TEST_PGM): $(TEST_PGM).c assoc.c list.c $(SLANGLIB)/libslang.a
|
||||
+ $(CC) $(CFLAGS) $(OTHER_CFLAGS) $(LDFLAGS) $(TEST_PGM).c -o $(TEST_PGM) -I$(SLANGINC) -L$(SLANGLIB) -lslang $(OTHER_LIBS)
|
||||
+cleantmp:
|
||||
+ -/bin/rm -rf tmpfile*.* tmpdir*.*
|
||||
+clean: cleantmp
|
||||
+ -/bin/rm -f *~ *.o *.log log.pid* *.slc log.* *.log-*
|
||||
+distclean: clean
|
||||
+ /bin/rm -f $(TEST_PGM) $(TEST_PGM).gcda $(TEST_PGM).gcno
|
||||
+.PHONY: clean memcheck runtests memcheck_runtests_slc memcheck_runtests cleantmp
|
||||
+
|
||||
@@ -0,0 +1,30 @@
|
||||
From 38688ee2754415cf2a1935dafb8278861b7315e7 Mon Sep 17 00:00:00 2001
|
||||
From: Stefan Strogin <sstrogin@cisco.com>
|
||||
Date: Thu, 2 Mar 2017 00:26:31 +0200
|
||||
Subject: [PATCH] test: add output in the format "result: testname"
|
||||
|
||||
Upstream-Status: Inappropriate [oe specific]
|
||||
|
||||
Signed-off-by: Stefan Strogin <sstrogin@cisco.com>
|
||||
---
|
||||
src/test/runtests.sh | 2 ++
|
||||
1 file changed, 2 insertions(+)
|
||||
|
||||
diff --git a/src/test/runtests.sh b/src/test/runtests.sh
|
||||
index a3eaad0..64f0705 100755
|
||||
--- a/src/test/runtests.sh
|
||||
+++ b/src/test/runtests.sh
|
||||
@@ -34,8 +34,10 @@ do
|
||||
then
|
||||
n_failed=`expr ${n_failed} + 1`
|
||||
tests_failed="$tests_failed $testfile"
|
||||
+ echo "FAIL: $testfile"
|
||||
else
|
||||
touch lastrun/$testfile
|
||||
+ echo "PASS: $testfile"
|
||||
fi
|
||||
done
|
||||
|
||||
--
|
||||
2.11.0
|
||||
|
||||
83
sources/poky/meta/recipes-extended/slang/slang_2.3.3.bb
Normal file
83
sources/poky/meta/recipes-extended/slang/slang_2.3.3.bb
Normal file
@@ -0,0 +1,83 @@
|
||||
SUMMARY = "The shared library for the S-Lang extension language"
|
||||
|
||||
DESCRIPTION = "S-Lang is an interpreted language and a programming library. The \
|
||||
S-Lang language was designed so that it can be easily embedded into \
|
||||
a program to provide the program with a powerful extension language. \
|
||||
The S-Lang library, provided in this package, provides the S-Lang \
|
||||
extension language. S-Lang's syntax resembles C, which makes it easy \
|
||||
to recode S-Lang procedures in C if you need to."
|
||||
|
||||
HOMEPAGE = "http://www.jedsoft.org/slang/"
|
||||
SECTION = "libs"
|
||||
DEPENDS = "ncurses virtual/libiconv"
|
||||
|
||||
LICENSE = "GPL-2.0-only"
|
||||
LIC_FILES_CHKSUM = "file://COPYING;md5=a52a18a472d4f7e45479b06563717c02"
|
||||
|
||||
SRC_URI = "http://www.jedsoft.org/releases/${BPN}/${BP}.tar.bz2 \
|
||||
file://no-x.patch \
|
||||
file://dont-link-to-host.patch \
|
||||
file://test-add-output-in-the-format-result-testname.patch \
|
||||
file://terminfo_fixes.patch \
|
||||
file://array_test.patch \
|
||||
file://run-ptest \
|
||||
"
|
||||
|
||||
SRC_URI[sha256sum] = "f9145054ae131973c61208ea82486d5dd10e3c5cdad23b7c4a0617743c8f5a18"
|
||||
|
||||
UPSTREAM_CHECK_URI = "http://www.jedsoft.org/releases/slang/"
|
||||
PREMIRRORS:append = " http://www.jedsoft.org/releases/slang/.* http://www.jedsoft.org/releases/slang/old/"
|
||||
|
||||
inherit autotools-brokensep ptest
|
||||
CLEANBROKEN = "1"
|
||||
|
||||
EXTRA_OECONF = "--without-onig"
|
||||
# There's no way to turn off rpaths and slang will -rpath to the default search
|
||||
# path. Unset RPATH to stop this.
|
||||
EXTRA_OEMAKE = "RPATH=''"
|
||||
|
||||
PACKAGECONFIG ??= "pcre"
|
||||
PACKAGECONFIG[pcre] = "--with-pcre=${STAGING_DIR_HOST}${prefix},--without-pcre,pcre"
|
||||
PACKAGECONFIG[png] = "--with-png=${STAGING_DIR_HOST}${prefix},--without-png,libpng"
|
||||
PACKAGECONFIG[zlib] = "--with-z=${STAGING_DIR_HOST}${prefix},--without-z,zlib"
|
||||
|
||||
do_configure:prepend() {
|
||||
cd ${S}/autoconf
|
||||
# slang keeps configure.ac and rest of autoconf files in autoconf/ directory
|
||||
# we have to go there to be able to run gnu-configize cause it expects configure.{in,ac}
|
||||
# to be present. Resulting files land in autoconf/autoconf/ so we need to move them.
|
||||
gnu-configize --force && mv autoconf/config.* .
|
||||
# For the same reason we also need to run autoconf manually.
|
||||
autoconf && mv configure ..
|
||||
cd ${B}
|
||||
}
|
||||
|
||||
do_compile_ptest() {
|
||||
oe_runmake -C src static
|
||||
oe_runmake -C src/test sltest
|
||||
}
|
||||
|
||||
do_install_ptest() {
|
||||
mkdir ${D}${PTEST_PATH}/test
|
||||
for f in Makefile sltest runtests.sh *.sl *.inc; do
|
||||
cp ${S}/src/test/$f ${D}${PTEST_PATH}/test/
|
||||
done
|
||||
sed -e 's/\ \$(TEST_PGM)\.c\ assoc\.c\ list\.c\ \$(SLANGLIB)\/libslang\.a//' \
|
||||
-e '/\$(CC).*(TEST_PGM)/d' \
|
||||
-i ${D}${PTEST_PATH}/test/Makefile
|
||||
|
||||
cp ${S}/slsh/lib/require.sl ${D}${PTEST_PATH}/test/
|
||||
sed -i 's/\.\.\/\.\.\/slsh\/lib\/require\.sl/require\.sl/' ${D}${PTEST_PATH}/test/req.sl
|
||||
|
||||
cp ${S}/doc/text/slangfun.txt ${D}${PTEST_PATH}/test/
|
||||
sed -i 's/\.\.\/\.\.\/doc\/text\/slangfun\.txt/slangfun\.txt/' ${D}${PTEST_PATH}/test/docfun.sl
|
||||
}
|
||||
|
||||
FILES:${PN} += "${libdir}/${BPN}/v2/modules/ ${datadir}/slsh/"
|
||||
|
||||
RDEPENDS:${PN}-ptest += "make"
|
||||
|
||||
PARALLEL_MAKE = ""
|
||||
PARALLEL_MAKEINST = ""
|
||||
|
||||
BBCLASSEXTEND = "native nativesdk"
|
||||
Reference in New Issue
Block a user