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,40 @@
|
||||
From c5cd932fb08e7ce90cdbf9ae6c5cc7e65ac0738e Mon Sep 17 00:00:00 2001
|
||||
From: =?UTF-8?q?Michael=20Wei=C3=9F?= <michael.weiss@aisec.fraunhofer.de>
|
||||
Date: Tue, 9 May 2023 20:00:26 +0200
|
||||
Subject: [PATCH] pv/display: handle error of tcgetpgrp() in pv_in_foreground()
|
||||
MIME-Version: 1.0
|
||||
Content-Type: text/plain; charset=UTF-8
|
||||
Content-Transfer-Encoding: 8bit
|
||||
|
||||
Show pv progress bar even if no terminal is set, e.g., in a busybox
|
||||
init script. The description of pv_in_forground() states it will
|
||||
return true "if we aren't outputting to a terminal". However, this
|
||||
is not the case since tcgetpgrg() will return an error and set ERRNO
|
||||
to ENOTTY if the output fd is not an tty. We now handle this error
|
||||
correctly and pv_in_foreground() returns also true in that case.
|
||||
|
||||
Signed-off-by: Michael Weiß <michael.weiss@aisec.fraunhofer.de>
|
||||
---
|
||||
Upstream-Status: Pending
|
||||
|
||||
src/pv/display.c | 4 ++++
|
||||
1 file changed, 4 insertions(+)
|
||||
|
||||
diff --git a/src/pv/display.c b/src/pv/display.c
|
||||
index aff643b..8d1f4c9 100644
|
||||
--- a/src/pv/display.c
|
||||
+++ b/src/pv/display.c
|
||||
@@ -48,6 +48,10 @@ bool pv_in_foreground(void)
|
||||
|
||||
our_process_group = getpgrp();
|
||||
tty_process_group = tcgetpgrp(STDERR_FILENO);
|
||||
+
|
||||
+ if (tty_process_group == -1 && errno == ENOTTY)
|
||||
+ return true;
|
||||
+
|
||||
if (our_process_group == tty_process_group)
|
||||
return true;
|
||||
|
||||
--
|
||||
2.30.2
|
||||
|
||||
@@ -0,0 +1,7 @@
|
||||
#!/bin/sh
|
||||
|
||||
rm -rf tests.log
|
||||
sh -e run-test.sh pv . > tests.log 2>&1
|
||||
sed -e 's|\(.*\):.*OK|PASS: \1|' \
|
||||
-e 's|\(.*\):.*FAILED|FAIL: \1|' \
|
||||
tests.log
|
||||
@@ -0,0 +1,28 @@
|
||||
SUMMARY = "Terminal-based tool for monitoring the progress of data through a pipeline"
|
||||
HOMEPAGE = "http://www.ivarch.com/programs/pv.shtml"
|
||||
|
||||
LICENSE = "Artistic-2.0"
|
||||
LIC_FILES_CHKSUM = "file://doc/COPYING;md5=9c50db2589ee3ef10a9b7b2e50ce1d02"
|
||||
|
||||
SRC_URI = "https://www.ivarch.com/programs/sources/${BP}.tar.bz2 \
|
||||
file://0001-pv-display-handle-error-of-tcgetpgrp-in-pv_in_foregr.patch \
|
||||
file://run-ptest \
|
||||
"
|
||||
SRC_URI[sha256sum] = "e831951eff0718fba9b1ef286128773b9d0e723e1fbfae88d5a3188814fdc603"
|
||||
|
||||
UPSTREAM_CHECK_URI = "http://www.ivarch.com/programs/pv.shtml"
|
||||
UPSTREAM_CHECK_REGEX = "pv-(?P<pver>\d+(\.\d+)+).tar.bz2"
|
||||
|
||||
inherit autotools ptest
|
||||
|
||||
LDEMULATION:mipsarchn32 = "${@bb.utils.contains('TUNE_FEATURES', 'bigendian', 'elf32btsmipn32', 'elf32ltsmipn32', d)}"
|
||||
export LDEMULATION
|
||||
|
||||
RDEPENDS:${PN}-ptest += "coreutils ${PN}"
|
||||
|
||||
do_install_ptest() {
|
||||
install -d ${D}${PTEST_PATH}/tests
|
||||
cp -r ${S}/tests/* ${D}${PTEST_PATH}/tests
|
||||
cp -r ${S}/autoconf/scripts/run-test.sh ${D}${PTEST_PATH}
|
||||
# sed -i -e 's@\$SRCDIR/@./@g' ${D}${PTEST_PATH}/run-ptest
|
||||
}
|
||||
Reference in New Issue
Block a user