diff options
9 files changed, 0 insertions, 361 deletions
diff --git a/meta-oe/recipes-core/packagegroups/packagegroup-meta-oe.bb b/meta-oe/recipes-core/packagegroups/packagegroup-meta-oe.bb index c74114ee61..72c061e872 100644 --- a/meta-oe/recipes-core/packagegroups/packagegroup-meta-oe.bb +++ b/meta-oe/recipes-core/packagegroups/packagegroup-meta-oe.bb | |||
| @@ -836,7 +836,6 @@ RDEPENDS:packagegroup-meta-oe-support = "\ | |||
| 836 | nss \ | 836 | nss \ |
| 837 | numactl \ | 837 | numactl \ |
| 838 | onig \ | 838 | onig \ |
| 839 | openct \ | ||
| 840 | opencv \ | 839 | opencv \ |
| 841 | openldap \ | 840 | openldap \ |
| 842 | opensc \ | 841 | opensc \ |
diff --git a/meta-oe/recipes-support/openct/openct/0001-Fix-incompatible-pointer-type-error-with-gcc-option.patch b/meta-oe/recipes-support/openct/openct/0001-Fix-incompatible-pointer-type-error-with-gcc-option.patch deleted file mode 100644 index 73c9d06667..0000000000 --- a/meta-oe/recipes-support/openct/openct/0001-Fix-incompatible-pointer-type-error-with-gcc-option.patch +++ /dev/null | |||
| @@ -1,65 +0,0 @@ | |||
| 1 | From c4351058da555e1e6a2b4b15d913baee80f55865 Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Wang Mingyu <wangmy@fujitsu.com> | ||
| 3 | Date: Thu, 27 Jun 2024 06:27:18 +0000 | ||
| 4 | Subject: Fix incompatible pointer type error with gcc option | ||
| 5 | -Wincompatible-pointer-types | ||
| 6 | |||
| 7 | | ../../../openct-0.6.20/src/ifd/ifdhandler.c: In function 'ifdhandler_run': | ||
| 8 | | ../../../openct-0.6.20/src/ifd/ifdhandler.c:239:52: error: passing argument 2 of 'ifd_get_eventfd' from incompatible pointer type [-Wincompatible-pointer-types] | ||
| 9 | | 239 | sock->fd = ifd_get_eventfd(reader, &sock->events); | ||
| 10 | | | ^~~~~~~~~~~~~ | ||
| 11 | | | | | ||
| 12 | | | int * | ||
| 13 | | In file included from ../../../openct-0.6.20/src/ifd/internal.h:17, | ||
| 14 | | from ../../../openct-0.6.20/src/ifd/ifdhandler.c:7: | ||
| 15 | | ../../../openct-0.6.20/src/include/openct/ifd.h:182:65: note: expected 'short int *' but argument is of type 'int *' | ||
| 16 | | 182 | extern int ifd_get_eventfd(ifd_reader_t *, short *); | ||
| 17 | | | ^~~~~~~ | ||
| 18 | |||
| 19 | | ../../../openct-0.6.20/src/ifd/process.c: In function 'do_memory_write': | ||
| 20 | | ../../../openct-0.6.20/src/ifd/process.c:461:61: error: passing argument 4 of 'ct_tlv_get_opaque' from incompatible pointer type [-Wincompatible-pointer-types] | ||
| 21 | | 461 | || !ct_tlv_get_opaque(args, CT_TAG_DATA, &data, &data_len)) | ||
| 22 | | | ^~~~~~~~~ | ||
| 23 | | | | | ||
| 24 | | | unsigned int * | ||
| 25 | | In file included from ../../../openct-0.6.20/src/ifd/process.c:20: | ||
| 26 | | ../../../openct-0.6.20/src/include/openct/tlv.h:40:62: note: expected 'size_t *' {aka 'long unsigned int *'} but argument is of type 'unsigned int *' | ||
| 27 | | 40 | ifd_tag_t, unsigned char **, size_t *); | ||
| 28 | |||
| 29 | Upstream-Status: Submitted | ||
| 30 | |||
| 31 | Signed-off-by: Wang Mingyu <wangmy@fujitsu.com> | ||
| 32 | --- | ||
| 33 | src/ifd/ifdhandler.c | 2 +- | ||
| 34 | src/ifd/process.c | 2 +- | ||
| 35 | 2 files changed, 2 insertions(+), 2 deletions(-) | ||
| 36 | |||
| 37 | diff --git a/src/ifd/ifdhandler.c b/src/ifd/ifdhandler.c | ||
| 38 | index 12686c9..ebd1b53 100644 | ||
| 39 | --- a/src/ifd/ifdhandler.c | ||
| 40 | +++ b/src/ifd/ifdhandler.c | ||
| 41 | @@ -236,7 +236,7 @@ static void ifdhandler_run(ifd_reader_t * reader) | ||
| 42 | sock->fd = -1; | ||
| 43 | } | ||
| 44 | else { | ||
| 45 | - sock->fd = ifd_get_eventfd(reader, &sock->events); | ||
| 46 | + sock->fd = ifd_get_eventfd(reader, (short int *)&sock->events); | ||
| 47 | } | ||
| 48 | if (sock->fd == -1) { | ||
| 49 | ifd_debug(1, "events inactive for reader %s", reader->name); | ||
| 50 | diff --git a/src/ifd/process.c b/src/ifd/process.c | ||
| 51 | index 4563bdf..7088a76 100644 | ||
| 52 | --- a/src/ifd/process.c | ||
| 53 | +++ b/src/ifd/process.c | ||
| 54 | @@ -458,7 +458,7 @@ static int do_memory_write(ifd_reader_t * reader, int unit, | ||
| 55 | return IFD_ERROR_INVALID_SLOT; | ||
| 56 | |||
| 57 | if (ct_tlv_get_int(args, CT_TAG_ADDRESS, &address) == 0 | ||
| 58 | - || !ct_tlv_get_opaque(args, CT_TAG_DATA, &data, &data_len)) | ||
| 59 | + || !ct_tlv_get_opaque(args, CT_TAG_DATA, &data, (size_t *)&data_len)) | ||
| 60 | return IFD_ERROR_MISSING_ARG; | ||
| 61 | |||
| 62 | rc = ifd_card_write_memory(reader, unit, address, data, data_len); | ||
| 63 | -- | ||
| 64 | 2.34.1 | ||
| 65 | |||
diff --git a/meta-oe/recipes-support/openct/openct/0001-m4-Just-emit-the-first-line-of-compiler-version.patch b/meta-oe/recipes-support/openct/openct/0001-m4-Just-emit-the-first-line-of-compiler-version.patch deleted file mode 100644 index 9bd3d18d6e..0000000000 --- a/meta-oe/recipes-support/openct/openct/0001-m4-Just-emit-the-first-line-of-compiler-version.patch +++ /dev/null | |||
| @@ -1,31 +0,0 @@ | |||
| 1 | From 146b5116140d719e4e9ae19748c0b6dee7d82f96 Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Khem Raj <raj.khem@gmail.com> | ||
| 3 | Date: Mon, 22 May 2023 22:01:28 -0700 | ||
| 4 | Subject: [PATCH] m4: Just emit the first line of compiler version | ||
| 5 | |||
| 6 | Avoids emitting buildpaths into comments | ||
| 7 | Fixes | ||
| 8 | WARNING: openct-0.6.20-r0 do_package_qa: QA Issue: File /usr/include/openct/types.h in package openct-dev contains reference to TMPDIR [buildpaths] | ||
| 9 | |||
| 10 | Upstream-Status: Pending | ||
| 11 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
| 12 | --- | ||
| 13 | m4/ac_create_stdint_h.m4 | 2 +- | ||
| 14 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
| 15 | |||
| 16 | diff --git a/m4/ac_create_stdint_h.m4 b/m4/ac_create_stdint_h.m4 | ||
| 17 | index 66de704..4b7223a 100644 | ||
| 18 | --- a/m4/ac_create_stdint_h.m4 | ||
| 19 | +++ b/m4/ac_create_stdint_h.m4 | ||
| 20 | @@ -110,7 +110,7 @@ echo "#define" $_ac_stdint_h "1" >>$ac_stdint_h | ||
| 21 | echo "#ifndef" _GENERATED_STDINT_H >>$ac_stdint_h | ||
| 22 | echo "#define" _GENERATED_STDINT_H '"'$PACKAGE $VERSION'"' >>$ac_stdint_h | ||
| 23 | if test "$GCC" = "yes" ; then | ||
| 24 | - echo "/* generated using a gnu compiler version" `$CC --version` "*/" \ | ||
| 25 | + echo "/* generated using a gnu compiler version" `$CC --version|head -1` "*/" \ | ||
| 26 | >>$ac_stdint_h | ||
| 27 | else | ||
| 28 | echo "/* generated using $CC */" >>$ac_stdint_h | ||
| 29 | -- | ||
| 30 | 2.40.1 | ||
| 31 | |||
diff --git a/meta-oe/recipes-support/openct/openct/etc-openct.udev.in-disablePROGRAM.patch b/meta-oe/recipes-support/openct/openct/etc-openct.udev.in-disablePROGRAM.patch deleted file mode 100644 index e2401bb31b..0000000000 --- a/meta-oe/recipes-support/openct/openct/etc-openct.udev.in-disablePROGRAM.patch +++ /dev/null | |||
| @@ -1,31 +0,0 @@ | |||
| 1 | From e0d3e0bb1e38ff851696a7d8826e651d364ad8ce Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Li xin <lixin.fnst@cn.fujitsu.com> | ||
| 3 | Date: Fri, 5 Dec 2014 02:00:57 +0900 | ||
| 4 | Subject: [PATCH 1/2] etc/openct.udev.in: disablePROGRAM | ||
| 5 | |||
| 6 | Bug fix: https://bugzilla.redhat.com/show_bug.cgi?id=287871 | ||
| 7 | |||
| 8 | Upstream-Status: Pending | ||
| 9 | |||
| 10 | Signed-off-by: Li Xin <lixin.fnst@cn.fujitsu.com> | ||
| 11 | --- | ||
| 12 | etc/openct.udev.in | 3 ++- | ||
| 13 | 1 file changed, 2 insertions(+), 1 deletion(-) | ||
| 14 | |||
| 15 | diff --git a/etc/openct.udev.in b/etc/openct.udev.in | ||
| 16 | index d11d0e1..48083c9 100644 | ||
| 17 | --- a/etc/openct.udev.in | ||
| 18 | +++ b/etc/openct.udev.in | ||
| 19 | @@ -22,7 +22,8 @@ ACTION!="add", GOTO="openct_usb_rules_end" | ||
| 20 | # 2010-01-06 removed, as latest udev doesn't know WAIT_FOR_ATTR any more. | ||
| 21 | |||
| 22 | # sleep for 100ms - the wait_for_sysfs might not be enough | ||
| 23 | -PROGRAM="/bin/sleep 0.1" | ||
| 24 | +# Disabled in this package - see https://bugzilla.redhat.com/287871 | ||
| 25 | +# PROGRAM="/bin/sleep 0.1" | ||
| 26 | |||
| 27 | # ccid | ||
| 28 | ATTR{bInterfaceClass}=="0b", ATTR{bInterfaceSubClass}=="00", ATTR{bInterfaceProtocol}=="00", ATTRS{idVendor}=="?*" RUN+="@udevdir@/openct_usb /dev/$parent" | ||
| 29 | -- | ||
| 30 | 1.8.4.2 | ||
| 31 | |||
diff --git a/meta-oe/recipes-support/openct/openct/etc-openct_usb.in-modify-UDEVINFO.patch b/meta-oe/recipes-support/openct/openct/etc-openct_usb.in-modify-UDEVINFO.patch deleted file mode 100644 index 22eda729fb..0000000000 --- a/meta-oe/recipes-support/openct/openct/etc-openct_usb.in-modify-UDEVINFO.patch +++ /dev/null | |||
| @@ -1,35 +0,0 @@ | |||
| 1 | From d93985a137b553b2723235d03bda341dab14064f Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Li xin <lixin.fnst@cn.fujitsu.com> | ||
| 3 | Date: Fri, 5 Dec 2014 02:04:03 +0900 | ||
| 4 | Subject: [PATCH 2/2] etc/openct_usb.in: modify UDEVINFO | ||
| 5 | |||
| 6 | this patch is from Fedora | ||
| 7 | |||
| 8 | Upstream-Status: Pending | ||
| 9 | |||
| 10 | Signed-off-by: Li Xin <lixin.fnst@cn.fujitsu.com> | ||
| 11 | --- | ||
| 12 | etc/openct_usb.in | 6 +++--- | ||
| 13 | 1 file changed, 3 insertions(+), 3 deletions(-) | ||
| 14 | |||
| 15 | diff --git a/etc/openct_usb.in b/etc/openct_usb.in | ||
| 16 | index 32f91aa..917467d 100644 | ||
| 17 | --- a/etc/openct_usb.in | ||
| 18 | +++ b/etc/openct_usb.in | ||
| 19 | @@ -15,10 +15,10 @@ if [ -z "$DEVNAME" ]; then | ||
| 20 | # Guess udev info interface. | ||
| 21 | # Newer udev uses udevadm | ||
| 22 | # | ||
| 23 | - if which udevinfo > /dev/null 2>&1; then | ||
| 24 | - UDEVINFO="udevinfo" | ||
| 25 | - else | ||
| 26 | + if which udevadm > /dev/null 2>&1; then | ||
| 27 | UDEVINFO="udevadm info" | ||
| 28 | + else | ||
| 29 | + UDEVINFO="udevinfo" | ||
| 30 | fi | ||
| 31 | DEVNAME=/dev/$($UDEVINFO --query=name --path=$(dirname $DEVPATH)) | ||
| 32 | fi | ||
| 33 | -- | ||
| 34 | 1.8.4.2 | ||
| 35 | |||
diff --git a/meta-oe/recipes-support/openct/openct/openct.init b/meta-oe/recipes-support/openct/openct/openct.init deleted file mode 100644 index c6896095e3..0000000000 --- a/meta-oe/recipes-support/openct/openct/openct.init +++ /dev/null | |||
| @@ -1,89 +0,0 @@ | |||
| 1 | #!/bin/sh | ||
| 2 | # | ||
| 3 | # openct This shell script takes care of starting and stopping OpenCT. | ||
| 4 | # | ||
| 5 | # chkconfig: 2345 24 89 | ||
| 6 | # description: OpenCT is a middleware framework for smart card terminals. | ||
| 7 | # | ||
| 8 | # processname: ifdhandler | ||
| 9 | # config: /etc/openct.conf | ||
| 10 | |||
| 11 | ### BEGIN INIT INFO | ||
| 12 | # Provides: openct | ||
| 13 | # Default-Start: 2 3 4 5 | ||
| 14 | # Default-Stop: 0 1 6 | ||
| 15 | # Should-Start: $syslog $network | ||
| 16 | # Should-Stop: $syslog $network | ||
| 17 | # Short-Description: Middleware framework for smart card terminals | ||
| 18 | # Description: This starts/stops the OpenCT middleware framework support | ||
| 19 | # for smart card terminals. | ||
| 20 | ### END INIT INFO | ||
| 21 | |||
| 22 | . /etc/init.d/functions | ||
| 23 | |||
| 24 | exec="/usr/sbin/openct-control" | ||
| 25 | prog=openct | ||
| 26 | proc=ifdhandler | ||
| 27 | |||
| 28 | OPENCT_OPTIONS= | ||
| 29 | [ -e /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog | ||
| 30 | |||
| 31 | lockfile=/var/lock/subsys/$prog | ||
| 32 | |||
| 33 | start() { | ||
| 34 | retval=0 | ||
| 35 | if ! status $proc >/dev/null 2>&1 ; then | ||
| 36 | action $"Initializing OpenCT smart card terminals: " \ | ||
| 37 | $exec $OPENCT_OPTIONS init | ||
| 38 | retval=$? | ||
| 39 | [ $retval -eq 0 ] && touch $lockfile | ||
| 40 | fi | ||
| 41 | return $retval | ||
| 42 | } | ||
| 43 | |||
| 44 | stop() { | ||
| 45 | if status $proc >/dev/null 2>&1 ; then | ||
| 46 | action $"Stopping OpenCT smart card terminals: " \ | ||
| 47 | $exec $OPENCT_OPTIONS shutdown | ||
| 48 | fi | ||
| 49 | retval=$? | ||
| 50 | if [ $retval -eq 0 ] ; then | ||
| 51 | rm -f /var/run/openct/status | ||
| 52 | rm -f $lockfile | ||
| 53 | fi | ||
| 54 | return $retval | ||
| 55 | } | ||
| 56 | |||
| 57 | restart() { | ||
| 58 | stop | ||
| 59 | start | ||
| 60 | } | ||
| 61 | |||
| 62 | oct_status() { | ||
| 63 | status $proc | ||
| 64 | retval=$? | ||
| 65 | if [ -e /var/run/openct/status ] ; then | ||
| 66 | $exec $OPENCT_OPTIONS status | ||
| 67 | [ -e /var/run/openct/status ] && \ | ||
| 68 | echo $"Waiting for reader attach/detach events..." | ||
| 69 | fi | ||
| 70 | return $retval | ||
| 71 | } | ||
| 72 | |||
| 73 | case "$1" in | ||
| 74 | start|stop|restart) | ||
| 75 | $1 | ||
| 76 | ;; | ||
| 77 | reload|force-reload) | ||
| 78 | restart | ||
| 79 | ;; | ||
| 80 | status) | ||
| 81 | oct_status | ||
| 82 | ;; | ||
| 83 | try-restart|condrestart) | ||
| 84 | [ ! -f $lockfile ] || restart | ||
| 85 | ;; | ||
| 86 | *) | ||
| 87 | echo $"Usage: $0 {start|stop|status|restart|try-restart|reload|force-reload}" | ||
| 88 | exit 2 | ||
| 89 | esac | ||
diff --git a/meta-oe/recipes-support/openct/openct/openct.service b/meta-oe/recipes-support/openct/openct/openct.service deleted file mode 100644 index 57de8c0a88..0000000000 --- a/meta-oe/recipes-support/openct/openct/openct.service +++ /dev/null | |||
| @@ -1,13 +0,0 @@ | |||
| 1 | [Unit] | ||
| 2 | Description=Openct Middleware framework for smart card terminals | ||
| 3 | After=syslog.target network.target | ||
| 4 | |||
| 5 | [Service] | ||
| 6 | EnvironmentFile=-/etc/sysconfig/openct | ||
| 7 | ExecStart=/usr/sbin/openct-control $OPENCT_OPTIONS init | ||
| 8 | ExecStop=/usr/sbin/openct-control $OPENCT_OPTIONS shutdown | ||
| 9 | RemainAfterExit=yes | ||
| 10 | KillMode=mixed | ||
| 11 | |||
| 12 | [Install] | ||
| 13 | WantedBy=multi-user.target | ||
diff --git a/meta-oe/recipes-support/openct/openct/openct.sysconfig b/meta-oe/recipes-support/openct/openct/openct.sysconfig deleted file mode 100644 index ffc270790f..0000000000 --- a/meta-oe/recipes-support/openct/openct/openct.sysconfig +++ /dev/null | |||
| @@ -1,5 +0,0 @@ | |||
| 1 | # -*- sh -*- | ||
| 2 | # Extra options to pass to openct-control. | ||
| 3 | # Consult "/usr/sbin/openct-control -h" for available options. | ||
| 4 | # | ||
| 5 | OPENCT_OPTIONS="" | ||
diff --git a/meta-oe/recipes-support/openct/openct_0.6.20.bb b/meta-oe/recipes-support/openct/openct_0.6.20.bb deleted file mode 100644 index c7b0d0d56d..0000000000 --- a/meta-oe/recipes-support/openct/openct_0.6.20.bb +++ /dev/null | |||
| @@ -1,91 +0,0 @@ | |||
| 1 | SUMMARY = "Middleware framework for smart card terminals" | ||
| 2 | HOMEPAGE = "https://github.com/OpenSC/openct/wiki" | ||
| 3 | DESCRIPTION = " \ | ||
| 4 | OpenCT implements drivers for several smart card readers. \ | ||
| 5 | It comes as driver in ifdhandler format for PC/SC-Lite, \ | ||
| 6 | as CT-API driver, or as a small and lean middleware, \ | ||
| 7 | so applications can use it with minimal overhead. \ | ||
| 8 | OpenCT also has a primitive mechanism to export smart card \ | ||
| 9 | readers to remote machines via TCP/IP." | ||
| 10 | |||
| 11 | DEPENDS += "libtool pcsc-lite libusb-compat" | ||
| 12 | |||
| 13 | SRC_URI = " \ | ||
| 14 | https://downloads.sourceforge.net/project/opensc/${BPN}/${BPN}-${PV}.tar.gz \ | ||
| 15 | file://etc-openct.udev.in-disablePROGRAM.patch \ | ||
| 16 | file://etc-openct_usb.in-modify-UDEVINFO.patch \ | ||
| 17 | file://0001-m4-Just-emit-the-first-line-of-compiler-version.patch \ | ||
| 18 | file://openct.init \ | ||
| 19 | file://openct.sysconfig \ | ||
| 20 | file://openct.service \ | ||
| 21 | file://0001-Fix-incompatible-pointer-type-error-with-gcc-option.patch \ | ||
| 22 | " | ||
| 23 | |||
| 24 | SRC_URI[sha256sum] = "6cd3e2933d29eb1f875c838ee58b8071fd61f0ec8ed5922a86c01c805d181a68" | ||
| 25 | |||
| 26 | UPSTREAM_CHECK_URI = "https://sourceforge.net/projects/opensc/files/openct/" | ||
| 27 | |||
| 28 | LICENSE = "LGPL-2.0-or-later" | ||
| 29 | LIC_FILES_CHKSUM = "file://LGPL-2.1;md5=2d5025d4aa3495befef8f17206a5b0a1" | ||
| 30 | |||
| 31 | inherit systemd | ||
| 32 | SYSTEMD_SERVICE:${PN} += "openct.service " | ||
| 33 | SYSTEMD_AUTO_ENABLE = "enable" | ||
| 34 | |||
| 35 | EXTRA_OECONF = " \ | ||
| 36 | --disable-static \ | ||
| 37 | --enable-usb \ | ||
| 38 | --enable-pcsc \ | ||
| 39 | --enable-doc \ | ||
| 40 | --enable-api-doc \ | ||
| 41 | --with-udev=${nonarch_libdir}/udev \ | ||
| 42 | --with-bundle=${libdir}/pcsc/drivers \ | ||
| 43 | " | ||
| 44 | |||
| 45 | inherit autotools pkgconfig | ||
| 46 | |||
| 47 | FILES:${PN} += " \ | ||
| 48 | ${libdir}/ctapi \ | ||
| 49 | ${nonarch_libdir}/udev \ | ||
| 50 | ${libdir}/openct-ifd.so \ | ||
| 51 | ${libdir}/pcsc \ | ||
| 52 | " | ||
| 53 | |||
| 54 | FILES:${PN}-dbg += " \ | ||
| 55 | ${libdir}/ctapi/.debug \ | ||
| 56 | ${libdir}/pcsc/drivers/openct-ifd.bundle/Contents/Linux/.debug \ | ||
| 57 | " | ||
| 58 | |||
| 59 | INSANE_SKIP:${PN} += "dev-deps" | ||
| 60 | |||
| 61 | do_install[cleandirs] += "${D}" | ||
| 62 | |||
| 63 | do_install () { | ||
| 64 | install -d ${D}${sysconfdir} | ||
| 65 | # fix up hardcoded paths | ||
| 66 | sed -i -e 's,/etc/,${sysconfdir}/,' -e 's,/usr/sbin/,${sbindir}/,' \ | ||
| 67 | ${UNPACKDIR}/openct.service ${UNPACKDIR}/openct.init | ||
| 68 | |||
| 69 | oe_runmake install DESTDIR=${D} | ||
| 70 | install -dm 755 ${D}${libdir}/ctapi/ | ||
| 71 | mv ${D}${libdir}/libopenctapi.so ${D}${libdir}/ctapi/ | ||
| 72 | install -Dpm 644 etc/openct.udev ${D}${nonarch_libdir}/udev/rules.d/60-openct.rules | ||
| 73 | install -pm 644 etc/openct.conf ${D}${sysconfdir}/openct.conf | ||
| 74 | |||
| 75 | install -Dpm 755 ${UNPACKDIR}/openct.init ${D}${sysconfdir}/init.d/openct | ||
| 76 | install -Dpm 644 ${UNPACKDIR}/openct.sysconfig ${D}${sysconfdir}/sysconfig/openct | ||
| 77 | |||
| 78 | install -d ${D}${systemd_unitdir}/system | ||
| 79 | install -m 644 ${UNPACKDIR}/openct.service ${D}${systemd_unitdir}/system | ||
| 80 | |||
| 81 | so=$(find ${D} -name \*.so | sed "s|^${D}||") | ||
| 82 | sed -i -e 's|\\(LIBPATH\\s*\\).*|\\1$so|' etc/reader.conf | ||
| 83 | install -Dpm 644 etc/reader.conf ${D}${sysconfdir}/reader.conf.d/openct.conf | ||
| 84 | } | ||
| 85 | |||
| 86 | BBCLASSEXTEND = "native" | ||
| 87 | |||
| 88 | # http://errors.yoctoproject.org/Errors/Details/766890/ | ||
| 89 | # openct-0.6.20/src/ifd/ifdhandler.c:239:52: error: passing argument 2 of 'ifd_get_eventfd' from incompatible pointer type [-Wincompatible-pointer-types] | ||
| 90 | # openct-0.6.20/src/ifd/process.c:461:61: error: passing argument 4 of 'ct_tlv_get_opaque' from incompatible pointer type [-Wincompatible-pointer-types] | ||
| 91 | CFLAGS += "-Wno-error=incompatible-pointer-types" | ||
