added my Recipes
This commit is contained in:
@@ -0,0 +1,33 @@
|
||||
From d84807ec6d6f8511e4ec939a745d4d7bb35c3cfb Mon Sep 17 00:00:00 2001
|
||||
From: Khem Raj <raj.khem@gmail.com>
|
||||
Date: Fri, 4 Feb 2022 09:22:48 -0800
|
||||
Subject: [PATCH] tracers: Fix buffer overflow
|
||||
|
||||
Fixes
|
||||
| ../../../git/plugins/tracers/gstcpuusagecompute.c:106:9: error: 'fscanf' may overflow; destination buffer in argument 3 has size 8, but the corresponding specifier may require size 9 [-Werror,-Wfortify-sour
|
||||
ce]
|
||||
| cpu_name, &user[0], &nice[0], &system[0], &idle[0], &iowait, &irq,
|
||||
| ^
|
||||
|
||||
Upstream-Status: Pending
|
||||
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
||||
---
|
||||
plugins/tracers/gstcpuusagecompute.c | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/plugins/tracers/gstcpuusagecompute.c b/plugins/tracers/gstcpuusagecompute.c
|
||||
index 39255fb..00bae66 100644
|
||||
--- a/plugins/tracers/gstcpuusagecompute.c
|
||||
+++ b/plugins/tracers/gstcpuusagecompute.c
|
||||
@@ -69,7 +69,7 @@ gst_cpu_usage_compute (GstCPUUsage * cpu_usage)
|
||||
gint *idle;
|
||||
gint *idle_aux;
|
||||
|
||||
- gchar cpu_name[CPU_NAME_MAX_SIZE];
|
||||
+ gchar cpu_name[CPU_NAME_MAX_SIZE+1];
|
||||
gint iowait; /* Time waiting for I/O to complete */
|
||||
gint irq; /* Time servicing interrupts */
|
||||
gint softirq; /* Time servicing softirqs */
|
||||
--
|
||||
2.35.1
|
||||
|
||||
@@ -0,0 +1,36 @@
|
||||
SUMMARY = "Gst-Shark Tracers"
|
||||
DESCRIPTION = "Benchmarks and profiling tools for GStreamer"
|
||||
HOMEPAGE = "https://developer.ridgerun.com/wiki/index.php?title=GstShark"
|
||||
SECTION = "multimedia"
|
||||
LICENSE = "GPL-2.0-or-later"
|
||||
|
||||
LIC_FILES_CHKSUM = "file://COPYING;md5=e1caa368743492879002ad032445fa97"
|
||||
|
||||
DEPENDS = "gstreamer1.0 gstreamer1.0-plugins-base gstreamer1.0-plugins-bad "
|
||||
|
||||
SRCBRANCH ?= "master"
|
||||
|
||||
PV = "0.7.3.1"
|
||||
|
||||
SRCREV_base = "5413ef5475e5b70476c2480a75ca3746d91d4caf"
|
||||
SRCREV_common = "b64f03f6090245624608beb5d2fff335e23a01c0"
|
||||
SRCREV_FORMAT = "base_common"
|
||||
SRC_URI = " \
|
||||
git://github.com/RidgeRun/gst-shark.git;protocol=https;branch=${SRCBRANCH};name=base \
|
||||
git://gitlab.freedesktop.org/gstreamer/common.git;protocol=https;destsuffix=git/common;name=common;;branch=master \
|
||||
file://0001-tracers-Fix-buffer-overflow.patch \
|
||||
"
|
||||
|
||||
S = "${WORKDIR}/git"
|
||||
|
||||
EXTRA_OECONF += " \
|
||||
--disable-graphviz \
|
||||
--enable-gtk-doc=no \
|
||||
"
|
||||
|
||||
FILES:${PN} += "\
|
||||
${libdir}/gstreamer-1.0/libgstsharktracers.so \
|
||||
${libdir}/gstreamer-1.0/libgstsharktracers.la \
|
||||
"
|
||||
|
||||
inherit autotools gettext pkgconfig
|
||||
@@ -0,0 +1,22 @@
|
||||
From eaf51d6420c63713f62025583681007c3502d387 Mon Sep 17 00:00:00 2001
|
||||
From: Carlos <carlos.rodriguez@ridgerun.com>
|
||||
Date: Fri, 15 Dec 2017 10:14:05 -0600
|
||||
Subject: [PATCH] gstd:yocto compatibility
|
||||
|
||||
Upstream-Status: Pending
|
||||
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
||||
---
|
||||
gstd/Makefile.am | 2 +-
|
||||
3 files changed, 9 insertions(+), 3 deletions(-)
|
||||
|
||||
--- a/gstd/Makefile.am
|
||||
+++ b/gstd/Makefile.am
|
||||
@@ -74,7 +74,7 @@ gstd_CFLAGS = $(GST_CFLAGS) \
|
||||
-DGSTD_LOG_STATE_DIR=\"$(gstdlogstatedir)\" \
|
||||
-DGSTD_RUN_STATE_DIR=\"$(gstdrunstatedir)\"
|
||||
|
||||
-gstd_LDFLAGS = $(GST_LIBS) $(GIO_LIBS) $(GIO_UNIX_LIBS) $(GJSON_LIBS) $(LIBD_LIBS) -Wl,-rpath -Wl,$(libdir)
|
||||
+gstd_LDFLAGS = $(GST_LIBS) $(GIO_LIBS) $(GIO_UNIX_LIBS) $(GJSON_LIBS) $(LIBD_LIBS)
|
||||
gstd_LDADD = libgstd-core.la
|
||||
|
||||
gstdincludedir = $(includedir)/gstd
|
||||
@@ -0,0 +1,35 @@
|
||||
DESCRIPTION = "Gstreamer Daemon"
|
||||
SUMMARY = "GStreamer framework for controlling audio and video streaming using TCP connection messages"
|
||||
HOMEPAGE = "https://developer.ridgerun.com/wiki/index.php?title=Gstd-1.0"
|
||||
SECTION = "multimedia"
|
||||
LICENSE = "GPL-2.0-or-later"
|
||||
LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263"
|
||||
|
||||
DEPENDS = "gstreamer1.0 gstreamer1.0-plugins-base gstreamer1.0-plugins-bad gstreamer1.0-rtsp-server json-glib libdaemon jansson"
|
||||
|
||||
SRCBRANCH ?= "master"
|
||||
SRCREV = "a6621a5778b234651aa2adbbe304d906a3fa64d1"
|
||||
SRC_URI = "git://git@github.com/RidgeRun/gstd-1.x.git;protocol=https;branch=${SRCBRANCH} \
|
||||
file://0001-gstd-yocto-compatibility.patch \
|
||||
"
|
||||
S = "${WORKDIR}/git"
|
||||
|
||||
# Remove the +really when upstream version is > 1.0
|
||||
PV = "1.0+really0.8.0"
|
||||
|
||||
inherit autotools pkgconfig gettext gtk-doc
|
||||
|
||||
do_install:append() {
|
||||
rmdir ${D}${localstatedir}/run/${BPN} ${D}${localstatedir}/run \
|
||||
${D}${localstatedir}/log/${BPN} ${D}${localstatedir}/log
|
||||
rm -f ${D}${bindir}/gst-client ${D}${bindir}/gstd-client
|
||||
if ${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'true', 'false', d)}; then
|
||||
install -d ${D}${sysconfdir}/tmpfiles.d
|
||||
echo "d /run/${BPN} - - - -" \
|
||||
> ${D}${sysconfdir}/tmpfiles.d/${BPN}.conf
|
||||
echo "d /${localstatedir}/log/${BPN} 0755 root root -" \
|
||||
>> ${D}${sysconfdir}/tmpfiles.d/${BPN}.conf
|
||||
fi
|
||||
ln -sf gst-client-1.0 ${D}${bindir}/gst-client
|
||||
ln -sf gst-client-1.0 ${D}${bindir}/gstd-client
|
||||
}
|
||||
Reference in New Issue
Block a user