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,38 @@
|
||||
From 4f4e84f139e2a8682f1374a592f2636c43ad857b Mon Sep 17 00:00:00 2001
|
||||
From: Ross Burton <ross.burton@arm.com>
|
||||
Date: Tue, 21 May 2024 15:10:11 +0000
|
||||
Subject: [PATCH] m4/readline: add missing includes
|
||||
|
||||
The cross-specific code fragment only includes stdio.h, where the native
|
||||
fragment also includes fcntl.h and unistd.h. This is important because
|
||||
GCC 14.1 has made the implicit definitions an error:
|
||||
|
||||
conftest.c: In function 'main':
|
||||
conftest.c:144:9: error: implicit declaration of function 'close'; did you mean 'pclose'? [-Wimplicit-function-declaration]
|
||||
conftest.c:146:14: error: implicit declaration of function 'open'; did you mean 'popen'? [-Wimplicit-function-declaration]
|
||||
|
||||
Add the missing includes so that the check doesn't always fail due to
|
||||
these errors.
|
||||
|
||||
Upstream-Status: Backport [https://git.savannah.gnu.org/cgit/gawk.git/commit/?id=c1613c310d71b87f509458e0259ecd10eda2b140]
|
||||
Signed-off-by: Ross Burton <ross.burton@arm.com>
|
||||
---
|
||||
m4/readline.m4 | 2 ++
|
||||
1 file changed, 2 insertions(+)
|
||||
|
||||
diff --git a/m4/readline.m4 b/m4/readline.m4
|
||||
index 38f96326..efd52d4e 100644
|
||||
--- a/m4/readline.m4
|
||||
+++ b/m4/readline.m4
|
||||
@@ -66,6 +66,8 @@ dnl action if false:
|
||||
dnl action if cross compiling:
|
||||
[AC_LINK_IFELSE(
|
||||
[AC_LANG_PROGRAM([[#include <stdio.h>
|
||||
+#include <fcntl.h>
|
||||
+#include <unistd.h>
|
||||
#include <readline/readline.h>
|
||||
#include <readline/history.h>]], dnl includes
|
||||
dnl function body
|
||||
--
|
||||
2.34.1
|
||||
|
||||
27
sources/poky/meta/recipes-extended/gawk/gawk/run-ptest
Normal file
27
sources/poky/meta/recipes-extended/gawk/gawk/run-ptest
Normal file
@@ -0,0 +1,27 @@
|
||||
#!/bin/sh
|
||||
|
||||
cd test
|
||||
for i in `grep -E "^[a-z0-9_-]*:$" Maketests |awk -F: '{print $1}'`; do
|
||||
unset LANG
|
||||
grep -q "^$i$" skipped.txt
|
||||
if [ $? -eq 0 ]; then
|
||||
echo "SKIP: $i"
|
||||
continue
|
||||
fi
|
||||
srcdir=`pwd` AWKPROG=gawk AWK=gawk CMP=cmp make -f Maketests $i >$i.tmp 2>&1
|
||||
if [ -e _$i ]; then
|
||||
cat _$i
|
||||
grep -q "support not compiled in" _$i
|
||||
if [ $? -eq 0 ]; then
|
||||
echo "SKIP: $i"
|
||||
continue
|
||||
fi
|
||||
fi
|
||||
grep -q "Error" $i.tmp
|
||||
if [ $? -eq 0 ]; then
|
||||
echo "FAIL: $i"
|
||||
else
|
||||
echo "PASS: $i"
|
||||
rm -f $i.tmp
|
||||
fi
|
||||
done
|
||||
90
sources/poky/meta/recipes-extended/gawk/gawk_5.3.0.bb
Normal file
90
sources/poky/meta/recipes-extended/gawk/gawk_5.3.0.bb
Normal file
@@ -0,0 +1,90 @@
|
||||
SUMMARY = "GNU awk text processing utility"
|
||||
DESCRIPTION = "The GNU version of awk, a text processing utility. \
|
||||
Awk interprets a special-purpose programming language to do \
|
||||
quick and easy text pattern matching and reformatting jobs."
|
||||
HOMEPAGE = "https://www.gnu.org/software/gawk/"
|
||||
BUGTRACKER = "bug-gawk@gnu.org"
|
||||
SECTION = "console/utils"
|
||||
|
||||
# gawk <= 3.1.5: GPL-2.0-only
|
||||
# gawk >= 3.1.6: GPL-3.0-only
|
||||
LICENSE = "GPL-3.0-only"
|
||||
LIC_FILES_CHKSUM = "file://COPYING;md5=d32239bcb673463ab874e80d47fae504"
|
||||
|
||||
PACKAGECONFIG ??= "readline"
|
||||
PACKAGECONFIG[readline] = "--with-readline,--without-readline,readline"
|
||||
PACKAGECONFIG[mpfr] = "--with-mpfr,--without-mpfr, mpfr"
|
||||
|
||||
SRC_URI = "${GNU_MIRROR}/gawk/gawk-${PV}.tar.gz \
|
||||
file://0001-m4-readline-add-missing-includes.patch \
|
||||
file://run-ptest \
|
||||
"
|
||||
|
||||
SRC_URI[sha256sum] = "378f8864ec21cfceaa048f7e1869ac9b4597b449087caf1eb55e440d30273336"
|
||||
|
||||
inherit autotools gettext texinfo update-alternatives
|
||||
|
||||
FILES:${PN} += "${datadir}/awk"
|
||||
FILES:${PN}-dev += "${libdir}/${BPN}/*.la"
|
||||
|
||||
PACKAGES =+ "${PN}-gawkbug"
|
||||
FILES:${PN}-gawkbug += "${bindir}/gawkbug"
|
||||
|
||||
ALTERNATIVE:${PN} = "awk"
|
||||
ALTERNATIVE_TARGET[awk] = "${bindir}/gawk"
|
||||
ALTERNATIVE_PRIORITY = "100"
|
||||
|
||||
do_install:append() {
|
||||
# remove the link since we don't package it
|
||||
rm ${D}${bindir}/awk
|
||||
# Strip non-reproducible build flags (containing build paths)
|
||||
sed -i -e 's|^CC.*|CC=""|g' -e 's|^CFLAGS.*|CFLAGS=""|g' ${D}${bindir}/gawkbug
|
||||
}
|
||||
|
||||
inherit ptest
|
||||
|
||||
do_install_ptest() {
|
||||
mkdir ${D}${PTEST_PATH}/test
|
||||
ln -s ${bindir}/gawk ${D}${PTEST_PATH}/gawk
|
||||
# The list of tests is all targets in Maketests, apart from the dummy Gt-dummy
|
||||
TESTS=$(awk -F: '$1 == "Gt-dummy" { next } /[[:alnum:]]+:$/ { print $1 }' ${S}/test/Maketests)
|
||||
for i in $TESTS Maketests inclib.awk; do
|
||||
cp ${S}/test/$i* ${D}${PTEST_PATH}/test
|
||||
done
|
||||
sed -i \
|
||||
-e 's|#! /bin/gawk|#! ${bindir}/gawk|g' \
|
||||
-e 's|#! /usr/local/bin/gawk|#! ${bindir}/gawk|g' \
|
||||
-e 's|#!${base_bindir}/awk|#!${bindir}/awk|g' ${D}${PTEST_PATH}/test/*.awk
|
||||
|
||||
sed -i -e "s|GAWKLOCALE|LANG|g" ${D}${PTEST_PATH}/test/Maketests
|
||||
|
||||
# These tests require an unloaded host as otherwise timing sensitive tests can fail
|
||||
# https://bugzilla.yoctoproject.org/show_bug.cgi?id=14371
|
||||
rm -f ${D}${PTEST_PATH}/test/time.*
|
||||
rm -f ${D}${PTEST_PATH}/test/timeout.*
|
||||
for t in time timeout; do
|
||||
echo $t >> ${D}${PTEST_PATH}/test/skipped.txt
|
||||
done
|
||||
}
|
||||
|
||||
do_install_ptest:append:libc-musl() {
|
||||
# Reported https://lists.gnu.org/archive/html/bug-gawk/2021-02/msg00005.html
|
||||
rm -f ${D}${PTEST_PATH}/test/clos1way6.*
|
||||
# Needs en_US.UTF-8 but then does not work with musl
|
||||
rm -f ${D}${PTEST_PATH}/test/backsmalls1.*
|
||||
# Needs en_US.UTF-8 but then does not work with musl
|
||||
rm -f ${D}${PTEST_PATH}/test/commas.*
|
||||
# The below two need LANG=C inside the make rule for musl
|
||||
rm -f ${D}${PTEST_PATH}/test/rebt8b1.*
|
||||
rm -f ${D}${PTEST_PATH}/test/regx8bit.*
|
||||
for t in clos1way6 backsmalls1 commas rebt8b1 regx8bit; do
|
||||
echo $t >> ${D}${PTEST_PATH}/test/skipped.txt
|
||||
done
|
||||
}
|
||||
|
||||
RDEPENDS:${PN}-ptest += "make locale-base-en-us coreutils"
|
||||
|
||||
RDEPENDS:${PN}-ptest:append:libc-glibc = " locale-base-en-us.iso-8859-1"
|
||||
RDEPENDS:${PN}-ptest:append:libc-musl = " musl-locales"
|
||||
|
||||
BBCLASSEXTEND = "native nativesdk"
|
||||
Reference in New Issue
Block a user