added my Recipes

This commit is contained in:
2024-07-11 14:16:35 +02:00
parent 38bc4f53ac
commit 09b621d929
7118 changed files with 525762 additions and 3 deletions

View File

@@ -0,0 +1,31 @@
From 42e99eb6c727df7c9d49586803a4bf9933a9796b Mon Sep 17 00:00:00 2001
From: Khem Raj <raj.khem@gmail.com>
Date: Sat, 30 Oct 2021 10:52:42 -0700
Subject: [PATCH] Fix a lot of -Werror=format-security errors with mvwprintw
In all these places a non-constant is used as a format string which
compiler complains about. Fix by using "%s" as format.
Upstream-Status: Pending
Signed-off-by: Khem Raj <raj.khem@gmail.com>
---
src/helpwin.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/helpwin.c b/src/helpwin.c
index 0d660f9..1623d9c 100644
--- a/src/helpwin.c
+++ b/src/helpwin.c
@@ -61,7 +61,7 @@ void show_help_win(WINDOW* win, screen_t* screen)
wattroff(win, A_REVERSE);
/* screen description */
- mvwprintw(win, 2, 1, screen->desc);
+ mvwprintw(win, 2, 1, "%s", screen->desc);
/* max size of column headers */
for(i = 0; i < n; i++) {
--
2.33.1

View File

@@ -0,0 +1,28 @@
From ad907b1aff217fe3b431ae052025ba8ba6cacc01 Mon Sep 17 00:00:00 2001
From: Khem Raj <raj.khem@gmail.com>
Date: Wed, 20 Jun 2018 23:14:58 -0700
Subject: [PATCH] Fix build when S != B
Upstream-Status: Pending
Signed-off-by: Khem Raj <raj.khem@gmail.com>
---
src/Makefile.in | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/Makefile.in b/src/Makefile.in
index 4392c06..2c5cae4 100644
--- a/src/Makefile.in
+++ b/src/Makefile.in
@@ -69,7 +69,7 @@ install:
$(INSTALL) -d $(DESTDIR)$(bindir)
$(INSTALL) -m 0755 tiptop $(DESTDIR)$(bindir)
$(INSTALL) -d $(DESTDIR)$(man1dir)
- $(INSTALL) -m 0644 tiptop.1 $(DESTDIR)$(man1dir)
+ $(INSTALL) -m 0644 $(srcdir)/tiptop.1 $(DESTDIR)$(man1dir)
ln $(DESTDIR)$(bindir)/tiptop $(DESTDIR)$(bindir)/ptiptop
ln $(DESTDIR)$(man1dir)/tiptop.1 $(DESTDIR)$(man1dir)/ptiptop.1
--
2.17.1

View File

@@ -0,0 +1,28 @@
From 848983a30dc99248ec45632bfc31718716a86e9d Mon Sep 17 00:00:00 2001
From: Tomasz Buchert <tomasz@debian.org>
Date: Fri, 7 Jul 2017 21:15:58 +0200
Subject: [PATCH] Fix parallel build problems (by Adrian Bunk)
Taken from debian
Upstream-Status: Pending
Signed-off-by: Khem Raj <raj.khem@gmail.com>
---
src/Makefile.in | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/src/Makefile.in b/src/Makefile.in
index 32ab563..1993c9b 100644
--- a/src/Makefile.in
+++ b/src/Makefile.in
@@ -59,8 +59,9 @@ lex.yy.c: calc.lex
lex.yy.o: lex.yy.c
$(CC) $(CFLAGS) -I$(srcdir) -c lex.yy.c
+y.tab.c: y.tab.h
-y.tab.c y.tab.h: calc.y
+y.tab.h: calc.y
$(YACC) -d $(srcdir)/calc.y
y.tab.o: y.tab.c

View File

@@ -0,0 +1,32 @@
From 89dd9d8705408dccd5c5e47d22eba6fd6ec22b50 Mon Sep 17 00:00:00 2001
From: Tomasz Buchert <tomasz@debian.org>
Date: Thu, 9 Jul 2015 16:07:23 +0200
Subject: [PATCH] fix reproducibility of build process
The upstream Makefile sets macros that depend on
a particular platform where the package is built.
We don't set them which fixes the problem.
Taken from debian
Upstream-Status: Pending
Signed-off-by: Khem Raj <raj.khem@gmail.com>
---
src/Makefile.in | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/src/Makefile.in b/src/Makefile.in
index 1993c9b..4392c06 100644
--- a/src/Makefile.in
+++ b/src/Makefile.in
@@ -48,9 +48,7 @@ Makefile: Makefile.in ../config.status
version.o: version.c
- $(CC) $(CFLAGS) -DCOMPILE_HOST="\""`hostname`"\"" \
- -DCOMPILE_DATE="\"`date`\"" \
- -c $(srcdir)/version.c
+ $(CC) $(CFLAGS) -c $(srcdir)/version.c
lex.yy.c: calc.lex

View File

@@ -0,0 +1,33 @@
SUMMARY = "Hardware performance monitoring counters"
HOMEPAGE = "https://team.inria.fr/pacap/software/tiptop/"
LICENSE = "GPL-2.0-only"
LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263"
DEPENDS = "ncurses libxml2 bison-native flex-native"
SRC_URI = "http://files.inria.fr/pacap/${BPN}/${BP}.tar.gz \
file://0001-Fix-parallel-build-problems-by-Adrian-Bunk.patch \
file://0002-fix-reproducibility-of-build-process.patch \
file://0001-Fix-build-when-S-B.patch \
file://0001-Fix-a-lot-of-Werror-format-security-errors-with-mvwp.patch \
"
SRC_URI[sha256sum] = "51c4449c95bba34f16b429729c2f58431490665d8093efaa8643b2e1d1084182"
UPSTREAM_CHECK_URI = "https://team.inria.fr/pacap/software/tiptop/"
inherit autotools
EXTRA_OECONF = "CFLAGS="$CFLAGS -I${STAGING_INCDIR}/libxml2""
COMPATIBLE_HOST = "(i.86|x86_64|arm|powerpc|aarch64).*-linux"
do_configure:prepend () {
# Two bugs in configure.ac when cross-compiling.
# 1. The path of libxml2. Specify it in EXTRA_OECONF.
# 2. hw's value on other platforms. Replace it if the target is
# not i*86/x86_64.
if ( echo "${TARGET_ARCH}" | grep -q -e 'i.86' -e 'x86_64' ); then
sed -i 's= -I/usr/include/libxml2==' ${S}/configure.ac
else
sed -i 's/hw=`uname -m`/hw="unknown"/' ${S}/configure.ac
sed -i 's= -I/usr/include/libxml2==' ${S}/configure.ac
fi
}