added my Recipes

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

View File

@@ -0,0 +1,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${SRCPV}"
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

View File

@@ -0,0 +1,58 @@
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

View File

@@ -0,0 +1,17 @@
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

View File

@@ -0,0 +1,111 @@
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

View File

@@ -0,0 +1,47 @@
DESCRIPTION="Anthy is a system for Japanese input method. It converts Hiragana text to Kana Kanji mixed text."
AUTHOR = "Anthy Developers <anthy-dev@lists.sourceforge.jp>"
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"

View File

@@ -0,0 +1,43 @@
From 6ab00a4279823829a9b82dc9e4d055da4de88c6e Mon Sep 17 00:00:00 2001
From: Markus Volk <f_l_k@t-online.de>
Date: Mon, 12 Dec 2022 15:42:42 +0100
Subject: [PATCH] fix crosscompile
Signed-off-by: Markus Volk <f_l_k@t-online.de>
Upstream-Status: Inappropriate [oe-specific]
---
data/meson.build | 2 +-
meson.build | 2 +-
tools/meson.build | 9 +++++++++
3 files changed, 11 insertions(+), 2 deletions(-)
diff --git a/data/meson.build b/data/meson.build
index aea0cb25..1a085fc9 100644
--- a/data/meson.build
+++ b/data/meson.build
@@ -14,7 +14,7 @@ install_data('its/metainfo.loc',
metainfo_with_relinfo = custom_target('gen-output',
input : ['../NEWS', 'org.freedesktop.appstream.cli.metainfo.xml'],
output : ['nol10n_withrelinfo_org.freedesktop.appstream.cli.metainfo.xml'],
- command : [ascli_exe, 'news-to-metainfo', '--limit=6', '@INPUT0@', '@INPUT1@', '@OUTPUT@']
+ command : ['appstreamcli', 'news-to-metainfo', '--limit=6', '@INPUT0@', '@INPUT1@', '@OUTPUT@']
)
metainfo_i18n = i18n.itstool_join(
diff --git a/meson.build b/meson.build
index fd0e3373..2f273ada 100644
--- a/meson.build
+++ b/meson.build
@@ -124,7 +124,7 @@ if get_option ('gir')
dependency('gobject-introspection-1.0', version: '>=1.56')
endif
-stemmer_inc_dirs = include_directories(['/usr/include'])
+stemmer_inc_dirs = include_directories([''])
if get_option('stemming')
stemmer_lib = cc.find_library('stemmer', required: true)
if not cc.has_header('libstemmer.h')
--
2.34.1

View File

@@ -0,0 +1,48 @@
SUMMARY = "AppStream is a collaborative effort for making machine-readable software metadata easily available."
HOMEPAGE = "https://github.com/ximion/appstream"
LICENSE = "LGPL-2.1-only"
LIC_FILES_CHKSUM = "file://COPYING;md5=435ed639f84d4585d93824e7da3d85da"
DEPENDS = " \
appstream-native \
curl-native \
curl \
docbook-xml-dtd4-native \
gperf-native \
glib-2.0 \
libyaml \
libxml2 \
libxmlb \
libxslt-native \
itstool-native \
docbook-xsl-stylesheets-native \
python3-pygments-native \
"
inherit meson gobject-introspection gettext gtk-doc pkgconfig vala
GIR_MESON_OPTION = "gir"
SRC_URI = "https://www.freedesktop.org/software/appstream/releases/AppStream-${PV}.tar.xz"
SRC_URI:append:class-target = " file://0001-fix-crosscompile.patch"
SRC_URI[sha256sum] = "77e274e163db1f0a1bec8f4134b1d0f31e9c0a8c54cd37f724a7d30a71cf41d2"
S = "${WORKDIR}/AppStream-${PV}"
PACKAGECONFIG ?= "stemming ${@bb.utils.filter('DISTRO_FEATURES', 'systemd', d)}"
PACKAGECONFIG[systemd] = "-Dsystemd=true,-Dsystemd=false,systemd"
PACKAGECONFIG[stemming] = "-Dstemming=true,-Dstemming=false,libstemmer"
FILES:${PN} += "${datadir}"
EXTRA_OEMESON:class-target += "--cross-file=${WORKDIR}/meson-${PN}.cross"
do_write_config:append:class-target() {
cat >${WORKDIR}/meson-${PN}.cross <<EOF
[binaries]
appstreamcli = '${STAGING_BINDIR_NATIVE}/appstreamcli'
EOF
}
BBCLASSEXTEND = "native"

View File

@@ -0,0 +1,28 @@
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."
AUTHOR = "Christopher M. Kohlhoff (chris at kohlhoff dot com)"
HOMEPAGE = "http://think-async.com/Asio"
SECTION = "libs"
LICENSE = "BSL-1.0"
DEPENDS = "openssl"
SRC_URI = "${SOURCEFORGE_MIRROR}/asio/${BP}.tar.bz2"
inherit autotools
ALLOW_EMPTY:${PN} = "1"
LIC_FILES_CHKSUM = "file://COPYING;md5=416f4cc4f79551b690babb14ef1a5799"
SRC_URI[sha256sum] = "204374d3cadff1b57a63f4c343cbadcee28374c072dc04b549d772dbba9f650c"
SRC_URI = "${SOURCEFORGE_MIRROR}/asio/${BP}.tar.bz2"
PACKAGECONFIG ??= "boost"
PACKAGECONFIG[boost] = "--with-boost=${STAGING_LIBDIR},--without-boost,boost"
BBCLASSEXTEND = "native nativesdk"

View File

@@ -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

View File

@@ -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)

View File

@@ -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)

View File

@@ -0,0 +1 @@
d root root 0755 /var/volatile/log/atop none

View File

@@ -0,0 +1 @@
d /var/volatile/log/atop - - - -

View File

@@ -0,0 +1,64 @@
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_CHECK_IGNORE += "\
CVE-2011-3618 \
"
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"

View File

@@ -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

View File

@@ -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

View File

@@ -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"

View File

@@ -0,0 +1,17 @@
SUMMARY = "Apache Avro data serialization system."
HOMEPAGE = "http://apr.apache.org/"
SECTION = "libs"
LICENSE = "Apache-2.0"
LIC_FILES_CHKSUM = "file://LICENSE;md5=6d502b41f76179fc84e536236f359cae"
DEPENDS = "jansson zlib xz"
BRANCH = "branch-1.11"
SRCREV = "3a9e5a789b5165e0c8c4da799c387fdf84bfb75e"
SRC_URI = "git://github.com/apache/avro;branch=${BRANCH};protocol=https \
"
S = "${WORKDIR}/git/lang/c"
inherit cmake pkgconfig

View File

@@ -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 = "http://www.hboehm.info/gc/"
SECTION = "devel"
LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://README.QUICK;md5=dd27361ad00943bb27bc3e0589037075"
DEPENDS = "libatomic-ops"
SRCREV = "cd1fbc1dbfd2cc888436944dd2784f39820698d7"
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"

View File

@@ -0,0 +1,28 @@
SUMMARY = "[Boost::ext].SML (State Machine Language)"
DESCRIPTION = "Your scalable C++14 one header only State Machine Library with no dependencies"
AUTHOR = "Krzysztof Jusiak"
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"
PV = "1.1.6"
SRC_URI = "git://github.com/boost-ext/sml.git;protocol=https;branch=master"
SRCREV = "23e9a24e434cac9922039cbb43ca54ab70bef72c"
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"

View File

@@ -0,0 +1,21 @@
# 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=fb997454c8d62aa6a47f07a8cd48b006"
SRC_URI = "git://github.com/c-ares/c-ares.git;branch=main;protocol=https"
SRCREV = "6360e96b5cf8e5980c887ce58ef727e53d77243a"
UPSTREAM_CHECK_GITTAGREGEX = "cares-(?P<pver>\d+_(\d_?)+)"
S = "${WORKDIR}/git"
inherit cmake pkgconfig
PACKAGES =+ "${PN}-utils"
FILES:${PN}-utils = "${bindir}"
BBCLASSEXTEND = "native nativesdk"

View File

@@ -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=4097ec544cf01e9c7cfc4bdf8e4ed887"
SRC_URI = "git://github.com/vsergeev/c-periphery;protocol=https;branch=master"
SRCREV = "23bfa4ab481edbad82a69ee385fc58ce03b63084"
S = "${WORKDIR}/git"
inherit cmake
EXTRA_OECMAKE = "-DBUILD_SHARED_LIBS=ON"
BBCLASSEXTEND = "native nativesdk"

View File

@@ -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;

View File

@@ -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}"

View File

@@ -0,0 +1,43 @@
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>
---
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

View File

@@ -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

View File

@@ -0,0 +1,14 @@
--- 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;
+ }
}
}

View File

@@ -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 \
${libdir}/${PYTHON_DIR}/site-packages/geis* \
${libdir}/${PYTHON_DIR}/site-packages/_*.so \
"
FILES:${PN}-dbg += "${libdir}/${PYTHON_DIR}/site-packages/.debug"
FILES:${PN}-dev += "${libdir}/${PYTHON_DIR}/site-packages/_*.la"
FILES:${PN}-staticdev += "${libdir}/${PYTHON_DIR}/site-packages/_*.a"

View File

@@ -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}"

View File

@@ -0,0 +1,22 @@
Subject: [PATCH] Add build rule for README.
fix do_configure error:
Makefile.am: required file `./README' not found
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 49574a3..a5a7c2a 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -26,3 +26,4 @@ libtool: $(LIBTOOL_DEPS)
ChangeLog:
git log --stat --decorate=short > $@
+README: README.md
--
2.7.4

View File

@@ -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] = "13934487e6f8b48f699a16d367cc7a1af7a3ca874de721ac6e9633beb86e7219"
inherit autotools pkgconfig
FILES:${PN} += "${libdir}/pcsc/"
FILES:${PN}-dbg += "${libdir}/pcsc/drivers/*/*/*/.debug"

View File

@@ -0,0 +1,42 @@
DESCRIPTION = "Ceres Solver is an open source C++ library for modeling and solving large, complicated optimization problems."
AUTHOR = "Sameer Agarwal and Keir Mierle and Others"
HOMEPAGE = "http://ceres-solver.org/"
LICENSE = "BSD-3-Clause"
LIC_FILES_CHKSUM = "file://LICENSE;md5=bb761279816b72be19d7ce646e4e2a14"
DEPENDS = "libeigen glog"
SRC_URI = "git://github.com/ceres-solver/ceres-solver.git;branch=master;protocol=https"
SRCREV = "f68321e7de8929fbcdb95dd42877531e64f72f66"
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})"

View File

@@ -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

View File

@@ -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)
}

View File

@@ -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

View File

@@ -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${SRCPV}"
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"

View File

@@ -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 = "5ba25ff40eba44c811f79ab6a792baf945b8307c"
S = "${WORKDIR}/git"
inherit cmake lib_package
EXTRA_OECMAKE += " \
-DCMARK_TESTS=OFF \
-DCMARK_STATIC=OFF \
"

View File

@@ -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}/
}

View File

@@ -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

View File

@@ -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

View File

@@ -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"

View File

@@ -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"

View File

@@ -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

View File

@@ -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"

View File

@@ -0,0 +1,26 @@
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"
SRC_URI = "\
git://github.com/cpp-netlib/cpp-netlib.git;protocol=https;branch=0.13-release \
"
SRC_URI[sha256sum] = "0b9255bb0668d89867a1f367d770f12d7038db4f5b6111774ef032f669cccad4"
SRCREV = "ca95f04d140acf619892ee02a82e930dd91ff7d4"
S = "${WORKDIR}/git"
inherit cmake pkgconfig
DEPENDS = "zlib boost openssl"
EXTRA_OECMAKE:append = " -DCPP-NETLIB_BUILD_TESTS=OFF -DCPP-NETLIB_BUILD_EXAMPLES=OFF"

View File

@@ -0,0 +1,25 @@
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)
{

View File

@@ -0,0 +1,127 @@
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

View File

@@ -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.17
SRCREV= "122d09549201da5383321d870bed45ecb9e168c5"
S = "${WORKDIR}/git"
inherit cmake pkgconfig

View File

@@ -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

View File

@@ -0,0 +1,22 @@
SUMMARY = "cpulimit is a tool which limits the CPU usage of a process"
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}"

View File

@@ -0,0 +1,19 @@
SUMMARY = "Utility that provides userspace support for reading and writing to the i.MX fuses"
LICENSE = "GPL-3.0-only"
LIC_FILES_CHKSUM = "file://src/${GO_IMPORT}/LICENSE;md5=a64ced9463b8c81d08335d41966e0592"
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 = "6fc8c38cd1ae61b3855a3bd43b042dc5cdad7252"
# 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

View File

@@ -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://distrib-coffee.ipsl.jussieu.fr/pub/linux/altlinux/autoimports/Sisyphus/x86_64/SRPMS.autoimports/ctapi-common-1.1-alt1_14.src.rpm;extract=ctapi-common.LICENSE \
https://distrib-coffee.ipsl.jussieu.fr/pub/linux/altlinux/autoimports/Sisyphus/x86_64/SRPMS.autoimports/ctapi-common-1.1-alt1_14.src.rpm;extract=ctapi-common.README"
SRC_URI[sha256sum] = "0531a6db39271166f1e9060f81a0b2d47f878210dfb4f465c703fe205cc3a8ce"
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"

View File

@@ -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"

View File

@@ -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

View File

@@ -0,0 +1,26 @@
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>
---
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

View File

@@ -0,0 +1,25 @@
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;'
---
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

View File

@@ -0,0 +1,47 @@
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
---
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

View File

@@ -0,0 +1,45 @@
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

View File

@@ -0,0 +1,74 @@
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"

View File

@@ -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"

View File

@@ -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 = "af09fd65fcf24eee95dc62813ba9123414635428"
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
}

View File

@@ -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

View File

@@ -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}
}

View File

@@ -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] = ""

View File

@@ -0,0 +1,12 @@
DESCRIPTION = "USB Device Firmware Upgrade utility"
AUTHOR = "Harald Welte <laforge@openmoko.org>"
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

View File

@@ -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}/
}

View File

@@ -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}
}

View File

@@ -0,0 +1,39 @@
From e81feec1ebbc676220cd8759d83f46335602d079 Mon Sep 17 00:00:00 2001
From: Lei Maohui <leimaohui@fujitsu.com>
Date: Fri, 7 Jan 2022 14:37:36 +0900
Subject: [PATCH] Fix build error as following:
*** No rule to make target 'dstat.1', needed by 'docs'. Stop.
Upstream-Status: Pending
Signed-off-by: Lei Maohui <leimaohui@fujitsu.com>
---
docs/Makefile | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/docs/Makefile b/docs/Makefile
index c031e82..1a85e61 100644
--- a/docs/Makefile
+++ b/docs/Makefile
@@ -11,13 +11,13 @@ all:
dist: docs
-docs: dstat.1 $(htmltargets)
+docs: dool.1 $(htmltargets)
-install: dstat.1
- install -Dp -m0644 dstat.1 $(DESTDIR)$(mandir)/man1/dstat.1
+install: dool.1
+ install -Dp -m0644 dool.1 $(DESTDIR)$(mandir)/man1/dool.1
clean:
- rm -f dstat.1 *.html *.xml
+ rm -f dool.1 *.html *.xml
%.1.html: %.1.adoc
asciidoc -d manpage $<
--
2.25.1

View File

@@ -0,0 +1,261 @@
From 689c65fb050976d5a548a5b9a0f5d2c14eaa3301 Mon Sep 17 00:00:00 2001
From: Alexander Stein <alexander.stein@tq-group.com>
Date: Thu, 8 Dec 2022 14:11:46 +0100
Subject: [PATCH 1/1] Fix rename in docs
The content of dool.1.adoc is completly unchanged from dstat.1.adoc.
Unfortunately the 'NAME' specifies the created file name. So
building/cleaning docs is currently broken
Upstream-Status: Pending
https://github.com/scottchiefbaker/dool/pull/30
Signed-off-by: Alexander Stein <alexander.stein@tq-group.com>
---
docs/dool.1.adoc | 108 +++++++++++++++++++++++------------------------
1 file changed, 54 insertions(+), 54 deletions(-)
diff --git a/docs/dool.1.adoc b/docs/dool.1.adoc
index 24c4a54..921df1f 100644
--- a/docs/dool.1.adoc
+++ b/docs/dool.1.adoc
@@ -1,35 +1,35 @@
-= dstat(1)
+= dool(1)
Dag Wieers <dag@wieers.com>
v0.7.3, August 2014
== NAME
-dstat - versatile tool for generating system resource statistics
+dool - versatile tool for generating system resource statistics
== SYNOPSIS
-dstat [-afv] [options..] [delay [count]]
+dool [-afv] [options..] [delay [count]]
== DESCRIPTION
-Dstat is a versatile replacement for vmstat, iostat and ifstat. Dstat
+Dool is a versatile replacement for vmstat, iostat and ifstat. Dool
overcomes some of the limitations and adds some extra features.
-Dstat allows you to view all of your system resources instantly, you
+Dool allows you to view all of your system resources instantly, you
can eg. compare disk usage in combination with interrupts from your
IDE controller, or compare the network bandwidth numbers directly with
the disk throughput (in the same interval).
-Dstat also cleverly gives you the most detailed information in columns
+Dool also cleverly gives you the most detailed information in columns
and clearly indicates in what magnitude and unit the output is displayed.
Less confusion, less mistakes, more efficient.
-Dstat is unique in letting you aggregate block device throughput for a
+Dool is unique in letting you aggregate block device throughput for a
certain diskset or network bandwidth for a group of interfaces, ie.
you can see the throughput for all the block devices that make up a
single filesystem or storage system.
-Dstat allows its data to be directly written to a CSV file to be
+Dool allows its data to be directly written to a CSV file to be
imported and used by OpenOffice, Gnumeric or Excel to create graphs.
[NOTE]
@@ -187,13 +187,13 @@ Possible internal stats are::
write CSV output to file
--profile::
- show profiling statistics when exiting dstat
+ show profiling statistics when exiting dool
== PLUGINS
-While anyone can create their own dstat plugins (and contribute them) dstat
+While anyone can create their own dool plugins (and contribute them) dool
ships with a number of plugins already that extend its capabilities greatly.
-Here is an overview of the plugins dstat ships with:
+Here is an overview of the plugins dool ships with:
--battery::
battery in percentage (needs ACPI)
@@ -225,17 +225,17 @@ Here is an overview of the plugins dstat ships with:
--disk-wait::
average time (in milliseconds) for I/O requests issued to the device to be served
---dstat::
- show dstat cputime consumption and latency
+--dool::
+ show dool cputime consumption and latency
---dstat-cpu::
- show dstat advanced cpu usage
+--dool-cpu::
+ show dool advanced cpu usage
---dstat-ctxt::
- show dstat context switches
+--dool-ctxt::
+ show dool context switches
---dstat-mem::
- show dstat advanced memory usage
+--dool-mem::
+ show dool advanced memory usage
--fan::
fan speed (needs ACPI)
@@ -250,7 +250,7 @@ Here is an overview of the plugins dstat ships with:
GPFS filesystem operations (needs mmpmon)
--helloworld::
- Hello world example dstat plugin
+ Hello world example dool plugin
--innodb-buffer::
show innodb buffer stats
@@ -340,22 +340,22 @@ Here is an overview of the plugins dstat ships with:
show sendmail queue size (needs sendmail)
--snmp-cpu::
- show CPU stats using SNMP from DSTAT_SNMPSERVER
+ show CPU stats using SNMP from DOOL_SNMPSERVER
--snmp-load::
- show load stats using SNMP from DSTAT_SNMPSERVER
+ show load stats using SNMP from DOOL_SNMPSERVER
--snmp-mem::
- show memory stats using SNMP from DSTAT_SNMPSERVER
+ show memory stats using SNMP from DOOL_SNMPSERVER
--snmp-net::
- show network stats using SNMP from DSTAT_SNMPSERVER
+ show network stats using SNMP from DOOL_SNMPSERVER
--snmp-net-err:
- show network errors using SNMP from DSTAT_SNMPSERVER
+ show network errors using SNMP from DOOL_SNMPSERVER
--snmp-sys::
- show system stats (interrupts and context switches) using SNMP from DSTAT_SNMPSERVER
+ show system stats (interrupts and context switches) using SNMP from DOOL_SNMPSERVER
--snooze::
show number of ticks per second
@@ -463,7 +463,7 @@ The default delay is 1 and count is unspecified (unlimited)
== INTERMEDIATE UPDATES
-When invoking dstat with a *delay* greater than 1 and without the
+When invoking dool with a *delay* greater than 1 and without the
*--noupdate* option, it will show intermediate updates, ie. the first
time a 1 sec average, the second update a 2 second average, etc. until
the delay has been reached.
@@ -475,34 +475,34 @@ average on a new line, just like with vmstat.
== EXAMPLES
-Using dstat to relate disk-throughput with network-usage (eth0), total CPU-usage and system counters:
+Using dool to relate disk-throughput with network-usage (eth0), total CPU-usage and system counters:
----
-dstat -dnyc -N eth0 -C total -f 5
+dool -dnyc -N eth0 -C total -f 5
----
-Checking dstat's behaviour and the system impact of dstat:
+Checking dool's behaviour and the system impact of dool:
----
-dstat -taf --debug
+dool -taf --debug
----
Using the time plugin together with cpu, net, disk, system, load, proc and
top_cpu plugins:
----
-dstat -tcndylp --top-cpu
+dool -tcndylp --top-cpu
----
this is identical to
----
-dstat --time --cpu --net --disk --sys --load --proc --top-cpu
+dool --time --cpu --net --disk --sys --load --proc --top-cpu
----
-Using dstat to relate advanced cpu stats with interrupts per device:
+Using dool to relate advanced cpu stats with interrupts per device:
----
-dstat -t --cpu-adv -yif
+dool -t --cpu-adv -yif
----
== BUGS
-Since it is practically impossible to test dstat on every possible
+Since it is practically impossible to test dool on every possible
permutation of kernel, python or distribution version, I need your
help and your feedback to fix the remaining problems. If you have
improvements or bugreports, please send them to:
@@ -513,40 +513,40 @@ Please see the TODO file for known bugs and future plans.
== FILES
-Paths that may contain external dstat_*.py plugins:
+Paths that may contain external dool_*.py plugins:
- ~/.dstat/
+ ~/.dool/
(path of binary)/plugins/
- /usr/share/dstat/
- /usr/local/share/dstat/
+ /usr/share/dool/
+ /usr/local/share/dool/
== ENVIRONMENT VARIABLES
-Dstat will read additional command line arguments from the environment
-variable *DSTAT_OPTS*. You can use this to configure Dstat's default
+Dool will read additional command line arguments from the environment
+variable *DOOL_OPTS*. You can use this to configure Dool's default
behavior, e.g. if you have a black-on-white terminal:
- export DSTAT_OPTS="--bw --noupdate"
+ export DOOL_OPTS="--bw --noupdate"
Other internal or external plugins have their own environment variables
to influence their behavior, e.g.
- DSTAT_NTPSERVER
+ DOOL_NTPSERVER
- DSTAT_MYSQL
- DSTAT_MYSQL_HOST
- DSTAT_MYSQL_PORT
- DSTAT_MYSQL_SOCKET
- DSTAT_MYSQL_USER
- DSTAT_MYSQL_PWD
+ DOOL_MYSQL
+ DOOL_MYSQL_HOST
+ DOOL_MYSQL_PORT
+ DOOL_MYSQL_SOCKET
+ DOOL_MYSQL_USER
+ DOOL_MYSQL_PWD
- DSTAT_SNMPSERVER
- DSTAT_SNMPCOMMUNITY
+ DOOL_SNMPSERVER
+ DOOL_SNMPCOMMUNITY
- DSTAT_SQUID_OPTS
+ DOOL_SQUID_OPTS
- DSTAT_TIMEFMT
+ DOOL_TIMEFMT
== SEE ALSO
--
2.34.1

View File

@@ -0,0 +1,25 @@
SUMMARY = "versatile resource statics tool"
DESCRIPTION = "Dstat is a versatile replacement for vmstat, iostat, netstat and ifstat. \
Dstat overcomes some of their limitations and adds some extra features, more counters \
and flexibility. Dstat is handy for monitoring systems during performance tuning tests, \
benchmarks or troubleshooting."
HOMEPAGE = "http://dag.wiee.rs/home-made/dstat"
LICENSE = "GPL-2.0-only"
LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263"
DEPENDS += "asciidoc-native xmlto-native"
SRC_URI = "git://github.com/scottchiefbaker/dool.git;branch=master;protocol=https \
file://0001-Fix-build-error-as-following.patch \
file://0001-Fix-rename-in-docs.patch \
"
SRCREV = "41ec7b392b358dae29f0b587711d5c8f7f462805"
S = "${WORKDIR}/git"
do_install() {
oe_runmake 'DESTDIR=${D}' install
}
RDEPENDS:${PN} += "python3-core python3-misc python3-resource python3-shell python3-six python3-unixadmin"

View File

@@ -0,0 +1,28 @@
SUMMARY = "driverctl is a device driver control utility for Linux"
LICENSE = "LGPL-2.1-only"
LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/LGPL-2.1-only;md5=1a6d268fd218675ffea8be556788b780"
REQUIRED_DISTRO_FEATURES = "systemd"
DEPENDS = "systemd"
RDEPENDS:${PN} += "bash bash-completion"
SRC_URI = " git://gitlab.com/driverctl/driverctl.git;branch=master"
SRCREV = "fa9dce43d1a667d6e6e26895fbed01b3b04362c9"
S = "${WORKDIR}/git"
inherit pkgconfig systemd features_check
FILES:${PN} += "${libdir}"
FILES:${PN} += "${libdir}/udev"
FILES:${PN} += "${libdir}/udev/rules.d"
FILES:${PN} += "${systemd_unitdir}"
FILES:${PN} += "${systemd_unitdir}/system"
FILES:${PN} += "${datadir}"
FILES:${PN} += "${datadir}/bash-completion"
FILES:${PN} += "${datadir}/bash-completion/completions"
do_install () {
oe_runmake install DESTDIR=${D}
}

View File

@@ -0,0 +1,17 @@
SUMMARY = "Decode EDID data in human-readable format"
DESCRIPTION = "edid-decode decodes EDID monitor description data in human-readable format."
AUTHOR = "Hans Verkuil <hverkuil-cisco@xs4all.nl>"
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 = "e052f5f9fdf74ca11aa1a8edfa62eff8d0aa3d0d"
PV = "0.0+git${SRCPV}"
S = "${WORKDIR}/git"
do_install() {
oe_runmake 'DESTDIR=${D}' install
}

View File

@@ -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>

View File

@@ -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;
}

View File

@@ -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);
}

View File

@@ -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;
}
}

View File

@@ -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);

View File

@@ -0,0 +1,38 @@
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 = "http://sources.openembedded.org/${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}"
PR = "r1"
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"

View File

@@ -0,0 +1,278 @@
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 \
file://0001-largefile.m4-Update-from-latest-gnulib.patch \
"
SRC_URI:append:class-target = " file://usemake-docfile-native.patch"
SRC_URI[sha256sum] = "ee21182233ef3232dc97b486af2d86e14042dbb65bbc535df562c3a858232488"
CVE_CHECK_IGNORE = "\
CVE-2007-6109 \
"
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 ??= "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
# 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_compile:class-native (){
cd ${B}/lib-src
oe_runmake make-docfile
oe_runmake make-fingerprint
}
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}/
}
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-preloaded.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/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/regexp-opt.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/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/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/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/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/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"

View File

@@ -0,0 +1,390 @@
From c2bea3d033b5abd44698722d8eedc2b87373b33b Mon Sep 17 00:00:00 2001
From: Khem Raj <raj.khem@gmail.com>
Date: Sun, 2 Apr 2023 10:42:43 -0700
Subject: [PATCH] largefile.m4: Update from latest gnulib
brings in latest largefile specific changes which autoconf 2.72+ requires
Upstream-Status: Inappropriate [Drop it with new emacs release which has it]
Signed-off-by: Khem Raj <raj.khem@gmail.com>
---
m4/largefile.m4 | 330 ++++++++++++++++++++++++++++++++++++++----------
1 file changed, 263 insertions(+), 67 deletions(-)
diff --git a/m4/largefile.m4 b/m4/largefile.m4
index 3e8b5e3..7fb81b8 100644
--- a/m4/largefile.m4
+++ b/m4/largefile.m4
@@ -1,7 +1,7 @@
# Enable large files on systems where this is not the default.
# Enable support for files on Linux file systems with 64-bit inode numbers.
-# Copyright 1992-1996, 1998-2022 Free Software Foundation, Inc.
+# Copyright 1992-1996, 1998-2023 Free Software Foundation, Inc.
# This file is free software; the Free Software Foundation
# gives unlimited permission to copy and/or distribute it,
# with or without modifications, as long as this notice is preserved.
@@ -10,8 +10,9 @@
# It does not set _LARGEFILE_SOURCE=1 on HP-UX/ia64 32-bit, although this
# setting of _LARGEFILE_SOURCE is needed so that <stdio.h> declares fseeko
# and ftello in C++ mode as well.
+# Fixed in Autoconf 2.72, which has AC_SYS_YEAR2038.
AC_DEFUN([gl_SET_LARGEFILE_SOURCE],
-[
+ m4_ifndef([AC_SYS_YEAR2038], [[
AC_REQUIRE([AC_CANONICAL_HOST])
AC_FUNC_FSEEKO
case "$host_os" in
@@ -20,10 +21,10 @@ AC_DEFUN([gl_SET_LARGEFILE_SOURCE],
[Define to 1 to make fseeko visible on some hosts (e.g. glibc 2.2).])
;;
esac
-])
+ ]])
+)
-# Work around a problem in Autoconf through at least 2.71 on glibc 2.34+
-# with _TIME_BITS. Also, work around a problem in autoconf <= 2.69:
+# Work around a problem in autoconf <= 2.69:
# AC_SYS_LARGEFILE does not configure for large inodes on Mac OS X 10.5,
# or configures them incorrectly in some cases.
m4_version_prereq([2.70], [], [
@@ -43,33 +44,258 @@ m4_define([_AC_SYS_LARGEFILE_TEST_INCLUDES],
])
])# m4_version_prereq 2.70
+# Support AC_SYS_YEAR2038, even if Autoconf 2.71 or earlier.
+# This code is taken from Autoconf master.
+m4_ifndef([AC_SYS_YEAR2038], [
+
+# _AC_SYS_YEAR2038_TEST_CODE
+# --------------------------
+# C code used to probe for time_t that can represent time points more
+# than 2**31 - 1 seconds after the epoch. With the usual Unix epoch,
+# these correspond to dates after 2038-01-18 22:14:07 +0000 (Gregorian),
+# hence the name.
+AC_DEFUN([_AC_SYS_YEAR2038_TEST_CODE],
+[[
+ #include <time.h>
+ /* Check that time_t can represent 2**32 - 1 correctly. */
+ #define LARGE_TIME_T \\
+ ((time_t) (((time_t) 1 << 30) - 1 + 3 * ((time_t) 1 << 30)))
+ int verify_time_t_range[(LARGE_TIME_T / 65537 == 65535
+ && LARGE_TIME_T % 65537 == 0)
+ ? 1 : -1];
+]])
+
+# _AC_SYS_YEAR2038_OPTIONS
+# ------------------------
+# List of known ways to enable support for large time_t. If you change
+# this list you probably also need to change the AS_CASE at the end of
+# _AC_SYS_YEAR2038_PROBE.
+m4_define([_AC_SYS_YEAR2038_OPTIONS], m4_normalize(
+ ["none needed"] dnl 64-bit and newer 32-bit Unix
+ ["-D_TIME_BITS=64"] dnl glibc 2.34 with some 32-bit ABIs
+ ["-D__MINGW_USE_VC2005_COMPAT"] dnl 32-bit MinGW
+ ["-U_USE_32_BIT_TIME_T -D__MINGW_USE_VC2005_COMPAT"]
+ dnl 32-bit MinGW (misconfiguration)
+))
+
+# _AC_SYS_YEAR2038_PROBE([IF-NOT-DETECTED])
+# -----------------------------------------
+# Subroutine of AC_SYS_YEAR2038. Probe for time_t that can represent
+# time points more than 2**31 - 1 seconds after the epoch (dates after
+# 2038-01-18, see above) and set the cache variable ac_cv_sys_year2038_opts
+# to one of the values in the _AC_SYS_YEAR2038_OPTIONS list, or to
+# "support not detected" if none of them worked. Then, set compilation
+# options and #defines as necessary to enable large time_t support.
+#
+# Note that we do not test whether mktime, localtime, etc. handle
+# large values of time_t correctly, as that would require use of
+# AC_TRY_RUN. Note also that some systems only support large time_t
+# together with large off_t.
+#
+# If support is not detected, the behavior depends on which of the
+# top-level AC_SYS_YEAR2038 macros was used (see below).
+#
+# If you change this macro you may also need to change
+# _AC_SYS_YEAR2038_OPTIONS.
+AC_DEFUN([_AC_SYS_YEAR2038_PROBE],
+[AC_CACHE_CHECK([for $CC option to enable timestamps after Jan 2038],
+ [ac_cv_sys_year2038_opts],
+ [ac_save_CPPFLAGS="$CPPFLAGS"
+ ac_opt_found=no
+ for ac_opt in _AC_SYS_YEAR2038_OPTIONS; do
+ AS_IF([test x"$ac_opt" != x"none needed"],
+ [CPPFLAGS="$ac_save_CPPFLAGS $ac_opt"])
+ AC_COMPILE_IFELSE([AC_LANG_PROGRAM([_AC_SYS_YEAR2038_TEST_CODE])],
+ [ac_cv_sys_year2038_opts="$ac_opt"
+ ac_opt_found=yes])
+ test $ac_opt_found = no || break
+ done
+ CPPFLAGS="$ac_save_CPPFLAGS"
+ test $ac_opt_found = yes || ac_cv_sys_year2038_opts="support not detected"])
+
+ac_have_year2038=yes
+AS_CASE([$ac_cv_sys_year2038_opts],
+ ["none needed"], [],
+ ["support not detected"],
+ [ac_have_year2038=no
+ AS_CASE([$enable_year2038],
+ [yes],
+ [# If we're not cross compiling and 'touch' works with a large
+ # timestamp, then we can presume the system supports wider time_t
+ # *somehow* and we just weren't able to detect it. One common
+ # case that we deliberately *don't* probe for is a system that
+ # supports both 32- and 64-bit ABIs but only the 64-bit ABI offers
+ # wide time_t. (It would be inappropriate for us to override an
+ # intentional use of -m32.) Error out, demanding use of
+ # --disable-year2038 if this is intentional.
+ AS_IF([test $cross_compiling = no],
+ [AS_IF([TZ=UTC0 touch -t 210602070628.15 conftest.time 2>/dev/null],
+ [AS_CASE([`TZ=UTC0 LC_ALL=C ls -l conftest.time 2>/dev/null`],
+ [*'Feb 7 2106'* | *'Feb 7 17:10'*],
+ [AC_MSG_FAILURE(m4_text_wrap(
+ [this system appears to support timestamps after January 2038,
+ but no mechanism for enabling wide 'time_t' was detected.
+ Did you mean to build a 64-bit binary? (e.g. 'CC="${CC} -m64"'.)
+ To proceed with 32-bit time_t, configure with '--disable-year2038'.],
+ [], [], [55]))])])])])],
+
+ ["-D_TIME_BITS=64"],
+ [AC_DEFINE([_TIME_BITS], [64],
+ [Number of bits in time_t, on hosts where this is settable.])],
+
+ ["-D__MINGW_USE_VC2005_COMPAT=1"],
+ [AC_DEFINE([__MINGW_USE_VC2005_COMPAT], [1],
+ [Define to 1 on platforms where this makes time_t a 64-bit type.])],
-# _AC_SYS_LARGEFILE_MACRO_VALUE(C-MACRO, VALUE,
-# CACHE-VAR,
-# DESCRIPTION,
-# PROLOGUE, [FUNCTION-BODY])
-# --------------------------------------------------------
-m4_define([_AC_SYS_LARGEFILE_MACRO_VALUE],
-[AC_CACHE_CHECK([for $1 value needed for large files], [$3],
-[while :; do
- m4_ifval([$6], [AC_LINK_IFELSE], [AC_COMPILE_IFELSE])(
- [AC_LANG_PROGRAM([$5], [$6])],
- [$3=no; break])
- m4_ifval([$6], [AC_LINK_IFELSE], [AC_COMPILE_IFELSE])(
- [AC_LANG_PROGRAM([#undef $1
-#define $1 $2
-$5], [$6])],
- [$3=$2; break])
- $3=unknown
- break
-done])
-case $$3 in #(
- no | unknown) ;;
- *) AC_DEFINE_UNQUOTED([$1], [$$3], [$4]);;
-esac
-rm -rf conftest*[]dnl
-])# _AC_SYS_LARGEFILE_MACRO_VALUE
+ ["-U_USE_32_BIT_TIME_T"*],
+ [AC_MSG_FAILURE(m4_text_wrap(
+ [the 'time_t' type is currently forced to be 32-bit.
+ It will stop working after January 2038.
+ Remove _USE_32BIT_TIME_T from the compiler flags.],
+ [], [], [55]))],
+
+ [AC_MSG_ERROR(
+ [internal error: bad value for \$ac_cv_sys_year2038_opts])])
+])
+
+# _AC_SYS_YEAR2038_ENABLE
+# -----------------------
+# Subroutine of AC_SYS_YEAR2038 and _AC_SYS_YEAR2038_OPT_IN.
+# Depending on which of the YEAR2038 macros was used, add either an
+# --enable-year2038, or a --disable-year2038, or no option at all to
+# the configure script. Note that this is expanded very late and
+# therefore there cannot be any code in the AC_ARG_ENABLE. The
+# default value for enable_year2038 is emitted unconditionally
+# because the generated code always looks at this variable.
+m4_define([_AC_SYS_YEAR2038_ENABLE],
+[m4_divert_text([DEFAULTS],
+ m4_provide_if([AC_SYS_YEAR2038],
+ [enable_year2038=yes],
+ [enable_year2038=no]))]dnl
+[AC_ARG_ENABLE([year2038],
+ m4_provide_if([AC_SYS_YEAR2038],
+ [AS_HELP_STRING([--disable-year2038],
+ [do not support timestamps after 2038])],
+ [AS_HELP_STRING([--enable-year2038],
+ [support timestamps after 2038])]))])
+
+# _AC_SYS_YEAR2038_OPT_IN
+# -----------------------
+# If the --enable-year2038 option is given to configure, attempt to
+# detect and activate support for large time_t on 32-bit systems.
+# This macro is automatically invoked by AC_SYS_LARGEFILE when large
+# *file* support is detected. It does not AC_REQUIRE AC_SYS_LARGEFILE
+# to avoid a dependency loop, and is therefore unsafe to expose as a
+# documented macro.
+AC_DEFUN([_AC_SYS_YEAR2038_OPT_IN],
+[m4_provide_if([_AC_SYS_YEAR2038_PROBE], [], [dnl
+ AS_IF([test "$enable_year2038" != no], [_AC_SYS_YEAR2038_PROBE])
+ AC_CONFIG_COMMANDS_PRE([_AC_SYS_YEAR2038_ENABLE])
+])])
+
+# AC_SYS_YEAR2038
+# ---------------
+# Attempt to detect and activate support for large time_t.
+# On systems where time_t is not always 64 bits, this probe can be
+# skipped by passing the --disable-year2038 option to configure.
+AC_DEFUN([AC_SYS_YEAR2038],
+[AC_REQUIRE([AC_SYS_LARGEFILE])]dnl
+[m4_provide_if([_AC_SYS_YEAR2038_PROBE], [], [dnl
+ AS_IF([test "$enable_year2038" != no], [_AC_SYS_YEAR2038_PROBE])
+ AC_CONFIG_COMMANDS_PRE([_AC_SYS_YEAR2038_ENABLE])
+])])
+
+# _AC_SYS_LARGEFILE_TEST_CODE
+# ---------------------------
+# C code used to probe for large file support.
+m4_define([_AC_SYS_LARGEFILE_TEST_CODE],
+[@%:@include <sys/types.h>
+ /* Check that off_t can represent 2**63 - 1 correctly.
+ We can't simply define LARGE_OFF_T to be 9223372036854775807,
+ since some C++ compilers masquerading as C compilers
+ incorrectly reject 9223372036854775807. */
+@%:@define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
+ int off_t_is_large[[(LARGE_OFF_T % 2147483629 == 721
+ && LARGE_OFF_T % 2147483647 == 1)
+ ? 1 : -1]];[]dnl
+])
+
+# _AC_SYS_LARGEFILE_OPTIONS
+# -------------------------
+# List of known ways to enable support for large files. If you change
+# this list you probably also need to change the AS_CASE at the end of
+# _AC_SYS_LARGEFILE_PROBE.
+m4_define([_AC_SYS_LARGEFILE_OPTIONS], m4_normalize(
+ ["none needed"] dnl Most current systems
+ ["-D_FILE_OFFSET_BITS=64"] dnl X/Open LFS spec
+ ["-D_LARGE_FILES=1"] dnl AIX (which versions?)
+ ["-n32"] dnl Irix 6.2 w/ SGI compiler
+))
+
+# _AC_SYS_LARGEFILE_PROBE
+# -----------------------
+# Subroutine of AC_SYS_LARGEFILE. Probe for large file support and set
+# the cache variable ac_cv_sys_largefile_opts to one of the values in
+# the _AC_SYS_LARGEFILE_OPTIONS list, or to "support not detected" if
+# none of the options in that list worked. Then, set compilation
+# options and #defines as necessary to enable large file support.
+#
+# If large file support is not detected, the behavior depends on which of
+# the top-level AC_SYS_LARGEFILE macros was used (see below).
+#
+# If you change this macro you may also need to change
+# _AC_SYS_LARGEFILE_OPTIONS.
+AC_DEFUN([_AC_SYS_LARGEFILE_PROBE],
+[AC_CACHE_CHECK([for $CC option to enable large file support],
+ [ac_cv_sys_largefile_opts],
+ [ac_save_CC="$CC"
+ ac_opt_found=no
+ for ac_opt in _AC_SYS_LARGEFILE_OPTIONS; do
+ AS_IF([test x"$ac_opt" != x"none needed"],
+ [CC="$ac_save_CC $ac_opt"])
+ AC_COMPILE_IFELSE([AC_LANG_PROGRAM([_AC_SYS_LARGEFILE_TEST_CODE])],
+ [ac_cv_sys_largefile_opts="$ac_opt"
+ ac_opt_found=yes])
+ test $ac_opt_found = no || break
+ done
+ CC="$ac_save_CC"
+ test $ac_opt_found = yes || ac_cv_sys_largefile_opts="support not detected"])
+
+ac_have_largefile=yes
+AS_CASE([$ac_cv_sys_largefile_opts],
+ ["none needed"], [],
+ ["support not detected"],
+ [ac_have_largefile=no],
+
+ ["-D_FILE_OFFSET_BITS=64"],
+ [AC_DEFINE([_FILE_OFFSET_BITS], [64],
+ [Number of bits in a file offset, on hosts where this is settable.])],
+
+ ["-D_LARGE_FILES=1"],
+ [AC_DEFINE([_LARGE_FILES], [1],
+ [Define to 1 on platforms where this makes off_t a 64-bit type.])],
+
+ ["-n32"],
+ [CC="$CC -n32"],
+
+ [AC_MSG_ERROR(
+ [internal error: bad value for \$ac_cv_sys_largefile_opts])])
+
+_AC_SYS_YEAR2038_OPT_IN
+])
+# _AC_SYS_LARGEFILE_ENABLE
+# ------------------------
+# Subroutine of AC_SYS_LARGEFILE. Note that this
+# is expanded very late and therefore there cannot be any code in the
+# AC_ARG_ENABLE. The default value for enable_largefile is emitted
+# unconditionally because the generated shell code always looks at
+# this variable.
+m4_define([_AC_SYS_LARGEFILE_ENABLE],
+[m4_divert_text([DEFAULTS],
+ enable_largefile=yes)]dnl
+[AC_ARG_ENABLE([largefile],
+ [AS_HELP_STRING([--disable-largefile], [omit support for large files])])])
# AC_SYS_LARGEFILE
# ----------------
@@ -80,44 +306,14 @@ rm -rf conftest*[]dnl
# Additionally, on Linux file systems with 64-bit inodes a file that happens
# to have a 64-bit inode number cannot be accessed by 32-bit applications on
# Linux x86/x86_64. This can occur with file systems such as XFS and NFS.
+# This macro allows configuration to continue if the system doesn't support
+# large files.
AC_DEFUN([AC_SYS_LARGEFILE],
-[AC_ARG_ENABLE(largefile,
- [ --disable-largefile omit support for large files])
-AS_IF([test "$enable_largefile" != no],
- [AC_CACHE_CHECK([for special C compiler options needed for large files],
- ac_cv_sys_largefile_CC,
- [ac_cv_sys_largefile_CC=no
- if test "$GCC" != yes; then
- ac_save_CC=$CC
- while :; do
- # IRIX 6.2 and later do not support large files by default,
- # so use the C compiler's -n32 option if that helps.
- AC_LANG_CONFTEST([AC_LANG_PROGRAM([_AC_SYS_LARGEFILE_TEST_INCLUDES])])
- AC_COMPILE_IFELSE([], [break])
- CC="$CC -n32"
- AC_COMPILE_IFELSE([], [ac_cv_sys_largefile_CC=' -n32'; break])
- break
- done
- CC=$ac_save_CC
- rm -f conftest.$ac_ext
- fi])
- if test "$ac_cv_sys_largefile_CC" != no; then
- CC=$CC$ac_cv_sys_largefile_CC
- fi
-
- _AC_SYS_LARGEFILE_MACRO_VALUE(_FILE_OFFSET_BITS, 64,
- ac_cv_sys_file_offset_bits,
- [Number of bits in a file offset, on hosts where this is settable.],
- [_AC_SYS_LARGEFILE_TEST_INCLUDES])
- AS_CASE([$ac_cv_sys_file_offset_bits],
- [unknown],
- [_AC_SYS_LARGEFILE_MACRO_VALUE([_LARGE_FILES], [1],
- [ac_cv_sys_large_files],
- [Define for large files, on AIX-style hosts.],
- [_AC_SYS_LARGEFILE_TEST_INCLUDES])],
- [64],
- [gl_YEAR2038_BODY([])])])
-])# AC_SYS_LARGEFILE
+[m4_provide_if([_AC_SYS_LARGEFILE_PROBE], [], [dnl
+ AS_IF([test "$enable_largefile" != no], [_AC_SYS_LARGEFILE_PROBE])
+ AC_CONFIG_COMMANDS_PRE([_AC_SYS_LARGEFILE_ENABLE])
+])])
+])# m4_ifndef AC_SYS_YEAR2038
# Enable large files on systems where this is implemented by Gnulib, not by the
# system headers.
--
2.40.0

View File

@@ -0,0 +1,85 @@
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, this needs to be
adapted to be used by bitbake, otherwise the compiled
executables arent compatible with the HOST.
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-28.2/src/Makefile.in
===================================================================
--- emacs-28.2.orig/src/Makefile.in
+++ emacs-28.2/src/Makefile.in
@@ -462,7 +462,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) > $@
@@ -563,8 +563,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 -
@@ -597,15 +596,15 @@ endif
## for the first time, this prevents any variation between configurations
## in the contents of the DOC file.
##
-$(etc)/DOC: lisp.mk $(libsrc)/make-docfile$(EXEEXT) $(obj) $(lisp)
+$(etc)/DOC: lisp.mk $(obj) $(lisp)
$(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) $(obj) > $(etc)/DOC
- $(AM_V_at)$(libsrc)/make-docfile -a $(etc)/DOC -d $(lispsource) \
+ make-docfile -a $(etc)/DOC -d $(lispsource) \
$(shortlisp)
-$(libsrc)/make-docfile$(EXEEXT) $(libsrc)/make-fingerprint$(EXEEXT): \
+$(libsrc)/make-fingerprint$(EXEEXT): \
$(lib)/libgnu.a
$(MAKE) -C $(dir $@) $(notdir $@)
@@ -618,8 +617,8 @@ 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 $(obj) > globals.tmp
+gl-stamp: $(GLOBAL_SOURCES)
+ make-docfile -d $(srcdir) -g $(obj) > globals.tmp
$(AM_V_at)$(top_srcdir)/build-aux/move-if-change globals.tmp globals.h
$(AM_V_at)echo timestamp > $@
@@ -633,7 +632,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
@@ -643,7 +642,7 @@ endif
## This goes on to affect various things, and the emacs binary fails
## to start if Vinstallation_directory has the wrong value.
temacs$(EXEEXT): $(LIBXMENU) $(ALLOBJS) $(LIBEGNU_ARCHIVE) $(EMACSRES) \
- $(charsets) $(charscript) ${emoji-zwj} $(MAKE_PDUMPER_FINGERPRINT)
+ $(charsets) $(charscript) ${emoji-zwj}
$(AM_V_CCLD)$(CC) -o $@.tmp \
$(ALL_CFLAGS) $(TEMACS_LDFLAGS) $(LDFLAGS) \
$(ALLOBJS) $(LIBEGNU_ARCHIVE) $(W32_RES_LINK) $(LIBES)

View File

@@ -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

View File

@@ -0,0 +1,13 @@
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

View File

@@ -0,0 +1,28 @@
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>
---
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

View File

@@ -0,0 +1,12 @@
--- 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

View File

@@ -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
}

View File

@@ -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

View File

@@ -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

View File

@@ -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"

View File

@@ -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

View File

@@ -0,0 +1,31 @@
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>
---
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

View File

@@ -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

View File

@@ -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 = "gitr${SRCPV}"
inherit autotools pkgconfig
PACKAGES =+ "${PN}-python"
FILES:${PN}-python = "${libdir}/python*/site-packages/*"
RDEPENDS:${PN}-python = "python3"

View File

@@ -0,0 +1,19 @@
SUMMARY = "Exif, Iptc and XMP metadata manipulation library and tools"
LICENSE = "GPL-2.0-only"
LIC_FILES_CHKSUM = "file://COPYING;md5=625f055f41728f84a8d7938acc35bdc2"
DEPENDS = "zlib expat"
SRC_URI = "https://github.com/Exiv2/${BPN}/releases/download/v${PV}/${BP}-Source.tar.gz"
SRC_URI[sha256sum] = "4c192483a1125dc59a3d70b30d30d32edace9e14adf52802d2f853abf72db8a6"
# Once patch is obsolete (project should be aware due to PRs), dos2unix can be removed either
# inherit dos2unix
S = "${WORKDIR}/${BP}-Source"
inherit cmake gettext
do_install:append:class-target() {
# reproducibility: remove build host path
sed -i ${D}${libdir}/cmake/exiv2/exiv2Config.cmake \
-e 's:${STAGING_DIR_HOST}::g'
}

View File

@@ -0,0 +1,40 @@
From 7c510cd20bb443064ab4a0d2c6d917e807b2671b Mon Sep 17 00:00:00 2001
From: Khem Raj <raj.khem@gmail.com>
Date: Mon, 22 May 2023 19:45:28 -0700
Subject: [PATCH] agent/meson: Replace filename with basename
This avoids emitting absolute paths into generated sourcecode, it
improves reproducibility. See [1]
[1] https://developer-old.gnome.org/gobject/stable/glib-mkenums.html
Upstream-Status: Submitted [https://gitlab.freedesktop.org/libnice/libnice/-/merge_requests/258]
Signed-off-by: Khem Raj <raj.khem@gmail.com>
---
agent/meson.build | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/agent/meson.build b/agent/meson.build
index 2e5b272..44fcd6b 100644
--- a/agent/meson.build
+++ b/agent/meson.build
@@ -29,14 +29,14 @@ gnome = import('gnome')
agent_enum_types_c = gnome.mkenums('agent-enum-types.c', sources : agent_headers,
fhead: '#include <config.h>\n#include <glib-object.h>\n#include "agent.h"\n#include "pseudotcp.h"\n#include "agent-enum-types.h"',
- fprod: '\n/* enumerations from "@filename@" */',
+ fprod: '\n/* enumerations from "@basename@" */',
vhead: 'GType\n@enum_name@_get_type (void)\n{\n static GType type = 0;\n if (!type) {\n static const G@Type@Value values[] = {',
vprod: ' { @VALUENAME@, "@VALUENAME@", "@valuenick@" },',
vtail: ' { 0, NULL, NULL }\n };\n type = g_@type@_register_static ("@EnumName@", values);\n }\n return type;\n}\n\n')
agent_enum_types_h = gnome.mkenums('agent-enum-types.h', sources : agent_headers,
fhead: '#ifndef __AGENT_ENUM_TYPES_H__\n#define __AGENT_ENUM_TYPES_H__ 1\n\n#include <glib-object.h>\n\nG_BEGIN_DECLS\n',
- fprod: '/* enumerations from "@filename@" */\n',
+ fprod: '/* enumerations from "@basename@" */\n',
vhead: 'GType @enum_name@_get_type (void) G_GNUC_CONST;\n#define NICE_TYPE_@ENUMSHORT@ (@enum_name@_get_type())\n',
ftail: 'G_END_DECLS\n\n#endif /* !AGENT_ENUM_TYPES_H */')
--
2.40.1

View File

@@ -0,0 +1,44 @@
SUMMARY = "Interactive Connectivity Establishment library"
DESCRIPTION = "Libnice is an implementation of the IETF's draft Interactive Connectivity Establishment standard (ICE)."
HOMEPAGE = "http://nice.freedesktop.org/wiki/"
LICENSE = "LGPL-2.1-only & MPL-1.1"
LIC_FILES_CHKSUM = "file://COPYING;md5=9c42325015702feda4f4d2f19a55b767 \
file://COPYING.LGPL;md5=2d5025d4aa3495befef8f17206a5b0a1 \
file://COPYING.MPL;md5=3c617710e51cdbe0fc00716f056dfb1a \
"
SRC_URI = "http://nice.freedesktop.org/releases/libnice-${PV}.tar.gz \
file://0001-agent-meson-Replace-filename-with-basename.patch"
SRC_URI[sha256sum] = "72e73a2acf20f59093e21d5601606e405873503eb35f346fa621de23e99b3b39"
DEPENDS = "glib-2.0 gnutls"
PACKAGECONFIG[gupnp] = "-Dgupnp=enabled,-Dgupnp=disabled,gupnp"
PACKAGECONFIG[gstreamer] = "-Dgstreamer=enabled,-Dgstreamer=disabled,gstreamer1.0"
PACKAGECONFIG[introspection] = "-Dintrospection=enabled,-Dintrospection=disabled,"
EXTRA_OEMESON = "-Dgstreamer=disabled"
GTKDOC_MESON_OPTION = "gtk_doc"
GTKDOC_MESON_ENABLE_FLAG = "enabled"
GTKDOC_MESON_DISABLE_FLAG = "disabled"
inherit meson gtk-doc gobject-introspection
FILES:${PN} += "${libdir}/gstreamer-1.0/*.so"
FILES:${PN}-dev += "${libdir}/gstreamer-1.0/*.la"
FILES:${PN}-staticdev += "${libdir}/gstreamer-1.0/*.a"
FILES:${PN}-dbg += "${libdir}/gstreamer-1.0/.debug"
do_configure:prepend() {
mkdir ${S}/m4 || true
}
do_compile:append() {
for i in $(find ${B} -name "*.pc") ; do
sed -i -e s:${STAGING_DIR_TARGET}::g \
-e s:/${TARGET_SYS}::g \
$i
done
}

View File

@@ -0,0 +1,31 @@
From 3db6782de1de7ca4f1bb9ee7652c4f2808e57539 Mon Sep 17 00:00:00 2001
From: Jackie Huang <jackie.huang@windriver.com>
Date: Thu, 10 Jan 2013 12:24:33 +0800
Subject: [PATCH] fbset 2.1 fix makefile dep modes.tab.c
Upstream-Status: Inappropriate [no upstream]
fix the error in parallel build:
make: *** No rule to make target `modes.tab.h', needed by `lex.yy.o'. Stop.
Signed-off-by: Jackie Huang <jackie.huang@windriver.com>
---
Makefile | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/Makefile b/Makefile
index 61536c1..09183e5 100644
--- a/Makefile
+++ b/Makefile
@@ -15,7 +15,7 @@ fbset: fbset.o modes.tab.o lex.yy.o
fbset.o: fbset.c fbset.h fb.h
modes.tab.o: modes.tab.c fbset.h fb.h
-lex.yy.o: lex.yy.c fbset.h modes.tab.h
+lex.yy.o: lex.yy.c fbset.h modes.tab.c
lex.yy.c: modes.l
$(FLEX) modes.l
--
1.7.4.1

View File

@@ -0,0 +1,11 @@
--- fbset-2.1/Makefile.orig 2006-05-28 04:04:27.412095480 +0200
+++ fbset-2.1/Makefile 2006-05-28 04:14:05.379231120 +0200
@@ -2,7 +2,7 @@
# Linux Frame Buffer Device Configuration
#
-CC = gcc -Wall -O2 -I.
+CFLAGS = -Wall -O2 -I.
BISON = bison -d
FLEX = flex
INSTALL = install

View File

@@ -0,0 +1,21 @@
SUMMARY = "Default display timings and resolutions for fbset"
HOMEPAGE = "http://users.telenet.be/geertu/Linux/fbdev/"
LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420"
PV = "0.1.0"
PR = "r6"
SRC_URI = "file://fb.modes"
S = "${WORKDIR}"
do_install() {
install -d ${D}${sysconfdir}
install -m 0644 ${WORKDIR}/fb.modes ${D}${sysconfdir}
}
# fb.modes file is MACHINE_ARCH, base.bbclass correctly changes it to MACHINE_ARCH, but too late for allarch.bbclass
# to disable "all" behavior (found when comparing qemuarm and qemux86 signatures)
PACKAGE_ARCH = "${MACHINE_ARCH}"
CONFFILES:${PN} = "${sysconfdir}/fb.modes"

Some files were not shown because too many files have changed in this diff Show More