soci: Add recipe
PATCH 1/4 soci: Add recipe
Define PACKAGECONFIG to enable a given backend of choice by default its 'empty'
--- meta-oe/recipes-support/soci/soci_3.2.2.bb | 46 ++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 meta-oe/recipes-support/soci/soci_3.2.2.bb
meta-oe/recipes-support/soci/soci_3.2.2.bb new file +46 -0
@@ -0,0 +1,46 @@ +# Copyright (C) 2015 Khem Raj <[email protected]> +# Released under the MIT license (see COPYING.MIT for the terms) + +DESCRIPTION = "The C++ Database Access Library" +HOMEPAGE = "http://soci.sourceforge.net" +LICENSE = "BSL-1.0" +SECTION = "libs" +DEPENDS = "boost" + +LIC_FILES_CHKSUM = "file://LICENSE_1_0.txt;md5=e4224ccaecb14d942c71d31bef20d78c" + +SRC_URI = "${SOURCEFORGE_MIRROR}/project/${BPN}/${BPN}/${P}/${P}.tar.gz" +SRC_URI[md5sum] = "bc3c35f6cd3f80a1be19fe30b3c111bf" +SRC_URI[sha256sum] = "30ea2f4d26639ef5b5cdc24fb300b3896746243dbb77b743582de2ff443ccb1c" + +TESTCONFIG = '-DSOCI_TEST_EMPTY_CONNSTR="dummy" -DSOCI_TEST_SQLITE3_CONNSTR="test.db" \ + -DSOCI_TEST_POSTGRESQL_CONNSTR:STRING="dbname=soci_test" \ + -DSOCI_TEST_MYSQL_CONNSTR:STRING="db=soci_test user=oe password=oe"' + +OBASEDIR ?= "/opt/oracle" +OINCDIR = "rdbms/public" +OLIBDIR = "lib" + +PACKAGECONFIG[sqlite3] = "-DSOCI_SQLITE3=ON,-DSOCI_SQLITE3=OFF,sqlite3," +PACKAGECONFIG[mysql] = "-DSOCI_MYSQL=ON,-DSOCI_MYSQL=OFF,mariadb," +PACKAGECONFIG[postgresql] = "-DSOCI_POSTGRESQL=ON,-DSOCI_POSTGRESQL=OFF,postgresql," +PACKAGECONFIG[odbc] = "-DSOCI_ODBC=ON,-DSOCI_ODBC=OFF,," +PACKAGECONFIG[empty] = "-DSOCI_EMPTY=ON,-DSOCI_EMPTY=OFF,," +PACKAGECONFIG[oracle] = "-DWITH_ORACLE=ON --with-oracle-include=${OINCDIR} --with-oracle-lib=${OLIBDIR},-DWITH_ORACLE=OFF,," +PACKAGECONFIG[ptest] = "${TESTCONFIG},,," + +# enable your backend by default we enable 'empty' +PACKAGECONFIG ??= "empty" + +# Take the flags added by PACKAGECONFIG and pass them to cmake. +EXTRA_OECMAKE = "${EXTRA_OECONF}" + +inherit cmake + +PACKAGES += "${PN}-sqlite3 ${PN}-mysql ${PN}-postgresql ${PN}-odbc ${PN}-oracle" + +FILES_${PN}-sqlite3 = "${libdir}/lib${BPN}_sqlite3.so.*" +FILES_${PN}-mysql = "${libdir}/lib${BPN}_mysql.so.*" +FILES_${PN}-postgresql = "${libdir}/lib${BPN}_postgresql.so.*" +FILES_${PN}-odbc = "${libdir}/lib${BPN}_odbc.so.*" +FILES_${PN}-oracle = "${libdir}/lib${BPN}_oracle.so.*"
Signature · 1 line
2.1.4
PATCH 2/4 collectd: Backport fix build with newer gcc
on mips we get the errors of type mismatch
--- ...ure-size_t-portability-in-DEBUG-statement.patch | 30 ++++++++++++++++++++++ .../recipes-extended/collectd/collectd_5.4.1.bb | 1 + 2 files changed, 31 insertions(+) create mode 100644 meta-oe/recipes-extended/collectd/collectd/0001-netlink-ensure-size_t-portability-in-DEBUG-statement.patch
meta-oe/recipes-extended/collectd/collectd/0001-netlink-ensure-size_t-portability-in-DEBUG-statement.patch new file +30 -0
@@ -0,0 +1,30 @@ +From f6c89c17955223bf8c99a901ca6f901b83fa521f Mon Sep 17 00:00:00 2001 +From: Marc Fournier <[email protected]> +Date: Wed, 3 Dec 2014 16:15:28 +0100 +Subject: [PATCH] netlink: ensure size_t portability in DEBUG() statement + +This prevents the following error when building on 32bit systems with +gcc 4.7.2: + +netlink.c: In function 'ir_read': +netlink.c:783:7: error: format '%lu' expects argument of type 'long unsigned int', but argument 5 has type 'size_t' [-Werror=format] +--- + src/netlink.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/src/netlink.c b/src/netlink.c +index 422dc8c..3c4642c 100644 +--- a/src/netlink.c ++++ b/src/netlink.c +@@ -683,7 +683,7 @@ static int ir_read (void) + continue; + } + +- DEBUG ("netlink plugin: ir_read: querying %s from %s (%lu).", ++ DEBUG ("netlink plugin: ir_read: querying %s from %s (%zu).", + type_name[type_index], iflist[ifindex], ifindex); + + nlh = mnl_nlmsg_put_header (buf); +-- +2.1.4 +
meta-oe/recipes-extended/collectd/collectd_5.4.1.bb +1 -0
@@ -9,6 +9,7 @@ SRC_URI = "http://collectd.org/files/collectd-${PV}.tar.bz2 \ file://no-gcrypt-badpath.patch \ file://collectd-version.patch \ file://glibc-2.20-compatiblity.patch \ + file://0001-netlink-ensure-size_t-portability-in-DEBUG-statement.patch \ file://collectd.init \ file://collectd.service" SRC_URI[md5sum] = "6f56c71c96573a7f4f7fb3bfab185974"
Signature · 1 line
2.1.4
PATCH 3/4 v4l-utils: RPROVIDE media-ctl
In reply to Khem Rajmedia-ctl recipe was subsumed into v4l-utils but there are apps which still have rdeps on media-ctl
--- ...a-ctl-Don-t-install-libmediactl-and-libv4.patch | 41 ++++++++++++++++++++++ .../v4l-utils/export-mediactl-headers.patch | 15 ++++++++ .../v4l2apps/v4l-utils/mediactl-pkgconfig.patch | 12 +++++++ .../recipes-multimedia/v4l2apps/v4l-utils_1.6.2.bb | 16 +++++++-- 4 files changed, 81 insertions(+), 3 deletions(-) create mode 100644 meta-oe/recipes-multimedia/v4l2apps/v4l-utils/0001-Revert-media-ctl-Don-t-install-libmediactl-and-libv4.patch create mode 100644 meta-oe/recipes-multimedia/v4l2apps/v4l-utils/export-mediactl-headers.patch create mode 100644 meta-oe/recipes-multimedia/v4l2apps/v4l-utils/mediactl-pkgconfig.patch
meta-oe/recipes-multimedia/v4l2apps/v4l-utils/0001-Revert-media-ctl-Don-t-install-libmediactl-and-libv4.patch new file +41 -0
@@ -0,0 +1,41 @@ +From 4ee15a8a69b84526ece1180a288a37db077bcd9b Mon Sep 17 00:00:00 2001 +From: Khem Raj <[email protected]> +Date: Fri, 27 Feb 2015 21:55:36 +0000 +Subject: [PATCH] Revert "media-ctl: Don't install libmediactl and + libv4l2subdev" + +This reverts commit 0911dce53b08b0df3066be2c75f67e8a314d8729. + +Signed-off-by: Khem Raj <[email protected]> + +Conflicts: + utils/media-ctl/Makefile.am +--- + utils/media-ctl/Makefile.am | 11 +++-------- + 1 file changed, 3 insertions(+), 8 deletions(-) + +diff --git a/utils/media-ctl/Makefile.am b/utils/media-ctl/Makefile.am +index a3931fb..fe1fea5 100644 +--- a/utils/media-ctl/Makefile.am ++++ b/utils/media-ctl/Makefile.am +@@ -1,14 +1,9 @@ +-noinst_LTLIBRARIES = libmediactl.la libv4l2subdev.la +- ++lib_LTLIBRARIES = libmediactl.la libv4l2subdev.la + libmediactl_la_SOURCES = libmediactl.c mediactl-priv.h +-libmediactl_la_CFLAGS = -static $(LIBUDEV_CFLAGS) +-libmediactl_la_LDFLAGS = -static $(LIBUDEV_LIBS) +- ++libmediactl_la_CFLAGS = $(LIBUDEV_CFLAGS) ++libmediactl_la_LDFLAGS = $(LIBUDEV_LIBS) + libv4l2subdev_la_SOURCES = libv4l2subdev.c + libv4l2subdev_la_LIBADD = libmediactl.la +-libv4l2subdev_la_CFLAGS = -static +-libv4l2subdev_la_LDFLAGS = -static +- + mediactl_includedir=$(includedir)/mediactl + noinst_HEADERS = mediactl.h v4l2subdev.h + +-- +2.1.4 +
meta-oe/recipes-multimedia/v4l2apps/v4l-utils/export-mediactl-headers.patch new file +15 -0
@@ -0,0 +1,15 @@ +Index: v4l-utils-1.6.2/utils/media-ctl/Makefile.am +=================================================================== +--- v4l-utils-1.6.2.orig/utils/media-ctl/Makefile.am ++++ v4l-utils-1.6.2/utils/media-ctl/Makefile.am +@@ -4,8 +4,8 @@ libmediactl_la_CFLAGS = $(LIBUDEV_CFLAGS + libmediactl_la_LDFLAGS = $(LIBUDEV_LIBS) + libv4l2subdev_la_SOURCES = libv4l2subdev.c + libv4l2subdev_la_LIBADD = libmediactl.la +-mediactl_includedir=$(includedir)/mediactl +-noinst_HEADERS = mediactl.h v4l2subdev.h ++otherincludedir = $(includedir)/mediactl ++otherinclude_HEADERS = mediactl.h v4l2subdev.h + + pkgconfig_DATA = libmediactl.pc + bin_PROGRAMS = media-ctl
meta-oe/recipes-multimedia/v4l2apps/v4l-utils/mediactl-pkgconfig.patch new file +12 -0
@@ -0,0 +1,12 @@ +Index: v4l-utils-1.6.2/utils/media-ctl/Makefile.am +=================================================================== +--- v4l-utils-1.6.2.orig/utils/media-ctl/Makefile.am ++++ v4l-utils-1.6.2/utils/media-ctl/Makefile.am +@@ -7,6 +7,7 @@ libv4l2subdev_la_LIBADD = libmediactl.la + mediactl_includedir=$(includedir)/mediactl + noinst_HEADERS = mediactl.h v4l2subdev.h + ++pkgconfig_DATA = libmediactl.pc + bin_PROGRAMS = media-ctl + media_ctl_SOURCES = media-ctl.c options.c options.h tools.h + media_ctl_LDADD = libmediactl.la libv4l2subdev.la
meta-oe/recipes-multimedia/v4l2apps/v4l-utils_1.6.2.bb +13 -3
@@ -8,21 +8,31 @@ DEPENDS = "jpeg \ inherit autotools gettext pkgconfig +PACKAGECONFIG ??= "" +PACKAGECONFIG[mediactl] = "--enable-v4l-utils,--disable-v4l-utils,," # libv4l was absorbed into this, let OE know that -PROVIDES = "libv4l" +PROVIDES = "libv4l media-ctl" +PROVIDES += "${@base_contains('PACKAGECONFIG', 'mediactl', 'media-ctl', '', d)}" +RPROVIDES_${PN} += "${@base_contains('PACKAGECONFIG', 'mediactl', 'media-ctl', '', d)}" -SRC_URI = "http://linuxtv.org/downloads/v4l-utils/v4l-utils-${PV}.tar.bz2" +SRC_URI = "http://linuxtv.org/downloads/v4l-utils/v4l-utils-${PV}.tar.bz2 \ + file://0001-Revert-media-ctl-Don-t-install-libmediactl-and-libv4.patch \ + file://mediactl-pkgconfig.patch \ + file://export-mediactl-headers.patch \ + " SRC_URI[md5sum] = "9cb3c178f937954e65bf30920af433ef" SRC_URI[sha256sum] = "d3d6eb1f0204fb11f3d318bfca35d5f73cc077f88fac7665a47856a16496be7d" EXTRA_OECONF = "--disable-qv4l2 --enable-shared --with-udevdir=${base_libdir}/udev" -PACKAGES =+ "rc-keymaps libv4l libv4l-dbg libv4l-dev" +PACKAGES =+ "media-ctl rc-keymaps libv4l libv4l-dbg libv4l-dev" +FILES_media-ctl = "${bindir}/media-ctl ${libdir}/libmediactl.so.*" FILES_rc-keymaps = "${sysconfdir}/rc* ${base_libdir}/udev/rc*" FILES_${PN} = "${bindir} ${sbindir} ${base_libdir}/udev/rules.d/70-infrared.rules" FILES_libv4l += "${libdir}/libv4l*${SOLIBS} ${libdir}/libv4l/*.so ${libdir}/libv4l/plugins/*.so \ ${libdir}/libdvbv5*${SOLIBS} \ ${libdir}/libv4l/*-decomp" + FILES_libv4l-dbg += "${libdir}/libv4l/.debug ${libdir}/libv4l/plugins/.debug" FILES_libv4l-dev += "${libdir}/v4l*${SOLIBSDEV} ${libdir}/libv4l/*.la ${libdir}/libv4l/plugins/*.la"
Signature · 1 line
2.1.4
PATCH 4/4 lirc: Add recipe for 0.9.2
In reply to Khem RajThere is a older version available at meta-guacamayo but its not distro specific and many distros might need it so meta-oe is right place for it.
--- meta-oe/recipes-connectivity/lirc/lirc.inc | 14 + .../recipes-connectivity/lirc/lirc/lirc.tmpfiles | 1 + .../lirc/lirc/lirc_options.conf | 24 ++ meta-oe/recipes-connectivity/lirc/lirc/lircd.conf | 315 +++++++++++++++++++++ meta-oe/recipes-connectivity/lirc/lirc/lircd.init | 40 +++ .../recipes-connectivity/lirc/lirc/lircd.service | 20 ++ .../recipes-connectivity/lirc/lirc/lircexec.init | 37 +++ meta-oe/recipes-connectivity/lirc/lirc_0.9.2.bb | 66 +++++ 8 files changed, 517 insertions(+) create mode 100644 meta-oe/recipes-connectivity/lirc/lirc.inc create mode 100644 meta-oe/recipes-connectivity/lirc/lirc/lirc.tmpfiles create mode 100644 meta-oe/recipes-connectivity/lirc/lirc/lirc_options.conf create mode 100644 meta-oe/recipes-connectivity/lirc/lirc/lircd.conf create mode 100644 meta-oe/recipes-connectivity/lirc/lirc/lircd.init create mode 100644 meta-oe/recipes-connectivity/lirc/lirc/lircd.service create mode 100644 meta-oe/recipes-connectivity/lirc/lirc/lircexec.init create mode 100644 meta-oe/recipes-connectivity/lirc/lirc_0.9.2.bb
meta-oe/recipes-connectivity/lirc/lirc.inc new file +14 -0
@@ -0,0 +1,14 @@ +DESCRIPTION = "LIRC is a package that allows you to decode and send infra-red signals of many commonly used remote controls." +DESCRIPTION_append_lirc = " This package contains the lirc daemon, libraries and tools." +DESCRIPTION_append_lirc-exec = " This package contains a daemon that runs programs on IR signals." +DESCRIPTION_append_lirc-remotes = " This package contains some config files for remotes." +DESCRIPTION_append_lirc-nslu2example = " This package contains a working config for RC5 remotes and a modified NSLU2." +HOMEPAGE = "http://www.lirc.org" +SECTION = "console/network" +LICENSE = "GPLv2" +DEPENDS = "alsa-lib libftdi" +PRIORITY = "optional" + +SRC_URI = "http://prdownloads.sourceforge.net/lirc/lirc-${PV}.tar.bz2" + +LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263"
meta-oe/recipes-connectivity/lirc/lirc/lirc.tmpfiles new file +1 -0
@@ -0,0 +1 @@ +d /run/lirc 0755 root root -
meta-oe/recipes-connectivity/lirc/lirc/lirc_options.conf new file +24 -0
@@ -0,0 +1,24 @@ +# These are the default options to lircd, if installed as +# /etc/lirc/lirc_options.conf. See the lircd(8) and lircmd(8) +# manpages for info on the different options. + +[lircd] +nodaemon = False +permission = 666 +driver = default +device = /dev/lirc0 +output = /var/run/lirc/lircd +pidfile = /var/run/lirc/lircd.pid +plugindir = /usr/lib/lirc/plugins +allow-simulate = No +repeat-max = 600 +#listen = [address:]port +#connect = host[:port] +#debug = 5 +#uinput = ... +#release = ... +#logfile = ... + +[lircmd] +uinput = False +nodeamon = False
meta-oe/recipes-connectivity/lirc/lirc/lircd.conf new file +315 -0
315 lines not on this page · raw message
meta-oe/recipes-connectivity/lirc/lirc/lircd.init new file +40 -0
@@ -0,0 +1,40 @@ +#! /bin/sh +# +# This is an init script for Familiar +# Copy it to /etc/init.d/lircd and type +# > update-rc.d lircd defaults 20 +# + + +test -f /usr/sbin/lircd || exit 0 +test -f /etc/lircd.conf || exit 0 + +case "$1" in + start) + echo -n "Starting lirc daemon: lircd" + start-stop-daemon --start --quiet --exec /usr/sbin/lircd -- --device=/dev/lirc0 + echo "." + ;; + stop) + echo -n "Stopping lirc daemon: lircd" + start-stop-daemon --stop --quiet --exec /usr/sbin/lircd + echo "." + ;; + reload|force-reload) + start-stop-daemon --stop --quiet --signal 1 --exec /usr/sbin/lircd + ;; + restart) + echo -n "Stopping lirc daemon: lircd" + start-stop-daemon --stop --quiet --exec /usr/sbin/lircd + sleep 1 + echo -n "Starting lirc daemon: lircd" + start-stop-daemon --start --quiet --exec /usr/sbin/lircd -- --device=/dev/lirc0 + echo "." + ;; + *) + echo "Usage: /etc/init.d/lircd {start|stop|reload|restart|force-reload}" + exit 1 +esac + +exit 0 +
meta-oe/recipes-connectivity/lirc/lirc/lircd.service new file +20 -0
@@ -0,0 +1,20 @@ +[Unit] +Description=LIRC Infrared Signal Decoder +After=network.target + +[Service] +Type=forking +EnvironmentFile=/etc/lirc/lircd.conf +PIDFile=/run/lirc/lircd.pid +ExecStartPre=/bin/mkdir -p /run/lirc +ExecStartPre=/bin/rm -f /dev/lircd +ExecStartPre=/bin/rm -f /run/lirc/lircd +ExecStartPre=/bin/ln -s /run/lirc/lircd /dev/lircd + +ExecStart=/usr/sbin/lircd --pidfile=/run/lirc/lircd.pid --device=/dev/lirc0 + +ExecStopPost=/bin/rm -f /dev/lircd +ExecStopPost=/bin/rm -fR /run/lirc + +[Install] +WantedBy=multi-user.target
meta-oe/recipes-connectivity/lirc/lirc/lircexec.init new file +37 -0
@@ -0,0 +1,37 @@ +#! /bin/sh +# +# This is an init script for Familiar +# Copy it to /etc/init.d/lircexecd and type +# > update-rc.d lircexecd defaults 20 +# It must be started after lircd (and it does alphabetically :-) +# irexec reads /etc/lircrc by default + + +test -f /usr/bin/irexec || exit 0 +test -f /etc/lircrc || exit 0 + +case "$1" in + start) + echo -n "Starting lircexec daemon: irexec" + start-stop-daemon --start --quiet --exec /usr/bin/irexec -- --daemon + echo "." + ;; + stop) + echo -n "Stopping lircexec daemon: irexec" + start-stop-daemon --stop --quiet --exec /usr/bin/irexec + echo "." + ;; + restart|force-restart) + echo -n "Stopping lircexec daemon: irexec" + start-stop-daemon --stop --quiet --exec /usr/bin/irexec + sleep 1 + echo -n "Starting lircexec daemon: irexec" + start-stop-daemon --start --quiet --exec /usr/bin/irexec -- --daemon + echo "." + ;; + *) + echo "Usage: /etc/init.d/lircexec {start|stop|reload|restart|force-restart}" + exit 1 +esac + +exit 0
meta-oe/recipes-connectivity/lirc/lirc_0.9.2.bb new file +66 -0
66 lines not on this page · raw message
Signature · 1 line
2.1.4
Quoted 9 lines · Khem Raj
Define PACKAGECONFIG to enable a given backend of choice by default its 'empty'
Change-Id Ie1123af658ca94d2fe22a3ca1a32dfb47d58979eSigned-off-by Khem Raj <[email protected]>--- meta-oe/recipes-support/soci/soci_3.2.2.bb | 46 ++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 meta-oe/recipes-support/soci/soci_3.2.2.bb
Is this v2 to fix following QA?
soci-3.2.2: soci: Files/directories were installed but not shipped
/usr/lib64
/usr/lib64/libsoci_core.so.3.2.2 /usr/lib64/libsoci_empty.so.3.2.2 /usr/lib64/libsoci_core.so.3.2 /usr/lib64/libsoci_core.so
/usr/lib64/libsoci_core.a /usr/lib64/libsoci_empty.so.3.2 /usr/lib64/libsoci_empty.so /usr/lib64/libsoci_empty.a
/usr/lib64/.debug /usr/lib64/.debug/libsoci_core.so.3.2.2 /usr/lib64/.debug/libsoci_empty.so.3.2.2 [installed-vs-shipped]
Quoted 61 lines
meta-oe/recipes-support/soci/soci_3.2.2.bb new file +46
-0@@ -0,0 +1,46 @@ +# Copyright (C) 2015 Khem Raj <[email protected]> +# Released under the MIT license (see COPYING.MIT for the terms) + +DESCRIPTION = "The C++ Database Access Library" +HOMEPAGE = "http://soci.sourceforge.net" +LICENSE = "BSL-1.0" +SECTION = "libs" +DEPENDS = "boost" + +LIC_FILES_CHKSUM = "file://LICENSE_1_0.txt;md5=e4224ccaecb14d942c71d31bef20d78c" + +SRC_URI = "${SOURCEFORGE_MIRROR}/project/${BPN}/${BPN}/${P}/${P}.tar.gz" +SRC_URI[md5sum] = "bc3c35f6cd3f80a1be19fe30b3c111bf" +SRC_URI[sha256sum] = "30ea2f4d26639ef5b5cdc24fb300b3896746243dbb77b743582de2ff443ccb1c" + +TESTCONFIG = '-DSOCI_TEST_EMPTY_CONNSTR="dummy" -DSOCI_TEST_SQLITE3_CONNSTR="test.db" \ + -DSOCI_TEST_POSTGRESQL_CONNSTR:STRING="dbname=soci_test" \ + -DSOCI_TEST_MYSQL_CONNSTR:STRING="db=soci_test user=oe password=oe"' + +OBASEDIR ?= "/opt/oracle" +OINCDIR = "rdbms/public" +OLIBDIR = "lib" + +PACKAGECONFIG[sqlite3] = "-DSOCI_SQLITE3=ON,-DSOCI_SQLITE3=OFF,sqlite3," +PACKAGECONFIG[mysql] = "-DSOCI_MYSQL=ON,-DSOCI_MYSQL=OFF,mariadb," +PACKAGECONFIG[postgresql] = "-DSOCI_POSTGRESQL=ON,-DSOCI_POSTGRESQL=OFF,postgresql," +PACKAGECONFIG[odbc] = "-DSOCI_ODBC=ON,-DSOCI_ODBC=OFF,," +PACKAGECONFIG[empty] = "-DSOCI_EMPTY=ON,-DSOCI_EMPTY=OFF,," +PACKAGECONFIG[oracle] = "-DWITH_ORACLE=ON --with-oracle-include=${OINCDIR} --with-oracle-lib=${OLIBDIR},-DWITH_ORACLE=OFF,," +PACKAGECONFIG[ptest] = "${TESTCONFIG},,," + +# enable your backend by default we enable 'empty' +PACKAGECONFIG ??= "empty" + +# Take the flags added by PACKAGECONFIG and pass them to cmake. +EXTRA_OECMAKE = "${EXTRA_OECONF}" + +inherit cmake + +PACKAGES += "${PN}-sqlite3 ${PN}-mysql ${PN}-postgresql ${PN}-odbc ${PN}-oracle" + +FILES_${PN}-sqlite3 = "${libdir}/lib${BPN}_sqlite3.so.*" +FILES_${PN}-mysql = "${libdir}/lib${BPN}_mysql.so.*" +FILES_${PN}-postgresql = "${libdir}/lib${BPN}_postgresql.so.*" +FILES_${PN}-odbc = "${libdir}/lib${BPN}_odbc.so.*" +FILES_${PN}-oracle = "${libdir}/lib${BPN}_oracle.so.*"Signature · 7 lines
2.1.4 -- _______________________________________________ Openembedded-devel mailing list [email protected] http://lists.openembedded.org/mailman/listinfo/openembedded-devel
Signature · 1 line
Martin 'JaMa' Jansa jabber: [email protected]
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Khem Raj schreef op 01-03-15 om 23:25:
Quoted 17 lines
Define PACKAGECONFIG to enable a given backend of choice by default its 'empty'
Change-Id: Ie1123af658ca94d2fe22a3ca1a32dfb47d58979e Signed-off-by: Khem Raj <[email protected]> --- meta-oe/recipes-support/soci/soci_3.2.2.bb | 46 ++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 meta-oe/recipes-support/soci/soci_3.2.2.bb
(quoted diff) +0
-0b/meta-oe/recipes-support/soci/soci_3.2.2.bb new file mode 100644 index 0000000..1c333cb ---
/dev/null+++ b/meta-oe/recipes-support/soci/soci_3.2.2.bb @@ -0,0 +1,46 @@ +# Copyright (C) 2015 Khem Raj <[email protected]> +# Released under the MIT license (see COPYING.MIT for the terms) + +DESCRIPTION = "The C++ Database Access Library" +HOMEPAGE = "http://soci.sourceforge.net"(quoted diff) +2
-0+LICENSE = "BSL-1.0" +SECTION = "libs" +DEPENDS = "boost" + +LIC_FILES_CHKSUM =
Quoted 1 line
"file://LICENSE_1_0.txt;md5=e4224ccaecb14d942c71d31bef20d78c"
Please group this with the lICENSE field
Quoted 20 lines
+ +SRC_URI = "${SOURCEFORGE_MIRROR}/project/${BPN}/${BPN}/${P}/${P}.tar.gz" +SRC_URI[md5sum] = "
bc3c35f6cd3f80a1be19fe30b3c111bf" +SRC_URI[sha256sum] = "30ea2f4d26639ef5b5cdc24fb300b3896746243dbb77b743582de2ff443ccb1c" +(quoted diff) +3
-3+TESTCONFIG = '-DSOCI_TEST_EMPTY_CONNSTR="dummy" -DSOCI_TEST_SQLITE3_CONNSTR="test.db" \ + -DSOCI_TEST_POSTGRESQL_CONNSTR:STRING="dbname=soci_test" \ + -DSOCI_TEST_MYSQL_CONNSTR:STRING="db=soci_test user=oe password=oe"' + +OBASEDIR ?= "/opt/oracle" +OINCDIR = "rdbms/public" +OLIBDIR = "lib" + +PACKAGECONFIG[sqlite3] ="-DSOCI_SQLITE3=ON,-DSOCI_SQLITE3=OFF,sqlite3," +PACKAGECONFIG[mysql] = "-DSOCI_MYSQL=ON,-DSOCI_MYSQL=OFF,mariadb," +PACKAGECONFIG[postgresql] = "-DSOCI_POSTGRESQL=ON,-DSOCI_POSTGRESQL=OFF,postgresql,"
(quoted diff) +3
-2+PACKAGECONFIG[odbc] = "-DSOCI_ODBC=ON,-DSOCI_ODBC=OFF,," +PACKAGECONFIG[empty] = "-DSOCI_EMPTY=ON,-DSOCI_EMPTY=OFF,," +PACKAGECONFIG[oracle] = "-DWITH_ORACLE=ON --with-oracle-include=${OINCDIR} --with-oracle-lib=${OLIBDIR},-DWITH_ORACLE=OFF,," +PACKAGECONFIG[ptest] ="${TESTCONFIG},,," + +# enable your backend by default we enable 'empty' +PACKAGECONFIG ??= "empty" + +# Take the flags added by PACKAGECONFIG and
Quoted 9 lines
pass them to cmake. +EXTRA_OECMAKE = "${EXTRA_OECONF}" + +inherit cmake
+ +PACKAGES += "${PN}-sqlite3 ${PN}-mysql ${PN}-postgresql ${PN}-odbc ${PN}-oracle" + +FILES_${PN}-sqlite3 = "${libdir}/lib${BPN}_sqlite3.so.*" +FILES_${PN}-mysql = "${libdir}/lib${BPN}_mysql.so.*" +FILES_${PN}-postgresql = "${libdir}/lib${BPN}_postgresql.so.*" +FILES_${PN}-odbc = "${libdir}/lib${BPN}_odbc.so.*" +FILES_${PN}-oracle = "${libdir}/lib${BPN}_oracle.so.*"
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (Darwin)
Comment: GPGTools - http://gpgtools.org
iD8DBQFU9DtoMkyGM64RGpERAtcGAJ0dzZ17XwT7UJyHij29TcbpTM1wlQCfTebl d2QKkc75bG2LTXTDp5pXVM0=
=cKrw
-----END PGP SIGNATURE-----