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,22 @@
|
||||
DESCRIPTION = "Ace is a code editor written in JavaScript."
|
||||
SUMMARY = "Ace is a code editor written in JavaScript. This repository has only generated files"
|
||||
|
||||
LICENSE = "BSD-3-Clause"
|
||||
LIC_FILES_CHKSUM = "file://LICENSE;md5=794d11c5219c59c9efa2487c2b4066b2"
|
||||
|
||||
SRC_URI = "git://github.com/ajaxorg/ace-builds.git;protocol=https;branch=master"
|
||||
|
||||
PV = "02.07.17+git"
|
||||
SRCREV = "812e2c56aed246931a667f16c28b096e34597016"
|
||||
|
||||
FILES:${PN} = "${datadir}/ace-builds"
|
||||
|
||||
S = "${WORKDIR}/git"
|
||||
|
||||
DEPENDS += "rsync-native"
|
||||
|
||||
do_install () {
|
||||
install -d ${D}/${datadir}/ace-builds/src-noconflict
|
||||
rsync -r --exclude=".*" ${S}/src-noconflict/* ${D}/${datadir}/ace-builds/src-noconflict
|
||||
}
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,60 @@
|
||||
Upstream-Status: Pending
|
||||
|
||||
upstream: not applicable
|
||||
author: pH5
|
||||
comment: Stage the native anthy helpers mkfiledic, mkdepgraph, mkworddic,
|
||||
comment: calctrans and proccorpus.
|
||||
|
||||
Index: anthy-9100h/mkanthydic/Makefile.am
|
||||
===================================================================
|
||||
--- anthy-9100h.orig/mkanthydic/Makefile.am
|
||||
+++ anthy-9100h/mkanthydic/Makefile.am
|
||||
@@ -3,7 +3,7 @@ noinst_SCRIPTS =
|
||||
CLEANFILES = anthy.dic
|
||||
INCLUDES = -I$(top_srcdir)/ -DSRCDIR=\"$(srcdir)\"
|
||||
|
||||
-noinst_PROGRAMS = mkfiledic
|
||||
+bin_PROGRAMS = mkfiledic
|
||||
mkfiledic_SOURCES = mkfiledic.c
|
||||
mkfiledic_LDADD = ../src-diclib/libdiclib.la
|
||||
|
||||
Index: anthy-9100h/depgraph/Makefile.am
|
||||
===================================================================
|
||||
--- anthy-9100h.orig/depgraph/Makefile.am
|
||||
+++ anthy-9100h/depgraph/Makefile.am
|
||||
@@ -9,7 +9,7 @@ CLEANFILES = anthy.dep
|
||||
EXTRA_DIST = indepword.txt $(DEPWORDS)
|
||||
|
||||
# Generate the dictionary
|
||||
-noinst_PROGRAMS = mkdepgraph
|
||||
+bin_PROGRAMS = mkdepgraph
|
||||
mkdepgraph_SOURCES = mkdepgraph.c
|
||||
mkdepgraph_LDADD = ../src-main/libanthy.la ../src-worddic/libanthydic.la
|
||||
|
||||
Index: anthy-9100h/mkworddic/Makefile.am
|
||||
===================================================================
|
||||
--- anthy-9100h.orig/mkworddic/Makefile.am
|
||||
+++ anthy-9100h/mkworddic/Makefile.am
|
||||
@@ -26,7 +26,8 @@ DIC_FILES = @top_srcdir@/alt-cannadic/gc
|
||||
@top_srcdir@/mkworddic/udict
|
||||
|
||||
# Generate the dictionary
|
||||
-noinst_PROGRAMS = mkworddic
|
||||
+#noinst_PROGRAMS = mkworddic
|
||||
+bin_PROGRAMS = mkworddic
|
||||
mkworddic_SOURCES = mkdic.c writewords.c mkudic.c calcfreq.c mkdic.h
|
||||
mkworddic_LDADD = ../src-worddic/libanthydic.la
|
||||
|
||||
Index: anthy-9100h/calctrans/Makefile.am
|
||||
===================================================================
|
||||
--- anthy-9100h.orig/calctrans/Makefile.am
|
||||
+++ anthy-9100h/calctrans/Makefile.am
|
||||
@@ -3,7 +3,7 @@ EXTRA_DIST =\
|
||||
corpus.3.txt corpus.4.txt corpus.5.txt\
|
||||
corpus_info weak_words
|
||||
|
||||
-noinst_PROGRAMS = calctrans proccorpus
|
||||
+bin_PROGRAMS = calctrans proccorpus
|
||||
INCLUDES = -I$(top_srcdir)/
|
||||
|
||||
calctrans_SOURCES = calctrans.c input_set.c input_set.h corpus.c
|
||||
@@ -0,0 +1,19 @@
|
||||
Upstream-Status: Pending
|
||||
|
||||
upstream: not applicable
|
||||
source: stolen from debian
|
||||
|
||||
Index: anthy-9100h/src-util/Makefile.am
|
||||
===================================================================
|
||||
--- anthy-9100h.orig/src-util/Makefile.am
|
||||
+++ anthy-9100h/src-util/Makefile.am
|
||||
@@ -8,7 +8,8 @@ ELISP_FILES = anthy.el anthy-dic.el anth
|
||||
anthy-isearch.el anthy-azik.el anthy-kyuri.el
|
||||
EXTRA_DIST = $(ELISP_FILES) typetab dic-tool-usage.txt anthy.i
|
||||
bin_PROGRAMS = anthy-dic-tool anthy-agent anthy-morphological-analyzer
|
||||
-ELCFILES = anthy.elc anthy-dic.elc anthy-azik.elc anthy-conf.elc anthy-isearch.elc anthy-kyuri.elc leim-list.elc
|
||||
+#ELCFILES = anthy.elc anthy-dic.elc anthy-azik.elc anthy-conf.elc anthy-isearch.elc anthy-kyuri.elc leim-list.elc
|
||||
+ELCFILES =
|
||||
if ELISP
|
||||
lisp_LISP = $(ELISP_FILES)
|
||||
endif
|
||||
@@ -0,0 +1,113 @@
|
||||
Upstream-Status: Pending
|
||||
|
||||
diff -Nurp anthy-9100h.org/calctrans/Makefile.am anthy-9100h/calctrans/Makefile.am
|
||||
--- anthy-9100h.org/calctrans/Makefile.am 2007-10-27 23:02:59.000000000 +0900
|
||||
+++ anthy-9100h/calctrans/Makefile.am 2014-11-11 17:14:42.152999991 +0900
|
||||
@@ -15,31 +15,31 @@ dict_source_files = anthy.cand_info anth
|
||||
|
||||
update_params:
|
||||
rm -f parsed_data2
|
||||
- ./proccorpus $(srcdir)/corpus.?.txt > parsed_data
|
||||
- ./calctrans parsed_data -o $(srcdir)/corpus_info
|
||||
- ./calctrans parsed_data -e -o $(srcdir)/weak_words
|
||||
+ proccorpus $(srcdir)/corpus.?.txt > parsed_data
|
||||
+ calctrans parsed_data -o $(srcdir)/corpus_info
|
||||
+ calctrans parsed_data -e -o $(srcdir)/weak_words
|
||||
make do_update_params
|
||||
|
||||
update_params0:
|
||||
rm -f parsed_data2
|
||||
- ./proccorpus $(srcdir)/corpus.0.txt > parsed_data
|
||||
- ./calctrans parsed_data -o $(srcdir)/corpus_info
|
||||
- ./calctrans parsed_data -e -o $(srcdir)/weak_words
|
||||
+ proccorpus $(srcdir)/corpus.0.txt > parsed_data
|
||||
+ calctrans parsed_data -o $(srcdir)/corpus_info
|
||||
+ calctrans parsed_data -e -o $(srcdir)/weak_words
|
||||
make do_update_params
|
||||
|
||||
update_params2:
|
||||
- ./proccorpus $(srcdir)/corpus.?.txt >> parsed_data2
|
||||
- ./calctrans parsed_data parsed_data2 -o $(srcdir)/corpus_info
|
||||
- ./calctrans parsed_data parsed_data2 -e -o $(srcdir)/weak_words
|
||||
+ proccorpus $(srcdir)/corpus.?.txt >> parsed_data2
|
||||
+ calctrans parsed_data parsed_data2 -o $(srcdir)/corpus_info
|
||||
+ calctrans parsed_data parsed_data2 -e -o $(srcdir)/weak_words
|
||||
make do_update_params
|
||||
|
||||
do_update_params:
|
||||
- ./calctrans -c $(srcdir)/corpus_info
|
||||
+ calctrans -c $(srcdir)/corpus_info
|
||||
rm -f $(dict_source_files)
|
||||
make $(dict_source_files)
|
||||
|
||||
-$(dict_source_files): $(srcdir)/corpus_info $(srcdir)/weak_words calctrans
|
||||
- ./calctrans -c $(srcdir)/corpus_info $(srcdir)/weak_words
|
||||
+$(dict_source_files): $(srcdir)/corpus_info $(srcdir)/weak_words
|
||||
+ calctrans -c $(srcdir)/corpus_info $(srcdir)/weak_words
|
||||
|
||||
noinst_DATA = $(dict_source_files)
|
||||
CLEANFILES = $(dict_source_files) parsed_data parsed_data2 anthy.feature_info
|
||||
diff -Nurp anthy-9100h.org/depgraph/Makefile.am anthy-9100h/depgraph/Makefile.am
|
||||
--- anthy-9100h.org/depgraph/Makefile.am 2008-11-29 21:46:14.000000000 +0900
|
||||
+++ anthy-9100h/depgraph/Makefile.am 2014-11-11 17:12:03.813999991 +0900
|
||||
@@ -9,11 +9,11 @@ CLEANFILES = anthy.dep
|
||||
EXTRA_DIST = indepword.txt $(DEPWORDS)
|
||||
|
||||
# Generate the dictionary
|
||||
-noinst_PROGRAMS = mkdepgraph
|
||||
-mkdepgraph_SOURCES = mkdepgraph.c
|
||||
-mkdepgraph_LDADD = ../src-main/libanthy.la ../src-worddic/libanthydic.la
|
||||
+#noinst_PROGRAMS = mkdepgraph
|
||||
+#mkdepgraph_SOURCES = mkdepgraph.c
|
||||
+#mkdepgraph_LDADD = ../src-main/libanthy.la ../src-worddic/libanthydic.la
|
||||
|
||||
-anthy.dep : mkdepgraph $(DEPWORDS)
|
||||
- ./mkdepgraph
|
||||
+anthy.dep : $(DEPWORDS)
|
||||
+ mkdepgraph
|
||||
|
||||
noinst_DATA = anthy.dep
|
||||
diff -Nurp anthy-9100h.org/mkanthydic/Makefile.am anthy-9100h/mkanthydic/Makefile.am
|
||||
--- anthy-9100h.org/mkanthydic/Makefile.am 2007-04-14 18:01:10.000000000 +0900
|
||||
+++ anthy-9100h/mkanthydic/Makefile.am 2014-11-11 17:10:34.792999991 +0900
|
||||
@@ -3,12 +3,12 @@ noinst_SCRIPTS =
|
||||
CLEANFILES = anthy.dic
|
||||
INCLUDES = -I$(top_srcdir)/ -DSRCDIR=\"$(srcdir)\"
|
||||
|
||||
-noinst_PROGRAMS = mkfiledic
|
||||
-mkfiledic_SOURCES = mkfiledic.c
|
||||
-mkfiledic_LDADD = ../src-diclib/libdiclib.la
|
||||
+#noinst_PROGRAMS = mkfiledic
|
||||
+#mkfiledic_SOURCES = mkfiledic.c
|
||||
+#mkfiledic_LDADD = ../src-diclib/libdiclib.la
|
||||
|
||||
-anthy.dic : mkfiledic ../mkworddic/anthy.wdic ../depgraph/anthy.dep ../calctrans/anthy.cand_info ../calctrans/anthy.trans_info ../calctrans/anthy.corpus_array ../calctrans/anthy.corpus_bucket
|
||||
- ./mkfiledic
|
||||
+anthy.dic : ../mkworddic/anthy.wdic ../depgraph/anthy.dep ../calctrans/anthy.cand_info ../calctrans/anthy.trans_info ../calctrans/anthy.corpus_array ../calctrans/anthy.corpus_bucket
|
||||
+ mkfiledic
|
||||
|
||||
|
||||
# To install
|
||||
diff -Nurp anthy-9100h.org/mkworddic/Makefile.am anthy-9100h/mkworddic/Makefile.am
|
||||
--- anthy-9100h.org/mkworddic/Makefile.am 2009-01-23 12:31:31.000000000 +0900
|
||||
+++ anthy-9100h/mkworddic/Makefile.am 2014-11-11 17:13:31.946999992 +0900
|
||||
@@ -26,14 +26,14 @@ DIC_FILES = @top_srcdir@/alt-cannadic/gc
|
||||
@top_srcdir@/mkworddic/udict
|
||||
|
||||
# Generate the dictionary
|
||||
-noinst_PROGRAMS = mkworddic
|
||||
-mkworddic_SOURCES = mkdic.c writewords.c mkudic.c calcfreq.c mkdic.h
|
||||
-mkworddic_LDADD = ../src-worddic/libanthydic.la
|
||||
+#noinst_PROGRAMS = mkworddic
|
||||
+#mkworddic_SOURCES = mkdic.c writewords.c mkudic.c calcfreq.c mkdic.h
|
||||
+#mkworddic_LDADD = ../src-worddic/libanthydic.la
|
||||
|
||||
noinst_DATA = anthy.wdic
|
||||
|
||||
-anthy.wdic : mkworddic $(DIC_FILES)
|
||||
- ./mkworddic -f ./dict.args
|
||||
+anthy.wdic : $(DIC_FILES)
|
||||
+ mkworddic -f ./dict.args
|
||||
|
||||
|
||||
# To install
|
||||
@@ -0,0 +1,46 @@
|
||||
DESCRIPTION="Anthy is a system for Japanese input method. It converts Hiragana text to Kana Kanji mixed text."
|
||||
HOMEPAGE = "http://anthy.sourceforge.jp"
|
||||
|
||||
LICENSE = "LGPL-2.1-only & GPL-2.0-only"
|
||||
LIC_FILES_CHKSUM = "file://COPYING;md5=11f384074d8e93e263b5664ef08a411a \
|
||||
file://alt-cannadic/COPYING;md5=c93c0550bd3173f4504b2cbd8991e50b \
|
||||
"
|
||||
|
||||
SRC_URI = "http://osdn.dl.sourceforge.jp/anthy/37536/anthy-9100h.tar.gz \
|
||||
file://not_build_elc.patch \
|
||||
file://2ch_t.patch \
|
||||
"
|
||||
|
||||
SRC_URI:append:class-target = " file://target-helpers.patch"
|
||||
SRC_URI:append:class-native = " file://native-helpers.patch"
|
||||
|
||||
SRC_URI[md5sum] = "1f558ff7ed296787b55bb1c6cf131108"
|
||||
SRC_URI[sha256sum] = "d256f075f018b4a3cb0d165ed6151fda4ba7db1621727e0eb54569b6e2275547"
|
||||
|
||||
DEPENDS:class-target = "anthy-native"
|
||||
RDEPENDS:${PN}:class-target = "libanthy0"
|
||||
|
||||
inherit autotools pkgconfig
|
||||
|
||||
PACKAGES += "${PN}-el libanthy0 libanthy-dev"
|
||||
|
||||
FILES:${PN}-dbg += "${libdir}/.debug"
|
||||
FILES:libanthy0 = "${libdir}/libanthy.so.* \
|
||||
${libdir}/libanthydic.so.* \
|
||||
${libdir}/libanthyinput.so.* \
|
||||
"
|
||||
|
||||
FILES:libanthy-dev = "${libdir}/libanthy*.la \
|
||||
${libdir}/libanthy*.a \
|
||||
${libdir}/libanthy*.so \
|
||||
${includedir}/anthy \
|
||||
${libdir}/pkgconfig/anthy.pc \
|
||||
"
|
||||
|
||||
FILES:${PN}-el = "${datadir}/emacs/*"
|
||||
FILES:${PN} = "${datadir}/* \
|
||||
${bindir}/* \
|
||||
${sysconfdir}/anthy-conf \
|
||||
"
|
||||
|
||||
BBCLASSEXTEND = "native"
|
||||
@@ -0,0 +1,37 @@
|
||||
From 7d76513b82a67e117d195a1b5a0d6c2e8591488b Mon Sep 17 00:00:00 2001
|
||||
From: Mingli Yu <mingli.yu@windriver.com>
|
||||
Date: Thu, 10 Oct 2024 13:58:38 +0800
|
||||
Subject: [PATCH] tests: Remove blocking_adaptation.cpp
|
||||
|
||||
The test failed to build with clang as below.
|
||||
../../../asio-1.30.2/src/tests/../../include/asio/execution/blocking_adaptation.hpp:216:13: error: call to 'query' is ambiguous
|
||||
216 | conditional_t<true, T, P>::query(static_cast<P&&>(p))
|
||||
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
../../../asio-1.30.2/src/tests/../../include/asio/execution/blocking_adaptation.hpp:213:29: note: in instantiation of exception specification for 'query<asio::execution::detail::blocking_adaptation::allowed_t<>>' requested here
|
||||
213 | static constexpr auto query(P&& p)
|
||||
|
|
||||
|
||||
We can add the case back once the above build failure resolved then.
|
||||
|
||||
Upstream-Status: Pending
|
||||
|
||||
Signed-off-by: Mingli Yu <mingli.yu@windriver.com>
|
||||
---
|
||||
src/tests/Makefile.am | 1 -
|
||||
1 file changed, 1 deletion(-)
|
||||
|
||||
diff --git a/src/tests/Makefile.am b/src/tests/Makefile.am
|
||||
index 04f8a03..eab2d56 100644
|
||||
--- a/src/tests/Makefile.am
|
||||
+++ b/src/tests/Makefile.am
|
||||
@@ -68,7 +68,6 @@ check_PROGRAMS = \
|
||||
unit/error \
|
||||
unit/execution/any_executor \
|
||||
unit/execution/blocking \
|
||||
- unit/execution/blocking_adaptation \
|
||||
unit/execution/context_as \
|
||||
unit/execution/executor \
|
||||
unit/execution/invocable_archetype \
|
||||
--
|
||||
2.34.1
|
||||
|
||||
@@ -0,0 +1,19 @@
|
||||
#!/bin/sh
|
||||
|
||||
ptestdir=$(dirname "$(readlink -f "$0")")
|
||||
cd "$ptestdir"/tests || exit
|
||||
|
||||
tests=$(find * -type f -executable)
|
||||
|
||||
rm -rf test.log
|
||||
|
||||
for f in $tests
|
||||
do
|
||||
if test -x ./"$f"; then
|
||||
if ./"$f" > test.log 2>&1; then
|
||||
echo "PASS: $f"
|
||||
else
|
||||
echo "FAIL: $f"
|
||||
fi
|
||||
fi
|
||||
done
|
||||
@@ -0,0 +1,40 @@
|
||||
SUMMARY = "Asio is C++ library for network and low-level I/O programming"
|
||||
DESCRIPTION = "Asio is a cross-platform C++ library for network and low-level \
|
||||
I/O programming that provides developers with a consistent asynchronous \
|
||||
model using a modern C++ approach."
|
||||
HOMEPAGE = "http://think-async.com/Asio"
|
||||
SECTION = "libs"
|
||||
LICENSE = "BSL-1.0"
|
||||
|
||||
DEPENDS = "openssl"
|
||||
|
||||
SRC_URI = "${SOURCEFORGE_MIRROR}/asio/${BP}.tar.bz2 \
|
||||
file://0001-tests-Remove-blocking_adaptation.cpp.patch \
|
||||
file://run-ptest \
|
||||
"
|
||||
|
||||
inherit autotools ptest
|
||||
|
||||
ALLOW_EMPTY:${PN} = "1"
|
||||
|
||||
LIC_FILES_CHKSUM = "file://COPYING;md5=2bfc909e030aeafefa72f764165b8d07"
|
||||
|
||||
SRC_URI[sha256sum] = "9f12cef05c0477eace9c68ccabd19f9e3a04b875d4768c323714cbd3a5fa3c2b"
|
||||
|
||||
PACKAGECONFIG ??= "boost"
|
||||
|
||||
PACKAGECONFIG[boost] = "--with-boost=${STAGING_LIBDIR},--without-boost,boost"
|
||||
|
||||
TESTDIR = "src/tests"
|
||||
do_compile_ptest() {
|
||||
echo 'buildtest-TESTS: $(check_PROGRAMS)' >> ${TESTDIR}/Makefile
|
||||
oe_runmake -C ${TESTDIR} buildtest-TESTS
|
||||
}
|
||||
|
||||
do_install_ptest() {
|
||||
install -d ${D}${PTEST_PATH}/tests
|
||||
# copy executables
|
||||
find ${B}/${TESTDIR}/unit -type f -executable -exec cp {} ${D}${PTEST_PATH}/tests/ \;
|
||||
}
|
||||
|
||||
BBCLASSEXTEND = "native nativesdk"
|
||||
@@ -0,0 +1,67 @@
|
||||
From ffc8ba8d324243a923abe48e9758adecb03d24a4 Mon Sep 17 00:00:00 2001
|
||||
From: Peter Kjellerstedt <pkj@axis.com>
|
||||
Date: Tue, 12 Feb 2019 21:25:23 +0100
|
||||
Subject: [PATCH] atop.daily, atop.init, atop-pm.sh: Avoid using bash
|
||||
|
||||
Avoid using bash and bashisms when not necesary. On some systems,
|
||||
e.g., embedded products, bash may not be available by default.
|
||||
|
||||
Upstream-Status: Submitted [https://github.com/Atoptool/atop/pull/50]
|
||||
Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
|
||||
---
|
||||
atop-pm.sh | 2 +-
|
||||
atop.daily | 4 ++--
|
||||
atop.init | 4 ++--
|
||||
3 files changed, 5 insertions(+), 5 deletions(-)
|
||||
|
||||
diff --git a/atop-pm.sh b/atop-pm.sh
|
||||
index 7f41a86..3ff4ab5 100755
|
||||
--- a/atop-pm.sh
|
||||
+++ b/atop-pm.sh
|
||||
@@ -1,4 +1,4 @@
|
||||
-#!/bin/bash
|
||||
+#!/bin/sh
|
||||
|
||||
case "$1" in
|
||||
pre) /usr/bin/systemctl stop atop
|
||||
diff --git a/atop.daily b/atop.daily
|
||||
index 57a9507..fe5a11b 100755
|
||||
--- a/atop.daily
|
||||
+++ b/atop.daily
|
||||
@@ -1,4 +1,4 @@
|
||||
-#!/bin/bash
|
||||
+#!/bin/sh
|
||||
|
||||
LOGOPTS="-R" # default options
|
||||
LOGINTERVAL=600 # default interval in seconds
|
||||
@@ -38,7 +38,7 @@ then
|
||||
|
||||
while ps -p `cat "$PIDFILE"` > /dev/null
|
||||
do
|
||||
- let CNT+=1
|
||||
+ CNT=$((CNT + 1))
|
||||
|
||||
if [ $CNT -gt 5 ]
|
||||
then
|
||||
diff --git a/atop.init b/atop.init
|
||||
index e6e11dc..03c3f02 100755
|
||||
--- a/atop.init
|
||||
+++ b/atop.init
|
||||
@@ -1,4 +1,4 @@
|
||||
-#!/bin/bash
|
||||
+#!/bin/sh
|
||||
#
|
||||
# atop Startup script for the Atop process logging in background
|
||||
#
|
||||
@@ -47,7 +47,7 @@ case "$1" in
|
||||
|
||||
while ps -p `cat $PIDFILE` > /dev/null
|
||||
do
|
||||
- let CNT+=1
|
||||
+ CNT=$((CNT + 1))
|
||||
|
||||
if [ $CNT -gt 5 ]
|
||||
then
|
||||
--
|
||||
2.12.0
|
||||
|
||||
@@ -0,0 +1,59 @@
|
||||
From d9498d10d0e8241749835dbc9fa229465d4fdfd7 Mon Sep 17 00:00:00 2001
|
||||
From: Kai Kang <kai.kang@windriver.com>
|
||||
Date: Wed, 6 Feb 2019 13:58:04 +0000
|
||||
Subject: [PATCH] Fix permissions
|
||||
|
||||
Update permissions of executable files that remove setuid bit and make
|
||||
everyone could read.
|
||||
|
||||
Upstream-Status: Inappropriate [embedded specific]
|
||||
Signed-off-by: Kai Kang <kai.kang@windriver.com>
|
||||
---
|
||||
Makefile | 10 +++++-----
|
||||
1 file changed, 5 insertions(+), 5 deletions(-)
|
||||
|
||||
diff --git a/Makefile b/Makefile
|
||||
index 3bf5929..1221ee4 100644
|
||||
--- a/Makefile
|
||||
+++ b/Makefile
|
||||
@@ -72,7 +72,7 @@ systemdinstall: genericinstall
|
||||
chmod 0644 $(DESTDIR)$(SYSDPATH)/atopacct.service
|
||||
cp atop.cronsystemd $(DESTDIR)$(CRNPATH)/atop
|
||||
cp atop-pm.sh $(DESTDIR)$(PMPATHD)
|
||||
- chmod 0711 $(DESTDIR)$(PMPATHD)/atop-pm.sh
|
||||
+ chmod 0755 $(DESTDIR)$(PMPATHD)/atop-pm.sh
|
||||
#
|
||||
# only when making on target system:
|
||||
#
|
||||
@@ -97,11 +97,11 @@ sysvinstall: genericinstall
|
||||
#
|
||||
if [ -d $(DESTDIR)$(PMPATH1) ]; \
|
||||
then cp 45atoppm $(DESTDIR)$(PMPATH1); \
|
||||
- chmod 0711 $(DESTDIR)$(PMPATH1)/45atoppm; \
|
||||
+ chmod 0755 $(DESTDIR)$(PMPATH1)/45atoppm; \
|
||||
fi
|
||||
if [ -d $(DESTDIR)$(PMPATH2) ]; \
|
||||
then cp 45atoppm $(DESTDIR)$(PMPATH2); \
|
||||
- chmod 0711 $(DESTDIR)$(PMPATH2)/45atoppm; \
|
||||
+ chmod 0755 $(DESTDIR)$(PMPATH2)/45atoppm; \
|
||||
fi
|
||||
#
|
||||
#
|
||||
@@ -145,7 +145,7 @@ genericinstall: atop atopacctd atopconvert
|
||||
#
|
||||
cp atop $(DESTDIR)$(BINPATH)/atop
|
||||
chown root $(DESTDIR)$(BINPATH)/atop
|
||||
- chmod 04711 $(DESTDIR)$(BINPATH)/atop
|
||||
+ chmod 0755 $(DESTDIR)$(BINPATH)/atop
|
||||
ln -sf atop $(DESTDIR)$(BINPATH)/atopsar
|
||||
cp atopacctd $(DESTDIR)$(SBINPATH)/atopacctd
|
||||
chown root $(DESTDIR)$(SBINPATH)/atopacctd
|
||||
@@ -159,7 +159,7 @@ genericinstall: atop atopacctd atopconvert
|
||||
chown root $(DESTDIR)$(BINPATH)/atopconvert
|
||||
chmod 0711 $(DESTDIR)$(BINPATH)/atopconvert
|
||||
cp atop.daily $(DESTDIR)$(SCRPATH)
|
||||
- chmod 0711 $(DESTDIR)$(SCRPATH)/atop.daily
|
||||
+ chmod 0755 $(DESTDIR)$(SCRPATH)/atop.daily
|
||||
cp man/atop.1 $(DESTDIR)$(MAN1PATH)
|
||||
cp man/atopsar.1 $(DESTDIR)$(MAN1PATH)
|
||||
cp man/atopconvert.1 $(DESTDIR)$(MAN1PATH)
|
||||
@@ -0,0 +1,34 @@
|
||||
From bdd068873ed0979027c21773939bdb18046a8756 Mon Sep 17 00:00:00 2001
|
||||
From: Kai Kang <kai.kang@windriver.com>
|
||||
Date: Wed, 6 Feb 2019 13:58:04 +0000
|
||||
Subject: [PATCH] sysvinit: Implement status
|
||||
|
||||
Implement the sub-command status.
|
||||
|
||||
Upstream-Status: Pending
|
||||
Signed-off-by: Kai Kang <kai.kang@windriver.com>
|
||||
---
|
||||
atop.init | 3 +++
|
||||
1 file changed, 3 insertions(+)
|
||||
|
||||
diff --git a/atop.init b/atop.init
|
||||
index e6e11dc..e7b226d 100755
|
||||
--- a/atop.init
|
||||
+++ b/atop.init
|
||||
@@ -18,6 +18,8 @@
|
||||
# Check existance of binaries
|
||||
[ -f /usr/bin/atop ] || exit 0
|
||||
|
||||
+[ -f /etc/init.d/functions ] && . /etc/init.d/functions
|
||||
+
|
||||
PIDFILE=/var/run/atop.pid
|
||||
RETVAL=0
|
||||
|
||||
@@ -63,6 +65,7 @@ case "$1" in
|
||||
;;
|
||||
|
||||
status)
|
||||
+ status atop
|
||||
;;
|
||||
|
||||
reload)
|
||||
@@ -0,0 +1 @@
|
||||
d root root 0755 /var/volatile/log/atop none
|
||||
@@ -0,0 +1 @@
|
||||
d /var/volatile/log/atop - - - -
|
||||
@@ -0,0 +1,62 @@
|
||||
SUMMARY = "Monitor for system resources and process activity"
|
||||
DESCRIPTION = "Atop is an ASCII full-screen performance monitor for Linux that \
|
||||
is capable of reporting the activity of all processes (even if processes have \
|
||||
finished during the interval), daily logging of system and process activity for \
|
||||
long-term analysis, highlighting overloaded system resources by using colors, \
|
||||
etc. At regular intervals, it shows system-level activity related to the CPU, \
|
||||
memory, swap, disks (including LVM) and network layers, and for every process \
|
||||
(and thread) it shows e.g. the CPU utilization, memory growth, disk \
|
||||
utilization, priority, username, state, and exit code."
|
||||
HOMEPAGE = "http://www.atoptool.nl"
|
||||
SECTION = "console/utils"
|
||||
|
||||
LICENSE = "GPL-2.0-only"
|
||||
LIC_FILES_CHKSUM = "file://COPYING;md5=393a5ca445f6965873eca0259a17f833"
|
||||
|
||||
DEPENDS = "ncurses zlib"
|
||||
|
||||
SRC_URI = "http://www.atoptool.nl/download/${BP}.tar.gz \
|
||||
${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'file://volatiles.atop.conf', 'file://volatiles.99_atop', d)} \
|
||||
file://fix-permissions.patch \
|
||||
file://sysvinit-implement-status.patch \
|
||||
file://0001-atop.daily-atop.init-atop-pm.sh-Avoid-using-bash.patch \
|
||||
"
|
||||
SRC_URI[md5sum] = "1077da884ed94f2bc3c81ac3ab970436"
|
||||
SRC_URI[sha256sum] = "be1c010a77086b7d98376fce96514afcd73c3f20a8d1fe01520899ff69a73d69"
|
||||
|
||||
CVE_STATUS[CVE-2011-3618] = "fixed-version: The CPE in the NVD database doesn't reflect correctly the vulnerable versions."
|
||||
|
||||
do_compile() {
|
||||
oe_runmake all
|
||||
}
|
||||
|
||||
do_install() {
|
||||
if ${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'true', 'false', d)}; then
|
||||
make DESTDIR=${D} VERS=${PV} SYSDPATH=${systemd_system_unitdir} \
|
||||
PMPATHD=${systemd_unitdir}/system-sleep systemdinstall
|
||||
install -d ${D}${sysconfdir}/tmpfiles.d
|
||||
install -m 644 ${WORKDIR}/volatiles.atop.conf ${D}${sysconfdir}/tmpfiles.d/atop.conf
|
||||
rm -f ${D}${systemd_system_unitdir}/atopacct.service
|
||||
else
|
||||
make DESTDIR=${D} VERS=${PV} sysvinstall
|
||||
install -d ${D}${sysconfdir}/default/volatiles
|
||||
install -m 644 ${WORKDIR}/volatiles.99_atop ${D}${sysconfdir}/default/volatiles/99_atop
|
||||
rm -f ${D}${sysconfdir}/init.d/atopacct
|
||||
fi
|
||||
|
||||
# /var/log/atop will be created in runtime
|
||||
rm -rf ${D}${localstatedir}/log
|
||||
rmdir --ignore-fail-on-non-empty ${D}${localstatedir}
|
||||
|
||||
# remove atopacct related files
|
||||
rm -rf ${D}${sbindir} ${D}${mandir}/man8
|
||||
}
|
||||
|
||||
inherit systemd
|
||||
|
||||
SYSTEMD_SERVICE:${PN} = "atop.service atopgpu.service"
|
||||
SYSTEMD_AUTO_ENABLE = "disable"
|
||||
|
||||
FILES:${PN} += "${systemd_unitdir}/system-sleep"
|
||||
|
||||
RDEPENDS:${PN} = "procps"
|
||||
@@ -0,0 +1,34 @@
|
||||
From e5ccf769c2dc7283b56a597fffdb5dc1558e3ce8 Mon Sep 17 00:00:00 2001
|
||||
From: Khem Raj <raj.khem@gmail.com>
|
||||
Date: Sat, 3 Sep 2022 01:23:28 -0700
|
||||
Subject: [PATCH] src/internal: Use __GLIBC__ to check for GNU extention
|
||||
implementation
|
||||
|
||||
__USE_GNU is defined by _GNU_SOURCE and configure explicitly sets this
|
||||
macro and it does have meaning on musl too, where it may have some level
|
||||
of GNU compatibility but strerror_r is not one of them. Therefore we
|
||||
have to check for libc implementation for this to be sure.
|
||||
|
||||
Upstream-Status: Pending
|
||||
|
||||
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
||||
---
|
||||
src/internal.c | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/src/internal.c b/src/internal.c
|
||||
index ef83b71..fb326fa 100644
|
||||
--- a/src/internal.c
|
||||
+++ b/src/internal.c
|
||||
@@ -431,7 +431,7 @@ char *cleanpath(char *path) {
|
||||
|
||||
const char *xstrerror(int errnum, char *buf, size_t len) {
|
||||
#ifdef HAVE_STRERROR_R
|
||||
-# ifdef __USE_GNU
|
||||
+# ifdef __GLIBC__
|
||||
/* Annoying linux specific API contract */
|
||||
return strerror_r(errnum, buf, len);
|
||||
# else
|
||||
--
|
||||
2.37.3
|
||||
|
||||
@@ -0,0 +1,31 @@
|
||||
From 8a277957a2579e7149c1850675441b288192077c Mon Sep 17 00:00:00 2001
|
||||
From: Jussi Kukkonen <jussi.kukkonen@intel.com>
|
||||
Date: Fri, 15 Jul 2016 10:04:48 +0300
|
||||
Subject: [PATCH] augeas: fix separate builddirs
|
||||
|
||||
Ensure that builds in separate builddirs (${B} != ${S}) correctly install the
|
||||
lenses files.
|
||||
|
||||
Upstream-Status: Pending
|
||||
|
||||
RP 2013/4/17
|
||||
|
||||
---
|
||||
Makefile.am | 4 ++--
|
||||
1 file changed, 2 insertions(+), 2 deletions(-)
|
||||
|
||||
diff --git a/Makefile.am b/Makefile.am
|
||||
index 87d511a..7710b3b 100644
|
||||
--- a/Makefile.am
|
||||
+++ b/Makefile.am
|
||||
@@ -5,8 +5,8 @@ ACLOCAL_AMFLAGS = -I gnulib/m4
|
||||
lensdir=$(datadir)/augeas/lenses/dist
|
||||
lenstestdir=$(datadir)/augeas/lenses/dist/tests
|
||||
|
||||
-dist_lens_DATA=$(wildcard lenses/*.aug)
|
||||
-dist_lenstest_DATA=$(wildcard lenses/tests/*.aug)
|
||||
+dist_lens_DATA=$(wildcard $(top_srcdir)/lenses/*.aug)
|
||||
+dist_lenstest_DATA=$(wildcard $(top_srcdir)lenses/tests/*.aug)
|
||||
|
||||
EXTRA_DIST=augeas.spec build/ac-aux/move-if-change Makefile.am HACKING.md
|
||||
|
||||
@@ -0,0 +1,36 @@
|
||||
SUMMARY = "Augeas configuration API"
|
||||
HOMEPAGE = "http://augeas.net/"
|
||||
BUGTRACKER = "https://fedorahosted.org/augeas/report/1"
|
||||
|
||||
LICENSE = "LGPL-2.1-or-later"
|
||||
LIC_FILES_CHKSUM = "file://COPYING;md5=bbb461211a33b134d42ed5ee802b37ff"
|
||||
|
||||
SRC_URI = "http://download.augeas.net/${BP}.tar.gz \
|
||||
file://sepbuildfix.patch \
|
||||
file://0001-src-internal-Use-__GLIBC__-to-check-for-GNU-extentio.patch \
|
||||
"
|
||||
SRC_URI[md5sum] = "74f1c7b8550f4e728486091f6b907175"
|
||||
SRC_URI[sha256sum] = "321942c9cc32185e2e9cb72d0a70eea106635b50269075aca6714e3ec282cb87"
|
||||
|
||||
DEPENDS = "readline libxml2"
|
||||
|
||||
inherit autotools pkgconfig
|
||||
|
||||
PACKAGES =+ "${PN}-lenses lib${BPN}"
|
||||
|
||||
FILES:${PN}-lenses = "${datadir}/augeas/lenses"
|
||||
FILES:lib${BPN} = "${libdir}/lib*${SOLIBS}"
|
||||
|
||||
RDEPENDS:lib${BPN} += "${PN}-lenses"
|
||||
RRECOMMENDS:lib${BPN} += "${PN}"
|
||||
|
||||
LEAD_SONAME = "libaugeas.so"
|
||||
|
||||
do_install:append() {
|
||||
rm -fr ${D}${datadir}/vim
|
||||
}
|
||||
|
||||
PACKAGECONFIG ??= "${@bb.utils.filter('DISTRO_FEATURES', 'selinux', d)}"
|
||||
PACKAGECONFIG[selinux] = "--with-selinux,--without-selinux,libselinux"
|
||||
|
||||
EXTRA_AUTORECONF += "-I ${S}/gnulib/m4"
|
||||
@@ -0,0 +1,86 @@
|
||||
From 6be1c45e1f7ee78499bdca76c25ec23a61317134 Mon Sep 17 00:00:00 2001
|
||||
From: Rui Costa <rui.ms.costa@ctw.bmwgroup.com>
|
||||
Date: Wed, 20 Mar 2024 14:58:27 +0000
|
||||
Subject: [PATCH] Remove cpp unittest compilation
|
||||
|
||||
Upstream-Status: Inappropriate [oe-specific]
|
||||
|
||||
---
|
||||
lang/c++/CMakeLists.txt | 61 -----------------------------------------
|
||||
1 file changed, 61 deletions(-)
|
||||
|
||||
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
||||
index 4a3793152..d94ba42d3 100644
|
||||
--- a/CMakeLists.txt
|
||||
+++ b/CMakeLists.txt
|
||||
@@ -131,70 +131,9 @@ set_target_properties (avrocpp_s PROPERTIES
|
||||
target_link_libraries (avrocpp ${Boost_LIBRARIES} ${SNAPPY_LIBRARIES})
|
||||
target_include_directories(avrocpp PRIVATE ${SNAPPY_INCLUDE_DIR})
|
||||
|
||||
-add_executable (precompile test/precompile.cc)
|
||||
-
|
||||
-target_link_libraries (precompile avrocpp_s ${Boost_LIBRARIES} ${SNAPPY_LIBRARIES})
|
||||
-
|
||||
-macro (gen file ns)
|
||||
- add_custom_command (OUTPUT ${file}.hh
|
||||
- COMMAND avrogencpp
|
||||
- -p -
|
||||
- -i ${CMAKE_CURRENT_SOURCE_DIR}/jsonschemas/${file}
|
||||
- -o ${file}.hh -n ${ns} -U
|
||||
- DEPENDS avrogencpp ${CMAKE_CURRENT_SOURCE_DIR}/jsonschemas/${file})
|
||||
- add_custom_target (${file}_hh DEPENDS ${file}.hh)
|
||||
-endmacro (gen)
|
||||
-
|
||||
-gen (empty_record empty)
|
||||
-gen (bigrecord testgen)
|
||||
-gen (bigrecord_r testgen_r)
|
||||
-gen (bigrecord2 testgen2)
|
||||
-gen (tweet testgen3)
|
||||
-gen (union_array_union uau)
|
||||
-gen (union_map_union umu)
|
||||
-gen (union_conflict uc)
|
||||
-gen (recursive rec)
|
||||
-gen (reuse ru)
|
||||
-gen (circulardep cd)
|
||||
-gen (tree1 tr1)
|
||||
-gen (tree2 tr2)
|
||||
-gen (crossref cr)
|
||||
-gen (primitivetypes pt)
|
||||
-gen (cpp_reserved_words cppres)
|
||||
-
|
||||
add_executable (avrogencpp impl/avrogencpp.cc)
|
||||
target_link_libraries (avrogencpp avrocpp_s ${Boost_LIBRARIES} ${SNAPPY_LIBRARIES})
|
||||
|
||||
-enable_testing()
|
||||
-
|
||||
-macro (unittest name)
|
||||
- add_executable (${name} test/${name}.cc)
|
||||
- target_link_libraries (${name} avrocpp ${Boost_LIBRARIES} ${SNAPPY_LIBRARIES})
|
||||
- add_test (NAME ${name} WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
|
||||
- COMMAND ${CMAKE_CURRENT_BINARY_DIR}/${name})
|
||||
-endmacro (unittest)
|
||||
-
|
||||
-unittest (buffertest)
|
||||
-unittest (unittest)
|
||||
-unittest (SchemaTests)
|
||||
-unittest (LargeSchemaTests)
|
||||
-unittest (CodecTests)
|
||||
-unittest (StreamTests)
|
||||
-unittest (SpecificTests)
|
||||
-unittest (DataFileTests)
|
||||
-unittest (JsonTests)
|
||||
-unittest (AvrogencppTests)
|
||||
-unittest (CompilerTests)
|
||||
-unittest (AvrogencppTestReservedWords)
|
||||
-
|
||||
-add_dependencies (AvrogencppTestReservedWords cpp_reserved_words_hh)
|
||||
-
|
||||
-add_dependencies (AvrogencppTests bigrecord_hh bigrecord_r_hh bigrecord2_hh
|
||||
- tweet_hh
|
||||
- union_array_union_hh union_map_union_hh union_conflict_hh
|
||||
- recursive_hh reuse_hh circulardep_hh tree1_hh tree2_hh crossref_hh
|
||||
- primitivetypes_hh empty_record_hh)
|
||||
-
|
||||
include (InstallRequiredSystemLibraries)
|
||||
|
||||
set (CPACK_PACKAGE_FILE_NAME "avrocpp-${AVRO_VERSION_MAJOR}")
|
||||
@@ -0,0 +1,84 @@
|
||||
From 86aa3f2333a9b8e6f1c631e6d5cb7296b6e8380b Mon Sep 17 00:00:00 2001
|
||||
From: Rui Costa <rui.ms.costa@ctw.bmwgroup.com>
|
||||
Date: Fri, 22 Mar 2024 13:27:38 +0000
|
||||
Subject: [PATCH] Add package configuration files
|
||||
|
||||
Upstream-Status: Pending
|
||||
|
||||
---
|
||||
lang/c++/CMakeLists.txt | 45 ++++++++++++++++++++++++------
|
||||
lang/c++/cmake/AvroCppConfig.cmake | 5 ++++
|
||||
2 files changed, 42 insertions(+), 8 deletions(-)
|
||||
create mode 100644 lang/c++/cmake/AvroCppConfig.cmake
|
||||
|
||||
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
||||
index d94ba42d3..4748b111d 100644
|
||||
--- a/CMakeLists.txt
|
||||
+++ b/CMakeLists.txt
|
||||
@@ -140,14 +140,18 @@ set (CPACK_PACKAGE_FILE_NAME "avrocpp-${AVRO_VERSION_MAJOR}")
|
||||
|
||||
include (CPack)
|
||||
|
||||
-install (TARGETS avrocpp avrocpp_s
|
||||
- LIBRARY DESTINATION lib
|
||||
- ARCHIVE DESTINATION lib
|
||||
- RUNTIME DESTINATION lib)
|
||||
-
|
||||
-install (TARGETS avrogencpp RUNTIME DESTINATION bin)
|
||||
-
|
||||
-install (DIRECTORY api/ DESTINATION include/avro
|
||||
+install (TARGETS avrocpp
|
||||
+ EXPORT AvroCppTargets
|
||||
+ LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
|
||||
+ ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
|
||||
+ RUNTIME DESTINATION ${CMAKE_INSTALL_LIBDIR}
|
||||
+ INCLUDES DESTINATION include)
|
||||
+
|
||||
+install (TARGETS avrogencpp
|
||||
+ EXPORT AvroCppTargets
|
||||
+ RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR})
|
||||
+
|
||||
+install (DIRECTORY api/ DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/avro
|
||||
FILES_MATCHING PATTERN *.hh)
|
||||
|
||||
if (NOT CMAKE_BUILD_TYPE)
|
||||
@@ -155,3 +159,28 @@ if (NOT CMAKE_BUILD_TYPE)
|
||||
"Choose the type of build, options are: None Debug Release RelWithDebInfo MinSizeRel."
|
||||
FORCE)
|
||||
endif (NOT CMAKE_BUILD_TYPE)
|
||||
+
|
||||
+# Create cmake config files
|
||||
+include(CMakePackageConfigHelpers)
|
||||
+write_basic_package_version_file(
|
||||
+ "${CMAKE_CURRENT_BINARY_DIR}/AvroCppConfigVersion.cmake"
|
||||
+ VERSION ${AVRO_VERSION_MAJOR}.${AVRO_VERSION_MINOR}.${AVRO_VERSION_PATCH}
|
||||
+ COMPATIBILITY AnyNewerVersion
|
||||
+)
|
||||
+
|
||||
+configure_file(cmake/AvroCppConfig.cmake
|
||||
+ "${CMAKE_CURRENT_BINARY_DIR}/AvroCppConfig.cmake"
|
||||
+ COPYONLY
|
||||
+)
|
||||
+
|
||||
+set(ConfigPackageLocation ${CMAKE_INSTALL_LIBDIR}/cmake/avrocpp)
|
||||
+install(EXPORT AvroCppTargets
|
||||
+ FILE AvroCppTargets.cmake
|
||||
+ NAMESPACE AvroCpp::
|
||||
+ DESTINATION ${ConfigPackageLocation}
|
||||
+)
|
||||
+install(FILES
|
||||
+ "cmake/AvroCppConfig.cmake"
|
||||
+ "${CMAKE_CURRENT_BINARY_DIR}/AvroCppConfigVersion.cmake"
|
||||
+ DESTINATION ${ConfigPackageLocation}
|
||||
+ COMPONENT Devel)
|
||||
diff --git a/cmake/AvroCppConfig.cmake b/cmake/AvroCppConfig.cmake
|
||||
new file mode 100644
|
||||
index 000000000..deb8aaa31
|
||||
--- /dev/null
|
||||
+++ b/cmake/AvroCppConfig.cmake
|
||||
@@ -0,0 +1,5 @@
|
||||
+include(CMakeFindDependencyMacro)
|
||||
+find_dependency(Boost 1.38 REQUIRED
|
||||
+ COMPONENTS filesystem iostreams program_options regex system)
|
||||
+
|
||||
+include("${CMAKE_CURRENT_LIST_DIR}/AvroCppTargets.cmake")
|
||||
@@ -0,0 +1,24 @@
|
||||
From 66c08ade24e4472b5af5dca48097ed9a2ec035ec Mon Sep 17 00:00:00 2001
|
||||
From: Rui Costa <rui.ms.costa@ctw.bmwgroup.com>
|
||||
Date: Fri, 5 Apr 2024 11:33:51 +0000
|
||||
Subject: [PATCH] Update CXX standard to CXX14
|
||||
|
||||
Upstream-Status: Inappropriate [oe-specific]
|
||||
|
||||
---
|
||||
lang/c++/CMakeLists.txt | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
||||
index 4748b111d..1e45c13d5 100644
|
||||
--- a/CMakeLists.txt
|
||||
+++ b/CMakeLists.txt
|
||||
@@ -21,7 +21,7 @@ cmake_minimum_required (VERSION 3.1)
|
||||
set (CMAKE_LEGACY_CYGWIN_WIN32 0)
|
||||
|
||||
if (NOT DEFINED CMAKE_CXX_STANDARD)
|
||||
- set(CMAKE_CXX_STANDARD 11)
|
||||
+ set(CMAKE_CXX_STANDARD 14)
|
||||
endif()
|
||||
|
||||
set(CMAKE_CXX_STANDARD_REQUIRED ON)
|
||||
@@ -0,0 +1,22 @@
|
||||
SUMMARY = "Apache Avro data serialization system."
|
||||
HOMEPAGE = "https://avro.apache.org/"
|
||||
SECTION = "libs"
|
||||
|
||||
LICENSE = "Apache-2.0"
|
||||
LIC_FILES_CHKSUM = "file://LICENSE;md5=43abf34d8b9908494f83c55d213a7f89"
|
||||
|
||||
DEPENDS = "boost zlib xz"
|
||||
|
||||
BRANCH = "branch-1.11"
|
||||
SRCREV = "35ff8b997738e4d983871902d47bfb67b3250734"
|
||||
SRC_URI = "git://github.com/apache/avro;branch=${BRANCH};protocol=https \
|
||||
file://0001-Remove-cpp-unittest-compilation.patch \
|
||||
file://0002-Add-package-configuration-files.patch \
|
||||
file://0003-Update-CXX-standard-to-CXX14.patch \
|
||||
"
|
||||
|
||||
S = "${WORKDIR}/git/lang/c++"
|
||||
|
||||
inherit cmake pkgconfig
|
||||
|
||||
BBCLASSEXTEND = "native nativesdk"
|
||||
@@ -0,0 +1,17 @@
|
||||
SUMMARY = "Apache Avro data serialization system."
|
||||
HOMEPAGE = "https://avro.apache.org/"
|
||||
SECTION = "libs"
|
||||
|
||||
LICENSE = "Apache-2.0"
|
||||
LIC_FILES_CHKSUM = "file://LICENSE;md5=6d502b41f76179fc84e536236f359cae"
|
||||
|
||||
DEPENDS = "jansson zlib xz"
|
||||
|
||||
BRANCH = "branch-1.11"
|
||||
SRCREV = "35ff8b997738e4d983871902d47bfb67b3250734"
|
||||
SRC_URI = "git://github.com/apache/avro;branch=${BRANCH};protocol=https \
|
||||
"
|
||||
|
||||
S = "${WORKDIR}/git/lang/c"
|
||||
|
||||
inherit cmake pkgconfig
|
||||
@@ -0,0 +1,37 @@
|
||||
SUMMARY = "A garbage collector for C and C++"
|
||||
|
||||
DESCRIPTION = "The Boehm-Demers-Weiser conservative garbage collector can be\
|
||||
used as a garbage collecting replacement for C malloc or C++ new. It allows\
|
||||
you to allocate memory basically as you normally would, without explicitly\
|
||||
deallocating memory that is no longer useful. The collector automatically\
|
||||
recycles memory when it determines that it can no longer be otherwise\
|
||||
accessed.\
|
||||
The collector is also used by a number of programming language\
|
||||
implementations that either use C as intermediate code, want to facilitate\
|
||||
easier interoperation with C libraries, or just prefer the simple collector\
|
||||
interface.\
|
||||
Alternatively, the garbage collector may be used as a leak detector for C\
|
||||
or C++ programs, though that is not its primary goal.\
|
||||
Empirically, this collector works with most unmodified C programs, simply\
|
||||
by replacing malloc with GC_malloc calls, replacing realloc with GC_realloc\
|
||||
calls, and removing free calls."
|
||||
|
||||
HOMEPAGE = "https://www.hboehm.info/gc/"
|
||||
SECTION = "devel"
|
||||
LICENSE = "MIT"
|
||||
LIC_FILES_CHKSUM = "file://README.QUICK;md5=dd27361ad00943bb27bc3e0589037075"
|
||||
|
||||
DEPENDS = "libatomic-ops"
|
||||
|
||||
SRCREV = "e340b2e869e02718de9c9d7fa440ef4b35785388"
|
||||
SRC_URI = "git://github.com/ivmai/bdwgc.git;branch=release-8_2;protocol=https"
|
||||
|
||||
S = "${WORKDIR}/git"
|
||||
|
||||
inherit autotools pkgconfig
|
||||
|
||||
EXTRA_OECONF += "--enable-cplusplus"
|
||||
|
||||
FILES:${PN}-doc = "${datadir}"
|
||||
|
||||
BBCLASSEXTEND = "native nativesdk"
|
||||
@@ -0,0 +1,25 @@
|
||||
SUMMARY = "[Boost::ext].SML (State Machine Language)"
|
||||
DESCRIPTION = "Your scalable C++14 one header only State Machine Library with no dependencies"
|
||||
HOMEPAGE = "https://github.com/boost-ext/sml"
|
||||
BUGTRACKER = "https://github.com/boost-ext/sml/issues"
|
||||
SECTION = "libs"
|
||||
LICENSE = "BSL-1.0"
|
||||
LIC_FILES_CHKSUM = "file://LICENSE.md;md5=e4224ccaecb14d942c71d31bef20d78c"
|
||||
|
||||
DEPENDS += "boost qemu-native"
|
||||
|
||||
SRC_URI = "git://github.com/boost-ext/sml.git;protocol=https;branch=master"
|
||||
SRCREV = "b7df6180d20422b2724d26007aebb24066f2a6a9"
|
||||
|
||||
S = "${WORKDIR}/git"
|
||||
|
||||
inherit cmake
|
||||
|
||||
# Building benchmarks takes a lot of time and requires additional headers (euml2.hpp)
|
||||
# Building examples fail with gcc-12
|
||||
EXTRA_OECMAKE:append = " -DSML_BUILD_BENCHMARKS:bool=OFF -DSML_BUILD_EXAMPLES=OFF"
|
||||
|
||||
# [boost::ext].XML is a header only C++ library, so the main package will be empty.
|
||||
ALLOW_EMPTY:${PN} = "1"
|
||||
|
||||
BBCLASSEXTEND = "nativesdk"
|
||||
@@ -0,0 +1,23 @@
|
||||
SUMMARY = "Resource monitor that shows usage and stats for processor, memory, disks, network and processes."
|
||||
HOMEPAGE = "https://github.com/aristocratos/btop"
|
||||
LICENSE = "Apache-2.0"
|
||||
LIC_FILES_CHKSUM = "file://LICENSE;md5=3b83ef96387f14655fc854ddc3c6bd57"
|
||||
SECTION = "console/utils"
|
||||
|
||||
SRC_URI = "git://github.com/aristocratos/btop.git;protocol=https;branch=main"
|
||||
SRCREV = "fd2a2acdad6fbaad76846cb5e802cf2ae022d670"
|
||||
|
||||
S = "${WORKDIR}/git"
|
||||
|
||||
inherit cmake
|
||||
|
||||
FILES:${PN} += " \
|
||||
${datadir}/icons \
|
||||
${datadir}/icons/hicolor \
|
||||
${datadir}/icons/hicolor/48x48 \
|
||||
${datadir}/icons/hicolor/scalable \
|
||||
${datadir}/icons/hicolor/48x48/apps \
|
||||
${datadir}/icons/hicolor/48x48/apps/btop.png \
|
||||
${datadir}/icons/hicolor/scalable/apps \
|
||||
${datadir}/icons/hicolor/scalable/apps/btop.svg \
|
||||
"
|
||||
@@ -0,0 +1,3 @@
|
||||
#!/bin/sh
|
||||
./arestest --gtest_filter=-*.Live* --gtest_print_time=0 | sed -E '/^\[ RUN/d ; s/\[ OK \]/PASS: / ; s/\[ DISABLED \]/SKIP: / ; s/\[ FAILED \]/FAIL: /'
|
||||
|
||||
@@ -0,0 +1,30 @@
|
||||
# Copyright (c) 2012-2014 LG Electronics, Inc.
|
||||
SUMMARY = "c-ares is a C library that resolves names asynchronously."
|
||||
HOMEPAGE = "http://daniel.haxx.se/projects/c-ares/"
|
||||
SECTION = "libs"
|
||||
LICENSE = "MIT"
|
||||
LIC_FILES_CHKSUM = "file://LICENSE.md;md5=fdbc58a6da11a9f68aa73c453818decc"
|
||||
|
||||
SRC_URI = "https://github.com/c-ares/c-ares/releases/download/cares-1_27_0/${BPN}-${PV}.tar.gz \
|
||||
file://run-ptest"
|
||||
SRC_URI[sha256sum] = "0a72be66959955c43e2af2fbd03418e82a2bd5464604ec9a62147e37aceb420b"
|
||||
|
||||
PACKAGECONFIG ?= "${@bb.utils.contains('PTEST_ENABLED', '1', 'tests', '', d)}"
|
||||
PACKAGECONFIG[manpages] = ""
|
||||
PACKAGECONFIG[tests] = "-DCARES_BUILD_TESTS=ON,-DCARES_BUILD_TESTS=OFF,googletest"
|
||||
|
||||
inherit cmake manpages pkgconfig ptest
|
||||
|
||||
EXTRA_OECMAKE = "-DCARES_STATIC=${@ 'ON' if d.getVar('DISABLE_STATIC') == '' else 'OFF' }"
|
||||
|
||||
do_install_ptest () {
|
||||
install -d ${D}${PTEST_PATH}
|
||||
install -m 0755 ${B}/bin/arestest ${D}${PTEST_PATH}
|
||||
install -m 0755 ${WORKDIR}/run-ptest ${D}${PTEST_PATH}
|
||||
}
|
||||
|
||||
PACKAGE_BEFORE_PN = "${PN}-utils"
|
||||
|
||||
FILES:${PN}-utils = "${bindir}"
|
||||
|
||||
BBCLASSEXTEND = "native nativesdk"
|
||||
@@ -0,0 +1,21 @@
|
||||
SUMMARY = "C-Periphery lib used to access GPIO, LED, PWM, SPI, I2C, MMIO, Serial"
|
||||
DESCRIPTION = "A C library for peripheral I/O (GPIO, LED, PWM, SPI, I2C, MMIO, Serial) in Linux"
|
||||
|
||||
HOMEPAGE = "https://github.com/vsergeev/c-periphery"
|
||||
|
||||
SECTION = "libs"
|
||||
|
||||
LICENSE = "MIT"
|
||||
LIC_FILES_CHKSUM = "file://LICENSE;md5=be30d45bdc453f70a494c149c2168289"
|
||||
|
||||
SRC_URI = "git://github.com/vsergeev/c-periphery;protocol=https;branch=master"
|
||||
SRCREV = "91f9678d2a35a3af3c633f20165bdde8bea32209"
|
||||
|
||||
S = "${WORKDIR}/git"
|
||||
|
||||
inherit cmake
|
||||
|
||||
EXTRA_OECMAKE = "-DBUILD_SHARED_LIBS=ON"
|
||||
|
||||
BBCLASSEXTEND = "native nativesdk"
|
||||
|
||||
@@ -0,0 +1,27 @@
|
||||
let compiler decide on copy elision
|
||||
Fixes compiler errors with clang
|
||||
| ../../frame-2.5.0/src/x11/device_x11.cpp:126:13: error: moving a temporary object prevents copy elision [-Werror,-Wpessimizing-move]
|
||||
| std::move(UniqueUFAxis(static_cast<oif::frame::UFAxis*>(axis)));
|
||||
| ^
|
||||
| ../../frame-2.5.0/src/x11/device_x11.cpp:126:13: note: remove std::move call here
|
||||
| std::move(UniqueUFAxis(static_cast<oif::frame::UFAxis*>(axis)));
|
||||
| ^~~~~~~~~~ ~
|
||||
| 1 error generated.
|
||||
|
||||
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
||||
Upstream-Status: Pending
|
||||
|
||||
Index: frame-2.5.0/src/x11/device_x11.cpp
|
||||
===================================================================
|
||||
--- frame-2.5.0.orig/src/x11/device_x11.cpp
|
||||
+++ frame-2.5.0/src/x11/device_x11.cpp
|
||||
@@ -122,8 +122,7 @@ UFDeviceX11::UFDeviceX11(Display* displa
|
||||
UFAxis_* axis = new UFAxis(type, valuator_info->min, valuator_info->max,
|
||||
valuator_info->resolution);
|
||||
|
||||
- axes_[type] =
|
||||
- std::move(UniqueUFAxis(static_cast<oif::frame::UFAxis*>(axis)));
|
||||
+ axes_[type] = UniqueUFAxis(static_cast<oif::frame::UFAxis*>(axis));
|
||||
|
||||
axis_map_[valuator_info->number] = type;
|
||||
|
||||
@@ -0,0 +1,29 @@
|
||||
SUMMARY = "Frame handles simultaneous touches"
|
||||
|
||||
HOMEPAGE = "https://launchpad.net/frame"
|
||||
|
||||
LICENSE = "GPL-3.0-only & LGPL-3.0-only"
|
||||
LIC_FILES_CHKSUM = " \
|
||||
file://COPYING;md5=e6a600fd5e1d9cbde2d983680233ad02 \
|
||||
file://COPYING.GPL3;md5=d32239bcb673463ab874e80d47fae504 \
|
||||
"
|
||||
|
||||
inherit autotools pkgconfig features_check
|
||||
|
||||
REQUIRED_DISTRO_FEATURES = "${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'opengl', '', d)}"
|
||||
|
||||
SRC_URI = "https://launchpad.net/${BPN}/trunk/v${PV}/+download/${BPN}-${PV}.tar.gz \
|
||||
file://pessimizing-move.patch"
|
||||
|
||||
UPSTREAM_CHECK_URI = "https://launchpad.net/frame/trunk"
|
||||
|
||||
SRC_URI[md5sum] = "02baa941091c5d198cd1623b3ad36e68"
|
||||
SRC_URI[sha256sum] = "cfb9ab52cdccd926f1822a457264d0014c7eb9f4600a72626063dd073b26256f"
|
||||
|
||||
PACKAGECONFIG ??= "${@bb.utils.filter('DISTRO_FEATURES', 'x11', d)}"
|
||||
PACKAGECONFIG[x11] = "--enable-x11, --disable-x11, libxi xext virtual/xserver"
|
||||
|
||||
PACKAGE_BEFORE_PN += "${PN}-test"
|
||||
FILES:${PN}-test = "${bindir}/frame-test*"
|
||||
|
||||
SECURITY_CFLAGS = "${SECURITY_NO_PIE_CFLAGS}"
|
||||
@@ -0,0 +1,45 @@
|
||||
From 1e48821ba109b00e9c2931f12aa206c4ef54fd71 Mon Sep 17 00:00:00 2001
|
||||
From: Khem Raj <raj.khem@gmail.com>
|
||||
Date: Mon, 24 Apr 2017 12:34:55 -0700
|
||||
Subject: [PATCH] libgeis: Compare the first character of string to null
|
||||
|
||||
gcc7 wants to be specific when it comes to comparing characters
|
||||
and strings
|
||||
|
||||
fixes
|
||||
|
||||
| ../../../../../../../workspace/sources/geis/libgeis/geis_v1.c: In function '_v1_subscribe_device':
|
||||
| ../../../../../../../workspace/sources/geis/libgeis/geis_v1.c:613:20: error: comparison between pointer and zero character constant [-Werror=pointer-compare]
|
||||
|
||||
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
||||
---
|
||||
Upstream-Status: Pending
|
||||
|
||||
libgeis/geis_v1.c | 4 ++--
|
||||
1 file changed, 2 insertions(+), 2 deletions(-)
|
||||
|
||||
diff --git a/libgeis/geis_v1.c b/libgeis/geis_v1.c
|
||||
index 67045ee..07c0851 100644
|
||||
--- a/libgeis/geis_v1.c
|
||||
+++ b/libgeis/geis_v1.c
|
||||
@@ -610,7 +610,7 @@ _v1_subscribe_device(GeisInstance instance,
|
||||
const char **gesture_list)
|
||||
{
|
||||
GeisStatus result = GEIS_UNKNOWN_ERROR;
|
||||
- if (gesture_list == GEIS_ALL_GESTURES)
|
||||
+ if (gesture_list[0][0] == GEIS_ALL_GESTURES)
|
||||
{
|
||||
geis_debug("subscribing device %d for all gestures", device_id);
|
||||
}
|
||||
@@ -757,7 +757,7 @@ geis_unsubscribe(GeisInstance instance,
|
||||
GeisGestureType *gesture_list)
|
||||
{
|
||||
GeisStatus status = GEIS_STATUS_NOT_SUPPORTED;
|
||||
- if (gesture_list == GEIS_ALL_GESTURES)
|
||||
+ if (gesture_list[0] == GEIS_ALL_GESTURES)
|
||||
{
|
||||
status = geis_subscription_deactivate(instance->subscription);
|
||||
}
|
||||
--
|
||||
2.12.2
|
||||
|
||||
@@ -0,0 +1,690 @@
|
||||
From 05fe9751dfb370b0fb726e95bc36674468116db4 Mon Sep 17 00:00:00 2001
|
||||
From: Khem Raj <raj.khem@gmail.com>
|
||||
Date: Fri, 2 Sep 2022 16:57:51 -0700
|
||||
Subject: [PATCH] provide function declaration with prototypes
|
||||
|
||||
Fixes build with clang-15+
|
||||
|
||||
Upstream-Status: Pending
|
||||
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
||||
---
|
||||
libgeis/backend/grail/geis_grail_window_grab.c | 2 +-
|
||||
libgeis/backend/grail/geis_ugsubscription_store.c | 2 +-
|
||||
libgeis/backend/grail/geis_ugsubscription_store.h | 2 +-
|
||||
libgeis/backend/test_fixture/geis_backend_test_fixture.c | 4 ++--
|
||||
libgeis/geis.c | 2 +-
|
||||
libgeis/geis_backend_multiplexor.c | 4 ++--
|
||||
libgeis/geis_backend_multiplexor.h | 2 +-
|
||||
libgeis/geis_class.c | 2 +-
|
||||
libgeis/geis_class.h | 2 +-
|
||||
libgeis/geis_device.c | 2 +-
|
||||
libgeis/geis_device.h | 2 +-
|
||||
libgeis/geis_event_queue.c | 2 +-
|
||||
libgeis/geis_event_queue.h | 2 +-
|
||||
libgeis/geis_filter.c | 2 +-
|
||||
libgeis/geis_filter.h | 2 +-
|
||||
libgeis/geis_filterable.c | 2 +-
|
||||
libgeis/geis_filterable.h | 2 +-
|
||||
libgeis/geis_frame.c | 2 +-
|
||||
libgeis/geis_frame.h | 2 +-
|
||||
libgeis/geis_group.c | 2 +-
|
||||
libgeis/geis_group.h | 2 +-
|
||||
libgeis/geis_region.c | 2 +-
|
||||
libgeis/geis_region.h | 2 +-
|
||||
libgeis/geis_touch.c | 2 +-
|
||||
libgeis/geis_touch.h | 2 +-
|
||||
libgeis/server/geis_dbus_client_proxy.c | 2 +-
|
||||
libgeis/server/geis_dbus_proxy_box.c | 2 +-
|
||||
libgeis/server/geis_dbus_proxy_box.h | 2 +-
|
||||
libs/geis-dbus/geis_dbus_dispatcher.c | 2 +-
|
||||
libs/geis-util/geis_logging.c | 2 +-
|
||||
testsuite/geis1/check_gesture_attrs.c | 2 +-
|
||||
testsuite/geis1/check_gesture_types.c | 2 +-
|
||||
testsuite/geis1/check_instance.c | 2 +-
|
||||
testsuite/geis1/check_subscription.c | 2 +-
|
||||
testsuite/geis2/check_attr.c | 2 +-
|
||||
testsuite/geis2/check_class.c | 2 +-
|
||||
testsuite/geis2/check_config.c | 2 +-
|
||||
testsuite/geis2/check_device.c | 2 +-
|
||||
testsuite/geis2/check_error_codes.c | 2 +-
|
||||
testsuite/geis2/check_event.c | 2 +-
|
||||
testsuite/geis2/check_filter.c | 2 +-
|
||||
testsuite/geis2/check_frame.c | 2 +-
|
||||
testsuite/geis2/check_geis_new.c | 2 +-
|
||||
testsuite/geis2/check_general_types.c | 2 +-
|
||||
testsuite/geis2/check_region.c | 2 +-
|
||||
testsuite/geis2/check_subscription.c | 2 +-
|
||||
tools/geis-server/geis-server.c | 2 +-
|
||||
47 files changed, 49 insertions(+), 49 deletions(-)
|
||||
|
||||
diff --git a/libgeis/backend/grail/geis_grail_window_grab.c b/libgeis/backend/grail/geis_grail_window_grab.c
|
||||
index 003adee..f8480ac 100644
|
||||
--- a/libgeis/backend/grail/geis_grail_window_grab.c
|
||||
+++ b/libgeis/backend/grail/geis_grail_window_grab.c
|
||||
@@ -49,7 +49,7 @@ static const GeisFloat _geis_grail_window_grab_store_growth_factor = 1.7;
|
||||
|
||||
|
||||
static GeisGrailWindowGrabStore
|
||||
-_window_grab_allocate()
|
||||
+_window_grab_allocate(void)
|
||||
{
|
||||
GeisGrailWindowGrabStore wgs = malloc(sizeof(struct GeisGrailWindowGrabStore));
|
||||
if (!wgs)
|
||||
diff --git a/libgeis/backend/grail/geis_ugsubscription_store.c b/libgeis/backend/grail/geis_ugsubscription_store.c
|
||||
index bb1f0bb..cb7e620 100644
|
||||
--- a/libgeis/backend/grail/geis_ugsubscription_store.c
|
||||
+++ b/libgeis/backend/grail/geis_ugsubscription_store.c
|
||||
@@ -42,7 +42,7 @@ static const GeisFloat _geis_grail_ugsubscription_store_growth_factor = 1.7;
|
||||
* Creates a new, empty grail subscription store.
|
||||
*/
|
||||
GeisUGSubscriptionStore
|
||||
-geis_ugsubscription_store_new()
|
||||
+geis_ugsubscription_store_new(void)
|
||||
{
|
||||
GeisUGSubscriptionStore store = geis_bag_new(sizeof(struct GeisUGSubscription),
|
||||
_geis_grail_ugsubscription_store_default_size,
|
||||
diff --git a/libgeis/backend/grail/geis_ugsubscription_store.h b/libgeis/backend/grail/geis_ugsubscription_store.h
|
||||
index a93e1b6..06273ef 100644
|
||||
--- a/libgeis/backend/grail/geis_ugsubscription_store.h
|
||||
+++ b/libgeis/backend/grail/geis_ugsubscription_store.h
|
||||
@@ -41,7 +41,7 @@ typedef GeisBag GeisUGSubscriptionStore;
|
||||
* @returns a pointer to a valid store, or NULL to indicate failure.
|
||||
*/
|
||||
GeisUGSubscriptionStore
|
||||
-geis_ugsubscription_store_new();
|
||||
+geis_ugsubscription_store_new(void);
|
||||
|
||||
/**
|
||||
* Destroys a grail subscription store.
|
||||
diff --git a/libgeis/backend/test_fixture/geis_backend_test_fixture.c b/libgeis/backend/test_fixture/geis_backend_test_fixture.c
|
||||
index 5912acb..099cde4 100644
|
||||
--- a/libgeis/backend/test_fixture/geis_backend_test_fixture.c
|
||||
+++ b/libgeis/backend/test_fixture/geis_backend_test_fixture.c
|
||||
@@ -434,7 +434,7 @@ _token_free_subscription_pdata(GeisBackendToken gbtoken GEIS_UNUSED,
|
||||
}
|
||||
|
||||
__attribute__((constructor))
|
||||
-static void _register_test_fixture()
|
||||
+static void _register_test_fixture(void)
|
||||
{
|
||||
geis_register_backend(GEIS_INIT_MOCK_BACKEND,
|
||||
sizeof(struct GeisBackendTestFixture),
|
||||
@@ -444,6 +444,6 @@ static void _register_test_fixture()
|
||||
|
||||
/* A dummy routine to force linkage of this module without dlopening it */
|
||||
void
|
||||
-geis_include_backend_test_fixture()
|
||||
+geis_include_backend_test_fixture(void)
|
||||
{
|
||||
}
|
||||
diff --git a/libgeis/geis.c b/libgeis/geis.c
|
||||
index 4290d19..3f7bd12 100644
|
||||
--- a/libgeis/geis.c
|
||||
+++ b/libgeis/geis.c
|
||||
@@ -402,7 +402,7 @@ geis_filterable_attribute_foreach(Geis geis,
|
||||
* Creates a new empty Geis API instance.
|
||||
*/
|
||||
static Geis
|
||||
-geis_new_empty()
|
||||
+geis_new_empty(void)
|
||||
{
|
||||
geis_error_clear(NULL);
|
||||
Geis geis = calloc(1, sizeof(struct _Geis));
|
||||
diff --git a/libgeis/geis_backend_multiplexor.c b/libgeis/geis_backend_multiplexor.c
|
||||
index 3f80080..0f76198 100644
|
||||
--- a/libgeis/geis_backend_multiplexor.c
|
||||
+++ b/libgeis/geis_backend_multiplexor.c
|
||||
@@ -60,7 +60,7 @@ struct _GeisBackendMultiplexor
|
||||
* Creates a new container for callback info.
|
||||
*/
|
||||
static CallbackInfoBag
|
||||
-_callback_info_bag_new()
|
||||
+_callback_info_bag_new(void)
|
||||
{
|
||||
CallbackInfoBag cbib = calloc(1, sizeof(struct CallbackInfoBag));
|
||||
if (!cbib)
|
||||
@@ -209,7 +209,7 @@ _callback_info_bag_release(CallbackInfoBag cbib, int fd)
|
||||
* Creates a new backend multiplexor.
|
||||
*/
|
||||
GeisBackendMultiplexor
|
||||
-geis_backend_multiplexor_new()
|
||||
+geis_backend_multiplexor_new(void)
|
||||
{
|
||||
GeisBackendMultiplexor mx = calloc(1, sizeof(struct _GeisBackendMultiplexor));
|
||||
if (!mx)
|
||||
diff --git a/libgeis/geis_backend_multiplexor.h b/libgeis/geis_backend_multiplexor.h
|
||||
index ff4c318..8e7102e 100644
|
||||
--- a/libgeis/geis_backend_multiplexor.h
|
||||
+++ b/libgeis/geis_backend_multiplexor.h
|
||||
@@ -74,7 +74,7 @@ typedef void (*GeisBackendFdEventCallback)(int fd,
|
||||
/**
|
||||
* Constructs a new back end multiplexor.
|
||||
*/
|
||||
-GeisBackendMultiplexor geis_backend_multiplexor_new();
|
||||
+GeisBackendMultiplexor geis_backend_multiplexor_new(void);
|
||||
|
||||
/**
|
||||
* A reasonable default value for the max_events_per_pump parameter to
|
||||
diff --git a/libgeis/geis_class.c b/libgeis/geis_class.c
|
||||
index e889e4b..5c26a87 100644
|
||||
--- a/libgeis/geis_class.c
|
||||
+++ b/libgeis/geis_class.c
|
||||
@@ -46,7 +46,7 @@ static const int gesture_class_bag_growth_constant = 2;
|
||||
* Creates a new class bag,
|
||||
*/
|
||||
GeisGestureClassBag
|
||||
-geis_gesture_class_bag_new()
|
||||
+geis_gesture_class_bag_new(void)
|
||||
{
|
||||
GeisGestureClassBag bag = calloc(1, sizeof(struct _GeisGestureClassBag));
|
||||
if (!bag)
|
||||
diff --git a/libgeis/geis_class.h b/libgeis/geis_class.h
|
||||
index 1d60998..724c353 100644
|
||||
--- a/libgeis/geis_class.h
|
||||
+++ b/libgeis/geis_class.h
|
||||
@@ -35,7 +35,7 @@ typedef struct _GeisGestureClassBag *GeisGestureClassBag;
|
||||
/**
|
||||
* Creates a new class bag,
|
||||
*/
|
||||
-GeisGestureClassBag geis_gesture_class_bag_new();
|
||||
+GeisGestureClassBag geis_gesture_class_bag_new(void);
|
||||
|
||||
/**
|
||||
* Destroys a gesture class bag.
|
||||
diff --git a/libgeis/geis_device.c b/libgeis/geis_device.c
|
||||
index 1f61fc1..ff3216b 100644
|
||||
--- a/libgeis/geis_device.c
|
||||
+++ b/libgeis/geis_device.c
|
||||
@@ -44,7 +44,7 @@ static const int device_bag_growth_constant = 2;
|
||||
|
||||
|
||||
GeisDeviceBag
|
||||
-geis_device_bag_new()
|
||||
+geis_device_bag_new(void)
|
||||
{
|
||||
GeisDeviceBag bag = calloc(1, sizeof(struct _GeisDeviceBag));
|
||||
if (!bag)
|
||||
diff --git a/libgeis/geis_device.h b/libgeis/geis_device.h
|
||||
index c411e54..707943b 100644
|
||||
--- a/libgeis/geis_device.h
|
||||
+++ b/libgeis/geis_device.h
|
||||
@@ -35,7 +35,7 @@ typedef struct _GeisDeviceBag *GeisDeviceBag;
|
||||
/**
|
||||
* Creates a new device bag,
|
||||
*/
|
||||
-GeisDeviceBag geis_device_bag_new();
|
||||
+GeisDeviceBag geis_device_bag_new(void);
|
||||
|
||||
/**
|
||||
* Destroys a device bag.
|
||||
diff --git a/libgeis/geis_event_queue.c b/libgeis/geis_event_queue.c
|
||||
index 0b7d0fb..f357683 100644
|
||||
--- a/libgeis/geis_event_queue.c
|
||||
+++ b/libgeis/geis_event_queue.c
|
||||
@@ -50,7 +50,7 @@ struct _GeisEventQueue
|
||||
* Creates a new Geis Event queue.
|
||||
*/
|
||||
GeisEventQueue
|
||||
-geis_event_queue_new()
|
||||
+geis_event_queue_new(void)
|
||||
{
|
||||
GeisEventQueue queue = calloc(1, sizeof(struct _GeisEventQueue));
|
||||
if (!queue)
|
||||
diff --git a/libgeis/geis_event_queue.h b/libgeis/geis_event_queue.h
|
||||
index e4c186d..5f3da1d 100644
|
||||
--- a/libgeis/geis_event_queue.h
|
||||
+++ b/libgeis/geis_event_queue.h
|
||||
@@ -41,7 +41,7 @@ typedef struct _GeisEventQueue *GeisEventQueue;
|
||||
/**
|
||||
* Creates a new Geis Event queue.
|
||||
*/
|
||||
-GeisEventQueue geis_event_queue_new();
|
||||
+GeisEventQueue geis_event_queue_new(void);
|
||||
|
||||
/**
|
||||
* Destroys a Geis Event queue.
|
||||
diff --git a/libgeis/geis_filter.c b/libgeis/geis_filter.c
|
||||
index 4fe5da6..83d65a8 100644
|
||||
--- a/libgeis/geis_filter.c
|
||||
+++ b/libgeis/geis_filter.c
|
||||
@@ -57,7 +57,7 @@ static GeisSize s_filter_oid = 0;
|
||||
* Creates a new filter bag,
|
||||
*/
|
||||
GeisFilterBag
|
||||
-geis_filter_bag_new()
|
||||
+geis_filter_bag_new(void)
|
||||
{
|
||||
GeisFilterBag bag = calloc(1, sizeof(struct _GeisFilterBag));
|
||||
if (!bag)
|
||||
diff --git a/libgeis/geis_filter.h b/libgeis/geis_filter.h
|
||||
index 7b613bf..f825bb7 100644
|
||||
--- a/libgeis/geis_filter.h
|
||||
+++ b/libgeis/geis_filter.h
|
||||
@@ -42,7 +42,7 @@ typedef GeisFilter *GeisFilterIterator;
|
||||
/**
|
||||
* Creates a new filter bag,
|
||||
*/
|
||||
-GeisFilterBag geis_filter_bag_new();
|
||||
+GeisFilterBag geis_filter_bag_new(void);
|
||||
|
||||
/**
|
||||
* Destroys a filter bag.
|
||||
diff --git a/libgeis/geis_filterable.c b/libgeis/geis_filterable.c
|
||||
index 57bd4ac..5fb4b0c 100644
|
||||
--- a/libgeis/geis_filterable.c
|
||||
+++ b/libgeis/geis_filterable.c
|
||||
@@ -40,7 +40,7 @@ struct FilterableAttributeBag
|
||||
* Constructs a new filterable attribute bag.
|
||||
*/
|
||||
FilterableAttributeBag
|
||||
-geis_filterable_attribute_bag_new()
|
||||
+geis_filterable_attribute_bag_new(void)
|
||||
{
|
||||
FilterableAttributeBag bag = calloc(1, sizeof(struct FilterableAttributeBag));
|
||||
if (!bag)
|
||||
diff --git a/libgeis/geis_filterable.h b/libgeis/geis_filterable.h
|
||||
index 6d400fc..63c563d 100644
|
||||
--- a/libgeis/geis_filterable.h
|
||||
+++ b/libgeis/geis_filterable.h
|
||||
@@ -86,7 +86,7 @@ geis_filterable_attribute_init(GeisFilterableAttribute fa,
|
||||
* Constructs a new filterable attribute bag.
|
||||
*/
|
||||
FilterableAttributeBag
|
||||
-geis_filterable_attribute_bag_new();
|
||||
+geis_filterable_attribute_bag_new(void);
|
||||
|
||||
/**
|
||||
* Destroys a filterable attribute bag.
|
||||
diff --git a/libgeis/geis_frame.c b/libgeis/geis_frame.c
|
||||
index ebe11a1..068d9aa 100644
|
||||
--- a/libgeis/geis_frame.c
|
||||
+++ b/libgeis/geis_frame.c
|
||||
@@ -57,7 +57,7 @@ struct _GeisFrameSet
|
||||
* Creates a new, empty frame set.
|
||||
*/
|
||||
GeisFrameSet
|
||||
-geis_frameset_new()
|
||||
+geis_frameset_new(void)
|
||||
{
|
||||
GeisFrameSet frameset = calloc(1, sizeof(struct _GeisFrameSet));
|
||||
if (!frameset)
|
||||
diff --git a/libgeis/geis_frame.h b/libgeis/geis_frame.h
|
||||
index e0d1eb6..4a4b0ba 100644
|
||||
--- a/libgeis/geis_frame.h
|
||||
+++ b/libgeis/geis_frame.h
|
||||
@@ -32,7 +32,7 @@ typedef struct _GeisFrameSet *GeisFrameSet;
|
||||
/**
|
||||
* Creates a new, empty frame set.
|
||||
*/
|
||||
-GeisFrameSet geis_frameset_new();
|
||||
+GeisFrameSet geis_frameset_new(void);
|
||||
|
||||
/**
|
||||
* Destroys a frame set and all framees contained in it.
|
||||
diff --git a/libgeis/geis_group.c b/libgeis/geis_group.c
|
||||
index 0829bd4..4c51a39 100644
|
||||
--- a/libgeis/geis_group.c
|
||||
+++ b/libgeis/geis_group.c
|
||||
@@ -42,7 +42,7 @@ struct _GeisGroupSet
|
||||
* Creates a new, empty group set.
|
||||
*/
|
||||
GeisGroupSet
|
||||
-geis_groupset_new()
|
||||
+geis_groupset_new(void)
|
||||
{
|
||||
GeisGroupSet groupset = calloc(1, sizeof(struct _GeisGroupSet));
|
||||
if (!groupset)
|
||||
diff --git a/libgeis/geis_group.h b/libgeis/geis_group.h
|
||||
index 76e0efc..c44ce62 100644
|
||||
--- a/libgeis/geis_group.h
|
||||
+++ b/libgeis/geis_group.h
|
||||
@@ -31,7 +31,7 @@
|
||||
/**
|
||||
* Creates a new, empty group set.
|
||||
*/
|
||||
-GeisGroupSet geis_groupset_new();
|
||||
+GeisGroupSet geis_groupset_new(void);
|
||||
|
||||
/**
|
||||
* Destroys a group set and all groups contained in it.
|
||||
diff --git a/libgeis/geis_region.c b/libgeis/geis_region.c
|
||||
index fc8cc1e..18181cb 100644
|
||||
--- a/libgeis/geis_region.c
|
||||
+++ b/libgeis/geis_region.c
|
||||
@@ -52,7 +52,7 @@ static const int region_bag_growth_constant = 2;
|
||||
* Constructs a region bag.
|
||||
*/
|
||||
GeisRegionBag
|
||||
-geis_region_bag_new()
|
||||
+geis_region_bag_new(void)
|
||||
{
|
||||
GeisRegionBag bag = calloc(1, sizeof(struct _GeisRegionBag));
|
||||
if (!bag)
|
||||
diff --git a/libgeis/geis_region.h b/libgeis/geis_region.h
|
||||
index 53a52b8..18d908f 100644
|
||||
--- a/libgeis/geis_region.h
|
||||
+++ b/libgeis/geis_region.h
|
||||
@@ -49,7 +49,7 @@ typedef struct _GeisRegionBag *GeisRegionBag;
|
||||
/**
|
||||
* Creates a new region bag.
|
||||
*/
|
||||
-GeisRegionBag geis_region_bag_new();
|
||||
+GeisRegionBag geis_region_bag_new(void);
|
||||
|
||||
/**
|
||||
* Destroys a region bag.
|
||||
diff --git a/libgeis/geis_touch.c b/libgeis/geis_touch.c
|
||||
index 74d1b3e..be0f1a7 100644
|
||||
--- a/libgeis/geis_touch.c
|
||||
+++ b/libgeis/geis_touch.c
|
||||
@@ -43,7 +43,7 @@ struct _GeisTouchSet
|
||||
* Creates a new, empty touch set.
|
||||
*/
|
||||
GeisTouchSet
|
||||
-geis_touchset_new()
|
||||
+geis_touchset_new(void)
|
||||
{
|
||||
GeisTouchSet touchset = calloc(1, sizeof(struct _GeisTouchSet));
|
||||
if (!touchset)
|
||||
diff --git a/libgeis/geis_touch.h b/libgeis/geis_touch.h
|
||||
index 62af610..b64c755 100644
|
||||
--- a/libgeis/geis_touch.h
|
||||
+++ b/libgeis/geis_touch.h
|
||||
@@ -30,7 +30,7 @@
|
||||
/**
|
||||
* Creates a new, empty touch set.
|
||||
*/
|
||||
-GeisTouchSet geis_touchset_new();
|
||||
+GeisTouchSet geis_touchset_new(void);
|
||||
|
||||
/**
|
||||
* Destroys a touch set and all touches contained in it.
|
||||
diff --git a/libgeis/server/geis_dbus_client_proxy.c b/libgeis/server/geis_dbus_client_proxy.c
|
||||
index 3f1af47..65f229b 100644
|
||||
--- a/libgeis/server/geis_dbus_client_proxy.c
|
||||
+++ b/libgeis/server/geis_dbus_client_proxy.c
|
||||
@@ -52,7 +52,7 @@ struct GeisDBusClientProxy
|
||||
* failure.
|
||||
*/
|
||||
GeisDBusClientProxy
|
||||
-_client_proxy_allocate()
|
||||
+_client_proxy_allocate(void)
|
||||
{
|
||||
GeisDBusClientProxy proxy = calloc(1, sizeof(struct GeisDBusClientProxy));
|
||||
return proxy;
|
||||
diff --git a/libgeis/server/geis_dbus_proxy_box.c b/libgeis/server/geis_dbus_proxy_box.c
|
||||
index 4c7752a..f129bc3 100644
|
||||
--- a/libgeis/server/geis_dbus_proxy_box.c
|
||||
+++ b/libgeis/server/geis_dbus_proxy_box.c
|
||||
@@ -49,7 +49,7 @@ struct GeisDBusProxyBox
|
||||
* Constructs a %GeisDBusProxyBox.
|
||||
*/
|
||||
GeisDBusProxyBox
|
||||
-geis_dbus_proxy_box_new()
|
||||
+geis_dbus_proxy_box_new(void)
|
||||
{
|
||||
GeisDBusProxyBox box = calloc(1, sizeof(struct GeisDBusProxyBox));
|
||||
if (!box)
|
||||
diff --git a/libgeis/server/geis_dbus_proxy_box.h b/libgeis/server/geis_dbus_proxy_box.h
|
||||
index d8a70f5..47e84b7 100644
|
||||
--- a/libgeis/server/geis_dbus_proxy_box.h
|
||||
+++ b/libgeis/server/geis_dbus_proxy_box.h
|
||||
@@ -47,7 +47,7 @@ typedef struct GeisDBusProxyBoxNode *GeisDBusProxyBoxIterator;
|
||||
* @returns a valid %GeisDBusProxyBox or NULL on failure.
|
||||
*/
|
||||
GeisDBusProxyBox
|
||||
-geis_dbus_proxy_box_new();
|
||||
+geis_dbus_proxy_box_new(void);
|
||||
|
||||
/**
|
||||
* Destroys a %GeisDBusProxyBox.
|
||||
diff --git a/libs/geis-dbus/geis_dbus_dispatcher.c b/libs/geis-dbus/geis_dbus_dispatcher.c
|
||||
index 10c4134..d8a3f9d 100644
|
||||
--- a/libs/geis-dbus/geis_dbus_dispatcher.c
|
||||
+++ b/libs/geis-dbus/geis_dbus_dispatcher.c
|
||||
@@ -82,7 +82,7 @@ struct GeisDBusDispatcher
|
||||
* assumption that if you're creating a bag you're going to use it.
|
||||
*/
|
||||
static GeisDBusWatchBag
|
||||
-_geis_dbus_watch_bag_new()
|
||||
+_geis_dbus_watch_bag_new(void)
|
||||
{
|
||||
GeisDBusWatchBag bag = calloc(1, sizeof(struct GeisDBusWatchBag));
|
||||
if (!bag)
|
||||
diff --git a/libs/geis-util/geis_logging.c b/libs/geis-util/geis_logging.c
|
||||
index a02077b..030a591 100644
|
||||
--- a/libs/geis-util/geis_logging.c
|
||||
+++ b/libs/geis-util/geis_logging.c
|
||||
@@ -31,7 +31,7 @@ static const char *error_marker = "error";
|
||||
|
||||
|
||||
static int
|
||||
-reporting_level()
|
||||
+reporting_level(void)
|
||||
{
|
||||
char *level = getenv("GEIS_DEBUG");
|
||||
if (level)
|
||||
diff --git a/testsuite/geis1/check_gesture_attrs.c b/testsuite/geis1/check_gesture_attrs.c
|
||||
index 2228d2f..d990c7c 100644
|
||||
--- a/testsuite/geis1/check_gesture_attrs.c
|
||||
+++ b/testsuite/geis1/check_gesture_attrs.c
|
||||
@@ -169,7 +169,7 @@ END_TEST
|
||||
|
||||
|
||||
Suite *
|
||||
-geis1_gesture_attrs_new()
|
||||
+geis1_gesture_attrs_new(void)
|
||||
{
|
||||
Suite *s = suite_create("geis1_gesture_attrs");
|
||||
TCase *test;
|
||||
diff --git a/testsuite/geis1/check_gesture_types.c b/testsuite/geis1/check_gesture_types.c
|
||||
index 3492062..980f8fb 100644
|
||||
--- a/testsuite/geis1/check_gesture_types.c
|
||||
+++ b/testsuite/geis1/check_gesture_types.c
|
||||
@@ -62,7 +62,7 @@ START_TEST(gesture_types)
|
||||
END_TEST
|
||||
|
||||
Suite *
|
||||
-geis1_gesture_types_new()
|
||||
+geis1_gesture_types_new(void)
|
||||
{
|
||||
Suite *s = suite_create("geis1_gesture_types");
|
||||
TCase *test;
|
||||
diff --git a/testsuite/geis1/check_instance.c b/testsuite/geis1/check_instance.c
|
||||
index ac897ab..584abfd 100644
|
||||
--- a/testsuite/geis1/check_instance.c
|
||||
+++ b/testsuite/geis1/check_instance.c
|
||||
@@ -44,7 +44,7 @@ END_TEST
|
||||
|
||||
|
||||
Suite *
|
||||
-geis1_instance_suite_new()
|
||||
+geis1_instance_suite_new(void)
|
||||
{
|
||||
TCase *create;
|
||||
Suite *s = suite_create("geis1_instance_suite");
|
||||
diff --git a/testsuite/geis1/check_subscription.c b/testsuite/geis1/check_subscription.c
|
||||
index 0797337..e69c332 100644
|
||||
--- a/testsuite/geis1/check_subscription.c
|
||||
+++ b/testsuite/geis1/check_subscription.c
|
||||
@@ -146,7 +146,7 @@ END_TEST
|
||||
|
||||
|
||||
Suite *
|
||||
-geis1_subscription_new()
|
||||
+geis1_subscription_new(void)
|
||||
{
|
||||
Suite *s = suite_create("geis1_subscription");
|
||||
TCase *test;
|
||||
diff --git a/testsuite/geis2/check_attr.c b/testsuite/geis2/check_attr.c
|
||||
index 9e01219..58c8ebc 100644
|
||||
--- a/testsuite/geis2/check_attr.c
|
||||
+++ b/testsuite/geis2/check_attr.c
|
||||
@@ -42,7 +42,7 @@ END_TEST
|
||||
|
||||
/* boilerplate */
|
||||
Suite *
|
||||
-geis2_attr_suite_new()
|
||||
+geis2_attr_suite_new(void)
|
||||
{
|
||||
Suite *s = suite_create("geis2_attr");
|
||||
|
||||
diff --git a/testsuite/geis2/check_class.c b/testsuite/geis2/check_class.c
|
||||
index ca7accd..b60d827 100644
|
||||
--- a/testsuite/geis2/check_class.c
|
||||
+++ b/testsuite/geis2/check_class.c
|
||||
@@ -92,7 +92,7 @@ END_TEST
|
||||
|
||||
/* boilerplate */
|
||||
Suite *
|
||||
-geis2_gesture_class_suite_new()
|
||||
+geis2_gesture_class_suite_new(void)
|
||||
{
|
||||
TCase *gesture_class;
|
||||
TCase *usage;
|
||||
diff --git a/testsuite/geis2/check_config.c b/testsuite/geis2/check_config.c
|
||||
index a9fc9c1..03b3137 100644
|
||||
--- a/testsuite/geis2/check_config.c
|
||||
+++ b/testsuite/geis2/check_config.c
|
||||
@@ -48,7 +48,7 @@ END_TEST
|
||||
|
||||
/* boilerplate */
|
||||
Suite *
|
||||
-geis2_config_suite_new()
|
||||
+geis2_config_suite_new(void)
|
||||
{
|
||||
Suite *s = suite_create("geis2_configuration");
|
||||
|
||||
diff --git a/testsuite/geis2/check_device.c b/testsuite/geis2/check_device.c
|
||||
index 8b3b7be..9583cb5 100644
|
||||
--- a/testsuite/geis2/check_device.c
|
||||
+++ b/testsuite/geis2/check_device.c
|
||||
@@ -99,7 +99,7 @@ END_TEST
|
||||
|
||||
/* boilerplate */
|
||||
Suite *
|
||||
-geis2_device_suite_new()
|
||||
+geis2_device_suite_new(void)
|
||||
{
|
||||
TCase *device;
|
||||
TCase *usage;
|
||||
diff --git a/testsuite/geis2/check_error_codes.c b/testsuite/geis2/check_error_codes.c
|
||||
index 9c7508d..57e7fc7 100644
|
||||
--- a/testsuite/geis2/check_error_codes.c
|
||||
+++ b/testsuite/geis2/check_error_codes.c
|
||||
@@ -20,7 +20,7 @@ END_TEST
|
||||
|
||||
/* boilerplate */
|
||||
Suite *
|
||||
-geis2_error_codes_suite_new()
|
||||
+geis2_error_codes_suite_new(void)
|
||||
{
|
||||
Suite *s = suite_create("geis2_error_codes");
|
||||
|
||||
diff --git a/testsuite/geis2/check_event.c b/testsuite/geis2/check_event.c
|
||||
index 8ecda1d..c752a30 100644
|
||||
--- a/testsuite/geis2/check_event.c
|
||||
+++ b/testsuite/geis2/check_event.c
|
||||
@@ -43,7 +43,7 @@ END_TEST
|
||||
|
||||
/* boilerplate */
|
||||
Suite *
|
||||
-geis2_event_suite_new()
|
||||
+geis2_event_suite_new(void)
|
||||
{
|
||||
Suite *s = suite_create("geis2_event");
|
||||
|
||||
diff --git a/testsuite/geis2/check_filter.c b/testsuite/geis2/check_filter.c
|
||||
index 3272a2a..afa23e5 100644
|
||||
--- a/testsuite/geis2/check_filter.c
|
||||
+++ b/testsuite/geis2/check_filter.c
|
||||
@@ -67,7 +67,7 @@ END_TEST
|
||||
|
||||
/* boilerplate */
|
||||
Suite *
|
||||
-geis2_filter_suite_new()
|
||||
+geis2_filter_suite_new(void)
|
||||
{
|
||||
TCase *filter;
|
||||
TCase *usage;
|
||||
diff --git a/testsuite/geis2/check_frame.c b/testsuite/geis2/check_frame.c
|
||||
index dce6faf..3ea3db0 100644
|
||||
--- a/testsuite/geis2/check_frame.c
|
||||
+++ b/testsuite/geis2/check_frame.c
|
||||
@@ -172,7 +172,7 @@ END_TEST
|
||||
|
||||
/* boilerplate */
|
||||
Suite *
|
||||
-geis2_gesture_frame_suite_new()
|
||||
+geis2_gesture_frame_suite_new(void)
|
||||
{
|
||||
Suite *s = suite_create("geis2_gesture_frame");
|
||||
TCase *gesture_frame;
|
||||
diff --git a/testsuite/geis2/check_geis_new.c b/testsuite/geis2/check_geis_new.c
|
||||
index 1fb8de2..36cd3e9 100644
|
||||
--- a/testsuite/geis2/check_geis_new.c
|
||||
+++ b/testsuite/geis2/check_geis_new.c
|
||||
@@ -32,7 +32,7 @@ END_TEST
|
||||
|
||||
/* boilerplate */
|
||||
Suite *
|
||||
-geis2_geis_new_suite_new()
|
||||
+geis2_geis_new_suite_new(void)
|
||||
{
|
||||
Suite *s = suite_create("geis2_geis_init");
|
||||
|
||||
diff --git a/testsuite/geis2/check_general_types.c b/testsuite/geis2/check_general_types.c
|
||||
index 79e29bb..0f463d4 100644
|
||||
--- a/testsuite/geis2/check_general_types.c
|
||||
+++ b/testsuite/geis2/check_general_types.c
|
||||
@@ -20,7 +20,7 @@ END_TEST
|
||||
|
||||
/* boilerplate */
|
||||
Suite *
|
||||
-geis2_general_types_suite_new()
|
||||
+geis2_general_types_suite_new(void)
|
||||
{
|
||||
Suite *s = suite_create("geis2_general_types");
|
||||
TCase *create;
|
||||
diff --git a/testsuite/geis2/check_region.c b/testsuite/geis2/check_region.c
|
||||
index 3e64e0c..606350a 100644
|
||||
--- a/testsuite/geis2/check_region.c
|
||||
+++ b/testsuite/geis2/check_region.c
|
||||
@@ -48,7 +48,7 @@ END_TEST
|
||||
|
||||
/* boilerplate */
|
||||
Suite *
|
||||
-geis2_region_suite_new()
|
||||
+geis2_region_suite_new(void)
|
||||
{
|
||||
Suite *s = suite_create("geis2_region");
|
||||
TCase *creation;
|
||||
diff --git a/testsuite/geis2/check_subscription.c b/testsuite/geis2/check_subscription.c
|
||||
index a45c4ad..17a6779 100644
|
||||
--- a/testsuite/geis2/check_subscription.c
|
||||
+++ b/testsuite/geis2/check_subscription.c
|
||||
@@ -161,7 +161,7 @@ END_TEST
|
||||
|
||||
/* boilerplate */
|
||||
Suite *
|
||||
-geis2_subscription_suite_new()
|
||||
+geis2_subscription_suite_new(void)
|
||||
{
|
||||
TCase *create;
|
||||
TCase *usage;
|
||||
diff --git a/tools/geis-server/geis-server.c b/tools/geis-server/geis-server.c
|
||||
index 97c8b99..6600d8f 100644
|
||||
--- a/tools/geis-server/geis-server.c
|
||||
+++ b/tools/geis-server/geis-server.c
|
||||
@@ -23,7 +23,7 @@
|
||||
|
||||
|
||||
int
|
||||
-main()
|
||||
+main(void)
|
||||
{
|
||||
GeisStatus status;
|
||||
|
||||
--
|
||||
2.37.3
|
||||
|
||||
@@ -0,0 +1,16 @@
|
||||
Upstream-Status: Pending
|
||||
|
||||
--- geis-2.2.17/libgeis/geis_subscription.c.orig 2016-06-17 12:04:21.062938443 -0400
|
||||
+++ geis-2.2.17/libgeis/geis_subscription.c 2016-06-17 12:05:02.934939172 -0400
|
||||
@@ -237,9 +237,10 @@
|
||||
GeisSize i;
|
||||
for (i = 0; i < bag->sub_store_size; ++i)
|
||||
{
|
||||
- if (bag->sub_store[i])
|
||||
+ if (bag->sub_store[i]) {
|
||||
_subscription_unref(bag->sub_store[i]);
|
||||
bag->sub_store[i] = NULL;
|
||||
+ }
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,59 @@
|
||||
SUMMARY = "An implementation of the GEIS interface"
|
||||
DESCRIPTION = "An implementation of the GEIS (Gesture Engine Interface and Support) \
|
||||
interface\
|
||||
GEIS is a library for applications and toolkit programmers which \
|
||||
provides a consistent platform independent interface for any \
|
||||
system-wide input gesture recognition mechanism."
|
||||
|
||||
HOMEPAGE = "https://launchpad.net/geis"
|
||||
|
||||
LICENSE = "GPL-3.0-only & LGPL-3.0-only"
|
||||
LIC_FILES_CHKSUM = " \
|
||||
file://COPYING;md5=6a6a8e020838b23406c81b19c1d46df6 \
|
||||
file://COPYING.GPL;md5=f27defe1e96c2e1ecd4e0c9be8967949 \
|
||||
"
|
||||
|
||||
inherit autotools pkgconfig python3native lib_package features_check
|
||||
|
||||
REQUIRED_DISTRO_FEATURES = "x11 opengl"
|
||||
|
||||
DEPENDS += "grail dbus-glib python3 virtual/libx11 libxext libxi libxcb dbus frame"
|
||||
|
||||
SRC_URI = "https://launchpad.net/${BPN}/trunk/${PV}/+download/${BPN}-${PV}.tar.xz \
|
||||
file://fix-indentation-for-gcc6.patch \
|
||||
file://0001-libgeis-Compare-the-first-character-of-string-to-nul.patch \
|
||||
file://0001-provide-function-declaration-with-prototypes.patch \
|
||||
"
|
||||
|
||||
UPSTREAM_CHECK_URI = "https://launchpad.net/geis/trunk"
|
||||
|
||||
SRC_URI[md5sum] = "2ff9d76a3ea5794516bb02c9d1924faf"
|
||||
SRC_URI[sha256sum] = "8a60f5683852094038904e690d23cc5a90a980fc52da67f0f28890baa25c70eb"
|
||||
|
||||
EXTRA_OECONF = "--disable-integration-tests"
|
||||
|
||||
FILES:${PN}-bin = "${bindir}"
|
||||
RDEPENDS:${PN}-bin = " \
|
||||
python3-compression \
|
||||
python3-core \
|
||||
python3-crypt \
|
||||
python3-ctypes \
|
||||
python3-fcntl \
|
||||
python3-misc \
|
||||
python3-pickle \
|
||||
python3-shell \
|
||||
python3-stringold \
|
||||
python3-threading \
|
||||
"
|
||||
|
||||
FILES:${PN} += " \
|
||||
${datadir}/geisview \
|
||||
${PYTHON_SITEPACKAGES_DIR}/geis* \
|
||||
${PYTHON_SITEPACKAGES_DIR}/_*.so \
|
||||
"
|
||||
|
||||
FILES:${PN}-dbg += "${PYTHON_SITEPACKAGES_DIR}/.debug"
|
||||
|
||||
FILES:${PN}-dev += "${PYTHON_SITEPACKAGES_DIR}/_*.la"
|
||||
|
||||
FILES:${PN}-staticdev += "${PYTHON_SITEPACKAGES_DIR}/_*.a"
|
||||
@@ -0,0 +1,29 @@
|
||||
SUMMARY = "Gesture Recognition And Instantiation Library"
|
||||
|
||||
HOMEPAGE = "https://launchpad.net/grail"
|
||||
|
||||
LICENSE = "GPL-3.0-only & LGPL-3.0-only"
|
||||
LIC_FILES_CHKSUM = " \
|
||||
file://COPYING;md5=e6a600fd5e1d9cbde2d983680233ad02 \
|
||||
file://COPYING.GPL3;md5=d32239bcb673463ab874e80d47fae504 \
|
||||
"
|
||||
|
||||
inherit autotools pkgconfig features_check
|
||||
|
||||
DEPENDS = "frame"
|
||||
CXXFLAGS:append:toolchain-clang = " -Wno-pessimizing-move"
|
||||
SRC_URI = "https://launchpad.net/${BPN}/trunk/${PV}/+download/${BPN}-${PV}.tar.bz2"
|
||||
|
||||
UPSTREAM_CHECK_URI = "https://launchpad.net/grail/trunk"
|
||||
|
||||
SRC_URI[md5sum] = "0df1b3ec6167920f310e2effe6e2ad44"
|
||||
SRC_URI[sha256sum] = "5eed1f650f042481daa3a2de5e7d43261fe343b2a1b1e240f3b7fc26572c9df3"
|
||||
|
||||
REQUIRED_DISTRO_FEATURES = "${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'opengl', '', d)}"
|
||||
|
||||
PACKAGECONFIG ??= "${@bb.utils.filter('DISTRO_FEATURES', 'x11', d)}"
|
||||
PACKAGECONFIG[x11] = "--with-x11, --without-x11, libxi"
|
||||
|
||||
PACKAGE_BEFORE_PN += "${PN}-test"
|
||||
FILES:${PN}-test = "${bindir}/grail-test*"
|
||||
SECURITY_CFLAGS = "${SECURITY_NO_PIE_CFLAGS}"
|
||||
@@ -0,0 +1,24 @@
|
||||
From c82680a21c7411ba63e5815786eeb471720faa29 Mon Sep 17 00:00:00 2001
|
||||
From: Zheng Ruoqin <zhengrq.fnst@cn.fujitsu.com>
|
||||
Date: Wed, 6 Nov 2019 20:10:09 +0800
|
||||
Subject: [PATCH] Add build rule for README.
|
||||
|
||||
fix do_configure error:
|
||||
Makefile.am: required file `./README' not found
|
||||
|
||||
Upstream-Status: Pending
|
||||
Signed-off-by: Zheng Ruoqin <zhengrq.fnst@cn.fujitsu.com>
|
||||
|
||||
---
|
||||
Makefile.am | 1 +
|
||||
1 file changed, 1 insertion(+)
|
||||
|
||||
diff --git a/Makefile.am b/Makefile.am
|
||||
index e77c4c4..fd77ecd 100644
|
||||
--- a/Makefile.am
|
||||
+++ b/Makefile.am
|
||||
@@ -27,3 +27,4 @@ libtool: $(LIBTOOL_DEPS)
|
||||
ChangeLog:
|
||||
git log --stat --decorate=short > $@
|
||||
|
||||
+README: README.md
|
||||
@@ -0,0 +1,18 @@
|
||||
SUMMARY = "Generic USB CCID smart card reader driver"
|
||||
HOMEPAGE = "https://ccid.apdu.fr/"
|
||||
LICENSE = "LGPL-2.1-or-later"
|
||||
LIC_FILES_CHKSUM = "file://COPYING;md5=2d5025d4aa3495befef8f17206a5b0a1"
|
||||
|
||||
DEPENDS = "autoconf-archive-native virtual/libusb0 pcsc-lite"
|
||||
RDEPENDS:${PN} = "pcsc-lite"
|
||||
|
||||
SRC_URI = "https://ccid.apdu.fr/files/ccid-${PV}.tar.bz2 \
|
||||
file://0001-Add-build-rule-for-README.patch \
|
||||
"
|
||||
|
||||
SRC_URI[sha256sum] = "194708f75fe369d45dd7c15e8b3e8a7db8b49cfc5557574ca2a2e76ef12ca0ca"
|
||||
|
||||
inherit autotools pkgconfig
|
||||
|
||||
FILES:${PN} += "${libdir}/pcsc/"
|
||||
FILES:${PN}-dbg += "${libdir}/pcsc/drivers/*/*/*/.debug"
|
||||
@@ -0,0 +1,41 @@
|
||||
DESCRIPTION = "Ceres Solver is an open source C++ library for modeling and solving large, complicated optimization problems."
|
||||
HOMEPAGE = "http://ceres-solver.org/"
|
||||
LICENSE = "BSD-3-Clause"
|
||||
LIC_FILES_CHKSUM = "file://LICENSE;md5=3585a26c9cd9ec0cb36a7d65542878ca"
|
||||
|
||||
DEPENDS = "libeigen glog"
|
||||
|
||||
SRC_URI = "git://github.com/ceres-solver/ceres-solver.git;branch=master;protocol=https"
|
||||
SRCREV = "85331393dc0dff09f6fb9903ab0c4bfa3e134b01"
|
||||
|
||||
S = "${WORKDIR}/git"
|
||||
|
||||
inherit cmake
|
||||
|
||||
do_configure:prepend() {
|
||||
# otherwise https://github.com/ceres-solver/ceres-solver/blob/0b748597889f460764f6c980a00c6f502caa3875/cmake/AddGerritCommitHook.cmake#L68
|
||||
# will try to fetch https://ceres-solver-review.googlesource.com/tools/hooks/commit-msg durind do_configure
|
||||
# which sometimes gets stuck (as there is no TIMEOUT set in DOWNLOAD)
|
||||
# and we really don't need Gerrit's Change-Id tags when just building this
|
||||
touch ${S}/.git/hooks/commit-msg
|
||||
}
|
||||
|
||||
# We don't want path to eigen3 in ceres-solver RSS to be
|
||||
# used by components which use CeresConfig.cmake from their
|
||||
# own RSS
|
||||
# ceres-solver/1.14-r0/packages-split/ceres-solver-dev/usr/lib/cmake/Ceres/CeresConfig.cmake: set(Eigen3_DIR ceres-solver/1.14-r0/recipe-sysroot/usr/share/eigen3/cmake)
|
||||
# ceres-solver/1.14-r0/packages-split/ceres-solver-dev/usr/lib/cmake/Ceres/CeresConfig.cmake: list(APPEND EIGEN_INCLUDE_DIR_HINTS ceres-solver/1.14-r0/recipe-sysroot/usr/include/eigen3)
|
||||
# ceres-solver/1.14-r0/packages-split/ceres-solver-dev/usr/lib/cmake/Ceres/CeresConfig.cmake: set(glog_DIR ceres-solver/1.14-r0/recipe-sysroot/usr/lib/cmake/glog)
|
||||
SSTATE_SCAN_FILES += "*.cmake"
|
||||
|
||||
PACKAGECONFIG ??= ""
|
||||
|
||||
# suitesparse* recipes will be in meta-ros layer
|
||||
PACKAGECONFIG[suitesparse] = "-DSUITESPARSE=ON,-DSUITESPARSE=OFF,suitesparse-config suitesparse-amd suitesparse-camd suitesparse-colamd suitesparse-ccolamd suitesparse-cholmod suitesparse-metis suitesparse-spqr"
|
||||
PACKAGECONFIG[cxsparse] = "-DCXSPARSE=ON,-DCXSPARSE=OFF,suitesparse-cxsparse"
|
||||
PACKAGECONFIG[lapack] = "-DLAPACK=ON,-DLAPACK=OFF,lapack"
|
||||
|
||||
# Only a static library and headers are created
|
||||
RDEPENDS:${PN}-dev = ""
|
||||
RRECOMMENDS:${PN}-dev = "${PN}-staticdev"
|
||||
RRECOMMENDS:${PN}-dbg = "${PN}-dev (= ${EXTENDPKGV})"
|
||||
@@ -0,0 +1,106 @@
|
||||
From f73eade85b7a1b93f7b9ef6ca9ead9d2441f8f84 Mon Sep 17 00:00:00 2001
|
||||
From: Khem Raj <raj.khem@gmail.com>
|
||||
Date: Wed, 31 Aug 2022 19:01:38 -0700
|
||||
Subject: [PATCH] Fix function prototype errors
|
||||
|
||||
Clang 15 is strict, therefore ensure that right headers are pulled in
|
||||
and also right function prototypes are used.
|
||||
|
||||
Upstream-Status: Pending
|
||||
|
||||
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
||||
---
|
||||
ckcmai.c | 4 ++++
|
||||
ckucmd.c | 2 +-
|
||||
ckucmd.h | 2 --
|
||||
ckucon.c | 2 +-
|
||||
ckufio.c | 2 +-
|
||||
ckuusx.c | 2 +-
|
||||
6 files changed, 8 insertions(+), 6 deletions(-)
|
||||
|
||||
diff --git a/ckcmai.c b/ckcmai.c
|
||||
index a5640e5..a4e322d 100644
|
||||
--- a/ckcmai.c
|
||||
+++ b/ckcmai.c
|
||||
@@ -561,6 +561,10 @@ ACKNOWLEDGMENTS:
|
||||
#include "ckntap.h"
|
||||
#endif /* NT */
|
||||
|
||||
+#ifndef VMS
|
||||
+#include <time.h> /* time() */
|
||||
+#endif
|
||||
+
|
||||
#ifndef NOSERVER
|
||||
/* Text message definitions.. each should be 256 chars long, or less. */
|
||||
#ifdef MINIX
|
||||
diff --git a/ckucmd.c b/ckucmd.c
|
||||
index 274dc2d..730f20d 100644
|
||||
--- a/ckucmd.c
|
||||
+++ b/ckucmd.c
|
||||
@@ -7356,7 +7356,7 @@ cmdgetc(timelimit) int timelimit; { /* Get a character from the tty. */
|
||||
Returns 0 or greater always.
|
||||
*/
|
||||
int
|
||||
-cmdconchk() {
|
||||
+cmdconchk(void) {
|
||||
int x = 0, y;
|
||||
y = pushc ? 1 : 0; /* Have command character pushed? */
|
||||
#ifdef OS2
|
||||
diff --git a/ckucmd.h b/ckucmd.h
|
||||
index 7cd4ced..5c43cc4 100644
|
||||
--- a/ckucmd.h
|
||||
+++ b/ckucmd.h
|
||||
@@ -280,9 +280,7 @@ _PROTOTYP( int cmdsquo, (int) );
|
||||
_PROTOTYP( int cmdgquo, (void) );
|
||||
_PROTOTYP( char * ckcvtdate, (char *, int) );
|
||||
_PROTOTYP( int cmdgetc, (int));
|
||||
-#ifndef NOARROWKEYS
|
||||
_PROTOTYP( int cmdconchk, (void) );
|
||||
-#endif /* NOARROWKEYS */
|
||||
|
||||
#ifdef CK_RECALL
|
||||
_PROTOTYP( char * cmgetcmd, (char *) );
|
||||
diff --git a/ckucon.c b/ckucon.c
|
||||
index 50ceb7e..954719e 100644
|
||||
--- a/ckucon.c
|
||||
+++ b/ckucon.c
|
||||
@@ -39,8 +39,8 @@ _PROTOTYP( static VOID concld, (void) );
|
||||
|
||||
#ifdef NEXT
|
||||
#undef NSIG
|
||||
-#include <sys/wait.h> /* For wait() */
|
||||
#endif /* NEXT */
|
||||
+#include <sys/wait.h> /* For wait() */
|
||||
|
||||
#include <signal.h> /* Signals */
|
||||
|
||||
diff --git a/ckufio.c b/ckufio.c
|
||||
index b5bfaae..2a8d4e5 100644
|
||||
--- a/ckufio.c
|
||||
+++ b/ckufio.c
|
||||
@@ -142,8 +142,8 @@ _PROTOTYP( int parser, ( int ) );
|
||||
|
||||
#ifdef UNIX /* Pointer arg to wait() allowed */
|
||||
#define CK_CHILD /* Assume this is safe in all UNIX */
|
||||
+#include <sys/wait.h> /* wait() API */
|
||||
#endif /* UNIX */
|
||||
-
|
||||
extern int binary, recursive, stathack;
|
||||
#ifdef CK_CTRLZ
|
||||
extern int eofmethod;
|
||||
diff --git a/ckuusx.c b/ckuusx.c
|
||||
index d332bed..253f992 100644
|
||||
--- a/ckuusx.c
|
||||
+++ b/ckuusx.c
|
||||
@@ -9144,7 +9144,7 @@ char *s; /* a string */
|
||||
#ifndef CK_CURPOS
|
||||
/* Dummies for when cursor control is not supported */
|
||||
int
|
||||
-ck_curpos(row, col) {
|
||||
+ck_curpos(int row, int col) {
|
||||
return(-1);
|
||||
}
|
||||
|
||||
--
|
||||
2.37.3
|
||||
|
||||
@@ -0,0 +1,57 @@
|
||||
DESCRIPTION = "C-Kermit is a combined serial and network communication \
|
||||
software package offering a consistent, medium-independent, \
|
||||
cross-platform approach to connection establishment, terminal \
|
||||
sessions, file transfer, character-set translation, and automation \
|
||||
of communication tasks."
|
||||
HOMEPAGE = "www.kermitproject.org/ck90.html"
|
||||
SECTION = "console/network"
|
||||
LICENSE = "BSD-3-Clause"
|
||||
LIC_FILES_CHKSUM = "file://COPYING.TXT;md5=932ca542d6c6cb8a59a0bcd76ab67cc3"
|
||||
|
||||
SRC_URI = "http://www.kermitproject.org/ftp/kermit/archives/cku${PV}.tar.gz;subdir=${BPN}-${PV} \
|
||||
file://0001-Fix-function-prototype-errors.patch \
|
||||
"
|
||||
SRC_URI[md5sum] = "eac4dbf18b45775e4cdee5a7c74762b0"
|
||||
SRC_URI[sha256sum] = "0d5f2cd12bdab9401b4c836854ebbf241675051875557783c332a6a40dac0711"
|
||||
|
||||
|
||||
export CC2 = "${CC}"
|
||||
export BINDIR = "${bindir}"
|
||||
export MANDIR = "${mandir}/man1"
|
||||
export INFODIR = "${infodir}"
|
||||
|
||||
EXTRA_OEMAKE = "-e MAKEFLAGS="
|
||||
|
||||
TARGET_CC_ARCH += "${LDFLAGS}"
|
||||
|
||||
do_compile () {
|
||||
# The original makefile doesn't differentiate between CC and CC_FOR_BUILD,
|
||||
# so we build wart manually. Note that you need a ckwart.o with the proper
|
||||
# timestamp to make this hack work:
|
||||
${BUILD_CC} -c ckwart.c
|
||||
${BUILD_CC} -o wart ckwart.o
|
||||
./wart ckcpro.w ckcpro.c
|
||||
|
||||
# read ${S}/ckccfg.txt to understand this :-)
|
||||
oe_runmake wermit CFLAGS="${CFLAGS} -DLINUX -DCK_POSIX_SIG \
|
||||
-DNOTCPOPTS -DLINUXFSSTND -DNOCOTFMC -DPOSIX -DUSE_STRERROR \
|
||||
-DNOSYSLOG -DHAVE_PTMX -DNO_DNS_SRV -DNOGFTIMER \
|
||||
-DNOB_50 -DNOB_75 -DNOB_134 -DNOB_150 -DNOB_200 \
|
||||
-DNOB_1800 -DNOB_3600 -DNOB_7200 -DNOB_76K -DNOB_230K \
|
||||
-DNOB_460K -DNOB_921K \
|
||||
-DNOCSETS -DNONET -DNOUNICODE -DNOHELP -DNODEBUG \
|
||||
-DNOFRILLS -DNOFTP -DNODIAL -DNOPUSH -DNOIKSD -DNOHTTP -DNOFLOAT \
|
||||
-DNOSERVER -DNOSEXP -DNORLOGIN -DNOOLDMODEMS -DNOSSH -DNOLISTEN \
|
||||
-DNORESEND -DNOAUTODL -DNOSTREAMING -DNOHINTS -DNOCKXYZ -DNOLEARN \
|
||||
-DNOMKDIR -DNOPERMS -DNOCKTIMERS -DNOCKREGEX -DNOREALPATH \
|
||||
-DCK_SMALL -DNOLOGDIAL -DNORENAME -DNOWHATAMI \
|
||||
-DNOARROWKEYS"
|
||||
}
|
||||
|
||||
do_install () {
|
||||
install -d ${D}${BINDIR} ${D}${MANDIR} ${D}${INFODIR}
|
||||
oe_runmake 'DESTDIR=${D}' install
|
||||
# Fix up dangling symlink
|
||||
rm ${D}${BINDIR}/kermit-sshsub
|
||||
(cd ${D}${BINDIR} && ln -s ${BINDIR}/kermit kermit-sshusb)
|
||||
}
|
||||
@@ -0,0 +1,41 @@
|
||||
From 93557d5c5acf9ebb2c0fa708658e1d36621dd23a Mon Sep 17 00:00:00 2001
|
||||
From: Wang Mingyu <wangmy@fujitsu.com>
|
||||
Date: Wed, 7 Sep 2022 10:05:15 +0900
|
||||
Subject: [PATCH] Do not download the catch framework during configure.
|
||||
|
||||
Upstream-Status: Inappropriate [configuration]
|
||||
|
||||
Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
|
||||
---
|
||||
tests/CMakeLists.txt | 15 ---------------
|
||||
1 file changed, 15 deletions(-)
|
||||
|
||||
diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt
|
||||
index 80c4f6a..ae210db 100644
|
||||
--- a/tests/CMakeLists.txt
|
||||
+++ b/tests/CMakeLists.txt
|
||||
@@ -74,21 +74,6 @@ if(Catch2_FOUND)
|
||||
endif()
|
||||
message(STATUS "Found Catch2")
|
||||
target_link_libraries(catch_main PUBLIC Catch2::Catch2)
|
||||
-else()
|
||||
- message(STATUS "Downloading Catch2")
|
||||
-
|
||||
- # FetchContent would be better, but requires newer CMake.
|
||||
- file(MAKE_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}/catch2")
|
||||
- set(url https://github.com/philsquared/Catch/releases/download/v2.13.7/catch.hpp)
|
||||
- file(
|
||||
- DOWNLOAD ${url} "${CMAKE_CURRENT_BINARY_DIR}/catch2/catch.hpp"
|
||||
- STATUS status
|
||||
- EXPECTED_HASH SHA256=ea379c4a3cb5799027b1eb451163dff065a3d641aaba23bf4e24ee6b536bd9bc)
|
||||
- list(GET status 0 error)
|
||||
- if(error)
|
||||
- message(FATAL_ERROR "Could not download ${url}, and Catch2 not found on your system.")
|
||||
- endif()
|
||||
- target_include_directories(catch_main PUBLIC "${CMAKE_CURRENT_BINARY_DIR}")
|
||||
endif()
|
||||
|
||||
# Target must already exist
|
||||
--
|
||||
2.25.1
|
||||
|
||||
@@ -0,0 +1,26 @@
|
||||
SUMMARY = "C++11 command line parser"
|
||||
DESCRIPTION = "A command line parser for C++11 and beyond that provides a rich feature set with a simple and intuitive interface."
|
||||
HOMEPAGE = "https://github.com/CLIUtils/CLI11"
|
||||
LICENSE = "BSD-3-Clause"
|
||||
LIC_FILES_CHKSUM = "file://LICENSE;md5=afb20fe5f67e21074b10b864d9563c11"
|
||||
SRCREV = "291c58789c031208f08f4f261a858b5b7083e8e2"
|
||||
PV .= "+git"
|
||||
|
||||
SRC_URI += "gitsm://github.com/CLIUtils/CLI11;branch=main;protocol=https \
|
||||
https://github.com/philsquared/Catch/releases/download/v2.13.7/catch.hpp \
|
||||
file://0001-Do-not-download-the-catch-framework-during-configure.patch"
|
||||
|
||||
SRC_URI[sha256sum] = "ea379c4a3cb5799027b1eb451163dff065a3d641aaba23bf4e24ee6b536bd9bc"
|
||||
S = "${WORKDIR}/git"
|
||||
|
||||
do_configure:prepend() {
|
||||
mkdir -p ${S}/tests/catch2
|
||||
cp ${DL_DIR}/catch.hpp ${S}/tests/catch2/catch.hpp
|
||||
}
|
||||
|
||||
inherit cmake
|
||||
|
||||
# cli11 is a header only C++ library, so the main package will be empty.
|
||||
RDEPENDS:${PN}-dev = ""
|
||||
|
||||
BBCLASSEXTEND = "native nativesdk"
|
||||
@@ -0,0 +1,15 @@
|
||||
SUMMARY = "CommonMark parsing and rendering library and program in C"
|
||||
HOMEPAGE = "https://github.com/commonmark/cmark"
|
||||
LICENSE = "BSD-2-Clause & MIT"
|
||||
LIC_FILES_CHKSUM = "file://COPYING;md5=81f9cae6293cc0345a9144b78152ab62"
|
||||
|
||||
SRC_URI = "git://github.com/commonmark/cmark.git;branch=master;protocol=https"
|
||||
SRCREV = "8fbf029685482827828b5858444157052f1b0a5f"
|
||||
S = "${WORKDIR}/git"
|
||||
|
||||
inherit cmake lib_package
|
||||
|
||||
EXTRA_OECMAKE += " \
|
||||
-DCMARK_TESTS=OFF \
|
||||
-DCMARK_STATIC=OFF \
|
||||
"
|
||||
@@ -0,0 +1,64 @@
|
||||
require ${BPN}.inc
|
||||
|
||||
FILESEXTRAPATHS:prepend := "${THISDIR}/${BPN}-native:"
|
||||
|
||||
inherit meson pkgconfig native
|
||||
|
||||
DEPENDS += " \
|
||||
meson-native \
|
||||
glib-2.0-native \
|
||||
lcms-native \
|
||||
"
|
||||
|
||||
SRC_URI += " \
|
||||
file://0001-Move-the-function-cd_icc_create_from_edid-to-avoid-u.patch \
|
||||
file://Makefile;subdir=${BPN}-${PV} \
|
||||
"
|
||||
|
||||
do_configure() {
|
||||
# we expect meson to fail - but before it extracts project's version in log file
|
||||
meson ${MESONOPTS} "${MESON_SOURCEPATH}" "${B}" ${MESON_CROSS_FILE} ${EXTRA_OEMESON} > /dev/null 2>&1 || true
|
||||
|
||||
# extract and split version
|
||||
version=`grep 'Project version:' ${B}/meson-logs/meson-log.txt | sed 's|Project version: ||'`
|
||||
major=`echo $version | cut -d. -f1`
|
||||
minor=`echo $version | cut -d. -f2`
|
||||
micro=`echo $version | cut -d. -f3`
|
||||
echo "Project version: $major.$minor.$micro"
|
||||
|
||||
# extract project name
|
||||
proj_name=`grep 'Project name:' ${B}/meson-logs/meson-log.txt | sed 's|Project name: ||'`
|
||||
|
||||
# create cd-version.h
|
||||
mkdir -p ${B}/colord
|
||||
sed ${S}/lib/colord/cd-version.h.in \
|
||||
-e 's:@CD_MAJOR_VERSION_PRIVATE@:1:g' \
|
||||
-e 's:@CD_MINOR_VERSION_PRIVATE@:4:g' \
|
||||
-e 's:@CD_MICRO_VERSION_PRIVATE@:4:g' \
|
||||
> ${B}/colord/cd-version.h
|
||||
|
||||
# create config.h based on target build and add what's necessary only
|
||||
localedir=`echo ${datadir}/locale | sed 's:${prefix}/::g'`
|
||||
echo "#define LOCALEDIR \"$localedir\"" >> ${B}/config.h
|
||||
echo "#define GETTEXT_PACKAGE \"colord\"" >> ${B}/config.h
|
||||
echo "#define PACKAGE_NAME \"$proj_name\"" >> ${B}/config.h
|
||||
echo "#define PACKAGE_VERSION \"$version\"" >> ${B}/config.h
|
||||
}
|
||||
|
||||
do_compile() {
|
||||
oe_runmake -C${S} DESTDIR=${B}
|
||||
}
|
||||
|
||||
do_install() {
|
||||
version=`grep 'Project version:' ${B}/meson-logs/meson-log.txt | sed 's|Project version: ||'`
|
||||
major=`echo $version | cut -d. -f1`
|
||||
|
||||
install -d ${D}${libdir}
|
||||
install -m 755 ${B}/libcolord.so ${D}${libdir}/libcolord.so.$version
|
||||
ln -s libcolord.so.$version "${D}/${libdir}/libcolord.so"
|
||||
ln -s libcolord.so.$version "${D}/${libdir}/libcolord.so.$major"
|
||||
|
||||
install -d ${D}${bindir}
|
||||
install -m 755 ${B}/cd_create_profile ${D}${bindir}/
|
||||
install -m 755 ${B}/cd_idt8 ${D}${bindir}/
|
||||
}
|
||||
@@ -0,0 +1,166 @@
|
||||
From cbb8f5c05fce1d56ae2e5fa9f57fc49c47bed5ab Mon Sep 17 00:00:00 2001
|
||||
From: =?UTF-8?q?Andreas=20M=C3=BCller?= <schnitzeltony@gmail.com>
|
||||
Date: Sun, 12 May 2019 21:58:02 +0200
|
||||
Subject: [PATCH] Move the function cd_icc_create_from_edid to avoid udev
|
||||
dependeny
|
||||
MIME-Version: 1.0
|
||||
Content-Type: text/plain; charset=UTF-8
|
||||
Content-Transfer-Encoding: 8bit
|
||||
|
||||
We do not have udev-native so it is a dependeny we cannot satisfy
|
||||
|
||||
Upstream-Status: Inappropriate [OE specific]
|
||||
|
||||
Signed-off-by: Andreas Müller <schnitzeltony@gmail.com>
|
||||
---
|
||||
lib/colord/cd-edid.c | 63 ++++++++++++++++++++++++++++++++++++++++++++
|
||||
lib/colord/cd-icc.c | 62 -------------------------------------------
|
||||
2 files changed, 63 insertions(+), 62 deletions(-)
|
||||
|
||||
diff --git a/lib/colord/cd-edid.c b/lib/colord/cd-edid.c
|
||||
index a5e2328..dec509a 100644
|
||||
--- a/lib/colord/cd-edid.c
|
||||
+++ b/lib/colord/cd-edid.c
|
||||
@@ -687,3 +687,66 @@ cd_edid_new (void)
|
||||
edid = g_object_new (CD_TYPE_EDID, NULL);
|
||||
return CD_EDID (edid);
|
||||
}
|
||||
+
|
||||
+/**
|
||||
+ * cd_icc_create_from_edid_data:
|
||||
+ * @icc: A valid #CdIcc
|
||||
+ * @edid: EDID data
|
||||
+ * @error: A #GError, or %NULL
|
||||
+ *
|
||||
+ * Creates an ICC profile from EDID data.
|
||||
+ *
|
||||
+ * Return value: %TRUE for success
|
||||
+ *
|
||||
+ * Since: 1.1.2
|
||||
+ **/
|
||||
+gboolean
|
||||
+cd_icc_create_from_edid_data (CdIcc *icc, CdEdid *edid, GError **error)
|
||||
+{
|
||||
+ CdIccPrivate *priv = GET_PRIVATE (icc);
|
||||
+ const gchar *data;
|
||||
+
|
||||
+ /* not loaded */
|
||||
+ if (priv->lcms_profile != NULL) {
|
||||
+ g_set_error_literal (error,
|
||||
+ CD_ICC_ERROR,
|
||||
+ CD_ICC_ERROR_FAILED_TO_CREATE,
|
||||
+ "already loaded or generated");
|
||||
+ return FALSE;
|
||||
+ }
|
||||
+
|
||||
+ /* create from parsed object */
|
||||
+ if (!cd_icc_create_from_edid (icc,
|
||||
+ cd_edid_get_gamma (edid),
|
||||
+ cd_edid_get_red (edid),
|
||||
+ cd_edid_get_green (edid),
|
||||
+ cd_edid_get_blue (edid),
|
||||
+ cd_edid_get_white (edid),
|
||||
+ error)) {
|
||||
+ return FALSE;
|
||||
+ }
|
||||
+
|
||||
+ /* set copyright */
|
||||
+ cd_icc_set_copyright (icc, NULL,
|
||||
+ /* deliberately not translated */
|
||||
+ "This profile is free of known copyright restrictions.");
|
||||
+
|
||||
+ /* set 'ICC meta Tag for Monitor Profiles' data */
|
||||
+ data = cd_edid_get_checksum (edid);
|
||||
+ if (data != NULL)
|
||||
+ cd_icc_add_metadata (icc, CD_PROFILE_METADATA_EDID_MD5, data);
|
||||
+ data = cd_edid_get_monitor_name (edid);
|
||||
+ if (data != NULL)
|
||||
+ cd_icc_add_metadata (icc, CD_PROFILE_METADATA_EDID_MODEL, data);
|
||||
+ data = cd_edid_get_serial_number (edid);
|
||||
+ if (data != NULL)
|
||||
+ cd_icc_add_metadata (icc, CD_PROFILE_METADATA_EDID_SERIAL, data);
|
||||
+ data = cd_edid_get_pnp_id (edid);
|
||||
+ if (data != NULL)
|
||||
+ cd_icc_add_metadata (icc, CD_PROFILE_METADATA_EDID_MNFT, data);
|
||||
+ data = cd_edid_get_vendor_name (edid);
|
||||
+ if (data != NULL)
|
||||
+ cd_icc_add_metadata (icc, CD_PROFILE_METADATA_EDID_VENDOR, data);
|
||||
+ return TRUE;
|
||||
+}
|
||||
+
|
||||
diff --git a/lib/colord/cd-icc.c b/lib/colord/cd-icc.c
|
||||
index 8beec43..398ff7a 100644
|
||||
--- a/lib/colord/cd-icc.c
|
||||
+++ b/lib/colord/cd-icc.c
|
||||
@@ -3114,68 +3114,6 @@ cd_icc_create_default (CdIcc *icc, GError **error)
|
||||
return cd_icc_create_default_full (icc, CD_ICC_LOAD_FLAGS_NONE, error);
|
||||
}
|
||||
|
||||
-/**
|
||||
- * cd_icc_create_from_edid_data:
|
||||
- * @icc: A valid #CdIcc
|
||||
- * @edid: EDID data
|
||||
- * @error: A #GError, or %NULL
|
||||
- *
|
||||
- * Creates an ICC profile from EDID data.
|
||||
- *
|
||||
- * Return value: %TRUE for success
|
||||
- *
|
||||
- * Since: 1.1.2
|
||||
- **/
|
||||
-gboolean
|
||||
-cd_icc_create_from_edid_data (CdIcc *icc, CdEdid *edid, GError **error)
|
||||
-{
|
||||
- CdIccPrivate *priv = GET_PRIVATE (icc);
|
||||
- const gchar *data;
|
||||
-
|
||||
- /* not loaded */
|
||||
- if (priv->lcms_profile != NULL) {
|
||||
- g_set_error_literal (error,
|
||||
- CD_ICC_ERROR,
|
||||
- CD_ICC_ERROR_FAILED_TO_CREATE,
|
||||
- "already loaded or generated");
|
||||
- return FALSE;
|
||||
- }
|
||||
-
|
||||
- /* create from parsed object */
|
||||
- if (!cd_icc_create_from_edid (icc,
|
||||
- cd_edid_get_gamma (edid),
|
||||
- cd_edid_get_red (edid),
|
||||
- cd_edid_get_green (edid),
|
||||
- cd_edid_get_blue (edid),
|
||||
- cd_edid_get_white (edid),
|
||||
- error)) {
|
||||
- return FALSE;
|
||||
- }
|
||||
-
|
||||
- /* set copyright */
|
||||
- cd_icc_set_copyright (icc, NULL,
|
||||
- /* deliberately not translated */
|
||||
- "This profile is free of known copyright restrictions.");
|
||||
-
|
||||
- /* set 'ICC meta Tag for Monitor Profiles' data */
|
||||
- data = cd_edid_get_checksum (edid);
|
||||
- if (data != NULL)
|
||||
- cd_icc_add_metadata (icc, CD_PROFILE_METADATA_EDID_MD5, data);
|
||||
- data = cd_edid_get_monitor_name (edid);
|
||||
- if (data != NULL)
|
||||
- cd_icc_add_metadata (icc, CD_PROFILE_METADATA_EDID_MODEL, data);
|
||||
- data = cd_edid_get_serial_number (edid);
|
||||
- if (data != NULL)
|
||||
- cd_icc_add_metadata (icc, CD_PROFILE_METADATA_EDID_SERIAL, data);
|
||||
- data = cd_edid_get_pnp_id (edid);
|
||||
- if (data != NULL)
|
||||
- cd_icc_add_metadata (icc, CD_PROFILE_METADATA_EDID_MNFT, data);
|
||||
- data = cd_edid_get_vendor_name (edid);
|
||||
- if (data != NULL)
|
||||
- cd_icc_add_metadata (icc, CD_PROFILE_METADATA_EDID_VENDOR, data);
|
||||
- return TRUE;
|
||||
-}
|
||||
-
|
||||
/**
|
||||
* cd_icc_create_from_edid:
|
||||
* @icc: A valid #CdIcc
|
||||
--
|
||||
2.20.1
|
||||
|
||||
@@ -0,0 +1,48 @@
|
||||
# For native build cd_idt8, cd_create_profile and a tiny version of libcolord.so
|
||||
# only. By reducing the library to what's necessary, we avoid dependencies on
|
||||
# naitve udev and libgudev
|
||||
|
||||
CFLAGS+=$(shell pkg-config-native --cflags gio-2.0)
|
||||
CFLAGS+=$(shell pkg-config-native --cflags lcms2)
|
||||
CFLAGS+=-std=c99 -I./lib -I./lib/colord -I$(DESTDIR) -DCD_COMPILATION
|
||||
|
||||
LDFLAGS+=$(shell pkg-config-native --libs gio-2.0)
|
||||
LDFLAGS+=$(shell pkg-config-native --libs lcms2)
|
||||
LDFLAGS+=-lm
|
||||
|
||||
all: cd_idt8 cd_create_profile
|
||||
|
||||
LIBSOURCES = \
|
||||
lib/colord/cd-it8.c \
|
||||
lib/colord/cd-color.c \
|
||||
lib/colord/cd-spectrum.c \
|
||||
lib/colord/cd-math.c \
|
||||
lib/colord/cd-interp-akima.c \
|
||||
lib/colord/cd-context-lcms.c \
|
||||
lib/colord/cd-interp.c \
|
||||
lib/colord/cd-interp-linear.c \
|
||||
lib/colord/cd-it8-utils.c \
|
||||
lib/colord/cd-enum.c \
|
||||
lib/colord/cd-icc.c \
|
||||
lib/colord/cd-icc-utils.c \
|
||||
lib/colord/cd-dom.c
|
||||
|
||||
libcolord.so: $(LIBSOURCES)
|
||||
$(CC) $(CFLAGS) -L$(DESTDIR) -fPIC -shared -Wl,-soname,$@ $^ -o $(DESTDIR)/$@ $(LDFLAGS)
|
||||
|
||||
cd_idt8.o: client/cd-it8.c
|
||||
$(CC) $(CFLAGS) -c $^ -o $(DESTDIR)/$@
|
||||
|
||||
cd_idt8: libcolord.so cd_idt8.o
|
||||
$(CC) $(DESTDIR)/cd_idt8.o -o $(DESTDIR)/$@ -L$(DESTDIR) -lcolord $(LDFLAGS)
|
||||
|
||||
cd_create_profile.o: client/cd-create-profile.c
|
||||
$(CC) $(CFLAGS) -c $^ -o $(DESTDIR)/$@
|
||||
|
||||
cd_create_profile: libcolord.so cd_create_profile.o
|
||||
$(CC) $(DESTDIR)/cd_create_profile.o -o $(DESTDIR)/$@ -L$(DESTDIR) -lcolord $(LDFLAGS)
|
||||
|
||||
.PHONY: clean
|
||||
|
||||
clean:
|
||||
rm -f $(DESTDIR)/libcolord.so $(DESTDIR)/*.o $(DESTDIR)/cd_idt8 $(DESTDIR)/cd_create_profile
|
||||
@@ -0,0 +1,45 @@
|
||||
require ${BPN}.inc
|
||||
|
||||
inherit meson gobject-introspection gsettings gettext bash-completion systemd features_check useradd pkgconfig
|
||||
|
||||
# polkit and gobject-introspection are mandatory and cannot be configured
|
||||
REQUIRED_DISTRO_FEATURES = "polkit gobject-introspection-data"
|
||||
GIR_MESON_OPTION = ""
|
||||
|
||||
DEPENDS += " \
|
||||
${BPN}-native \
|
||||
glib-2.0 \
|
||||
lcms \
|
||||
sqlite3 \
|
||||
libgusb \
|
||||
libgudev \
|
||||
polkit \
|
||||
"
|
||||
|
||||
SRC_URI += " \
|
||||
file://0001-Run-native-cd_idt8-cd_create_profile.patch \
|
||||
"
|
||||
|
||||
EXTRA_OEMESON = " \
|
||||
-Dman=false \
|
||||
-Ddocs=false \
|
||||
"
|
||||
|
||||
PACKAGECONFIG ??= "${@bb.utils.filter('DISTRO_FEATURES', 'systemd', d)}"
|
||||
PACKAGECONFIG[systemd] = "-Dsystemd=true, -Dsystemd=false, systemd"
|
||||
|
||||
SYSTEMD_SERVICE:${PN} = "colord.service"
|
||||
|
||||
FILES:${PN} += " \
|
||||
${datadir}/dbus-1 \
|
||||
${datadir}/polkit-1 \
|
||||
${datadir}/glib-2.0 \
|
||||
${datadir}/color \
|
||||
${systemd_user_unitdir} \
|
||||
${nonarch_libdir}/tmpfiles.d \
|
||||
${libdir}/colord-plugins \
|
||||
${libdir}/colord-sensors \
|
||||
"
|
||||
|
||||
USERADD_PACKAGES = "${PN}"
|
||||
USERADD_PARAM:${PN} = "--system --user-group -d /var/lib/colord -s /bin/false colord"
|
||||
@@ -0,0 +1,12 @@
|
||||
SUMMARY = "Making color management just work"
|
||||
HOMEPAGE = "https://www.freedesktop.org/software/colord/"
|
||||
LICENSE = "GPL-2.0-only & LGPL-2.1-only"
|
||||
LIC_FILES_CHKSUM = " \
|
||||
file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263 \
|
||||
file://meson.build;beginline=3;endline=3;md5=f42198707d793be58b274d34fd5238c3 \
|
||||
"
|
||||
|
||||
PV = "1.4.6"
|
||||
SRC_URI = "https://www.freedesktop.org/software/colord/releases/${BPN}-${PV}.tar.xz"
|
||||
SRC_URI[sha256sum] = "7407631a27bfe5d1b672e7ae42777001c105d860b7b7392283c8c6300de88e6f"
|
||||
|
||||
@@ -0,0 +1,59 @@
|
||||
From 5aad8831c0fb71940d6c4f982b0b30ffb6ae33b3 Mon Sep 17 00:00:00 2001
|
||||
From: =?UTF-8?q?Andreas=20M=C3=BCller?= <schnitzeltony@gmail.com>
|
||||
Date: Sun, 12 May 2019 22:47:05 +0200
|
||||
Subject: [PATCH] Run native cd_idt8/cd_create_profile
|
||||
MIME-Version: 1.0
|
||||
Content-Type: text/plain; charset=UTF-8
|
||||
Content-Transfer-Encoding: 8bit
|
||||
|
||||
Upstream-Status: Inappropriate [OE specific]
|
||||
|
||||
Signed-off-by: Andreas Müller <schnitzeltony@gmail.com>
|
||||
---
|
||||
data/cmf/meson.build | 2 +-
|
||||
data/illuminant/meson.build | 2 +-
|
||||
data/profiles/meson.build | 2 +-
|
||||
3 files changed, 3 insertions(+), 3 deletions(-)
|
||||
|
||||
diff --git a/data/cmf/meson.build b/data/cmf/meson.build
|
||||
index a693cd7..1ae3613 100644
|
||||
--- a/data/cmf/meson.build
|
||||
+++ b/data/cmf/meson.build
|
||||
@@ -2,7 +2,7 @@ foreach arg: [ 'CIE1964-10deg-XYZ', 'CIE1931-2deg-XYZ' ]
|
||||
custom_target(arg,
|
||||
input: arg + '.csv',
|
||||
output: arg + '.cmf',
|
||||
- command: [ cd_idt8, 'create-cmf', '@OUTPUT@', '@INPUT@', '1.0' ],
|
||||
+ command: [ 'cd_idt8', 'create-cmf', '@OUTPUT@', '@INPUT@', '1.0' ],
|
||||
install: true,
|
||||
install_dir: join_paths(datadir, 'colord', 'cmf')
|
||||
)
|
||||
diff --git a/data/illuminant/meson.build b/data/illuminant/meson.build
|
||||
index f8dfa07..ad7dced 100644
|
||||
--- a/data/illuminant/meson.build
|
||||
+++ b/data/illuminant/meson.build
|
||||
@@ -24,7 +24,7 @@ foreach arg: generated_spectra
|
||||
custom_target(arg,
|
||||
input: arg + '.csv',
|
||||
output: arg + '.sp',
|
||||
- command: [ cd_idt8, 'create-sp', '@OUTPUT@', '@INPUT@', '100.0' ],
|
||||
+ command: [ 'cd_idt8', 'create-sp', '@OUTPUT@', '@INPUT@', '100.0' ],
|
||||
install: true,
|
||||
install_dir: join_paths(datadir, 'colord', 'illuminant')
|
||||
)
|
||||
diff --git a/data/profiles/meson.build b/data/profiles/meson.build
|
||||
index 591b97d..2cef011 100644
|
||||
--- a/data/profiles/meson.build
|
||||
+++ b/data/profiles/meson.build
|
||||
@@ -59,7 +59,7 @@ foreach arg: icc_profiles
|
||||
generated_icc = custom_target(arg + '.icc',
|
||||
input: xml_i18n,
|
||||
output: arg + '.icc',
|
||||
- command: [ cd_create_profile, '--output=@OUTPUT@', '@INPUT@' ],
|
||||
+ command: [ 'cd_create_profile', '--output=@OUTPUT@', '@INPUT@' ],
|
||||
install: true,
|
||||
install_dir: join_paths(datadir, 'color', 'icc', 'colord'),
|
||||
)
|
||||
--
|
||||
2.20.1
|
||||
|
||||
@@ -0,0 +1,29 @@
|
||||
SUMMARY = "copy-paste for the Linux console"
|
||||
DESCRIPTION = "Consolation is a daemon that provides copy-paste and scrolling \
|
||||
support to the Linux console. It is based on the libinput library and \
|
||||
supports all pointer devices and settings provided by this library. Similar \
|
||||
software include gpm and jamd."
|
||||
HOMEPAGE = "https://salsa.debian.org/consolation-team/consolation"
|
||||
SECTION = "console/utils"
|
||||
LICENSE = "GPL-2.0-or-later"
|
||||
LIC_FILES_CHKSUM = "file://LICENSE;md5=7df9eea2f4dfdda489c116099e6fc062"
|
||||
|
||||
DEPENDS = " \
|
||||
libevdev \
|
||||
libinput \
|
||||
udev \
|
||||
"
|
||||
|
||||
SRC_URI = "git://salsa.debian.org/consolation-team/consolation.git;branch=master"
|
||||
SRCREV = "5ef08f0cd6ede62de14de477b74fc3611108c676"
|
||||
|
||||
S = "${WORKDIR}/git"
|
||||
|
||||
inherit autotools pkgconfig systemd
|
||||
|
||||
do_install:append() {
|
||||
install -d ${D}${systemd_system_unitdir}
|
||||
install -m 644 ${B}/consolation.service ${D}${systemd_system_unitdir}
|
||||
}
|
||||
|
||||
SYSTEMD_SERVICE:${PN} = "consolation.service"
|
||||
@@ -0,0 +1,30 @@
|
||||
From a53f123040998744602f190944464af0e159ea19 Mon Sep 17 00:00:00 2001
|
||||
From: jjll <jjll@gmv.com>
|
||||
Date: Wed, 6 Sep 2023 20:47:41 +0200
|
||||
Subject: [PATCH] Compatibility with boost 1.83
|
||||
|
||||
Upstream-Status: Backport [https://github.com/cpp-netlib/cpp-netlib/pull/902]
|
||||
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
||||
---
|
||||
libs/network/src/server_request_parsers_impl.cpp | 3 ++-
|
||||
1 file changed, 2 insertions(+), 1 deletion(-)
|
||||
|
||||
--- a/boost/network/protocol/http/server/impl/parsers.ipp
|
||||
+++ b/boost/network/protocol/http/server/impl/parsers.ipp
|
||||
@@ -13,6 +13,7 @@
|
||||
#include <tuple>
|
||||
#include <boost/fusion/include/std_tuple.hpp>
|
||||
#include <boost/network/protocol/http/message/header.hpp>
|
||||
+#include <boost/regex/pending/unicode_iterator.hpp>
|
||||
|
||||
#ifdef BOOST_NETWORK_NO_LIB
|
||||
#ifndef BOOST_NETWORK_INLINE
|
||||
@@ -32,7 +33,7 @@ typedef std::basic_string<uint32_t> u32_
|
||||
template <> // <typename Attrib, typename T, typename Enable>
|
||||
struct assign_to_container_from_value<std::string, u32_string, void> {
|
||||
static void call(u32_string const& val, std::string& attr) {
|
||||
- u32_to_u8_iterator<u32_string::const_iterator> begin = val.begin(),
|
||||
+ boost::u32_to_u8_iterator<u32_string::const_iterator> begin = val.begin(),
|
||||
end = val.end();
|
||||
for (; begin != end; ++begin) attr += *begin;
|
||||
}
|
||||
@@ -0,0 +1,30 @@
|
||||
DESCRIPTION = "Modern C++ network programming libraries."
|
||||
|
||||
# This library provides general purpose network functionality such as
|
||||
# socket communication to agent libraries. It was designed to be merged
|
||||
# into boost at some point and follows similar header library approach
|
||||
# for most functionality.
|
||||
|
||||
SECTION = "libs"
|
||||
LICENSE = "BSL-1.0 & MIT & Python-2.0"
|
||||
LIC_FILES_CHKSUM = "file://LICENSE_1_0.txt;md5=e4224ccaecb14d942c71d31bef20d78c"
|
||||
PV = "0.13.0"
|
||||
|
||||
SRCREV = "31d304cdf52b485f465ada433d8905171b61cbff"
|
||||
SRC_URI = "\
|
||||
git://github.com/cpp-netlib/cpp-netlib.git;protocol=https;branch=0.13-release \
|
||||
file://a53f123040998744602f190944464af0e159ea19.patch \
|
||||
"
|
||||
|
||||
S = "${WORKDIR}/git"
|
||||
|
||||
inherit cmake pkgconfig
|
||||
|
||||
DEPENDS = "zlib boost openssl"
|
||||
|
||||
EXTRA_OECMAKE:append = " -DCPP-NETLIB_BUILD_TESTS=OFF -DCPP-NETLIB_BUILD_EXAMPLES=OFF"
|
||||
|
||||
do_install:append() {
|
||||
sed -i -e 's|${RECIPE_SYSROOT}||g' ${D}${libdir}/cmake/cppnetlib/cppnetlibConfig.cmake
|
||||
sed -i -e 's|${RECIPE_SYSROOT}||g' ${D}${libdir}/cmake/cppnetlib/cppnetlibTargets-noconfig.cmake
|
||||
}
|
||||
@@ -0,0 +1,27 @@
|
||||
Upstream-Status: Pending
|
||||
|
||||
Description: new toolchain might have increased the float precision
|
||||
Author: Gianfranco Costamagna <locutusofborg@debian.org>
|
||||
Last-Update: 2017-10-28
|
||||
Forwarded: https://github.com/Microsoft/cpprestsdk/issues/576
|
||||
|
||||
Index: cpprest/Release/tests/functional/streams/istream_tests.cpp
|
||||
===================================================================
|
||||
--- cpprest.orig/Release/tests/functional/streams/istream_tests.cpp
|
||||
+++ cpprest/Release/tests/functional/streams/istream_tests.cpp
|
||||
@@ -1297,6 +1297,7 @@
|
||||
void compare_double(double expected, double actual) { compare_floating(expected, actual, DBL_EPSILON); }
|
||||
void compare_float(float expected, float actual) { compare_floating(expected, actual, FLT_EPSILON); }
|
||||
|
||||
+ /*
|
||||
TEST(extract_floating_point)
|
||||
{
|
||||
std::string test_string;
|
||||
@@ -1343,6 +1344,7 @@
|
||||
if (expected == 0) VERIFY_ARE_EQUAL(1 / expected, 1 / actual);
|
||||
} while (!std_istream.eof());
|
||||
}
|
||||
+ */
|
||||
|
||||
TEST(extract_floating_point_with_exceptions)
|
||||
{
|
||||
@@ -0,0 +1,129 @@
|
||||
Upstream-Status: Pending
|
||||
|
||||
Description: Debian forbids calls to external websites.
|
||||
|
||||
Author: Gianfranco Costamagna <locutus@debian.org>
|
||||
Origin: Debian
|
||||
Forwarded: not-needed
|
||||
Reviewed-By: Gianfranco Costamagna <locutusofborg@debian.org>
|
||||
Last-Update: 2015-11-25
|
||||
|
||||
Index: cpprest/Release/tests/functional/http/client/CMakeLists.txt
|
||||
===================================================================
|
||||
--- cpprest.orig/Release/tests/functional/http/client/CMakeLists.txt
|
||||
+++ cpprest/Release/tests/functional/http/client/CMakeLists.txt
|
||||
@@ -12,7 +12,6 @@
|
||||
multiple_requests.cpp
|
||||
oauth1_tests.cpp
|
||||
oauth2_tests.cpp
|
||||
- outside_tests.cpp
|
||||
pipeline_stage_tests.cpp
|
||||
progress_handler_tests.cpp
|
||||
proxy_tests.cpp
|
||||
Index: cpprest/Release/tests/functional/http/client/authentication_tests.cpp
|
||||
===================================================================
|
||||
--- cpprest.orig/Release/tests/functional/http/client/authentication_tests.cpp
|
||||
+++ cpprest/Release/tests/functional/http/client/authentication_tests.cpp
|
||||
@@ -675,9 +675,9 @@
|
||||
VERIFY_ARE_EQUAL(return_code, response.status_code());
|
||||
}
|
||||
|
||||
- TEST(auth_no_data) { auth_test_impl(false); }
|
||||
+ //TEST(auth_no_data) { auth_test_impl(false); }
|
||||
|
||||
- TEST(unsuccessful_auth_with_basic_cred) { auth_test_impl(true); }
|
||||
+ //TEST(unsuccessful_auth_with_basic_cred) { auth_test_impl(true); }
|
||||
|
||||
TEST_FIXTURE(uri_address, set_user_options_asio_http)
|
||||
{
|
||||
@@ -695,6 +695,7 @@
|
||||
VERIFY_ARE_EQUAL(200, response.status_code());
|
||||
}
|
||||
|
||||
+ /*
|
||||
TEST_FIXTURE(uri_address, set_user_options_asio_https)
|
||||
{
|
||||
handle_timeout([] {
|
||||
@@ -714,6 +715,7 @@
|
||||
VERIFY_IS_FALSE(v.empty());
|
||||
});
|
||||
}
|
||||
+ */
|
||||
|
||||
#endif
|
||||
|
||||
Index: cpprest/Release/tests/functional/websockets/client/authentication_tests.cpp
|
||||
===================================================================
|
||||
--- cpprest.orig/Release/tests/functional/websockets/client/authentication_tests.cpp
|
||||
+++ cpprest/Release/tests/functional/websockets/client/authentication_tests.cpp
|
||||
@@ -93,6 +93,7 @@ SUITE(authentication_tests)
|
||||
return false;
|
||||
}
|
||||
|
||||
+ /*
|
||||
TEST(ssl_test)
|
||||
{
|
||||
websocket_client client;
|
||||
@@ -127,6 +128,7 @@ SUITE(authentication_tests)
|
||||
throw;
|
||||
}
|
||||
}
|
||||
+ */
|
||||
|
||||
void handshake_error_test_impl(const ::utility::string_t& host)
|
||||
{
|
||||
@@ -148,11 +150,11 @@ SUITE(authentication_tests)
|
||||
}
|
||||
}
|
||||
|
||||
- TEST(self_signed_cert) { handshake_error_test_impl(U("wss://self-signed.badssl.com/")); }
|
||||
+ //TEST(self_signed_cert) { handshake_error_test_impl(U("wss://self-signed.badssl.com/")); }
|
||||
|
||||
- TEST(hostname_mismatch) { handshake_error_test_impl(U("wss://wrong.host.badssl.com/")); }
|
||||
+ //TEST(hostname_mismatch) { handshake_error_test_impl(U("wss://wrong.host.badssl.com/")); }
|
||||
|
||||
- TEST(cert_expired) { handshake_error_test_impl(U("wss://expired.badssl.com/")); }
|
||||
+ //TEST(cert_expired) { handshake_error_test_impl(U("wss://expired.badssl.com/")); }
|
||||
|
||||
} // SUITE(authentication_tests)
|
||||
|
||||
Index: cpprest/Release/tests/functional/http/client/connections_and_errors.cpp
|
||||
===================================================================
|
||||
--- cpprest.orig/Release/tests/functional/http/client/connections_and_errors.cpp
|
||||
+++ cpprest/Release/tests/functional/http/client/connections_and_errors.cpp
|
||||
@@ -408,6 +408,7 @@
|
||||
}
|
||||
#endif
|
||||
|
||||
+ /*
|
||||
// Try to connect to a server on a closed port and cancel the operation.
|
||||
TEST_FIXTURE(uri_address, cancel_bad_port)
|
||||
{
|
||||
@@ -439,6 +440,7 @@
|
||||
|
||||
VERIFY_THROWS_HTTP_ERROR_CODE(t.get(), std::errc::operation_canceled);
|
||||
}
|
||||
+ */
|
||||
|
||||
} // SUITE(connections_and_errors)
|
||||
|
||||
--- cpprest-2.10.16.orig/Release/tests/functional/http/client/redirect_tests.cpp
|
||||
+++ cpprest-2.10.16/Release/tests/functional/http/client/redirect_tests.cpp
|
||||
@@ -159,7 +159,7 @@ SUITE(redirect_tests)
|
||||
VERIFY_NO_THROWS(reply.get());
|
||||
}
|
||||
}
|
||||
-
|
||||
+/*
|
||||
TEST(does_not_follow_https_to_http_by_default)
|
||||
{
|
||||
handle_timeout([] {
|
||||
@@ -182,7 +182,7 @@ SUITE(redirect_tests)
|
||||
);
|
||||
});
|
||||
}
|
||||
-
|
||||
+*/
|
||||
TEST_FIXTURE(uri_address, follows_permanent_redirect)
|
||||
{
|
||||
#if USING_WINHTTP
|
||||
@@ -0,0 +1,19 @@
|
||||
SUMMARY = "Microsoft project for cloud-based client-server communication in native code using a modern asynchronous C++ API design."
|
||||
SECTION = "libs/network"
|
||||
HOMEPAGE = "https://github.com/Microsoft/cpprestsdk/"
|
||||
LICENSE = "MIT"
|
||||
LIC_FILES_CHKSUM = "file://${S}/license.txt;md5=a2e15b954769218ff912468eecd6a02f"
|
||||
DEPENDS = "openssl websocketpp zlib boost brotli"
|
||||
|
||||
EXTRA_OECMAKE = "-DCPPREST_EXPORT_DIR=cmake/cpprestsdk -DCPPREST_EXCLUDE_BROTLI=OFF -DWERROR=OFF"
|
||||
|
||||
SRC_URI = "git://github.com/Microsoft/cpprestsdk.git;protocol=https;branch=master \
|
||||
file://disable-float-tests.patch \
|
||||
file://disable-outside-tests.patch "
|
||||
|
||||
# tag 2.10.19
|
||||
SRCREV= "411a109150b270f23c8c97fa4ec9a0a4a98cdecf"
|
||||
|
||||
S = "${WORKDIR}/git"
|
||||
|
||||
inherit cmake pkgconfig
|
||||
@@ -0,0 +1,41 @@
|
||||
From 41cfba0840f58555593fd4bee07db77221043e0b Mon Sep 17 00:00:00 2001
|
||||
From: Portia <stephensportia@gmail.com>
|
||||
Date: Sun, 1 May 2022 12:43:35 +1000
|
||||
Subject: [PATCH] Remove sys/sysctl.h and add missing libgen.h include
|
||||
|
||||
- sys/sysctl.h has been deprecated and should be removed
|
||||
- Adds missing libgen.h include when calling basename()
|
||||
|
||||
Upstream-Status: Inactive-Upstream [2015]
|
||||
Signed-off-by: Portia <stephensportia@gmail.com>
|
||||
---
|
||||
src/cpulimit.c | 1 -
|
||||
src/process_group.c | 1 +
|
||||
2 files changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/src/cpulimit.c b/src/cpulimit.c
|
||||
index 50eabea..5b0ec49 100644
|
||||
--- a/src/cpulimit.c
|
||||
+++ b/src/cpulimit.c
|
||||
@@ -38,7 +38,6 @@
|
||||
#include <string.h>
|
||||
#include <sys/stat.h>
|
||||
#include <sys/time.h>
|
||||
-#include <sys/sysctl.h>
|
||||
#include <sys/resource.h>
|
||||
#include <sys/types.h>
|
||||
#include <sys/wait.h>
|
||||
diff --git a/src/process_group.c b/src/process_group.c
|
||||
index 06d73a6..d4f6fab 100644
|
||||
--- a/src/process_group.c
|
||||
+++ b/src/process_group.c
|
||||
@@ -24,6 +24,7 @@
|
||||
#include <limits.h>
|
||||
#include <sys/time.h>
|
||||
#include <signal.h>
|
||||
+#include <libgen.h>
|
||||
|
||||
#include <assert.h>
|
||||
|
||||
--
|
||||
2.25.1
|
||||
@@ -0,0 +1,23 @@
|
||||
SUMMARY = "cpulimit is a tool which limits the CPU usage of a process"
|
||||
DESCRIPTION = "cpulimit is a simple program that attempts to limit the CPU usage of a process (expressed in percentage, not in CPU time). This is useful to control batch jobs, when you don't want them to eat too much CPU. It does not act on the nice value or other priority stuff, but on the real CPU usage. Besides it is able to adapt itself to the overall system load, dynamically and quickly."
|
||||
HOMEPAGE = "http://cpulimit.sourceforge.net"
|
||||
LICENSE = "GPL-2.0-or-later"
|
||||
LIC_FILES_CHKSUM = "file://LICENSE;md5=86c1c0d961a437e529db93aa3bb32dc4"
|
||||
SRCREV ?= "f4d2682804931e7aea02a869137344bb5452a3cd"
|
||||
|
||||
SRC_URI = "git://github.com/opsengine/cpulimit.git;protocol=https;branch=master \
|
||||
file://0001-Remove-sys-sysctl.h-and-add-missing-libgen.h-include.patch \
|
||||
"
|
||||
|
||||
S = "${WORKDIR}/git"
|
||||
|
||||
do_compile() {
|
||||
oe_runmake all
|
||||
}
|
||||
do_install() {
|
||||
install -d ${D}${sbindir}
|
||||
install -m 0755 ${B}/src/${BPN} ${D}${sbindir}/
|
||||
}
|
||||
|
||||
CFLAGS += "-D_GNU_SOURCE ${LDFLAGS}"
|
||||
|
||||
@@ -0,0 +1,20 @@
|
||||
SUMMARY = "Utility that provides userspace support for reading and writing to the i.MX fuses"
|
||||
LICENSE = "BSD-3-Clause"
|
||||
LIC_FILES_CHKSUM = "file://src/${GO_IMPORT}/LICENSE;md5=201414b6610203caed355323b1ab3116"
|
||||
|
||||
GO_IMPORT = "github.com/usbarmory/crucible"
|
||||
SRC_URI = "git://${GO_IMPORT}.git;protocol=https;branch=master"
|
||||
|
||||
GO_INSTALL = "\
|
||||
${GO_IMPORT}/cmd/crucible \
|
||||
${GO_IMPORT}/cmd/habtool \
|
||||
"
|
||||
SRCREV = "dec27cd4e0e0db106c0a21d429c04ca8d36bbdd5"
|
||||
|
||||
export GOPROXY = "https://proxy.golang.org,direct"
|
||||
# Workaround for network access issue during compile step.
|
||||
# This needs to be fixed in the recipes buildsystem so that
|
||||
# it can be accomplished during do_fetch task.
|
||||
do_compile[network] = "1"
|
||||
|
||||
inherit go-mod
|
||||
@@ -0,0 +1,22 @@
|
||||
SUMMARY = "Common files and packaging infrastructure for CT-API modules"
|
||||
HOMEPAGE = "http://fedoraproject.org/"
|
||||
SECTION = "System Environment/Libraries"
|
||||
LICENSE = "MIT"
|
||||
LIC_FILES_CHKSUM = "file://../ctapi-common.LICENSE;md5=8744cd52545ecb45befebd0da6f70f0a"
|
||||
|
||||
SRC_URI = "https://archives.fedoraproject.org/pub/archive/fedora/linux/releases/23/Everything/source/SRPMS/c/${BPN}-${PV}.fc23.src.rpm;extract=ctapi-common.LICENSE \
|
||||
https://archives.fedoraproject.org/pub/archive/fedora/linux/releases/23/Everything/source/SRPMS/c/${BPN}-${PV}.fc23.src.rpm;extract=ctapi-common.README"
|
||||
SRC_URI[sha256sum] = "87a74eb0a66055c34ba2c5c919e74f3211c5950ae1c2cbab967fdf4137f5de91"
|
||||
|
||||
do_compile() {
|
||||
install -pm 644 ${WORKDIR}/ctapi-common.LICENSE LICENSE
|
||||
install -pm 644 ${WORKDIR}/ctapi-common.README README
|
||||
echo ${libdir}/ctapi > ctapi.conf
|
||||
}
|
||||
|
||||
do_install() {
|
||||
install -Dpm 644 ctapi.conf ${D}${sysconfdir}/ld.so.conf.d/ctapi-${TARGET_ARCH}.conf
|
||||
install -dm 755 ${D}${libdir}/ctapi
|
||||
}
|
||||
|
||||
FILES:${PN} += "${libdir}/ctapi"
|
||||
@@ -0,0 +1,27 @@
|
||||
SUMMARY = "Cyaml library"
|
||||
DESCRIPTION = "LibCYAML is a library for reading and writing structured YAML documents."
|
||||
HOMEPAGE = "https://github.com/tlsa/libcyaml"
|
||||
SECTION = "libs"
|
||||
LICENSE = "ISC"
|
||||
LIC_FILES_CHKSUM = "file://LICENSE;md5=fe6f0e49348c87bddd5d27803dceaaf0"
|
||||
DEPENDS = " \
|
||||
libyaml \
|
||||
"
|
||||
SRCREV = "07ff8654a270ec9b410acd3152b60de9e9f941af"
|
||||
|
||||
SRC_URI = "git://github.com/tlsa/libcyaml.git;protocol=https;branch=main"
|
||||
|
||||
S = "${WORKDIR}/git"
|
||||
|
||||
inherit pkgconfig
|
||||
|
||||
EXTRA_OEMAKE = "'PREFIX=""' 'DESTDIR=${D}' 'CFLAGS=${CFLAGS}' 'LIBDIR=${libdir}' 'INCLUDEDIR=${includedir}' 'VARIANT=release'"
|
||||
|
||||
do_compile() {
|
||||
oe_runmake
|
||||
}
|
||||
do_install() {
|
||||
oe_runmake install
|
||||
}
|
||||
|
||||
CFLAGS += "-pedantic -Wall -Wextra -O3 -Iinclude"
|
||||
@@ -0,0 +1,15 @@
|
||||
SUMMARY = "A tool to run a command as a daemon"
|
||||
HOMEPAGE = "http://software.clapper.org/daemonize/"
|
||||
LICENSE = "BSD-3-Clause"
|
||||
LIC_FILES_CHKSUM = "file://LICENSE.md;md5=3cf9084faa88bc8554a9139d8d7dd35f"
|
||||
PV = "1.7.8"
|
||||
|
||||
inherit autotools
|
||||
|
||||
SRCREV = "18869a797dab12bf1c917ba3b4782fef484c407c"
|
||||
SRC_URI = "git://github.com/bmc/daemonize.git;branch=master;protocol=https \
|
||||
"
|
||||
|
||||
S = "${WORKDIR}/git"
|
||||
|
||||
EXTRA_AUTORECONF += "--exclude=autoheader"
|
||||
@@ -0,0 +1,209 @@
|
||||
From 269f18d5e6698fdd34fec2798f10c6fe072f3cd5 Mon Sep 17 00:00:00 2001
|
||||
From: Khem Raj <raj.khem@gmail.com>
|
||||
Date: Thu, 1 Sep 2022 23:36:52 -0700
|
||||
Subject: [PATCH] Fix signature of main function
|
||||
|
||||
Clang-15 errors out otherewise.
|
||||
Include needed headers for missing functions
|
||||
|
||||
Upstream-Status: Pending
|
||||
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
||||
---
|
||||
src/chkshsgr.c | 2 +-
|
||||
src/tai64n.c | 2 +-
|
||||
src/tai64nlocal.c | 2 +-
|
||||
src/trycpp.c | 5 +++--
|
||||
src/tryflock.c | 4 ++--
|
||||
src/trymkffo.c | 2 +-
|
||||
src/trypoll.c | 3 ++-
|
||||
src/trysgact.c | 4 ++--
|
||||
src/trysgprm.c | 4 ++--
|
||||
src/tryshsgr.c | 3 ++-
|
||||
src/tryulong64.c | 4 ++--
|
||||
src/trywaitp.c | 4 ++--
|
||||
src/x86cpuid.c | 2 +-
|
||||
13 files changed, 22 insertions(+), 19 deletions(-)
|
||||
|
||||
diff --git a/src/chkshsgr.c b/src/chkshsgr.c
|
||||
index 038afe9..9547a4c 100644
|
||||
--- a/src/chkshsgr.c
|
||||
+++ b/src/chkshsgr.c
|
||||
@@ -5,7 +5,7 @@
|
||||
#include <grp.h>
|
||||
#include <unistd.h>
|
||||
|
||||
-int main()
|
||||
+int main(int argc, char *argv[])
|
||||
{
|
||||
gid_t x[4];
|
||||
|
||||
diff --git a/src/tai64n.c b/src/tai64n.c
|
||||
index 17bdb82..7096ab3 100644
|
||||
--- a/src/tai64n.c
|
||||
+++ b/src/tai64n.c
|
||||
@@ -27,7 +27,7 @@ buffer in = BUFFER_INIT(myread,0,inbuf,sizeof inbuf);
|
||||
|
||||
char stamp[TIMESTAMP + 1];
|
||||
|
||||
-int main()
|
||||
+int main(int argc, char *argv[])
|
||||
{
|
||||
char ch;
|
||||
|
||||
diff --git a/src/tai64nlocal.c b/src/tai64nlocal.c
|
||||
index ce16ad8..2435737 100644
|
||||
--- a/src/tai64nlocal.c
|
||||
+++ b/src/tai64nlocal.c
|
||||
@@ -28,7 +28,7 @@ unsigned long nanosecs;
|
||||
unsigned long u;
|
||||
struct tm *t;
|
||||
|
||||
-int main()
|
||||
+int main(int argc, char *argv[])
|
||||
{
|
||||
char ch;
|
||||
|
||||
diff --git a/src/trycpp.c b/src/trycpp.c
|
||||
index e4503d4..d96c955 100644
|
||||
--- a/src/trycpp.c
|
||||
+++ b/src/trycpp.c
|
||||
@@ -1,6 +1,7 @@
|
||||
/* Public domain. */
|
||||
-
|
||||
-int main()
|
||||
+#include <stdio.h>
|
||||
+#include <stdlib.h>
|
||||
+int main(int argc, char *argv[])
|
||||
{
|
||||
#ifdef NeXT
|
||||
printf("nextstep\n"); exit(0);
|
||||
diff --git a/src/tryflock.c b/src/tryflock.c
|
||||
index a82ffc2..5ca97d3 100644
|
||||
--- a/src/tryflock.c
|
||||
+++ b/src/tryflock.c
|
||||
@@ -3,8 +3,8 @@
|
||||
#include <sys/types.h>
|
||||
#include <sys/file.h>
|
||||
#include <fcntl.h>
|
||||
-
|
||||
-main()
|
||||
+void
|
||||
+main(int argc, char *argv[])
|
||||
{
|
||||
flock(0,LOCK_EX | LOCK_UN | LOCK_NB);
|
||||
}
|
||||
diff --git a/src/trymkffo.c b/src/trymkffo.c
|
||||
index 9356342..f92414a 100644
|
||||
--- a/src/trymkffo.c
|
||||
+++ b/src/trymkffo.c
|
||||
@@ -3,7 +3,7 @@
|
||||
#include <sys/types.h>
|
||||
#include <sys/stat.h>
|
||||
|
||||
-void main()
|
||||
+void main(int argc, char *argv[])
|
||||
{
|
||||
mkfifo("temp-trymkffo",0);
|
||||
}
|
||||
diff --git a/src/trypoll.c b/src/trypoll.c
|
||||
index 6506617..cb888cc 100644
|
||||
--- a/src/trypoll.c
|
||||
+++ b/src/trypoll.c
|
||||
@@ -3,8 +3,9 @@
|
||||
#include <sys/types.h>
|
||||
#include <fcntl.h>
|
||||
#include <poll.h>
|
||||
+#include <unistd.h>
|
||||
|
||||
-int main()
|
||||
+int main(int argc, char *argv[])
|
||||
{
|
||||
struct pollfd x;
|
||||
|
||||
diff --git a/src/trysgact.c b/src/trysgact.c
|
||||
index e264ef2..25da013 100644
|
||||
--- a/src/trysgact.c
|
||||
+++ b/src/trysgact.c
|
||||
@@ -1,8 +1,8 @@
|
||||
/* Public domain. */
|
||||
|
||||
#include <signal.h>
|
||||
-
|
||||
-main()
|
||||
+void
|
||||
+main(int argc, char *argv[])
|
||||
{
|
||||
struct sigaction sa;
|
||||
sa.sa_handler = 0;
|
||||
diff --git a/src/trysgprm.c b/src/trysgprm.c
|
||||
index a46c82c..5a9491c 100644
|
||||
--- a/src/trysgprm.c
|
||||
+++ b/src/trysgprm.c
|
||||
@@ -1,8 +1,8 @@
|
||||
/* Public domain. */
|
||||
|
||||
#include <signal.h>
|
||||
-
|
||||
-main()
|
||||
+void
|
||||
+main(int argc, char *argv[])
|
||||
{
|
||||
sigset_t ss;
|
||||
|
||||
diff --git a/src/tryshsgr.c b/src/tryshsgr.c
|
||||
index c5ed6d6..d111e40 100644
|
||||
--- a/src/tryshsgr.c
|
||||
+++ b/src/tryshsgr.c
|
||||
@@ -1,6 +1,7 @@
|
||||
/* Public domain. */
|
||||
|
||||
-int main()
|
||||
+#include <unistd.h>
|
||||
+int main(int argc, char *argv[])
|
||||
{
|
||||
short x[4];
|
||||
|
||||
diff --git a/src/tryulong64.c b/src/tryulong64.c
|
||||
index 003548a..20a3a40 100644
|
||||
--- a/src/tryulong64.c
|
||||
+++ b/src/tryulong64.c
|
||||
@@ -1,6 +1,6 @@
|
||||
/* Public domain. */
|
||||
-
|
||||
-int main()
|
||||
+#include <unistd.h>
|
||||
+int main(int argc, char *argv[])
|
||||
{
|
||||
unsigned long u;
|
||||
u = 1;
|
||||
diff --git a/src/trywaitp.c b/src/trywaitp.c
|
||||
index 319b81f..90bc5aa 100644
|
||||
--- a/src/trywaitp.c
|
||||
+++ b/src/trywaitp.c
|
||||
@@ -2,8 +2,8 @@
|
||||
|
||||
#include <sys/types.h>
|
||||
#include <sys/wait.h>
|
||||
-
|
||||
-main()
|
||||
+void
|
||||
+main(int argc, char *argv[])
|
||||
{
|
||||
waitpid(0,0,0);
|
||||
}
|
||||
diff --git a/src/x86cpuid.c b/src/x86cpuid.c
|
||||
index f81c593..1cb1ea6 100644
|
||||
--- a/src/x86cpuid.c
|
||||
+++ b/src/x86cpuid.c
|
||||
@@ -7,7 +7,7 @@ void nope()
|
||||
exit(1);
|
||||
}
|
||||
|
||||
-int main()
|
||||
+int main(int argc, char *argv[])
|
||||
{
|
||||
unsigned long x[4];
|
||||
unsigned long y[4];
|
||||
--
|
||||
2.37.3
|
||||
|
||||
@@ -0,0 +1,28 @@
|
||||
From a86c4209da695909424db0c9108592194a3094b7 Mon Sep 17 00:00:00 2001
|
||||
From: Lei Maohui <leimaohui@cn.fujitsu.com>
|
||||
Date: Sat, 6 Aug 2016 00:47:37 +0900
|
||||
Subject: [PATCH] daemontools: Fix QA Issue
|
||||
|
||||
To fix the QA Issues as following:
|
||||
|
||||
ERROR: daemontools-0.76-r0 do_package_qa: QA Issue: No GNU_HASH in the elf binary: '/build-poky/tmp/work/i586-poky-linux/daemontools/0.76-r0/packages-split/daemontools/usr/bin/tai64nlocal'
|
||||
|
||||
Signed-off-by: Lei Maohui <leimaohui@cn.fujitsu.com>
|
||||
---
|
||||
Upstream-Status: Pending
|
||||
|
||||
src/conf-ld | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/src/conf-ld b/src/conf-ld
|
||||
index 2a44210..c7e7755 100644
|
||||
--- a/src/conf-ld
|
||||
+++ b/src/conf-ld
|
||||
@@ -1,3 +1,3 @@
|
||||
-${CC}
|
||||
+${CC} ${LDFLAGS}
|
||||
|
||||
This will be used to link .o files into an executable.
|
||||
--
|
||||
2.7.4
|
||||
|
||||
@@ -0,0 +1,27 @@
|
||||
From d3e7651e2f2492dd1031d09a99713644b604cab5 Mon Sep 17 00:00:00 2001
|
||||
From: Gerrit Pape <pape@smarden.org>
|
||||
Date: Wed, 12 Dec 2007 13:44:15 +0000
|
||||
Subject: [PATCH] error.h: '#include <errno.h>' instead of 'extern int errno;'
|
||||
|
||||
---
|
||||
Upstream-Status: Pending
|
||||
|
||||
daemontools-0.76/src/error.h | 2 +-
|
||||
1 files changed, 1 insertions(+), 1 deletions(-)
|
||||
|
||||
diff --git daemontools-0.76.orig/src/error.h daemontools-0.76/src/error.h
|
||||
index 086fb55..f7e8273 100644
|
||||
--- daemontools-0.76.orig/src/error.h
|
||||
+++ daemontools-0.76/src/error.h
|
||||
@@ -3,7 +3,7 @@
|
||||
#ifndef ERROR_H
|
||||
#define ERROR_H
|
||||
|
||||
-extern int errno;
|
||||
+#include <errno.h>
|
||||
|
||||
extern int error_intr;
|
||||
extern int error_nomem;
|
||||
--
|
||||
1.5.4.2
|
||||
|
||||
@@ -0,0 +1,49 @@
|
||||
From 7ee585cab1d5b68f804a5601a66ae87799c8a7c3 Mon Sep 17 00:00:00 2001
|
||||
From: Gerrit Pape <pape@smarden.org>
|
||||
Date: Sun, 24 Feb 2008 10:54:26 +0000
|
||||
Subject: [PATCH] supervise.c: ./supervise may be a symlink, if it's dangling, create link target
|
||||
|
||||
---
|
||||
Upstream-Status: Pending
|
||||
|
||||
daemontools-0.76/src/supervise.c | 17 ++++++++++++++++-
|
||||
1 files changed, 16 insertions(+), 1 deletions(-)
|
||||
|
||||
diff --git daemontools-0.76.orig/src/supervise.c daemontools-0.76/src/supervise.c
|
||||
index 2482ad2..f43cabf 100644
|
||||
--- daemontools-0.76.orig/src/supervise.c
|
||||
+++ daemontools-0.76/src/supervise.c
|
||||
@@ -208,6 +208,8 @@ void doit(void)
|
||||
int main(int argc,char **argv)
|
||||
{
|
||||
struct stat st;
|
||||
+ int r;
|
||||
+ char buf[256];
|
||||
|
||||
dir = argv[1];
|
||||
if (!dir || argv[2])
|
||||
@@ -232,7 +234,20 @@ int main(int argc,char **argv)
|
||||
if (errno != error_noent)
|
||||
strerr_die4sys(111,FATAL,"unable to stat ",dir,"/down: ");
|
||||
|
||||
- mkdir("supervise",0700);
|
||||
+ if (mkdir("supervise",0700) == -1) {
|
||||
+ if ((r = readlink("supervise", buf, 256)) != -1) {
|
||||
+ if (r == 256) {
|
||||
+ errno = EOVERFLOW;
|
||||
+ strerr_die1sys(111,"unable to readlink ./supervise: ");
|
||||
+ }
|
||||
+ buf[r] = 0;
|
||||
+ mkdir(buf, 0700);
|
||||
+ }
|
||||
+ else {
|
||||
+ if ((errno != ENOENT) && (errno != EINVAL))
|
||||
+ strerr_die1sys(111, "unable to readlink ./supervise: ");
|
||||
+ }
|
||||
+ }
|
||||
fdlock = open_append("supervise/lock");
|
||||
if ((fdlock == -1) || (lock_exnb(fdlock) == -1))
|
||||
strerr_die4sys(111,FATAL,"unable to acquire ",dir,"/supervise/lock: ");
|
||||
--
|
||||
1.5.4.2
|
||||
|
||||
@@ -0,0 +1,47 @@
|
||||
Upstream-Status: Pending
|
||||
|
||||
make sure it can be compiled for cross target
|
||||
|
||||
1. never try to compile target binary by native gcc
|
||||
2. target's chkshsgr doesn't work on native.
|
||||
3. it's wrong to do target tests on native.
|
||||
|
||||
Signed-off-by: Bian Naimeng <biannm@cn.fujitsu.com>
|
||||
|
||||
diff -Nurp daemontools-0.76.orig/src/conf-cc daemontools-0.76/src/conf-cc
|
||||
--- daemontools-0.76.orig/src/conf-cc 2001-07-13 00:49:49.000000000 +0800
|
||||
+++ daemontools-0.76/src/conf-cc 2014-11-26 09:34:38.828812162 +0800
|
||||
@@ -1,3 +1,3 @@
|
||||
-gcc -O2 -Wimplicit -Wunused -Wcomment -Wchar-subscripts -Wuninitialized -Wshadow -Wcast-qual -Wcast-align -Wwrite-strings
|
||||
+${CC} -O2 -Wimplicit -Wunused -Wcomment -Wchar-subscripts -Wuninitialized -Wshadow -Wcast-qual -Wcast-align -Wwrite-strings
|
||||
|
||||
This will be used to compile .c files.
|
||||
diff -Nurp daemontools-0.76.orig/src/conf-ld daemontools-0.76/src/conf-ld
|
||||
--- daemontools-0.76.orig/src/conf-ld 2001-07-13 00:49:49.000000000 +0800
|
||||
+++ daemontools-0.76/src/conf-ld 2014-11-26 09:34:49.880811730 +0800
|
||||
@@ -1,3 +1,3 @@
|
||||
-gcc -s
|
||||
+${CC}
|
||||
|
||||
This will be used to link .o files into an executable.
|
||||
diff -Nurp daemontools-0.76.orig/src/Makefile daemontools-0.76/src/Makefile
|
||||
--- daemontools-0.76.orig/src/Makefile 2001-07-13 00:49:49.000000000 +0800
|
||||
+++ daemontools-0.76/src/Makefile 2014-11-26 09:38:47.120802459 +0800
|
||||
@@ -165,7 +165,7 @@ hassgprm.h: choose compile hassgprm.h1 h
|
||||
|
||||
hasshsgr.h: chkshsgr choose compile hasshsgr.h1 hasshsgr.h2 load \
|
||||
tryshsgr.c warn-shsgr
|
||||
- ./chkshsgr || ( cat warn-shsgr; exit 1 )
|
||||
+ echo "Warning: We can not run test on cross target. - ignoring ./chkshsgr || ( cat warn-shsgr; exit 1 )"
|
||||
./choose clr tryshsgr hasshsgr.h1 hasshsgr.h2 > hasshsgr.h
|
||||
|
||||
haswaitp.h: choose compile haswaitp.h1 haswaitp.h2 load trywaitp.c
|
||||
@@ -265,7 +265,7 @@ readproctitle.o: compile error.h readpro
|
||||
rts: envdir envuidgid fghack matchtest multilog pgrphack \
|
||||
readproctitle rts.tests setlock setuidgid softlimit supervise svc \
|
||||
svok svscan svscanboot svstat tai64n tai64nlocal
|
||||
- env - /bin/sh rts.tests 2>&1 | cat -v > rts
|
||||
+ echo "Warning: We can not run test on cross target. - ignoring env - /bin/sh rts.tests 2>&1 | cat -v > rts"
|
||||
|
||||
scan_ulong.o: compile scan.h scan_ulong.c
|
||||
./compile scan_ulong.c
|
||||
@@ -0,0 +1,76 @@
|
||||
Upstream-Status: Pending
|
||||
|
||||
Fixup misc warnings
|
||||
|
||||
Patch by RiverRat
|
||||
|
||||
http://bugs.gentoo.org/124487
|
||||
|
||||
--- a/src/chkshsgr.c
|
||||
+++ b/src/chkshsgr.c
|
||||
@@ -1,10 +1,13 @@
|
||||
/* Public domain. */
|
||||
|
||||
+#include <sys/types.h>
|
||||
+#include <stdlib.h>
|
||||
+#include <grp.h>
|
||||
#include <unistd.h>
|
||||
|
||||
int main()
|
||||
{
|
||||
- short x[4];
|
||||
+ gid_t x[4];
|
||||
|
||||
x[0] = x[1] = 0;
|
||||
if (getgroups(1,x) == 0) if (setgroups(1,x) == -1) _exit(1);
|
||||
--- a/src/matchtest.c
|
||||
+++ b/src/matchtest.c
|
||||
@@ -1,3 +1,4 @@
|
||||
+#include <unistd.h>
|
||||
#include "match.h"
|
||||
#include "buffer.h"
|
||||
#include "str.h"
|
||||
--- a/src/multilog.c
|
||||
+++ b/src/multilog.c
|
||||
@@ -1,3 +1,4 @@
|
||||
+#include <stdio.h>
|
||||
#include <unistd.h>
|
||||
#include <sys/types.h>
|
||||
#include <sys/stat.h>
|
||||
--- a/src/prot.c
|
||||
+++ b/src/prot.c
|
||||
@@ -1,5 +1,8 @@
|
||||
/* Public domain. */
|
||||
|
||||
+#include <sys/types.h>
|
||||
+#include <unistd.h>
|
||||
+#include <grp.h>
|
||||
#include "hasshsgr.h"
|
||||
#include "prot.h"
|
||||
|
||||
--- a/src/seek_set.c
|
||||
+++ b/src/seek_set.c
|
||||
@@ -1,6 +1,7 @@
|
||||
/* Public domain. */
|
||||
|
||||
#include <sys/types.h>
|
||||
+#include <unistd.h>
|
||||
#include "seek.h"
|
||||
|
||||
#define SET 0 /* sigh */
|
||||
--- a/src/supervise.c
|
||||
+++ b/src/supervise.c
|
||||
@@ -1,3 +1,4 @@
|
||||
+#include <stdio.h>
|
||||
#include <unistd.h>
|
||||
#include <sys/types.h>
|
||||
#include <sys/stat.h>
|
||||
--- a/src/pathexec_run.c
|
||||
+++ b/src/pathexec_run.c
|
||||
@@ -1,5 +1,6 @@
|
||||
/* Public domain. */
|
||||
|
||||
+#include <unistd.h>
|
||||
#include "error.h"
|
||||
#include "stralloc.h"
|
||||
#include "str.h"
|
||||
@@ -0,0 +1,48 @@
|
||||
SUMMARY = "DJB daemontools"
|
||||
HOMEPAGE = "http://cr.yp.to/daemontools.html"
|
||||
DESCRIPTION = "supervise monitors a service. It starts the service and restarts the \
|
||||
service if it dies. The companion svc program stops, pauses, or restarts \
|
||||
the service on sysadmin request. The svstat program prints a one-line \
|
||||
status report. \
|
||||
multilog saves error messages to one or more logs. It optionally timestamps \
|
||||
each line and, for each log, includes or excludes lines matching specified \
|
||||
patterns. It automatically rotates logs to limit the amount of disk space \
|
||||
used. If the disk fills up, it pauses and tries again, without losing any \
|
||||
data."
|
||||
|
||||
SECTION = "System/Servers"
|
||||
|
||||
LIC_FILES_CHKSUM = "file://src/prot.c;beginline=1;endline=1;md5=96964cadf07e8f8c1e2ffb3b507dd647"
|
||||
LICENSE = "PD"
|
||||
|
||||
DEPENDS += "coreutils"
|
||||
|
||||
SRC_URI = "http://cr.yp.to/daemontools/${BPN}-${PV}.tar.gz \
|
||||
file://0001-error.h-include-errno.h-instead-of-extern-int.diff \
|
||||
file://0002-supervise.c-.-supervise-may-be-a-symlink-if-it-s-da.diff \
|
||||
file://cross-compile.patch \
|
||||
file://0001-daemontools-Fix-QA-Issue.patch \
|
||||
file://warnings.patch \
|
||||
file://0001-Fix-signature-of-main-function.patch \
|
||||
"
|
||||
|
||||
SRC_URI[md5sum] = "1871af2453d6e464034968a0fbcb2bfc"
|
||||
SRC_URI[sha256sum] = "a55535012b2be7a52dcd9eccabb9a198b13be50d0384143bd3b32b8710df4c1f"
|
||||
|
||||
S = "${WORKDIR}/admin/${BP}"
|
||||
|
||||
do_compile() {
|
||||
./package/compile
|
||||
}
|
||||
|
||||
do_install() {
|
||||
install -d ${D}/${bindir}
|
||||
}
|
||||
|
||||
do_install:append:class-target() {
|
||||
install -m755 ${S}/command/* ${D}/${bindir}
|
||||
}
|
||||
|
||||
inherit update-alternatives
|
||||
ALTERNATIVE_PRIORITY = "100"
|
||||
ALTERNATIVE:${PN} = "svc svok"
|
||||
@@ -0,0 +1,41 @@
|
||||
SUMMARY = "Double conversion libraries"
|
||||
DESCRIPTION = "This provides binary-decimal and decimal-binary routines for IEEE doubles."
|
||||
HOMEPAGE = "https://github.com/google/double-conversion.git"
|
||||
|
||||
LICENSE = "BSD-3-Clause"
|
||||
LIC_FILES_CHKSUM = "file://LICENSE;md5=1ea35644f0ec0d9767897115667e901f"
|
||||
|
||||
|
||||
S = "${WORKDIR}/git"
|
||||
|
||||
SRC_URI = " \
|
||||
git://github.com/google/double-conversion.git;protocol=https;branch=master \
|
||||
file://run-ptest \
|
||||
"
|
||||
SRCREV = "4f7a25d8ced8c7cf6eee6fd09d6788eaa23c9afe"
|
||||
|
||||
inherit cmake ptest
|
||||
|
||||
EXTRA_OECMAKE = "-DBUILD_SHARED_LIBS=ON"
|
||||
|
||||
# These ptest use ctest (provided by cmake)
|
||||
RDEPENDS:${PN}-ptest += "cmake"
|
||||
# Build tests only if ptest is enabled
|
||||
EXTRA_OECMAKE += "${@bb.utils.contains('PTEST_ENABLED', '1', '-DBUILD_TESTING=ON', '', d)}"
|
||||
|
||||
do_install_ptest() {
|
||||
install -d ${D}${PTEST_PATH}/test
|
||||
cp -rf ${B}/test ${D}${PTEST_PATH}
|
||||
install -m 0644 ${B}/CTestTestfile.cmake ${D}${PTEST_PATH}/
|
||||
files="
|
||||
CTestTestfile.cmake
|
||||
test/CTestTestfile.cmake
|
||||
test/cmake_install.cmake
|
||||
test/cctest/CTestTestfile.cmake
|
||||
test/cctest/cmake_install.cmake
|
||||
"
|
||||
for file in $files; do
|
||||
sed -i -e "s|${B}|${PTEST_PATH}|g" -e "s|${S}|${PTEST_PATH}|g" -e "s|${WORKDIR}/recipe-sysroot-native||g" "${D}${PTEST_PATH}/${file}"
|
||||
done
|
||||
|
||||
}
|
||||
@@ -0,0 +1,23 @@
|
||||
#!/bin/sh
|
||||
|
||||
# This script runs tests taken from the github CI for the Double-Conversion library.
|
||||
# For more information, please see: https://github.com/google/double-conversion/blob/master/.github/workflows/ci.yml#L60
|
||||
|
||||
# Count the number of failed tests
|
||||
NUM_FAILS=0
|
||||
|
||||
# Run all tests using ctest
|
||||
ctest -V
|
||||
|
||||
# VCount the number of failed tests by checking the LastTest.log file generated by ctest
|
||||
NUM_FAILS=$(grep -c "Failed" Testing/Temporary/LastTest.log)
|
||||
|
||||
# Run the tests directly as well, just in case we forgot to add it to ctest
|
||||
test/cctest/cctest
|
||||
if [ $? -ne 0 ]; then
|
||||
# If the test failed, increment the number of failed tests
|
||||
NUM_FAILS=$(expr $NUM_FAILS + 1)
|
||||
fi
|
||||
|
||||
# Return the number of failed tests
|
||||
exit $NUM_FAILS
|
||||
@@ -0,0 +1,19 @@
|
||||
SUMMARY = "Simple program to read/write from/to any location in memory"
|
||||
LICENSE = "GPL-2.0-or-later"
|
||||
LIC_FILES_CHKSUM = "file://devmem2.c;endline=38;md5=a9eb9f3890384519f435aedf986297cf"
|
||||
|
||||
SRC_URI = "git://github.com/denix0/devmem2.git;protocol=https;branch=main"
|
||||
SRCREV = "5b395a946894eb4f4ef5d07c80a50a88573a541e"
|
||||
|
||||
S = "${WORKDIR}/git"
|
||||
|
||||
CFLAGS += "-DFORCE_STRICT_ALIGNMENT"
|
||||
|
||||
do_compile() {
|
||||
${CC} -o devmem2 devmem2.c ${CFLAGS} ${LDFLAGS}
|
||||
}
|
||||
|
||||
do_install() {
|
||||
install -d ${D}${bindir}
|
||||
install devmem2 ${D}${bindir}
|
||||
}
|
||||
@@ -0,0 +1,24 @@
|
||||
require dfu-util_${PV}.bb
|
||||
|
||||
inherit deploy native
|
||||
|
||||
DEPENDS = "libusb1-native"
|
||||
|
||||
PACKAGECONFIG ??= ""
|
||||
|
||||
PACKAGECONFIG[static] = "CFLAGS='${CFLAGS} -pthread -static',,"
|
||||
|
||||
do_deploy() {
|
||||
install -m 0755 src/dfu-util ${DEPLOYDIR}/dfu-util-${PV}
|
||||
rm -f ${DEPLOYDIR}/dfu-util
|
||||
ln -sf ./dfu-util-${PV} ${DEPLOYDIR}/dfu-util
|
||||
}
|
||||
|
||||
addtask deploy before do_package after do_install
|
||||
|
||||
# cleandirs should possibly be in deploy.bbclass but we need it
|
||||
do_deploy[cleandirs] = "${DEPLOYDIR}"
|
||||
# clear stamp-extra-info since MACHINE_ARCH is normally put there by
|
||||
# deploy.bbclass
|
||||
do_deploy[stamp-extra-info] = ""
|
||||
|
||||
@@ -0,0 +1,11 @@
|
||||
DESCRIPTION = "USB Device Firmware Upgrade utility"
|
||||
HOMEPAGE = "http://dfu-util.sourceforge.net"
|
||||
SECTION = "devel"
|
||||
LICENSE = "GPL-2.0-only"
|
||||
LIC_FILES_CHKSUM = "file://COPYING;md5=94d55d512a9ba36caa9b7df079bae19f"
|
||||
DEPENDS = "libusb1"
|
||||
|
||||
SRC_URI = "http://dfu-util.sourceforge.net/releases/${BP}.tar.gz"
|
||||
SRC_URI[sha256sum] = "b4b53ba21a82ef7e3d4c47df2952adf5fa494f499b6b0b57c58c5d04ae8ff19e"
|
||||
|
||||
inherit autotools pkgconfig
|
||||
@@ -0,0 +1,25 @@
|
||||
SUMMARY = "dhex is a hex editor that includes a diff mode"
|
||||
SECTION = "console/utils"
|
||||
HOMEPAGE = "http://www.dettus.net/dhex/"
|
||||
|
||||
DEPENDS = "ncurses"
|
||||
|
||||
LICENSE = "GPL-2.0-or-later"
|
||||
LIC_FILES_CHKSUM = "file://README.txt;beginline=229;endline=241;md5=6f252a421b65bcecf624382ba3c899da"
|
||||
|
||||
SRC_URI = "http://www.dettus.net/dhex/dhex_0.69.tar.gz"
|
||||
SRC_URI[md5sum] = "64d557437fe110c19f23ed3e9bbcdd54"
|
||||
SRC_URI[sha256sum] = "52730bcd1cf16bd4dae0de42531be9a4057535ec61ca38c0804eb8246ea6c41b"
|
||||
|
||||
S = "${WORKDIR}/dhex_${PV}"
|
||||
|
||||
EXTRA_OEMAKE += "'CC=${CC}' 'LDFLAGS=${LDFLAGS}' 'CPPFLAGS=${CPPFLAGS}'"
|
||||
|
||||
do_compile() {
|
||||
oe_runmake
|
||||
}
|
||||
|
||||
do_install() {
|
||||
install -m 0755 -d ${D}${bindir}
|
||||
install -m 0755 ${S}/dhex ${D}${bindir}/
|
||||
}
|
||||
@@ -0,0 +1,23 @@
|
||||
SUMMARY = "read temperature sensors in a 1-Wire net"
|
||||
SECTION = "util"
|
||||
DEPENDS = "libusb1"
|
||||
LICENSE = "GPL-2.0-only"
|
||||
LIC_FILES_CHKSUM = "file://COPYING;md5=44fee82a1d2ed0676cf35478283e0aa0"
|
||||
|
||||
SRC_URI = "git://github.com/bcl/digitemp;branch=master;protocol=https"
|
||||
|
||||
SRCREV = "a162e63aad35358aab325388f3d5e88121606419"
|
||||
|
||||
S = "${WORKDIR}/git"
|
||||
|
||||
EXTRA_OEMAKE = "ds9097 ds9097u \
|
||||
SYSTYPE='Linux' \
|
||||
"
|
||||
do_configure() {
|
||||
rm -f digitemp_*
|
||||
}
|
||||
|
||||
do_install() {
|
||||
install -d ${D}${sbindir}
|
||||
install -m 0755 digitemp_* ${D}${sbindir}
|
||||
}
|
||||
@@ -0,0 +1,23 @@
|
||||
SUMMARY = "Dool is a Python3 compatible fork of Dstat"
|
||||
DESCRIPTION = "Dool is a command line tool to monitor many aspects of your system: \
|
||||
CPU, Memory, Network, Load Average, etc. It also includes a robust plug-in architecture \
|
||||
to allow monitoring other system metrics."
|
||||
HOMEPAGE = "http://dag.wiee.rs/home-made/dstat"
|
||||
LICENSE = "GPL-3.0-only"
|
||||
LIC_FILES_CHKSUM = "file://LICENSE;md5=1ebbd3e34237af26da5dc08a4e440464"
|
||||
|
||||
DEPENDS += "asciidoc-native xmlto-native"
|
||||
RDEPENDS:${PN} += "python3-core python3-misc python3-resource python3-shell python3-six python3-unixadmin"
|
||||
|
||||
SRC_URI = "git://github.com/scottchiefbaker/dool.git;branch=master;protocol=https \
|
||||
"
|
||||
|
||||
SRCREV = "30847c748483bc088549486292232d805b086b1f"
|
||||
|
||||
S = "${WORKDIR}/git"
|
||||
|
||||
do_install() {
|
||||
oe_runmake 'DESTDIR=${D}' install
|
||||
}
|
||||
|
||||
|
||||
@@ -0,0 +1,26 @@
|
||||
SUMMARY = "driverctl is a device driver control utility for Linux"
|
||||
LICENSE = "LGPL-2.1-only"
|
||||
LIC_FILES_CHKSUM = "file://COPYING;md5=4fbd65380cdd255951079008b364516c"
|
||||
|
||||
REQUIRED_DISTRO_FEATURES = "systemd"
|
||||
|
||||
DEPENDS = "systemd"
|
||||
RDEPENDS:${PN} += "bash bash-completion"
|
||||
|
||||
SRC_URI = "git://gitlab.com/driverctl/driverctl.git;branch=master;protocol=https"
|
||||
SRCREV = "2ba60536eb20ca0a6a751bd8b6501dba84ec45d3"
|
||||
|
||||
S = "${WORKDIR}/git"
|
||||
|
||||
inherit pkgconfig systemd features_check
|
||||
|
||||
do_install () {
|
||||
oe_runmake install DESTDIR=${D}
|
||||
}
|
||||
|
||||
FILES:${PN} += " \
|
||||
${libdir} \
|
||||
${datadir} \
|
||||
${systemd_system_unitdir} \
|
||||
"
|
||||
|
||||
@@ -0,0 +1,18 @@
|
||||
SUMMARY = "Decode EDID data in human-readable format"
|
||||
DESCRIPTION = "edid-decode decodes EDID monitor description data in human-readable format."
|
||||
HOMEPAGE = "https://hverkuil.home.xs4all.nl/edid-decode/edid-decode.html"
|
||||
|
||||
SECTION = "console/utils"
|
||||
LICENSE = "MIT"
|
||||
LIC_FILES_CHKSUM = "file://LICENSE;md5=2ef696d66c156139232201f223c22592"
|
||||
|
||||
SRC_URI= "git://git.linuxtv.org/edid-decode.git;protocol=https;branch=master"
|
||||
SRCREV = "5920bf2a756b2f748c49ff6a08b9f421026473c5"
|
||||
PV = "0.0+git"
|
||||
S = "${WORKDIR}/git"
|
||||
|
||||
do_install() {
|
||||
oe_runmake 'DESTDIR=${D}' install
|
||||
}
|
||||
|
||||
BBCLASSEXTEND = "native"
|
||||
@@ -0,0 +1,27 @@
|
||||
From 433ffb21119a0f39e882dd3fea4742e64aadcc40 Mon Sep 17 00:00:00 2001
|
||||
From: Khem Raj <raj.khem@gmail.com>
|
||||
Date: Sat, 11 Aug 2018 09:56:40 -0700
|
||||
Subject: [PATCH] eject: Include sys/sysmacros.h for major/minor
|
||||
|
||||
Fixes
|
||||
arm-bec-linux-gnueabi/gcc/arm-bec-linux-gnueabi/8.2.0/ld: eject.o: in function `GetMajorMinor':
|
||||
/usr/src/debug/eject/2.1.5-r1/eject-2.1.5/../../../../../../../workspace/sources/eject/eject.c:866: undefined reference to `major'
|
||||
|
||||
Upstream-Status: Pending
|
||||
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
||||
---
|
||||
eject.c | 1 +
|
||||
1 file changed, 1 insertion(+)
|
||||
|
||||
diff --git a/eject.c b/eject.c
|
||||
index 47e09fe..b171218 100644
|
||||
--- a/eject.c
|
||||
+++ b/eject.c
|
||||
@@ -54,6 +54,7 @@
|
||||
#include <sys/wait.h>
|
||||
#include <sys/mtio.h>
|
||||
#include <sys/mount.h>
|
||||
+#include <sys/sysmacros.h>
|
||||
|
||||
#if defined(__linux__)
|
||||
#include <linux/version.h>
|
||||
@@ -0,0 +1,19 @@
|
||||
Kept to help with debugging
|
||||
|
||||
Upstream-Status: Pending
|
||||
|
||||
Signed-off-by: Morgan Little <morgan.little@windriver.com>
|
||||
|
||||
--- eject-2.1.1/eject.c.tn 2005-08-24 11:27:42.000000000 +0200
|
||||
+++ eject-2.1.1/eject.c 2005-08-24 11:33:05.000000000 +0200
|
||||
@@ -638,7 +638,9 @@
|
||||
unsigned char sense_buffer[32];
|
||||
|
||||
if ((ioctl(fd, SG_GET_VERSION_NUM, &k) < 0) || (k < 30000)) {
|
||||
- printf("not an sg device, or old sg driver\n");
|
||||
+ if (v_option) {
|
||||
+ printf(_("not an sg device, or old sg driver\n"));
|
||||
+ }
|
||||
return 0;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,12 @@
|
||||
Upstream-Status: Inappropriate [the upstream is no longer active]
|
||||
|
||||
--- eject/eject.c.orig 2013-09-11 18:08:36.000000000 +0800
|
||||
+++ eject/eject.c 2013-09-11 18:09:05.000000000 +0800
|
||||
@@ -207,7 +207,6 @@
|
||||
"If omitted, name defaults to `%s'.\n"
|
||||
"By default tries -r, -s, -f, and -q in order until success.\n"),
|
||||
DEFAULTDEVICE);
|
||||
- exit(1);
|
||||
}
|
||||
|
||||
|
||||
@@ -0,0 +1,66 @@
|
||||
Kept to help with spaces in the mount path
|
||||
|
||||
Upstream-Status: Backport
|
||||
|
||||
Linux mangles spaces in mount points by changing them to an octal string
|
||||
of '\040'. So lets scan the mount point and fix it up by replacing all
|
||||
occurrences off '\0##' with the ASCII value of 0##. Requires a writable
|
||||
string as input as we mangle in place. Some of this was taken from the
|
||||
util-linux package.
|
||||
|
||||
Signed-off-by: Morgan Little <morgan.little@windriver.com>
|
||||
--- eject/eject.c.ori 2007-06-24 00:08:44 -0700
|
||||
+++ eject/eject.c 2007-06-24 00:12:44 -0700
|
||||
@@ -370,6 +370,30 @@
|
||||
|
||||
|
||||
/*
|
||||
+ * Linux mangles spaces in mount points by changing them to an octal string
|
||||
+ * of '\040'. So lets scan the mount point and fix it up by replacing all
|
||||
+ * occurrences off '\0##' with the ASCII value of 0##. Requires a writable
|
||||
+ * string as input as we mangle in place. Some of this was taken from the
|
||||
+ * util-linux package.
|
||||
+ */
|
||||
+#define octalify(a) ((a) & 7)
|
||||
+#define tooctal(s) (64*octalify(s[1]) + 8*octalify(s[2]) + octalify(s[3]))
|
||||
+#define isoctal(a) (((a) & ~7) == '0')
|
||||
+static char *DeMangleMount(char *s)
|
||||
+{
|
||||
+ char *tmp = s;
|
||||
+ while ((tmp = strchr(tmp, '\\')) != NULL) {
|
||||
+ if (isoctal(tmp[1]) && isoctal(tmp[2]) && isoctal(tmp[3])) {
|
||||
+ tmp[0] = tooctal(tmp);
|
||||
+ memmove(tmp+1, tmp+4, strlen(tmp)-3);
|
||||
+ }
|
||||
+ ++tmp;
|
||||
+ }
|
||||
+ return s;
|
||||
+}
|
||||
+
|
||||
+
|
||||
+/*
|
||||
* Given name, such as foo, see if any of the following exist:
|
||||
*
|
||||
* foo (if foo starts with '.' or '/')
|
||||
@@ -884,8 +908,8 @@
|
||||
if (((strcmp(s1, name) == 0) || (strcmp(s2, name) == 0)) ||
|
||||
((maj != -1) && (maj == mtabmaj) && (min == mtabmin))) {
|
||||
FCLOSE(fp);
|
||||
- *deviceName = strdup(s1);
|
||||
- *mountName = strdup(s2);
|
||||
+ *deviceName = DeMangleMount(strdup(s1));
|
||||
+ *mountName = DeMangleMount(strdup(s2));
|
||||
return 1;
|
||||
}
|
||||
}
|
||||
@@ -928,8 +952,8 @@
|
||||
rc = sscanf(line, "%1023s %1023s", s1, s2);
|
||||
if (rc >= 2 && s1[0] != '#' && strcmp(s2, name) == 0) {
|
||||
FCLOSE(fp);
|
||||
- *deviceName = strdup(s1);
|
||||
- *mountName = strdup(s2);
|
||||
+ *deviceName = DeMangleMount(strdup(s1));
|
||||
+ *mountName = DeMangleMount(strdup(s2));
|
||||
return 1;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
allow a longer timeout
|
||||
|
||||
Upstream-Status: Backport
|
||||
|
||||
Signed-off-by: Morgan Little <morgan.little@windriver.com>
|
||||
|
||||
--- eject/eject.c.orig 2006-08-07 16:35:15.000000000 +0200
|
||||
+++ eject/eject.c 2006-08-07 16:35:54.000000000 +0200
|
||||
@@ -723,7 +723,7 @@
|
||||
io_hdr.dxfer_len = 0;
|
||||
io_hdr.dxferp = inqBuff;
|
||||
io_hdr.sbp = sense_buffer;
|
||||
- io_hdr.timeout = 2000;
|
||||
+ io_hdr.timeout = 10000;
|
||||
|
||||
io_hdr.cmdp = allowRmBlk;
|
||||
status = ioctl(fd, SG_IO, (void *)&io_hdr);
|
||||
@@ -0,0 +1,37 @@
|
||||
DESCRIPTION = "Eject allows removable media (typically a CD-ROM, floppy disk, tape, or JAZ or ZIP disk) to be ejected under software control."
|
||||
HOMEPAGE = "http://eject.sourceforge.net/"
|
||||
LICENSE = "GPL-2.0-only"
|
||||
LIC_FILES_CHKSUM = "file://COPYING;md5=8ca43cbc842c2336e835926c2166c28b"
|
||||
|
||||
inherit autotools gettext update-alternatives
|
||||
|
||||
SRC_URI = "https://downloads.yoctoproject.org/mirror/sources/${BP}.tar.gz \
|
||||
file://eject-2.1.5-error-return.patch \
|
||||
file://eject-2.1.1-verbose.patch \
|
||||
file://eject-2.1.5-spaces.patch \
|
||||
file://eject-timeout.patch \
|
||||
file://0001-eject-Include-sys-sysmacros.h-for-major-minor.patch \
|
||||
"
|
||||
|
||||
SRC_URI[md5sum] = "b96a6d4263122f1711db12701d79f738"
|
||||
SRC_URI[sha256sum] = "ef9f7906484cfde4ba223b2682a37058f9a3c7d3bb1adda7a34a67402e2ffe55"
|
||||
|
||||
S = "${WORKDIR}/${BPN}"
|
||||
|
||||
|
||||
do_compile:prepend() {
|
||||
# PO subdir must be in build directory
|
||||
if [ ! ${S} = ${B} ]; then
|
||||
mkdir -p ${B}/po
|
||||
cp -r ${S}/po/* ${B}/po/
|
||||
fi
|
||||
}
|
||||
|
||||
ALTERNATIVE:${PN} = "volname eject"
|
||||
ALTERNATIVE_LINK_NAME[volname] = "${bindir}/volname"
|
||||
ALTERNATIVE_LINK_NAME[eject] = "${bindir}/eject"
|
||||
ALTERNATIVE_PRIORITY[volname] = "100"
|
||||
ALTERNATIVE_PRIORITY[eject] = "100"
|
||||
|
||||
ALTERNATIVE:${PN}-doc = "eject.1"
|
||||
ALTERNATIVE_LINK_NAME[eject.1] = "${mandir}/man1/eject.1"
|
||||
@@ -0,0 +1,311 @@
|
||||
SUMMARY = "Emacs is the extensible, customizable, self-documenting real-time display editor"
|
||||
HOMEPAGE = "https://www.gnu.org/software/emacs/"
|
||||
|
||||
LICENSE = "GPL-3.0-only"
|
||||
LIC_FILES_CHKSUM = "file://COPYING;md5=1ebbd3e34237af26da5dc08a4e440464"
|
||||
|
||||
SRC_URI = "https://ftp.gnu.org/pub/gnu/emacs/emacs-${PV}.tar.xz \
|
||||
"
|
||||
SRC_URI:append:class-target = " \
|
||||
file://use-emacs-native-tools-for-cross-compiling.patch \
|
||||
file://avoid-running-host-binaries-for-sanity.patch \
|
||||
"
|
||||
|
||||
SRC_URI[sha256sum] = "d2f881a5cc231e2f5a03e86f4584b0438f83edd7598a09d24a21bd8d003e2e01"
|
||||
|
||||
CVE_STATUS[CVE-2007-6109] = "fixed-version: The CPE in the NVD database doesn't reflect correctly the vulnerable versions."
|
||||
|
||||
PACKAGECONFIG[gnutls] = "--with-gnutls=yes,--with-gnutls=no,gnutls"
|
||||
PACKAGECONFIG[kerberos] = "--with-kerberos=yes,--with-kerberos=no,krb5"
|
||||
PACKAGECONFIG[libgmp] = "--with-libgmp=yes,--with-libgmp=no,gmp"
|
||||
PACKAGECONFIG[selinux] = "--with-selinux=yes,--with-selinux=no,libselinux"
|
||||
|
||||
PACKAGECONFIG ??= "gnutls kerberos libgmp"
|
||||
|
||||
# We could use --without-all but its better to
|
||||
# split it into several packages (size of minimal doesnt change)
|
||||
EXTRA_OECONF = " --with-x=no --with-dumping=none --disable-build-details"
|
||||
|
||||
# Disable seccomp, as its a default dependency for gnutls but it doesnt work when cross-compiling emacs
|
||||
EXTRA_OECONF:append = " ${@bb.utils.contains('PACKAGECONFIG', 'gnutls', 'ac_cv_have_decl_SECCOMP_FILTER_FLAG_TSYNC=no ac_cv_have_decl_SECCOMP_SET_MODE_FILTER=no', '', d)}"
|
||||
|
||||
|
||||
DEPENDS = "ncurses"
|
||||
DEPENDS:append:class-target = " emacs-native"
|
||||
|
||||
inherit autotools mime-xdg pkgconfig
|
||||
|
||||
|
||||
# Create the required native tools for the target build
|
||||
do_compile:class-native (){
|
||||
cd ${B}/lib-src
|
||||
oe_runmake make-docfile
|
||||
oe_runmake make-fingerprint
|
||||
cd ${B}/src
|
||||
oe_runmake bootstrap-emacs
|
||||
}
|
||||
|
||||
do_install:class-native(){
|
||||
install -d ${D}${bindir}
|
||||
install -m 755 ${B}/lib-src/make-docfile ${D}/${bindir}/
|
||||
install -m 755 ${B}/lib-src/make-fingerprint ${D}/${bindir}/
|
||||
install -m 755 ${B}/src/bootstrap-emacs ${D}/${bindir}/
|
||||
}
|
||||
|
||||
do_compile:prepend:class-target () {
|
||||
# export EMACS env variables for the native tools to use to allow calling bootstrap-emacs
|
||||
export EMACSLOADPATH=${S}/lisp
|
||||
export EMACSDATA=${S}/etc
|
||||
}
|
||||
|
||||
|
||||
do_install:prepend:class-target(){
|
||||
# export EMACS env variables for the native tools to use to allow calling bootstrap-emacs
|
||||
export EMACSLOADPATH=${S}/lisp
|
||||
export EMACSDATA=${S}/etc
|
||||
}
|
||||
|
||||
# Remove build host references to avoid target pollution
|
||||
do_compile:prepend () {
|
||||
sed -i -e 's|${TMPDIR}||g' ${B}/src/config.h
|
||||
sed -i -e 's|${B}||g' ${B}/src/epaths.h
|
||||
}
|
||||
|
||||
do_install:append(){
|
||||
# Delete systemd stuff, extend using DISTRO_FEATURES?
|
||||
rm -rf ${D}/${libdir}
|
||||
# Extra stuff which isnt needed
|
||||
rm -rf ${D}/${datadir}/metainfo
|
||||
rm -rf ${D}/${datadir}/info
|
||||
# Emacs copies files to ${D} while building, which were unpacked
|
||||
# by a different user, we need to restore those
|
||||
chown -R root:root ${D}${datadir}
|
||||
}
|
||||
|
||||
# Use a similar strategy to how we build python:
|
||||
# Create three packages
|
||||
# minimal - A working lisp based text editor
|
||||
# base - What would probably work for most
|
||||
# full - A fully working emacs
|
||||
# The lists of files are long but are worth it
|
||||
# Installing "emacs" installs the base package
|
||||
PACKAGE_BEFORE_PN = "${PN}-minimal ${PN}-base ${PN}-full"
|
||||
RPROVIDES:${PN}-base = "${PN}"
|
||||
RDEPENDS:${PN}-base:class-target = "${PN}-minimal"
|
||||
RDEPENDS:${PN}-full:class-target = "${PN}"
|
||||
|
||||
|
||||
# A minimal version of emacs that works
|
||||
# These are kept sorted in alphabetical order
|
||||
FILES:${PN}-minimal = " \
|
||||
${bindir}/emacs* \
|
||||
${datadir}/${BPN}/${PV}/etc/charsets/ \
|
||||
${datadir}/${BPN}/${PV}/lisp/abbrev.elc \
|
||||
${datadir}/${BPN}/${PV}/lisp/bindings.elc \
|
||||
${datadir}/${BPN}/${PV}/lisp/buff-menu.elc \
|
||||
${datadir}/${BPN}/${PV}/lisp/button.elc \
|
||||
${datadir}/${BPN}/${PV}/lisp/case-table.elc \
|
||||
${datadir}/${BPN}/${PV}/lisp/composite.elc \
|
||||
${datadir}/${BPN}/${PV}/lisp/cus-face.elc \
|
||||
${datadir}/${BPN}/${PV}/lisp/cus-start.elc \
|
||||
${datadir}/${BPN}/${PV}/lisp/custom.elc \
|
||||
${datadir}/${BPN}/${PV}/lisp/disp-table.elc \
|
||||
${datadir}/${BPN}/${PV}/lisp/electric.elc \
|
||||
${datadir}/${BPN}/${PV}/lisp/emacs-lisp/backquote.elc \
|
||||
${datadir}/${BPN}/${PV}/lisp/emacs-lisp/byte-opt.elc \
|
||||
${datadir}/${BPN}/${PV}/lisp/emacs-lisp/byte-run.elc \
|
||||
${datadir}/${BPN}/${PV}/lisp/emacs-lisp/bytecomp.elc \
|
||||
${datadir}/${BPN}/${PV}/lisp/emacs-lisp/cconv.elc \
|
||||
${datadir}/${BPN}/${PV}/lisp/emacs-lisp/cl-generic.elc \
|
||||
${datadir}/${BPN}/${PV}/lisp/emacs-lisp/cl-lib.elc \
|
||||
${datadir}/${BPN}/${PV}/lisp/emacs-lisp/cl-macs.elc \
|
||||
${datadir}/${BPN}/${PV}/lisp/emacs-lisp/cl-preloaded.elc \
|
||||
${datadir}/${BPN}/${PV}/lisp/emacs-lisp/cl-seq.elc \
|
||||
${datadir}/${BPN}/${PV}/lisp/emacs-lisp/debug-early.elc \
|
||||
${datadir}/${BPN}/${PV}/lisp/emacs-lisp/easy-mmode.elc \
|
||||
${datadir}/${BPN}/${PV}/lisp/emacs-lisp/easymenu.elc \
|
||||
${datadir}/${BPN}/${PV}/lisp/emacs-lisp/eldoc.elc \
|
||||
${datadir}/${BPN}/${PV}/lisp/emacs-lisp/float-sup.elc \
|
||||
${datadir}/${BPN}/${PV}/lisp/emacs-lisp/gv.elc \
|
||||
${datadir}/${BPN}/${PV}/lisp/emacs-lisp/inline.elc \
|
||||
${datadir}/${BPN}/${PV}/lisp/emacs-lisp/lisp-mode.elc \
|
||||
${datadir}/${BPN}/${PV}/lisp/emacs-lisp/lisp.elc \
|
||||
${datadir}/${BPN}/${PV}/lisp/emacs-lisp/macroexp.elc \
|
||||
${datadir}/${BPN}/${PV}/lisp/emacs-lisp/map-ynp.elc \
|
||||
${datadir}/${BPN}/${PV}/lisp/emacs-lisp/map.elc \
|
||||
${datadir}/${BPN}/${PV}/lisp/emacs-lisp/nadvice.elc \
|
||||
${datadir}/${BPN}/${PV}/lisp/emacs-lisp/oclosure.elc \
|
||||
${datadir}/${BPN}/${PV}/lisp/emacs-lisp/pcase.elc \
|
||||
${datadir}/${BPN}/${PV}/lisp/emacs-lisp/regexp-opt.elc \
|
||||
${datadir}/${BPN}/${PV}/lisp/emacs-lisp/rmc.elc \
|
||||
${datadir}/${BPN}/${PV}/lisp/emacs-lisp/rx.elc \
|
||||
${datadir}/${BPN}/${PV}/lisp/emacs-lisp/seq.elc \
|
||||
${datadir}/${BPN}/${PV}/lisp/emacs-lisp/shorthands.elc \
|
||||
${datadir}/${BPN}/${PV}/lisp/emacs-lisp/subr-x.elc \
|
||||
${datadir}/${BPN}/${PV}/lisp/emacs-lisp/syntax.elc \
|
||||
${datadir}/${BPN}/${PV}/lisp/emacs-lisp/tabulated-list.elc \
|
||||
${datadir}/${BPN}/${PV}/lisp/emacs-lisp/timer.elc \
|
||||
${datadir}/${BPN}/${PV}/lisp/emacs-lisp/vc/warnings.elc \
|
||||
${datadir}/${BPN}/${PV}/lisp/env.elc \
|
||||
${datadir}/${BPN}/${PV}/lisp/epa-hook.elc \
|
||||
${datadir}/${BPN}/${PV}/lisp/facemenu.elc \
|
||||
${datadir}/${BPN}/${PV}/lisp/faces.elc \
|
||||
${datadir}/${BPN}/${PV}/lisp/files.elc \
|
||||
${datadir}/${BPN}/${PV}/lisp/font-core.elc \
|
||||
${datadir}/${BPN}/${PV}/lisp/font-lock.elc \
|
||||
${datadir}/${BPN}/${PV}/lisp/format.elc \
|
||||
${datadir}/${BPN}/${PV}/lisp/frame.elc \
|
||||
${datadir}/${BPN}/${PV}/lisp/help.elc \
|
||||
${datadir}/${BPN}/${PV}/lisp/image.elc \
|
||||
${datadir}/${BPN}/${PV}/lisp/indent.elc \
|
||||
${datadir}/${BPN}/${PV}/lisp/international/characters.elc \
|
||||
${datadir}/${BPN}/${PV}/lisp/international/charprop.el \
|
||||
${datadir}/${BPN}/${PV}/lisp/international/charscript.elc \
|
||||
${datadir}/${BPN}/${PV}/lisp/international/cp51932.elc \
|
||||
${datadir}/${BPN}/${PV}/lisp/international/emoji-zwj.elc \
|
||||
${datadir}/${BPN}/${PV}/lisp/international/eucjp-ms.elc \
|
||||
${datadir}/${BPN}/${PV}/lisp/international/iso-transl.elc \
|
||||
${datadir}/${BPN}/${PV}/lisp/international/mule-cmds.elc \
|
||||
${datadir}/${BPN}/${PV}/lisp/international/mule-conf.elc \
|
||||
${datadir}/${BPN}/${PV}/lisp/international/mule.elc \
|
||||
${datadir}/${BPN}/${PV}/lisp/international/uni*.el \
|
||||
${datadir}/${BPN}/${PV}/lisp/isearch.elc \
|
||||
${datadir}/${BPN}/${PV}/lisp/jit-lock.elc \
|
||||
${datadir}/${BPN}/${PV}/lisp/jka-cmpr-hook.elc \
|
||||
${datadir}/${BPN}/${PV}/lisp/jka-compr.elc \
|
||||
${datadir}/${BPN}/${PV}/lisp/keymap.elc \
|
||||
${datadir}/${BPN}/${PV}/lisp/language/burmese.elc \
|
||||
${datadir}/${BPN}/${PV}/lisp/language/cham.elc \
|
||||
${datadir}/${BPN}/${PV}/lisp/language/chinese.elc \
|
||||
${datadir}/${BPN}/${PV}/lisp/language/cyrillic.elc \
|
||||
${datadir}/${BPN}/${PV}/lisp/language/czech.elc \
|
||||
${datadir}/${BPN}/${PV}/lisp/language/english.elc \
|
||||
${datadir}/${BPN}/${PV}/lisp/language/ethiopic.elc \
|
||||
${datadir}/${BPN}/${PV}/lisp/language/european.elc \
|
||||
${datadir}/${BPN}/${PV}/lisp/language/georgian.elc \
|
||||
${datadir}/${BPN}/${PV}/lisp/language/greek.elc \
|
||||
${datadir}/${BPN}/${PV}/lisp/language/hebrew.elc \
|
||||
${datadir}/${BPN}/${PV}/lisp/language/indian.elc \
|
||||
${datadir}/${BPN}/${PV}/lisp/language/indonesian.elc \
|
||||
${datadir}/${BPN}/${PV}/lisp/language/japanese.elc \
|
||||
${datadir}/${BPN}/${PV}/lisp/language/khmer.elc \
|
||||
${datadir}/${BPN}/${PV}/lisp/language/korean.elc \
|
||||
${datadir}/${BPN}/${PV}/lisp/language/lao.elc \
|
||||
${datadir}/${BPN}/${PV}/lisp/language/misc-lang.elc \
|
||||
${datadir}/${BPN}/${PV}/lisp/language/philippine.elc \
|
||||
${datadir}/${BPN}/${PV}/lisp/language/romanian.elc \
|
||||
${datadir}/${BPN}/${PV}/lisp/language/sinhala.elc \
|
||||
${datadir}/${BPN}/${PV}/lisp/language/slovak.elc \
|
||||
${datadir}/${BPN}/${PV}/lisp/language/tai-viet.elc \
|
||||
${datadir}/${BPN}/${PV}/lisp/language/thai.elc \
|
||||
${datadir}/${BPN}/${PV}/lisp/language/tibetan.elc \
|
||||
${datadir}/${BPN}/${PV}/lisp/language/utf-8-lang.elc \
|
||||
${datadir}/${BPN}/${PV}/lisp/language/vietnamese.elc \
|
||||
${datadir}/${BPN}/${PV}/lisp/ldefs-boot.el \
|
||||
${datadir}/${BPN}/${PV}/lisp/loaddefs.el \
|
||||
${datadir}/${BPN}/${PV}/lisp/loadup.el \
|
||||
${datadir}/${BPN}/${PV}/lisp/menu-bar.elc \
|
||||
${datadir}/${BPN}/${PV}/lisp/minibuffer.elc \
|
||||
${datadir}/${BPN}/${PV}/lisp/mouse.elc \
|
||||
${datadir}/${BPN}/${PV}/lisp/newcomment.elc \
|
||||
${datadir}/${BPN}/${PV}/lisp/obarray.elc \
|
||||
${datadir}/${BPN}/${PV}/lisp/paren.elc \
|
||||
${datadir}/${BPN}/${PV}/lisp/progmodes/elisp-mode.elc \
|
||||
${datadir}/${BPN}/${PV}/lisp/progmodes/prog-mode.elc \
|
||||
${datadir}/${BPN}/${PV}/lisp/register.elc \
|
||||
${datadir}/${BPN}/${PV}/lisp/replace.elc \
|
||||
${datadir}/${BPN}/${PV}/lisp/rfn-eshadow.elc \
|
||||
${datadir}/${BPN}/${PV}/lisp/select.elc \
|
||||
${datadir}/${BPN}/${PV}/lisp/simple.elc \
|
||||
${datadir}/${BPN}/${PV}/lisp/startup.elc \
|
||||
${datadir}/${BPN}/${PV}/lisp/subr.elc \
|
||||
${datadir}/${BPN}/${PV}/lisp/tab-bar.elc \
|
||||
${datadir}/${BPN}/${PV}/lisp/term/tty-colors.elc \
|
||||
${datadir}/${BPN}/${PV}/lisp/term/xterm.elc \
|
||||
${datadir}/${BPN}/${PV}/lisp/textmodes/fill.elc \
|
||||
${datadir}/${BPN}/${PV}/lisp/textmodes/page.elc \
|
||||
${datadir}/${BPN}/${PV}/lisp/textmodes/paragraphs.elc \
|
||||
${datadir}/${BPN}/${PV}/lisp/textmodes/text-mode.elc \
|
||||
${datadir}/${BPN}/${PV}/lisp/thingatpt.elc \
|
||||
${datadir}/${BPN}/${PV}/lisp/tooltip.elc \
|
||||
${datadir}/${BPN}/${PV}/lisp/uniquify.elc \
|
||||
${datadir}/${BPN}/${PV}/lisp/vc/ediff-hook.elc \
|
||||
${datadir}/${BPN}/${PV}/lisp/vc/vc-hooks.elc \
|
||||
${datadir}/${BPN}/${PV}/lisp/version.elc \
|
||||
${datadir}/${BPN}/${PV}/lisp/widget.elc \
|
||||
${datadir}/${BPN}/${PV}/lisp/window.elc \
|
||||
${prefix}/libexec \
|
||||
"
|
||||
|
||||
# What works for "most" is relative, but this can be easily extended if needed
|
||||
FILES:${PN}-base = " \
|
||||
${datadir}/${BPN}/${PV}/etc/e \
|
||||
${datadir}/${BPN}/${PV}/etc/forms \
|
||||
${datadir}/${BPN}/${PV}/etc/srecode \
|
||||
${datadir}/${BPN}/${PV}/etc/themes/adwaita-theme.el \
|
||||
${datadir}/${BPN}/${PV}/etc/themes/deeper-blue-theme.el \
|
||||
${datadir}/${BPN}/${PV}/etc/themes/light-blue-theme.el \
|
||||
${datadir}/${BPN}/${PV}/etc/themes/misterioso-theme.el \
|
||||
${datadir}/${BPN}/${PV}/etc/themes/tango-theme.el \
|
||||
${datadir}/${BPN}/${PV}/etc/themes/wheatgrass-theme.el \
|
||||
${datadir}/${BPN}/${PV}/etc/themes/wombat-theme.el \
|
||||
${datadir}/${BPN}/${PV}/lisp/ansi-color.elc \
|
||||
${datadir}/${BPN}/${PV}/lisp/auth-source.elc \
|
||||
${datadir}/${BPN}/${PV}/lisp/calendar/iso8601.elc \
|
||||
${datadir}/${BPN}/${PV}/lisp/calendar/parse-time.elc \
|
||||
${datadir}/${BPN}/${PV}/lisp/calendar/time-date.elc \
|
||||
${datadir}/${BPN}/${PV}/lisp/cedet \
|
||||
${datadir}/${BPN}/${PV}/lisp/comint.elc \
|
||||
${datadir}/${BPN}/${PV}/lisp/emacs-lisp/cl-lib.elc \
|
||||
${datadir}/${BPN}/${PV}/lisp/emacs-lisp/cl-macs.elc \
|
||||
${datadir}/${BPN}/${PV}/lisp/emacs-lisp/cl-seq.elc \
|
||||
${datadir}/${BPN}/${PV}/lisp/emacs-lisp/eieio-core.elc \
|
||||
${datadir}/${BPN}/${PV}/lisp/emacs-lisp/eieio.elc \
|
||||
${datadir}/${BPN}/${PV}/lisp/emacs-lisp/inline.elc \
|
||||
${datadir}/${BPN}/${PV}/lisp/emacs-lisp/pcase.elc \
|
||||
${datadir}/${BPN}/${PV}/lisp/emacs-lisp/ring.elc \
|
||||
${datadir}/${BPN}/${PV}/lisp/emacs-lisp/smie.elc \
|
||||
${datadir}/${BPN}/${PV}/lisp/files-x.elc \
|
||||
${datadir}/${BPN}/${PV}/lisp/format-spec.elc \
|
||||
${datadir}/${BPN}/${PV}/lisp/json.elc \
|
||||
${datadir}/${BPN}/${PV}/lisp/ls-lisp.elc \
|
||||
${datadir}/${BPN}/${PV}/lisp/net/tramp-compat.elc \
|
||||
${datadir}/${BPN}/${PV}/lisp/net/tramp-integration.elc \
|
||||
${datadir}/${BPN}/${PV}/lisp/net/tramp-loaddefs.el \
|
||||
${datadir}/${BPN}/${PV}/lisp/net/tramp-sh.elc \
|
||||
${datadir}/${BPN}/${PV}/lisp/net/tramp.elc \
|
||||
${datadir}/${BPN}/${PV}/lisp/net/trampver.elc \
|
||||
${datadir}/${BPN}/${PV}/lisp/password-cache.elc \
|
||||
${datadir}/${BPN}/${PV}/lisp/pcomplete.elc \
|
||||
${datadir}/${BPN}/${PV}/lisp/progmodes/*asm* \
|
||||
${datadir}/${BPN}/${PV}/lisp/progmodes/*perl* \
|
||||
${datadir}/${BPN}/${PV}/lisp/progmodes/cc-align.elc \
|
||||
${datadir}/${BPN}/${PV}/lisp/progmodes/cc-cmds.elc \
|
||||
${datadir}/${BPN}/${PV}/lisp/progmodes/cc-defs.elc \
|
||||
${datadir}/${BPN}/${PV}/lisp/progmodes/cc-engine.elc \
|
||||
${datadir}/${BPN}/${PV}/lisp/progmodes/cc-fonts.elc \
|
||||
${datadir}/${BPN}/${PV}/lisp/progmodes/cc-guess.elc \
|
||||
${datadir}/${BPN}/${PV}/lisp/progmodes/cc-menus.elc \
|
||||
${datadir}/${BPN}/${PV}/lisp/progmodes/cc-mode.elc \
|
||||
${datadir}/${BPN}/${PV}/lisp/progmodes/cc-styles.elc \
|
||||
${datadir}/${BPN}/${PV}/lisp/progmodes/cc-vars.elc \
|
||||
${datadir}/${BPN}/${PV}/lisp/progmodes/cpp* \
|
||||
${datadir}/${BPN}/${PV}/lisp/progmodes/executable* \
|
||||
${datadir}/${BPN}/${PV}/lisp/progmodes/make* \
|
||||
${datadir}/${BPN}/${PV}/lisp/progmodes/prog* \
|
||||
${datadir}/${BPN}/${PV}/lisp/progmodes/python* \
|
||||
${datadir}/${BPN}/${PV}/lisp/progmodes/sh-script* \
|
||||
${datadir}/${BPN}/${PV}/lisp/shell.elc \
|
||||
${datadir}/${BPN}/${PV}/lisp/subdirs.el \
|
||||
${datadir}/${BPN}/${PV}/site-lisp/ \
|
||||
"
|
||||
|
||||
# Restore FILES for the full package to catch everything left
|
||||
FILES:${PN}-full = "${FILES:${PN}}"
|
||||
FILES:${PN}-full:append = " ${datadir}/icons"
|
||||
|
||||
|
||||
# The following does NOT build a native emacs.
|
||||
# It only builds some parts of it that are
|
||||
# required to by the build for target emacs.
|
||||
BBCLASSEXTEND = "native"
|
||||
@@ -0,0 +1,38 @@
|
||||
Upstream-Status: Inappropriate [OE-Specific]
|
||||
|
||||
Emacs introduced a sanity-check for the build artifacts, where it
|
||||
runs the newly built emacs to perform some checks.
|
||||
|
||||
This is not going to work for us since we are cross-compiling,
|
||||
we need to avoid running target binaries on the host
|
||||
|
||||
Signed-off-by: Alejandro Hernandez Samaniego <alejandro@enedino.org>
|
||||
|
||||
Index: emacs-29.1/Makefile.in
|
||||
===================================================================
|
||||
--- emacs-29.1.orig/Makefile.in
|
||||
+++ emacs-29.1/Makefile.in
|
||||
@@ -416,19 +416,10 @@ advice-on-failure:
|
||||
@exit ${exit-status}
|
||||
|
||||
sanity-check:
|
||||
- @[ -f .no-advice-on-failure ] && exit 0; true
|
||||
- @v=$$(src/emacs${EXEEXT} --batch --eval \
|
||||
- '(progn (defun f (n) (if (= 0 n) 1 (* n (f (- n 1))))) (princ (f 10)))' \
|
||||
- 2> /dev/null); \
|
||||
- [ "X$$v" = "X3628800" ] && exit 0; \
|
||||
- echo >&2 '***'; \
|
||||
- echo >&2 '*** '"\"make ${make-target}\" succeeded, but Emacs is not functional."; \
|
||||
- echo >&2 '***'; \
|
||||
- cat Makefile | \
|
||||
- sed -n '/^# ADVICE-ON-FAILURE-BEGIN:${make-target}/,$${p;/^# ADVICE-ON-FAILURE-END:${make-target}/q;};' | \
|
||||
- sed 's/^# /*** /' | grep -v '^\*\*\* ADVICE-ON-FAILURE-' >&2; \
|
||||
- echo >&2 '***'; \
|
||||
- exit 1
|
||||
+# The Makefile will try to call the newly built emacs to perform some checks
|
||||
+# this is not going to work since it was (probably) built for a different architecture.
|
||||
+# Avoid calling target binaries from the host and simply assume our build artifacts work.
|
||||
+ exit 0
|
||||
|
||||
.PHONY: all ${SUBDIR} blessmail epaths-force epaths-force-w32 epaths-force-ns-self-contained etc-emacsver
|
||||
|
||||
@@ -0,0 +1,106 @@
|
||||
Upstream-Status: Inappropriate [OE-Specific]
|
||||
|
||||
When building emacs, it builds some tools for the HOST
|
||||
that are then used to build for target, such as
|
||||
make-fingerprint and make-docfile and bootstrap-emacs,
|
||||
this needs to be adapted to be used by bitbake, otherwise
|
||||
the compiled executables arent compatible with the HOST.
|
||||
|
||||
We also need to be able to use emacs env variables to
|
||||
control how bootstrap-emacs is used when cross-compiling.
|
||||
|
||||
Use the above mentioned tools provided by the native
|
||||
version of the recipe instead.
|
||||
|
||||
Signed-off-by: Alejandro Enedino Hernandez Samaniego <alejandro@enedino.org>
|
||||
|
||||
Index: emacs-29.1/src/Makefile.in
|
||||
===================================================================
|
||||
--- emacs-29.1.orig/src/Makefile.in
|
||||
+++ emacs-29.1/src/Makefile.in
|
||||
@@ -1,3 +1,4 @@
|
||||
+
|
||||
### @configure_input@
|
||||
|
||||
# Copyright (C) 1985, 1987-1988, 1993-1995, 1999-2023 Free Software
|
||||
@@ -508,7 +509,7 @@ ifeq ($(CHECK_STRUCTS),true)
|
||||
pdumper.o: dmpstruct.h
|
||||
endif
|
||||
dmpstruct.h: $(srcdir)/dmpstruct.awk
|
||||
-dmpstruct.h: $(libsrc)/make-fingerprint$(EXEEXT) $(dmpstruct_headers)
|
||||
+dmpstruct.h: $(dmpstruct_headers)
|
||||
$(AM_V_GEN)POSIXLY_CORRECT=1 awk -f $(srcdir)/dmpstruct.awk \
|
||||
$(dmpstruct_headers) > $@
|
||||
|
||||
@@ -610,8 +611,7 @@ SYSTEM_TYPE = @SYSTEM_TYPE@
|
||||
## Strictly speaking, emacs does not depend directly on all of $lisp,
|
||||
## since not all pieces are used on all platforms. But DOC depends
|
||||
## on all of $lisp, and emacs depends on DOC, so it is ok to use $lisp here.
|
||||
-emacs$(EXEEXT): temacs$(EXEEXT) \
|
||||
- lisp.mk $(etc)/DOC $(lisp) \
|
||||
+emacs$(EXEEXT): lisp.mk $(etc)/DOC $(lisp) \
|
||||
$(lispsource)/international/charprop.el ${charsets}
|
||||
ifeq ($(SYSTEM_TYPE),cygwin)
|
||||
find ${top_builddir} -name '*.eln' | rebase -v -O -T -
|
||||
@@ -654,7 +654,7 @@ endif
|
||||
$(etc)/DOC: $(libsrc)/make-docfile$(EXEEXT) $(doc_obj)
|
||||
$(AM_V_GEN)$(MKDIR_P) $(etc)
|
||||
$(AM_V_at)rm -f $(etc)/DOC
|
||||
- $(AM_V_at)$(libsrc)/make-docfile -d $(srcdir) \
|
||||
+ make-docfile -d $(srcdir) \
|
||||
$(SOME_MACHINE_OBJECTS) $(doc_obj) > $(etc)/DOC
|
||||
|
||||
$(libsrc)/make-docfile$(EXEEXT) $(libsrc)/make-fingerprint$(EXEEXT): \
|
||||
@@ -671,7 +671,7 @@ buildobj.h: Makefile
|
||||
GLOBAL_SOURCES = $(base_obj:.o=.c) $(NS_OBJC_OBJ:.o=.m)
|
||||
|
||||
gl-stamp: $(libsrc)/make-docfile$(EXEEXT) $(GLOBAL_SOURCES)
|
||||
- $(AM_V_GLOBALS)$(libsrc)/make-docfile -d $(srcdir) -g $(doc_obj) > globals.tmp
|
||||
+ make-docfile -d $(srcdir) -g $(doc_obj) > globals.tmp
|
||||
$(AM_V_at)$(top_srcdir)/build-aux/move-if-change globals.tmp globals.h
|
||||
$(AM_V_at)echo timestamp > $@
|
||||
|
||||
@@ -685,7 +685,7 @@ $(LIBEGNU_ARCHIVE): $(config_h)
|
||||
$(MAKE) -C $(dir $@) all
|
||||
|
||||
ifeq ($(HAVE_PDUMPER),yes)
|
||||
-MAKE_PDUMPER_FINGERPRINT = $(libsrc)/make-fingerprint$(EXEEXT)
|
||||
+MAKE_PDUMPER_FINGERPRINT = make-fingerprint
|
||||
else
|
||||
MAKE_PDUMPER_FINGERPRINT =
|
||||
endif
|
||||
Index: emacs-29.1/lisp/Makefile.in
|
||||
===================================================================
|
||||
--- emacs-29.1.orig/lisp/Makefile.in
|
||||
+++ emacs-29.1/lisp/Makefile.in
|
||||
@@ -53,7 +53,7 @@ FIND_DELETE = @FIND_DELETE@
|
||||
# We never change directory before running Emacs, so a relative file
|
||||
# name is fine, and makes life easier. If we need to change
|
||||
# directory, we can use emacs --chdir.
|
||||
-EMACS = ../src/emacs${EXEEXT}
|
||||
+EMACS = bootstrap-emacs
|
||||
|
||||
# Command line flags for Emacs.
|
||||
|
||||
@@ -109,7 +109,7 @@ MAIN_FIRST = ./emacs-lisp/eieio.el ./ema
|
||||
./org/oc.el ./org/ol.el ./emacs-lisp/cl-lib.el
|
||||
|
||||
# Prevent any settings in the user environment causing problems.
|
||||
-unexport EMACSDATA EMACSDOC EMACSLOADPATH EMACSPATH
|
||||
+unexport EMACSDOC EMACSPATH
|
||||
|
||||
# The actual Emacs command run in the targets below.
|
||||
emacs = '$(EMACS)' $(EMACSOPT)
|
||||
Index: emacs-29.1/Makefile.in
|
||||
===================================================================
|
||||
--- emacs-29.1.orig/Makefile.in
|
||||
+++ emacs-29.1/Makefile.in
|
||||
@@ -328,7 +328,7 @@ GLIB_COMPILE_SCHEMAS = glib-compile-sche
|
||||
TRANSFORM = @program_transform_name@
|
||||
|
||||
# Prevent any settings in the user environment causing problems.
|
||||
-unexport EMACSDATA EMACSDOC EMACSLOADPATH EMACSPATH
|
||||
+unexport EMACSDOC EMACSPATH
|
||||
|
||||
# What emacs should be called when installed.
|
||||
EMACS_NAME = `echo emacs | sed '$(TRANSFORM)'`
|
||||
@@ -0,0 +1,30 @@
|
||||
From c6a59d512706978e8c67f9a2d84ec650f8763368 Mon Sep 17 00:00:00 2001
|
||||
From: Khem Raj <raj.khem@gmail.com>
|
||||
Date: Mon, 8 May 2023 18:02:52 -0700
|
||||
Subject: [PATCH] Do not use $MKTEMP_PROG in cross-build
|
||||
|
||||
$MKTEMP_PROG points to native location which could be absolute path that
|
||||
wont exist on target rootfs. Therefore use it from PATH
|
||||
|
||||
Upstream-Status: Pending
|
||||
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
||||
---
|
||||
configure.ac | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/configure.ac b/configure.ac
|
||||
index 4852a2f..d23b384 100644
|
||||
--- a/configure.ac
|
||||
+++ b/configure.ac
|
||||
@@ -186,7 +186,7 @@ ye_PATH_LOCALE_ALIAS
|
||||
|
||||
dnl Random filename generation in scripts
|
||||
if test -n "$MKTEMP_PROG"; then
|
||||
- SHELL_RANDOM_FILENAME='`'$MKTEMP_PROG' /tmp/enca-$$-XXXXXXXX`'
|
||||
+ SHELL_RANDOM_FILENAME='`mktemp /tmp/enca-$$-XXXXXXXX`'
|
||||
else
|
||||
SHELL_RANDOM_FILENAME='/tmp/enca-$$-$RANDOM'
|
||||
fi
|
||||
--
|
||||
2.40.1
|
||||
|
||||
@@ -0,0 +1,15 @@
|
||||
Upstream-Status: Pending
|
||||
|
||||
Index: enca-1.9/Makefile.am
|
||||
===================================================================
|
||||
--- enca-1.9.orig/Makefile.am 2005-11-24 11:21:32.000000000 +0100
|
||||
+++ enca-1.9/Makefile.am 2006-04-11 11:14:21.832502904 +0200
|
||||
@@ -2,7 +2,7 @@
|
||||
if MAINTAINER_MODE
|
||||
SUBDIRS = tools data script lib src devel-docs test
|
||||
else
|
||||
-SUBDIRS = tools script lib src devel-docs test
|
||||
+SUBDIRS = tools script lib src devel-docs
|
||||
endif
|
||||
man_MANS = man/enca.1
|
||||
|
||||
@@ -0,0 +1,30 @@
|
||||
From 7e144495093187143a3d1589f74c2eac37e4d790 Mon Sep 17 00:00:00 2001
|
||||
From: Maxime Hadjinlian <maxime.hadjinlian@gmail.com>
|
||||
Date: Sun, 4 May 2014 15:49:28 +0200
|
||||
Subject: [PATCH] libiconv.m4: Fix AM_ICONV macro usage
|
||||
|
||||
This patch come straight from the Buildroot source tree.
|
||||
|
||||
Signed-off-by: Bernd Kuhls <berndkuhls@hotmail.com>
|
||||
Signed-off-by: Maxime Hadjinlian <maxime.hadjinlian@gmail.com>
|
||||
---
|
||||
Upstream-Status: Pending
|
||||
|
||||
m4/libiconv.m4 | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/m4/libiconv.m4 b/m4/libiconv.m4
|
||||
index fc8c6f8..3a59549 100644
|
||||
--- a/m4/libiconv.m4
|
||||
+++ b/m4/libiconv.m4
|
||||
@@ -17,7 +17,7 @@ AC_REQUIRE([AC_C_CONST])dnl
|
||||
dnl
|
||||
|
||||
dnl Use standard iconv test
|
||||
-AM_ICONV
|
||||
+m4_pattern_allow([AM_ICONV])
|
||||
CONVERTER_LIBS="$CONVERTER_LIBS $LIBICONV"
|
||||
|
||||
dnl Compile iconvcap.c and run it to determine what encodings iconv actually
|
||||
--
|
||||
1.9.3
|
||||
@@ -0,0 +1,14 @@
|
||||
Upstream-Status: Pending
|
||||
|
||||
--- enca-1.19/Makefile.am.orig 2006-06-29 15:34:55.000000000 +0100
|
||||
+++ enca-1.19/Makefile.am 2006-06-29 15:35:20.000000000 +0100
|
||||
@@ -1,7 +1,7 @@
|
||||
if MAINTAINER_MODE
|
||||
-SUBDIRS = tools data script lib src devel-docs test
|
||||
+SUBDIRS = data script lib src devel-docs test
|
||||
else
|
||||
-SUBDIRS = tools script lib src devel-docs
|
||||
+SUBDIRS = script lib src devel-docs
|
||||
endif
|
||||
man_MANS = man/enca.1
|
||||
|
||||
@@ -0,0 +1,34 @@
|
||||
SUMMARY = "Enca is an Extremely Naive Charset Analyser"
|
||||
SECTION = "libs"
|
||||
HOMEPAGE = "https://cihar.com/software/enca/"
|
||||
|
||||
DEPENDS += "gettext-native"
|
||||
|
||||
LICENSE = "GPL-2.0-only"
|
||||
LIC_FILES_CHKSUM = "file://COPYING;md5=24b9569831c46d4818450b55282476b4"
|
||||
|
||||
SRC_URI = "https://dl.cihar.com/enca/enca-${PV}.tar.gz \
|
||||
file://dont-run-tests.patch \
|
||||
file://makefile-remove-tools.patch \
|
||||
file://libenca-003-iconv.patch \
|
||||
file://0001-Do-not-use-MKTEMP_PROG-in-cross-build.patch"
|
||||
SRC_URI[sha256sum] = "4c305cc59f3e57f2cfc150a6ac511690f43633595760e1cb266bf23362d72f8a"
|
||||
|
||||
inherit autotools
|
||||
|
||||
do_configure:prepend() {
|
||||
# remove failing test which checks for something that isn't even used
|
||||
sed -i -e '/ye_FUNC_SCANF_MODIF_SIZE_T/d' ${S}/configure.ac
|
||||
}
|
||||
|
||||
do_configure:append() {
|
||||
sed -i s:-I/usr/include::g ${B}/Makefile
|
||||
sed -i s:-I/usr/include::g ${B}/*/Makefile
|
||||
}
|
||||
|
||||
do_compile() {
|
||||
cd ${S}/tools && ${BUILD_CC} -o make_hash make_hash.c
|
||||
cd ${B}
|
||||
oe_runmake
|
||||
}
|
||||
|
||||
@@ -0,0 +1,32 @@
|
||||
From 4e0c62634b0db6dbad0d41377bb71a8012abd75b Mon Sep 17 00:00:00 2001
|
||||
From: Khem Raj <raj.khem@gmail.com>
|
||||
Date: Thu, 1 Sep 2022 12:56:54 -0700
|
||||
Subject: [PATCH] configure: Fix checks for libjpeg and libexif
|
||||
|
||||
Use the functions from the respective library instead of using main
|
||||
function which is not part of library
|
||||
|
||||
Upstream-Status: Submitted [https://github.com/mattes/epeg/pull/27]
|
||||
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
||||
---
|
||||
configure.ac | 4 ++--
|
||||
1 file changed, 2 insertions(+), 2 deletions(-)
|
||||
|
||||
diff --git a/configure.ac b/configure.ac
|
||||
index a4f6ebd..e474b1d 100644
|
||||
--- a/configure.ac
|
||||
+++ b/configure.ac
|
||||
@@ -31,8 +31,8 @@ AC_SUBST(version_info)
|
||||
dnl AC_CHECK_FUNCS(fmemopen)
|
||||
dnl AC_CHECK_FUNCS(open_memstream)
|
||||
|
||||
-AC_CHECK_LIB([jpeg], [main], [], [echo "libjpeg library not found. Please install it before proceeding"; exit -1])
|
||||
-AC_CHECK_LIB([exif], [main], [], [echo "libexif library not found. Please install it before proceeding"; exit -1])
|
||||
+AC_CHECK_LIB([jpeg], [jpeg_simple_progression], [], [echo "libjpeg library not found. Please install it before proceeding"; exit -1])
|
||||
+AC_CHECK_LIB([exif], [exif_data_new_from_file], [], [echo "libexif library not found. Please install it before proceeding"; exit -1])
|
||||
|
||||
my_includes=""
|
||||
my_libs="-ljpeg -lexif"
|
||||
--
|
||||
2.37.3
|
||||
|
||||
@@ -0,0 +1,15 @@
|
||||
SUMMARY = "Epeg is a small library for handling thumbnails"
|
||||
DESCRIPTION = "Insanely fast JPEG/ JPG thumbnail scaling with the minimum fuss and CPU overhead. It makes use of libjpeg features of being able to load an image by only decoding the DCT coefficients needed to reconstruct an image of the size desired."
|
||||
LICENSE = "MIT"
|
||||
LIC_FILES_CHKSUM = "file://COPYING;md5=e7732a9290ea1e4b034fdc15cf49968d \
|
||||
file://COPYING-PLAIN;md5=f59cacc08235a546b0c34a5422133035"
|
||||
DEPENDS = "jpeg libexif"
|
||||
|
||||
SRC_URI = "git://github.com/mattes/epeg.git;branch=master;protocol=https \
|
||||
file://0001-configure-Fix-checks-for-libjpeg-and-libexif.patch \
|
||||
"
|
||||
SRCREV = "9a175cd67eaa61fe45413d8da82da72936567047"
|
||||
S = "${WORKDIR}/git"
|
||||
|
||||
inherit autotools pkgconfig
|
||||
|
||||
@@ -0,0 +1,68 @@
|
||||
DESCRIPTION = "eSpeak is a compact open source software speech synthesizer"
|
||||
SECTION = "base"
|
||||
LICENSE = "GPL-3.0-only"
|
||||
LIC_FILES_CHKSUM = "file://License.txt;md5=cb7a20edb4c9f5f478de6523dcd7362c"
|
||||
|
||||
SRC_URI = "http://downloads.sourceforge.net/espeak/espeak-1.48.04-source.zip \
|
||||
file://0001-Fix-build-of-shared-library-on-architectures-needing.patch \
|
||||
file://0002-tr_languages-cast-string_ordinal-init-values.patch \
|
||||
file://0001-Drop-using-register-keyword-for-storage-classifier.patch \
|
||||
"
|
||||
SRC_URI[md5sum] = "cadd7482eaafe9239546bdc09fa244c3"
|
||||
SRC_URI[sha256sum] = "bf9a17673adffcc28ff7ea18764f06136547e97bbd9edf2ec612f09b207f0659"
|
||||
|
||||
S = "${WORKDIR}/espeak-${PV}-source"
|
||||
|
||||
DEPENDS = "portaudio-v19 qemu-helper-native"
|
||||
inherit siteinfo qemu
|
||||
|
||||
|
||||
CXXFLAGS += "-DUSE_PORTAUDIO"
|
||||
TARGET_CC_ARCH += "${LDFLAGS}"
|
||||
|
||||
FILES:${PN} += "${datadir}/espeak-data"
|
||||
|
||||
do_configure() {
|
||||
# "speak" binary, a TTS engine, uses portaudio in either APIs V18 or V19, use V19
|
||||
install -m 0644 "${S}/src/portaudio19.h" "${S}/src/portaudio.h"
|
||||
}
|
||||
|
||||
do_compile() {
|
||||
cd src
|
||||
oe_runmake
|
||||
|
||||
cd "${S}/platforms/big_endian"
|
||||
qemu_binary="${@qemu_wrapper_cmdline(d, '${STAGING_DIR_TARGET}', ['${S}/platforms/big_endian', '${STAGING_DIR_TARGET}${base_libdir}'])}"
|
||||
cat >qemuwrapper <<EOF
|
||||
#!/bin/sh
|
||||
$qemu_binary "\$@"
|
||||
EOF
|
||||
chmod +x qemuwrapper
|
||||
sed -i '/^ *CC *=/d' Makefile
|
||||
# Fixing byte order of phoneme data files
|
||||
if [ "${SITEINFO_ENDIANNESS}" = "be" ]; then
|
||||
sed -i 's/\(.*BYTE_ORDER\)/#undef BYTE_ORDER\n#define BYTE_ORDER BIG_ENDIAN\n\1/' espeak-phoneme-data.c
|
||||
else
|
||||
sed -i 's/\(.*BYTE_ORDER\)/#undef BYTE_ORDER\n#define BYTE_ORDER LITTLE_ENDIAN\n\1/' espeak-phoneme-data.c
|
||||
fi
|
||||
oe_runmake
|
||||
./qemuwrapper ./espeak-phoneme-data "${S}/espeak-data" "." "${S}/espeak-data/phondata-manifest"
|
||||
cp -f phondata phonindex phontab "${S}/espeak-data"
|
||||
}
|
||||
|
||||
do_install() {
|
||||
install -d ${D}${bindir}
|
||||
install -d ${D}${libdir}
|
||||
install -d ${D}${includedir}/espeak
|
||||
install -d ${D}${datadir}/espeak-data
|
||||
|
||||
# we do not ship "speak" binary though.
|
||||
install -m 0755 ${S}/src/espeak ${D}${bindir}
|
||||
install -m 0644 ${S}/src/speak_lib.h ${D}${includedir}/espeak/
|
||||
ln -sf espeak/espeak.h ${D}${includedir}/
|
||||
oe_libinstall -so -C src libespeak ${D}${libdir}
|
||||
|
||||
cp -R --no-dereference --preserve=mode,links ${S}/espeak-data/* ${D}${datadir}/espeak-data
|
||||
}
|
||||
|
||||
RDEPENDS:${PN} = "portaudio-v19"
|
||||
@@ -0,0 +1,38 @@
|
||||
From bad6131463275bd8013a82c28fb0b27e882bc801 Mon Sep 17 00:00:00 2001
|
||||
From: Khem Raj <raj.khem@gmail.com>
|
||||
Date: Wed, 18 Jan 2023 16:07:35 -0800
|
||||
Subject: [PATCH] Drop using 'register' keyword for storage classifier
|
||||
|
||||
Its gone from C++17 and newer
|
||||
|
||||
Upstream-Status: Pending
|
||||
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
||||
---
|
||||
src/klatt.cpp | 4 ++--
|
||||
1 file changed, 2 insertions(+), 2 deletions(-)
|
||||
|
||||
diff --git a/src/klatt.cpp b/src/klatt.cpp
|
||||
index b15f77c..9c51bc5 100755
|
||||
--- a/src/klatt.cpp
|
||||
+++ b/src/klatt.cpp
|
||||
@@ -167,7 +167,7 @@ Output = (rnz.a * input) + (rnz.b * oldin1) + (rnz.c * oldin2)
|
||||
#ifdef deleted
|
||||
static double antiresonator(resonator_ptr r, double input)
|
||||
{
|
||||
- register double x = (double)r->a * (double)input + (double)r->b * (double)r->p1 + (double)r->c * (double)r->p2;
|
||||
+ double x = (double)r->a * (double)input + (double)r->b * (double)r->p1 + (double)r->c * (double)r->p2;
|
||||
r->p2 = (double)r->p1;
|
||||
r->p1 = (double)input;
|
||||
return (double)x;
|
||||
@@ -176,7 +176,7 @@ static double antiresonator(resonator_ptr r, double input)
|
||||
|
||||
static double antiresonator2(resonator_ptr r, double input)
|
||||
{
|
||||
- register double x = (double)r->a * (double)input + (double)r->b * (double)r->p1 + (double)r->c * (double)r->p2;
|
||||
+ double x = (double)r->a * (double)input + (double)r->b * (double)r->p1 + (double)r->c * (double)r->p2;
|
||||
r->p2 = (double)r->p1;
|
||||
r->p1 = (double)input;
|
||||
|
||||
--
|
||||
2.39.1
|
||||
|
||||
@@ -0,0 +1,33 @@
|
||||
From 08a464e2b6bd31bb2bf4e258ebfa9b9d65805abf Mon Sep 17 00:00:00 2001
|
||||
From: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
|
||||
Date: Fri, 27 Nov 2015 15:17:02 +0100
|
||||
Subject: [PATCH] Fix build of shared library on architectures needing -fPIC
|
||||
|
||||
Certain architectures, like Sparc and Sparc64 require objects to be
|
||||
built with -fPIC (and not just -fpic) to be usable in shared
|
||||
libraries. On other architectures, -fPIC is the same as -fpic so this
|
||||
patch doesn't affect such architectures.
|
||||
|
||||
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
|
||||
---
|
||||
Upstream-Status: Pending
|
||||
|
||||
src/Makefile | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/src/Makefile b/src/Makefile
|
||||
index 95fe549..c293611 100755
|
||||
--- a/src/Makefile
|
||||
+++ b/src/Makefile
|
||||
@@ -110,7 +110,7 @@ $(BIN2_NAME): $(OBJS3) $(LIB_NAME)
|
||||
|
||||
|
||||
x_%.o: %.cpp
|
||||
- $(CXX) $(CXXFLAGS) $(USE_AUDIO) -D PATH_ESPEAK_DATA=\"$(DATADIR)\" -Wall -fpic -fvisibility=hidden -pedantic \
|
||||
+ $(CXX) $(CXXFLAGS) $(USE_AUDIO) -D PATH_ESPEAK_DATA=\"$(DATADIR)\" -Wall -fPIC -fvisibility=hidden -pedantic \
|
||||
-I. -D LIBRARY -c -fno-exceptions $< -o x_$*.o
|
||||
|
||||
$(LIB_NAME): $(OBJS2)
|
||||
--
|
||||
2.6.3
|
||||
|
||||
@@ -0,0 +1,34 @@
|
||||
From 451330d09a6a3500b40bc4f5896ba790ab46cd6c Mon Sep 17 00:00:00 2001
|
||||
From: Romain Naour <romain.naour@gmail.com>
|
||||
Date: Sun, 15 Jan 2017 19:37:31 +0100
|
||||
Subject: [PATCH 2/2] tr_languages: cast string_ordinal init values
|
||||
|
||||
On some architecture, "char" is signed (x86_64, nios2...) so the
|
||||
compiler try to convert int 0xc2 and 0xba to a signed char.
|
||||
This is an error since gcc6 (Wnarrowing).
|
||||
|
||||
Fixes:
|
||||
http://autobuild.buildroot.net/results/bae/baef9888b1979d18171668a675985e3f3b45fda6
|
||||
|
||||
Upstream-Status: Pending [imported from BR]
|
||||
Signed-off-by: Romain Naour <romain.naour@gmail.com>
|
||||
---
|
||||
src/tr_languages.cpp | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/src/tr_languages.cpp b/src/tr_languages.cpp
|
||||
index 5c80286..dbc6e36 100644
|
||||
--- a/src/tr_languages.cpp
|
||||
+++ b/src/tr_languages.cpp
|
||||
@@ -200,7 +200,7 @@ static const unsigned short chars_ignore_zwnj_hyphen[] = {
|
||||
0x200d, 1, // zero width joiner
|
||||
0, 0 };
|
||||
|
||||
-const char string_ordinal[] = {0xc2,0xba,0}; // masculine ordinal character, UTF-8
|
||||
+const char string_ordinal[] = {(char)0xc2,(char)0xba,0}; // masculine ordinal character, UTF-8
|
||||
|
||||
|
||||
static Translator* NewTranslator(void)
|
||||
--
|
||||
2.9.3
|
||||
|
||||
@@ -0,0 +1,21 @@
|
||||
SUMMARY = "Kernel evdev device emulation"
|
||||
DESCRIPTION = "The evemu library and tools are used to describe devices, record data, create devices and replay data from kernel evdev devices."
|
||||
HOMEPAGE = "https://www.freedesktop.org/wiki/Evemu"
|
||||
|
||||
LICENSE = "GPL-3.0-only"
|
||||
LIC_FILES_CHKSUM = "file://COPYING;md5=e6a600fd5e1d9cbde2d983680233ad02"
|
||||
|
||||
DEPENDS = "libevdev"
|
||||
|
||||
SRCREV = "86a5627dbeac8d9d9bc34326a758d6a477e876e4"
|
||||
SRC_URI = "git://git@gitlab.freedesktop.org/libevdev/evemu.git;protocol=https;branch=master"
|
||||
|
||||
S = "${WORKDIR}/git"
|
||||
PV = "2.7.0+git"
|
||||
|
||||
inherit autotools pkgconfig
|
||||
|
||||
PACKAGES =+ "${PN}-python"
|
||||
FILES:${PN}-python = "${libdir}/python*/site-packages/*"
|
||||
RDEPENDS:${PN}-python = "python3"
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user